/* css/contacto.css */




/* =========================================================
   CONTACTO: FIX GLASS + LEGIBILIDAD (solo para #contacto)
   ========================================================= */

/* =========================
HERO CONTACTO
========================= */
.contact-hero{
   position:relative;
  min-height: 520px;
 height: 100vh;
  background: url("../assets/images/contacto/contacto.png") center/cover no-repeat;
  display:flex;
  align-items:center;
  padding: 100px 0 40px;
}

.contact-hero__overlay{
    position:absolute;
  inset:0;

 
}

.contact-hero__shell{
   width: min(var(--max), 94%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-hero__glass{
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.contact-hero__glass::before{
  content: "";
  position: absolute;
  inset: 0;
 pointer-events: none;
}

.contact-hero__grid{
  position: relative;
  
  display: grid;
  grid-template-columns: 590px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px 28px 28px 35px;
  min-height: 560px;
}

.contact-hero__copy{
  max-width: 590px;
  align-self: center;
}

.contact-hero__copy h1{
  font-size: clamp(50px, 5.4vw, 65px);
  line-height: 1;
  font-weight: 100;
 
  color: #fff;
  margin: 0;
}

.contact-hero__copy h1 strong{
  font-weight: 650;
  display: inline;
}

.contact-hero__line{
  width: 192px;
  height: 10px;
  margin: 22px 0 18px;
  background: rgba(211,220,231,.55);
  border-radius: 999px;
  overflow: hidden;
}





.contact-hero__line span{
  display: block;
  width: 52%;
  height: 100%;
  background: #fff;
  border-radius: 999px;
}

.contact-hero__copy p{
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 490px;
  margin: 0;
}

.contact-hero__actions{
  margin-top: 22px;
}

.contact-hero__btn{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px 0 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #eaf4ff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: .25s ease;
}

.contact-hero__btn span{
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.contact-hero__btn i{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

.contact-hero__btn:hover{
  background: rgba(255,255,255,.16);
  transform: translateY(-2px);
}

.contact-hero__media{
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.contact-hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 980px){
  .contact-hero__grid{
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
  }

  .contact-hero__copy{
    max-width: none;
  }

  .contact-hero__copy p{
    max-width: 500px;
  }

  .contact-hero__media{
    height: 340px;
  }
}

@media (max-width: 560px){
  .contact-hero{
    padding: 86px 0 18px;
  }

  .contact-hero__shell{
    width: min(94%, 94%);
  }

  .contact-hero__glass{
    border-radius: 20px;
  }

  .contact-hero__grid{
    padding: 16px;
    gap: 16px;
  }

  .contact-hero__copy h1{
    font-size: clamp(30px, 10vw, 42px);
  }

  .contact-hero__copy p{
    font-size: 14px;
  }

  .contact-hero__line{
    width: 92px;
    height: 5px;
    margin: 18px 0 16px;
  }

  .contact-hero__media{
    height: 240px;
    border-radius: 16px;
  }
}


   
/* Sección clara elegante, sin overlays que ensucien */
.section-glass{
  position: relative;
  padding: 80px 0;
  background: linear-gradient(
    180deg,
    #f5f8fc 0%,
    #eef3f9 55%,
    #e9eff7 100%
  );
  overflow: hidden;
}

/* Ajusta el header para que contraste en fondo claro */
.section-glass .section-head h2,
.section-glass .section-head h2 strong{
  color: #0b1720;
}

.section-glass .section-head p{
  color: rgba(11,23,32,.72);
}

/* ===== Cards “glass” (premium pero legible) ===== */
.section-glass .contact-card{
  border-radius: 20px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 26px 60px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.75);
  padding: 26px;
}

/* Títulos dentro de cards */
.section-glass .contact-card h3{
  color: #0b1720;
  margin-bottom: 10px;
}

/* Texto del lado izquierdo */
.section-glass .contact-lines p{
  margin: 0 0 8px;
  color: rgba(11,23,32,.78);
  line-height: 1.6;
}

.section-glass .contact-lines strong{
  color: #0b1720;
  font-weight: 700;
}

/* Botones: mantenemos tu estilo, pero que no se pierdan en fondo claro */
.section-glass .contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 10px;
}

/* ===== Mapa: frame limpio (sin overlay oscuro) ===== */
.section-glass .contact-map{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
  min-height: 320px;
}

/* Tamaño correcto del iframe (el 550px te destruía el layout) */
.section-glass .contact-map iframe{
  width: 100%;
  height: 570px;
  min-height: 320px;
  border: 0;
  filter: saturate(1.05) contrast(1.05);
}

/* Badge sobre el mapa (se mantiene “glass”) */
.section-glass .map-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.section-glass .map-badge small{
  color: rgba(255,255,255,.92);
  font-size: 12px;
}

.section-glass .map-badge .dot{
  width:8px;
  height:8px;
  border-radius: 999px;
  background: #3D6CAD;
  box-shadow: 0 0 0 4px rgba(61,108,173,.18);
}

/* ===== Formulario ===== */
.section-glass .contact-form h3{
  margin-bottom: 8px;
  color: #0b1720;
}

.section-glass .contact-sub{
  margin-top: 0;
  margin-bottom: 14px;
  color: rgba(11,23,32,.70);
  line-height: 1.6;
  font-size: 13px;
}

/* Grid del formulario */
.section-glass .cform-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
}

.section-glass .cfield span{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(11,23,32,.86);
  margin-bottom: 8px;
}

/* Inputs legibles (fondo claro + texto oscuro) */
.section-glass .cfield input,
.section-glass .cfield select,
.section-glass .cfield textarea{
  width:100%;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.88);
  color: #0b1720;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.section-glass .cfield textarea{
  resize: vertical;
  min-height: 160px;
}

.section-glass .cfield input::placeholder,
.section-glass .cfield textarea::placeholder{
  color: rgba(11,23,32,.45);
}

/* Focus azul corporativo */
.section-glass .cfield input:focus,
.section-glass .cfield select:focus,
.section-glass .cfield textarea:focus{
  border-color: rgba(61,108,173,.85);
  box-shadow: 0 0 0 4px rgba(61,108,173,.18);
  background: rgba(255,255,255,.96);
}

.section-glass .cfull{ grid-column: 1 / -1; }

.section-glass .phone-row{
  display:flex;
  gap: 10px;
}

.section-glass .phone-code{
  max-width: 92px;
  text-align:center;
  background: rgba(255,255,255,.92);
}

/* acciones */
.section-glass .cactions{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-glass .cnote{
  color: rgba(11,23,32,.58);
}

/* Honeypot hidden */
.hp-field{
  position:absolute;
  left:-9999px;
  opacity:0;
}

/* Responsive */
@media (max-width: 720px){
  .section-glass .cform-grid{ grid-template-columns: 1fr; }
  .section-glass .phone-code{ max-width: 120px; }
}

/* =========================================
CONTACTO PAGE
========================================= */
.contact-page{
  background: #f3f3f3;
}

/* =========================================
INTRO + FORM
========================================= */
.contact-intro{
  padding: 86px 0 72px;
  background: #f3f3f3;
}

.contact-intro__grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.contact-intro__copy h2{
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  font-weight: 220;
  color: #1c1b17;
  max-width: 420px;
}

.contact-intro__copy h2 strong{
  font-weight: 800;
}

.contact-intro__copy p{
  margin-top: 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(28,27,23,.72);
}

.line-wrapper-contact{
  width: 100%;
  max-width: 92px;
  height: 6px;
  margin: 26px 0 18px;
  background: #d7dbe2;
  border-radius: 999px;
  overflow: hidden;
}

.line-fill-contact{
  width: 56%;
  height: 100%;
  background: #3d6cad;
  border-radius: 999px;
}

.contact-circle-link{
  margin-top: 0px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #3d6cad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #3d6cad;
  background: #fff;
  flex: 0 0 46px;
  transition: .25s ease;
}

.contact-circle-link span{
  font-size: 20px;
  line-height: 1;
  transform: translateX(1px);
}

.contact-circle-link:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61,108,173,.18);
}

