/* ------------------------------------------- */
/* 1. RESET SOLO PARA PÁGINA DE CONTACTO       */
/* ------------------------------------------- */
body.page-contacto {
  background-color: #ffffff;
  padding-bottom: 80px;
}

/* ------------------------------------------- */
/* 2. COLORES PARA ICONOS (Bootstrap Icons)    */
/* ------------------------------------------- */
.bi-envelope-fill,
.bi-envelope-at-fill,
.bi-geo-alt-fill,
.bi-telephone-fill {
  color: #78ffd6 !important;
  -webkit-text-fill-color: #78ffd6 !important;
}

/* ------------------------------------------- */
/* 3. ENCABEZADO DE CONTACTO                   */
/* ------------------------------------------- */
.encabezado-contacto {
  min-height: 100vh;
  width: 100vw;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Sin capa — imagen limpia */

.encabezado-contacto .titulo,
.encabezado-contacto .subtitulo,
.encabezado-contacto .line {
  position: relative;
  z-index: 2;
}

.encabezado-contacto .titulo {
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  margin: 0;
  animation: entradaTitulo 1s ease-out forwards;
}

.encabezado-contacto .subtitulo {
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  margin-top: 20px;
}

.line {
  margin-top: 30px;
  width: 200px;
  height: 4px;
  background: #00a1b9;
  border-radius: 2px;
  display: block;
}

@keyframes entradaTitulo {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* ------------------------------------------- */
/* 4. SECCIÓN DE CONTACTO — FONDO BLANCO       */
/* ------------------------------------------- */
.contacto {
  background: #f8fafa;
  color: #0a2a35;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.contacto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0a2a35;
  -webkit-text-fill-color: #0a2a35;
  position: relative;
  z-index: 1;
}

/* Línea decorativa bajo el título */
.contacto h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #00a1b9;
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

.contacto-texto p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a6872;
  -webkit-text-fill-color: #4a6872;
  position: relative;
  z-index: 1;
}

/* ------------------------------------------- */
/* 5. FORMULARIO — ESTILO BLANCO LIMPIO        */
/* ------------------------------------------- */
.contacto .form-label {
  font-weight: 500;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #006474 !important;
  -webkit-text-fill-color: #006474 !important;
}

.contacto .form-control,
.contacto .form-select {
  background: #f0f9fb !important;
  border: 1.5px solid #c8e8ef !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  color: #0a2a35 !important;
  -webkit-text-fill-color: #0a2a35 !important;
}

.contacto .form-control:focus,
.contacto .form-select:focus {
  background: #fff !important;
  border-color: #00a1b9 !important;
  box-shadow: 0 0 0 3px rgba(0,161,185,0.15) !important;
  outline: none !important;
}

.contacto .form-control::placeholder {
  color: #a0b8be !important;
  font-style: italic;
}

.line-focus {
  display: block;
  height: 2px;
  background: #00a1b9;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}

.form-control:focus ~ .line-focus,
.form-select:focus ~ .line-focus {
  transform: scaleX(1);
}

/* ------------------------------------------- */
/* 6. BOTÓN ENVIAR                             */
/* ------------------------------------------- */
.contacto .btn-primary {
  background: #00a1b9 !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(0,161,185,0.3) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.contacto .btn-primary:hover {
  background: #007a8e !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0,161,185,0.4) !important;
}

.contacto .btn-primary:active {
  transform: translateY(-1px) !important;
}

/* ------------------------------------------- */
/* 7. IMAGEN Y MAPA                            */
/* ------------------------------------------- */
.contacto img.img-fluid {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,100,116,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #c8e8ef;
}

.contacto img.img-fluid:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,100,116,0.25);
}

.contacto iframe {
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border: 1px solid #c8e8ef;
}

/* ------------------------------------------- */
/* 8. DATOS DE CONTACTO                        */
/* ------------------------------------------- */
.contacto .bi {
  font-size: 1.2rem;
  margin-right: 10px;
  color: #00a1b9 !important;
  -webkit-text-fill-color: #00a1b9 !important;
  filter: none;
}

.contacto p {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: #2a4a55;
  -webkit-text-fill-color: #2a4a55;
  transition: transform 0.3s ease;
}

.contacto p:hover { transform: translateX(5px); }

/* Título "Síguenos" */
.contacto > .container p.animate__animated {
  color: #0a2a35;
  -webkit-text-fill-color: #0a2a35;
  font-weight: 500;
}

