/* =========================
   VARIABLES / BASE
========================= */
:root{
  --blue-main: #b7e0f7;
  --white-text: #fdfdfb;
  --bg-white: #fafafa;
  --blue-deep: #022c4e;

  --text: #0b1b2a;
  --muted: #5a6a78;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(2,44,78,.10);
  --border: rgba(2,44,78,.14);

  --font-main: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --nav-h: 72px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg-white);
}

img{ max-width: 100%; display: block; }

.container{
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Responsive (VARIABLES / BASE) */
@media (max-width: 980px){
  :root{ --nav-h: 68px; }
}



/* =========================
   NAVBAR
========================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  min-height: var(--nav-h);
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo{
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover .brand__logo{
  transform: scale(1.06);
  filter: drop-shadow(0 4px 10px rgba(183,224,247,.6));
}


.nav__links{
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link{
  text-decoration: none;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  padding: 10px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav__link:hover{
  background: rgba(183,224,247,.35);
}

/* CTA (Llámanos) destacado */
.nav__cta{
  background: var(--blue-deep);
  color: var(--white-text);
  padding: 10px 14px;
}
.nav__cta:hover{
  background: #01253f;
}

/* Responsive (NAVBAR) */
@media (max-width: 980px){
  /* FIX fuerte: asegurar que los spans se vean siempre en móvil */


  .nav__links{
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
  }

  .nav__links.is-open{ display: flex; }

  .nav__link{
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .nav__cta{
    text-align: center;
    justify-content: center;
    margin-top: 6px;
  }
}

/* =========================
   BOTÓN HAMBURGUESA (SOLO MÓVIL) + ANIMACIÓN
========================= */
.nav__toggle{
  /* oculto en PC */
  display: none;

  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;

  /* estructura */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  /* suavidad */
  transition: border-color .2s ease, background-color .2s ease;
}

/* líneas */
.nav__toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--blue-deep);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: center;
}

/* estado abierto => X */
.nav__toggle.is-open span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2){
  opacity: 0;
}
.nav__toggle.is-open span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* hover suave (opcional) */
.nav__toggle:hover{
  border-color: rgba(2,44,78,.28);
}

/* =========================
   RESPONSIVE (HAMBURGUESA)
========================= */
@media (max-width: 980px){
  .nav__toggle{
    display: flex;
  }

  /* blindaje por si hay resets externos */
  .nav__toggle span{
    display: block !important;
    background-color: var(--blue-deep) !important;
    opacity: 1 !important;
  }
}


/* =========================
   DROPDOWN SERVICIOS
========================= */
.nav__dropdown{
  position: relative;
}

/* Botón "Servicios" igual que links */
.nav__linklike{
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--blue-deep);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;

  padding: 10px 8px;
  border-radius: 10px;
}

.nav__linklike:hover{
  background: rgba(183,224,247,.35);
}

.chev{
  transition: transform .15s ease;
}

.nav__panel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 88vw);

  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;

  display: none;
}

.nav__dropdown.is-open .nav__panel{ display: block; }
.nav__dropdown.is-open .chev{ transform: rotate(180deg); }