.contact-form-card{
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 22px;
  box-shadow:
    0 14px 30px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.06);
  padding: 18px;
}

.contact-form-modern{
  display: grid;
  gap: 14px;
}

.contact-form-modern .form-row{
  display: grid;
  gap: 14px;
}

.contact-form-modern .form-row.two{
  grid-template-columns: 1fr 1fr;
}

.contact-form-modern .form-row.one{
  grid-template-columns: 1fr;
}

.contact-form-modern label{
  display: grid;
  gap: 8px;
}

.contact-form-modern label span{
  font-size: 12px;
  color: #444;
  font-weight: 500;
}

.contact-form-modern input,
.contact-form-modern select,
.contact-form-modern textarea{
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d3dae6;
  background: #cfd8e8;
  color: #1c1b17;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form-modern input::placeholder,
.contact-form-modern textarea::placeholder{
  color: rgba(28,27,23,.55);
}

.contact-form-modern input:focus,
.contact-form-modern select:focus,
.contact-form-modern textarea:focus{
  border-color: #3d6cad;
  box-shadow: 0 0 0 4px rgba(61,108,173,.12);
  background: #d7e0ef;
}

.phone-field{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.form-actions{
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

/* =========================================
MAPA
========================================= */
.contact-map-section{
  padding: 12px 0 82px;
  background: #f3f3f3;
}

.contact-head-light h2{
  color: #1c1b17;
}

.contact-head-light p{
  color: rgba(28,27,23,.72);
}

.map-card-clean{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  box-shadow:
    0 14px 30px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.05);
  padding: 6px;
  min-height: 520px;
}

.map-card-clean iframe{
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  border-radius: 18px;
}

.contact-center-cta{
  margin-top: 24px;
}

/* =========================================
WHATSAPP
========================================= */
.contact-whatsapp{
  padding: 24px 0 84px;
  background: #f3f3f3;
}

.contact-whatsapp__grid{
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.contact-whatsapp__copy h2{
  font-size: clamp(34px, 4vw, 56px);
  line-height: .98;
  font-weight: 220;
  color: #1c1b17;
  max-width: 370px;
}

.contact-whatsapp__copy h2 strong{
  font-weight: 800;
}

.contact-whatsapp__copy p{
  margin-top: 20px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(28,27,23,.72);
}

.contact-whatsapp__actions{
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.contact-whatsapp__actions .btn.azul{
  height: 46px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-whatsapp__media{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow:
    0 14px 30px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.05);
}

.contact-whatsapp__media img{
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* =========================================
FAQ
========================================= */
.contact-faq{
  padding: 10px 0 90px;
  background: #f3f3f3;
}

.faq-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 26px;
}

.faq-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow:
    0 10px 22px rgba(0,0,0,.06),
    0 2px 4px rgba(0,0,0,.04);
  overflow: hidden;
}

.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  color:#444;
  font-weight:500;
}

.faq-item summary::-webkit-details-marker{
  display:none;
}

/* ICONO */
.faq-icon{
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid #3D6CAD;
  position:relative;
  flex-shrink:0;
}

/* flecha */
.faq-icon::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:6px;
  height:6px;
  border-right:2px solid #3D6CAD;
  border-bottom:2px solid #3D6CAD;
  transform:translate(-60%, -50%) rotate(-45deg);
}

/* rotación cuando abre */
.faq-item[open] .faq-icon::before{
  transform:translate(-50%, -50%) rotate(45deg);
}

.faq-item p{
  padding: 0 18px 16px 46px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(28,27,23,.72);
}

/* =========================================
RESPONSIVE
========================================= */
@media (max-width: 980px){
  .contact-intro__grid,
  .contact-whatsapp__grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-intro__copy h2,
  .contact-whatsapp__copy h2{
    max-width: none;
  }

  .contact-intro__copy p,
  .contact-whatsapp__copy p{
    max-width: none;
  }

  .faq-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .contact-intro{
    padding: 64px 0 58px;
  }

  .contact-map-section,
  .contact-whatsapp,
  .contact-faq{
    padding-bottom: 64px;
  }

  .contact-form-modern .form-row.two{
    grid-template-columns: 1fr;
  }

  .map-card-clean{
    min-height: 360px;
  }

  .map-card-clean iframe{
    height: 360px;
  }

  .contact-whatsapp__media img{
    height: 300px;
  }
}

@media (max-width: 560px){
  .contact-intro__copy h2,
  .contact-whatsapp__copy h2{
    font-size: clamp(28px, 9vw, 40px);
  }

  .contact-form-card{
    padding: 14px;
    border-radius: 18px;
  }

  .phone-field{
    grid-template-columns: 82px 1fr;
  }

  .faq-item summary{
    padding: 14px 14px 14px 42px;
    font-size: 12.5px;
  }

  .faq-item p{
    padding: 0 14px 14px 42px;
    font-size: 12.5px;
  }

  .contact-whatsapp__actions{
    align-items: stretch;
  }

  .contact-whatsapp__actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
TV / LAPTOP HD 1360x768
CONTACT PAGE OPTIMIZATION
========================================= */
@media screen and (min-width:1200px) and (max-width:1440px) and (max-height:900px){

  /* =========================
     HERO CONTACTO
  ========================= */
  .contact-hero{
    min-height: 720px;
    height: 100vh;
    padding: 88px 0 24px;
  }

  .contact-hero__shell{
    width: min(1280px, 95%);
  }

  .contact-hero__glass{
    border-radius: 24px;
  }

  .contact-hero__grid{
    grid-template-columns: 320px minmax(0,1fr);
    gap: 24px;
    min-height: 500px;
    padding: 22px;
  }

  /* LEFT */
  .contact-hero__copy{
    max-width: 280px;
  }

  .contact-hero__copy h1{
    font-size: clamp(32px, 2.8vw, 46px);
    line-height: .95;
  }

  .contact-hero__copy h1 strong{
    font-size: inherit;
  }

  .contact-hero__line{
    width: 96px;
    height: 5px;
    margin: 18px 0 16px;
  }

  .contact-hero__copy p{
    font-size: 14px;
    line-height: 1.5;
    max-width: 260px;
  }

  .contact-hero__actions{
    margin-top: 18px;
  }

  .contact-hero__btn{
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .contact-hero__btn span{
    font-size: 12px;
  }

  .contact-hero__btn i{
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  /* RIGHT */
  .contact-hero__media{
    height: 520px;
    border-radius: 24px;
  }

  /* =========================
     SECTION SPACING
  ========================= */
  .contact-intro{
    padding: 62px 0 54px;
  }

  .contact-map-section{
    padding: 8px 0 62px;
  }

  .contact-whatsapp{
    padding: 12px 0 62px;
  }

  .contact-faq{
    padding: 0 0 72px;
  }

  /* =========================
     INTRO
  ========================= */
  .contact-intro__grid{
    gap: 34px;
    align-items: center;
  }

  .contact-intro__copy h2{
    font-size: clamp(40px, 3.2vw, 54px);
    max-width: 380px;
  }

  .contact-intro__copy p{
    font-size: 13px;
    line-height: 1.6;
    max-width: 290px;
    margin-top: 16px;
  }

  .line-wrapper-contact{
    width: 82px;
    height: 5px;
    margin: 18px 0 16px;
  }

  /* =========================
     FORM CARD
  ========================= */
  .contact-form-card{
    padding: 16px;
    border-radius: 18px;
  }

  .contact-form-modern{
    gap: 12px;
  }

  .contact-form-modern .form-row{
    gap: 12px;
  }

  .contact-form-modern label{
    gap: 6px;
  }

  .contact-form-modern label span{
    font-size: 11px;
  }

  .contact-form-modern input,
  .contact-form-modern select,
  .contact-form-modern textarea{
    padding: 11px 12px;
    font-size: 12px;
    border-radius: 7px;
  }

  .contact-form-modern textarea{
    min-height: 120px;
  }

  .phone-field{
    grid-template-columns: 82px 1fr;
  }

  /* =========================
     MAP
  ========================= */
  .map-card-clean{
    min-height: 440px;
    border-radius: 18px;
    padding: 5px;
  }

  .map-card-clean iframe{
    height: 440px;
    border-radius: 14px;
  }

  /* =========================
     WHATSAPP SECTION
  ========================= */
  .contact-whatsapp__grid{
    gap: 36px;
    align-items: center;
  }

  .contact-whatsapp__copy h2{
    font-size: clamp(40px, 3vw, 52px);
    max-width: 340px;
  }

  .contact-whatsapp__copy p{
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
    max-width: 290px;
  }

  .contact-whatsapp__actions{
    margin-top: 18px;
  }

  .contact-whatsapp__actions .btn.azul{
    height: 42px;
    padding: 0 24px;
    font-size: 12px;
  }

  .contact-whatsapp__media{
    border-radius: 18px;
  }

  .contact-whatsapp__media img{
    height: 430px;
  }

  /* =========================
     FAQ
  ========================= */
  .faq-grid{
    gap: 12px 14px;
    margin-top: 20px;
  }

  .faq-item{
    border-radius: 12px;
  }

  .faq-item summary{
    padding: 14px 16px;
    font-size: 13px;
  }

  .faq-item p{
    padding: 0 16px 14px 44px;
    font-size: 12px;
    line-height: 1.6;
  }

  .faq-icon{
    width: 18px;
    height: 18px;
  }

  .faq-icon::before{
    width: 5px;
    height: 5px;
  }
}