/* ------------------------------------------- */
/* 9. REDES SOCIALES                           */
/* Transparentes por defecto, color al hover   */
/* ------------------------------------------- */
.contacto .d-flex.gap-3 { gap: 1.2rem !important; }

.contacto .d-flex.gap-3 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent !important;
  border: 1.5px solid #a0c8d0 !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.contacto .d-flex.gap-3 a .bi {
  color: #006474 !important;
  -webkit-text-fill-color: #006474 !important;
  font-size: 1.3rem;
  filter: none;
  margin: 0;
  transition: all 0.35s ease;
}

/* Hover — fondo blanco con sombra y color original */
.contacto .d-flex.gap-3 a:hover {
  background: white !important;
  border-color: transparent !important;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0,100,116,0.2);
}

.contacto .d-flex.gap-3 a:hover .bi-facebook {
  color: #1877F2 !important;
  -webkit-text-fill-color: #1877F2 !important;
}
.contacto .d-flex.gap-3 a:hover .bi-instagram {
  color: #E1306C !important;
  -webkit-text-fill-color: #E1306C !important;
}
.contacto .d-flex.gap-3 a:hover .bi-twitter-x {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
.contacto .d-flex.gap-3 a:hover .bi-youtube {
  color: #FF0000 !important;
  -webkit-text-fill-color: #FF0000 !important;
}
.contacto .d-flex.gap-3 a:hover .bi-linkedin {
  color: #0077B5 !important;
  -webkit-text-fill-color: #0077B5 !important;
}
.contacto .d-flex.gap-3 a:hover .bi-whatsapp {
  color: #25D366 !important;
  -webkit-text-fill-color: #25D366 !important;
}
.contacto .d-flex.gap-3 a:hover .bi-tiktok {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* ------------------------------------------- */
/* 10. MODAL                                   */
/* ------------------------------------------- */
#modalMensaje .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#modalMensaje .modal-header {
  background: linear-gradient(135deg, #006474 0%, #00a1b9 100%);
  color: white;
  border-radius: 20px 20px 0 0;
  border: none;
}

#modalMensaje .modal-body { padding: 2rem; }

#modalMensaje .modal-body i {
  color: #28a745;
  font-size: 3.5rem;
  display: block;
  margin: 0 auto 1rem;
  animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

#modalMensaje .modal-footer { border: none; padding: 1rem 2rem; }

/* ------------------------------------------- */
/* 11. ALERTAS                                 */
/* ------------------------------------------- */
.contacto .alert {
  border-radius: 12px;
  font-weight: 500;
}

.contacto .alert-info      { background: #e0f5f8; color: #006474; border: 1px solid #b0dde5; }
.contacto .alert-warning   { background: #fff8e1; color: #8a6200; border: 1px solid #ffe082; }
.contacto .alert-secondary { background: #f5f5f5; color: #555; border: 1px solid #ddd; }

/* ------------------------------------------- */
/* 12. BOTÓN WHATSAPP FLOTANTE                 */
/* ------------------------------------------- */
.whatsapp-toggle {
  background-color: #25D366 !important;
  color: white !important;
}

.whatsapp-toggle i {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* ------------------------------------------- */
/* 13. FOOTER SIMPLE                           */
/* ------------------------------------------- */
.pie-simple {
  border-top-left-radius: 125px;
  background: linear-gradient(to right, #081850, #14365f, #13476f, #125d80, #107792, #0d96a5, #09b8b4, #04ccb1) !important;
  margin-top: 30px !important;
  width: 100% !important;
}

.pie-simple .final-pagina {
  width: calc(100% - 140px);
  margin: 0 auto;
}

/* ------------------------------------------- */
/* 14. RESPONSIVE                              */
/* ------------------------------------------- */
@media (max-width: 991px) {
  .contacto h2 { font-size: 2rem; }
  .contacto-texto p { font-size: 1rem; }
  .contacto .d-flex.gap-3 { justify-content: center; }
  .encabezado-contacto .titulo { font-size: 3rem; }
}

@media (max-width: 768px) {
  .contacto h2 { font-size: 1.8rem; }
  .line { width: 120px; height: 3px; }
  .encabezado-contacto .titulo { font-size: 2.5rem; }
  .encabezado-contacto .subtitulo { font-size: 1.4rem; }
}

@media (max-width: 576px) {
  .contacto h2 { font-size: 1.5rem; }
  .contacto .btn-primary { font-size: 0.95rem !important; padding: 12px 20px !important; }
  .contacto .d-flex.gap-3 a { width: 42px; height: 42px; }
  .encabezado-contacto .titulo { font-size: 2rem; }
}
