/* ==========================================================================
   PÁGINA DE CONTACTO
   ========================================================================== */

/* ====== HEADER ====== */
body.contact-page-template .custom-header {
  background-color: white; /* header blanco como en Patógenos */
  position: absolute;
}
body.contact-page-template .nav-menu li a {
  color: #6265fe;
}
body.contact-page-template .nav-menu li.current-menu-item a {
  background-color: #6265fe !important;
  color: white !important;
}
body.contact-page-template .nav-menu li a:hover {
  background-color: #0e00da !important;
  color: white !important;
}
body.contact-page-template .login-icon a,
body.contact-page-template .cart-icon a,
body.contact-page-template .nav-menu li a[href*="/contacto"]::before {
  color: #6265fe;
}
body.contact-page-template .login-icon a:hover,
body.contact-page-template .cart-icon a:hover,
body.contact-page-tempalte .nav-menu li a[href*="/contacto"]:hover {
  background-color: #0e00da !important;
  color: white;
}

/* ====== HERO ====== */
body.contact-page-template .contact-hero {
  background-image: url('/wp-content/themes/bioingentechtheme/assets/images/contact-widget.webp')!important;
  background-size: cover;
  background-position: center;
  min-height: 75vh; /* que ocupe toda la pantalla */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: white;
  position: relative;
  z-index: 5;
}
body.contact-page-template .hero-overlay {
  position: absolute;
  inset: 0;
background-color: rgba(5, 1, 62, 0.35); /* o blanco: rgba(255,255,255,0.3) */
  opacity: 0.85;
  z-index: 1;
  border-radius: 0;
}
body.contact-page-template .hero-content {
  margin: 0;
  text-align: center;
  z-index: 4;
  margin-bottom: 2rem;
}

body.contact-page-template .contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
body.contact-page-template .contact-hero p {
  font-size: 30px;
  margin-bottom: 3rem;
  margin-top: 0.5rem;
  text-align: center;
}
body.contact-page-template .contact-hero .email-widget-button {
  background-color: #ffffff;
  color: #6265fe;
  font-weight: bold;
  font-size: 16px;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.contact-page-template .contact-hero .email-widget-button:hover {
  background-color: #0e00da;
  color: white;
}

/* ====== CONTENEDOR PRINCIPAL (INFO + MAPA) ====== */
body.contact-page-template .contact-two-column {
  padding: 4rem 1rem;
}
body.contact-page-template .contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  width: 1060px;
  margin: 0 auto;
}

/* ====== CUADRO INFO ====== */
body.contact-page-template .contact-info-widget {
  flex: 1 1 45%;
  background-color: #6265fe;
  border-radius: 20px;
  padding: 1rem 2rem;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px;
}
body.contact-page-template .contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
body.contact-page-template .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.contact-page-template .contact-item i {
  font-size: 28px;
  margin-bottom: 0.5rem;
}
body.contact-page-template .contact-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
body.contact-page-template .contact-item span {
  font-size: 14px;
  color: #e7ecff;
}
body.contact-page-template .contact-info-widget .email-widget-button {
  background-color: #ffffff;
  color: #76a6ef;
  font-weight: bold;
  font-size: 16px;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body.contact-page-template .contact-info-widget .email-widget-button:hover {
  background-color: #e9efff;
  color: #4a6ed3;
}

/* ====== MAPA ====== */
body.contact-page-template .contact-map-card {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 20px;
  background: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
body.contact-page-template .contact-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  border: none;
  display: block;
  margin: 0;
}

/* ====== SOPORTE TÉCNICO ====== */
body.contact-page-template .technical-support-section h2 {
  font-size: 40px;
  font-weight: 700;
  color: #6265fe;
  margin-bottom: 1.5rem;
  text-align: center;
}
body.contact-page-template .technical-support-section p {
  font-size: 16px;
  max-width: 1060px;
  margin: auto;
  text-align: center;
  color: #6265fe;
  line-height: 1.6;
}
body.contact-page-template .technical-support-section a {
  color: #44dfdf;
  font-weight: 600;
  text-decoration: none;
}

/* ====== FONDO PÁGINA ====== */
body.contact-page-template .site-content,
body.contact-page-template .content-area,
body.contact-page-template #primary,
body.contact-page-template main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background-color: #f4f5f5 !important;
}

/* =========================================================
   RESPONSIVE — iPhone / móviles (<= 767px)
   ========================================================= */
@media (max-width: 767.98px) {

  /* Header fijo y compacto sobre el hero */
  body.contact-page-template .custom-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
  }
  /* Si tu header interno tiene container, dale respiración */
  body.contact-page-template .custom-header .header-container {
    padding: 10px 16px;
  }
  /* Logo más pequeño para notch */
  body.contact-page-template .custom-header .site-logo {
    max-height: 34px;
    height: 34px;
    width: auto;
  }

  /* Compensa el header fijo para que el contenido no quede tapado */
  body.contact-page-template .site-content,
  body.contact-page-template main {
    padding-top: 64px !important;
  }

  /* HERO */
  body.contact-page-template .contact-hero {
    min-height: 70svh; /* iOS usa svh/dvh: mejor que vh */
    background-position: center center;
    padding: 0 16px;
  }
  body.contact-page-template .hero-overlay {
    border-radius: 0;
    opacity: .85;
  }
  body.contact-page-template .hero-content {
    margin-bottom: 1.6rem;
    padding: 0 6px;
  }
  body.contact-page-template .contact-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: .5rem;
  }
  body.contact-page-template .contact-hero p {
    font-size: 1.125rem; /* ~18px */
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  body.contact-page-template .contact-hero .email-widget-button {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: .9rem 1.25rem;
    border-radius: 999px;
  }

  /* CONTENEDORES */
  body.contact-page-template .contact-two-column {
    padding: 2.5rem 1rem;
  }
  body.contact-page-template .contact-columns {
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }

  /* TARJETA INFO */
  body.contact-page-template .contact-info-widget {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem 1.25rem;
    border-radius: 16px;
  }
  body.contact-page-template .contact-details {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }
  body.contact-page-template .contact-item i {
    font-size: 22px;
    margin-bottom: .25rem;
  }
  body.contact-page-template .contact-item p {
    font-size: 16px;
  }
  body.contact-page-template .contact-item span {
    font-size: 13px;
  }
  body.contact-page-template .contact-info-widget .email-widget-button {
    width: 100%;
    max-width: 320px;
  }

  /* MAPA */
  body.contact-page-template .contact-map-card {
    flex: 1 1 auto;
    min-width: 0;
    padding: .75rem;
    border-radius: 16px;
  }
  /* Mantén proporción en iPhone */
  body.contact-page-template .contact-map-card iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    border-radius: 12px;
  }

  /* SOPORTE TÉCNICO */
  body.contact-page-template .technical-support-section h2 {
    font-size: 1.75rem;  /* ~28px */
    margin-bottom: 1rem;
  }
  body.contact-page-template .technical-support-section p {
    font-size: 15px;
    padding: 0 10px;
  }

  /* Fondo y espaciados finales */
  body.contact-page-template .site-content,
  body.contact-page-template .content-area,
  body.contact-page-template #primary,
  body.contact-page-template main {
    background-color: #f4f5f5 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* =========================================================
   EXTRA COMPACT — iPhone pequeños (<= 360px)
   ========================================================= */
@media (max-width: 360px) {
  body.contact-page-template .contact-hero h1 { font-size: 1.75rem; }
  body.contact-page-template .contact-hero p { font-size: 1rem; }
  body.contact-page-template .contact-map-card iframe { min-height: 200px; }
}