.panel__item{
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.panel__item:hover{
  background: rgba(183,224,247,.25);
  border-color: rgba(2,44,78,.08);
}

.panel__title{
  display: block;
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 14px;
}

.panel__desc{
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

/* Responsive (DROPDOWN SERVICIOS) */
@media (max-width: 980px){
  .nav__linklike{
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .nav__panel{
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}

/* =========================
   BOTONES
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 800;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-size: 14px;
}

.btn--primary{
  background: var(--blue-main);
  color: var(--blue-deep);
  border-color: rgba(2,44,78,.14);
}
.btn--primary:hover{
  background: #a7d8f4;
}

.btn--ghost{
  background: transparent;
  color: var(--white-text);
  border-color: rgba(253,253,251,.40);
}
.btn--ghost:hover{
  background: rgba(253,253,251,.08);
}

/* Responsive (BOTONES) */
@media (max-width: 980px){
  .btn{
    padding: 12px 14px;
    width: auto;
  }
}

/* =========================
   ANIMACIONES DE ENTRADA
========================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

.reveal[data-reveal="up"]{ transform: translateY(16px); }
.reveal[data-reveal="down"]{ transform: translateY(-16px); }
.reveal[data-reveal="left"]{ transform: translateX(18px); }
.reveal[data-reveal="right"]{ transform: translateX(-18px); }

.reveal.is-visible{
  opacity: 1;
  transform: translate(0,0);
}

/* Responsive (ANIMACIONES DE ENTRADA) */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   BASE
========================= */
:root{
  --blue-main:#b7e0f7;
  --white-text:#fdfdfb;
  --white-bg:#fafafa;
  --blue-deep:#022c4e;
  --border: rgba(2,44,78,.16);
}

/* =========================
   HERO CONTACTO (IMAGEN)
========================= */
.c-hero{
  position: relative;
  background-image: url("../media/fondo_secundario.svg"); /* ajusta ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 120px;
  border-bottom: 1px solid rgba(253,253,251,.18);
}

.c-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(2,44,78,.70);
  z-index:1;
}

.c-hero__inner{
  position: relative;
  z-index: 2;
}

.c-hero__eyebrow{
  margin:0 0 10px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(253,253,251,.78);
}

.c-hero__title{
  margin:0 0 12px;
  font-size: 42px;
  font-weight: 900;
  color: var(--white-text);
  line-height: 1.12;
}

.c-hero__lead{
  margin:0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
  color: rgba(253,253,251,.88);
  max-width: 780px;
}

.c-hero__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c-hero__chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(253,253,251,.22);
  background: rgba(0,0,0,.10);
  color: rgba(253,253,251,.92);
  font-weight: 700;
  font-size: 13px;
}

.c-hero__chip i{ color: var(--blue-main); }

/* =========================
   CONTACTO GRID
========================= */
.c-contact{
  background: #ffffff;
  padding: 90px 0 95px;
}

.c-contact__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.c-contact__info{
  border: 1px solid var(--border);
  padding: 22px;
  background: #fff;
}

.c-contact__form{
  border: 1px solid var(--border);
  padding: 22px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.c-contact__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--blue-deep);
}

.c-contact__text{
  margin: 0 0 18px;
  font-size: 15.2px;
  line-height: 1.65;
  font-weight: 600;
  color: rgba(11,27,42,.9);
}

.c-contact__group{
  margin-bottom: 18px;
}

.c-contact__subtitle{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-contact__list{
  margin: 0;
  padding-left: 18px;
}

.c-contact__list li{
  margin-bottom: 8px;
  font-size: 14.6px;
  font-weight: 600;
  color: rgba(11,27,42,.92);
}

.c-contact__list span{
  font-weight: 500;
  color: rgba(11,27,42,.65);
}

.c-contact__note{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border: 1px solid rgba(2,44,78,.14);
  background: rgba(183,224,247,.22);
  font-weight: 700;
  color: rgba(11,27,42,.92);
  font-size: 14px;
  line-height: 1.5;
}

.c-contact__note i{
  color: var(--blue-deep);
  margin-top: 2px;
}

/* Form */
.c-contact__formInner{
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.c-contact__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.c-contact__field{
  display: grid;
  gap: 6px;
}

.c-contact__field label{
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-deep);
}

.c-contact__field input,
.c-contact__field textarea,
.c-contact__field select{
  border: 1px solid rgba(2,44,78,.2);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
}

.c-contact__field textarea{
  resize: vertical;
}

/* hace que el campo mensaje crezca en desktop para evitar espacio vacío */
.c-contact__field--grow{
  display: flex;
  flex-direction: column;
  flex: 1;
}
.c-contact__field--grow textarea{
  min-height: 190px;
  flex: 1;
}

.c-contact__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 14px;
  border: 2px solid var(--blue-deep);
  background: #ffffff;
  color: var(--blue-deep);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
  width: fit-content;
}

.c-contact__btn:hover{
  background: rgba(183,224,247,.35);
  transform: translateY(-1px);
}

.c-contact__hint{
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(11,27,42,.75);
  line-height: 1.5;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .c-hero{
    padding: 120px 0 85px;
  }
  .c-hero__title{
    font-size: 32px;
  }

  .c-contact{
    padding: 70px 0 70px;
  }

  .c-contact__grid{
    grid-template-columns: 1fr;
  }

  .c-contact__row{
    grid-template-columns: 1fr;
  }

  .c-contact__btn{
    width: 100%;
    justify-content: center;
  }
}




/* =========================
   FOOTER
========================= */
.footer{
  background: #022c4e;
  color: #fdfdfb;
  padding: 70px 0 0;
}

/* Grid */
.footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 40px;
}

.footer__title{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  color: #fdfdfb;
}

.footer__subtitle{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #b7e0f7;
}

.footer__text{
  margin: 0;
  font-size: 14.6px;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(253,253,251,.9);
}

/* Lists */
.footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li{
  margin-bottom: 8px;
  font-size: 14.2px;
  font-weight: 600;
  color: rgba(253,253,251,.9);
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer__list i{
  color: #b7e0f7;
  font-size: 13px;
}

/* Bottom bar */
.footer__bottom{
  border-top: 1px solid rgba(253,253,251,.18);
  padding: 14px 0;
}

.footer__bottom-inner{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(253,253,251,.85);
}

.footer__bottom a{
  color: #b7e0f7;
  text-decoration: none;
  font-weight: 900;
}

.footer__bottom a:hover{
  text-decoration: underline;
}

/* Social icons */
.footer__social{
  margin-top: 18px;
  display: flex;
  gap: 14px;
}

.footer__social a{
  width: 38px;
  height: 38px;
  border: 1px solid rgba(253,253,251,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdfdfb;
  font-size: 16px;
  text-decoration: none;
  transition: all .2s ease;
}

.footer__social a:hover{
  color: #022c4e;
  background: #b7e0f7;
  border-color: #b7e0f7;
}

/* =========================
   RESPONSIVE (FOOTER)
========================= */
@media (max-width: 980px){
  .footer{
    padding-top: 50px;
  }

  .footer__grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__bottom-inner{
    flex-direction: column;
    text-align: center;
  }
}

a{
  text-decoration: none;
}


/* =========================
   WHATSAPP FLOAT GROUP
========================= */
.whatsapp-float-group{
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

/* Botón individual */
.whatsapp-float{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 14px;
  height: 44px;
  background: #25D366;
  color: #fff;
  border-radius: 22px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .16s ease, box-shadow .16s ease;
  margin-left: auto;
}

.whatsapp-float span{
  white-space: nowrap;
}

.whatsapp-float i{
  font-size: 20px;
}

.whatsapp-float:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){

  .whatsapp-float-group{
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float{
    height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }

  .whatsapp-float i{
    font-size: 18px;
  }
}


.c-contact__list a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.c-contact__list a:hover {
  text-decoration: underline;
}

.c-hero__chip a{
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.form-alert{
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.form-alert--ok{
  background: #e9f7ee;
  border: 1px solid #bfe7cc;
}

.form-alert--bad{
  background: #fdecec;
  border: 1px solid #f3b7b7;
}
