/* ============================================================
   AcuaEssence — estilos
   ============================================================ */
:root {
  --azul: #0A6EBD;
  --azul-hondo: #083D77;
  --aqua: #12B3C9;
  --azul-claro: #2FA9E0;
  --tinta: #0F1B2B;
  --gris: #5B6B7B;
  --gris-suave: #F5F9FC;
  --linea: #E2ECF4;
  --blanco: #ffffff;
  --wa: #25D366;
  --wa-hover: #1ebe5a;
  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 10px 30px rgba(8, 61, 119, .10);
  --sombra-fuerte: 0 18px 44px rgba(8, 61, 119, .18);
  --max: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azul); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; color: var(--azul-hondo); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--azul-hondo); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--azul);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(10,110,189,.3); }
.btn-primary:hover { background: var(--azul-hondo); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-wa:hover { background: var(--wa-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-drop { flex: none; }
.brand-name { font-size: 1.3rem; font-weight: 400; color: var(--azul-hondo); letter-spacing: -.02em; }
.brand-name strong { font-weight: 800; }
.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--tinta); font-weight: 600; font-size: .96rem;
  transition: color .15s, background .15s;
}
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: var(--azul); background: var(--gris-suave); }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle-bar { height: 2.5px; width: 100%; background: var(--azul-hondo); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,61,119,.92) 0%, rgba(8,61,119,.66) 42%, rgba(10,110,189,.35) 100%);
}
.hero-content { position: relative; padding: 4.5rem 0; max-width: 680px; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #bfe3f5; margin-bottom: .6rem; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 0 0 .3em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #eaf4fb; max-width: 40ch; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--gris-suave); }
.section-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--azul); margin-bottom: .5rem; }
.kicker--light { color: #7fd0e6; }
.section-sub { color: var(--gris); font-size: 1.05rem; }
.section-dark .section-sub { color: #cfe2f0; }

/* ---------- Cards genéricas ---------- */
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.about-text p { font-size: 1.06rem; color: #33475b; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 1.6rem 0; }
.stats li { display: flex; flex-direction: column; }
.stat-num { font-size: 1.35rem; font-weight: 800; color: var(--azul); }
.stat-label { font-size: .9rem; color: var(--gris); }
.about-media { margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-fuerte); }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media figcaption { font-size: .85rem; color: var(--gris); padding: .7rem .9rem; background: #fff; }

.convenios { margin-top: 3.5rem; }
.convenios-title, .benefits-title, .videos-title { text-align: center; margin-bottom: 1.4rem; }
.convenios-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.convenios-list li { padding: 1.6rem; text-align: center; }
.conv-ic { font-size: 2rem; display: block; margin-bottom: .5rem; }
.convenios-list h4 { margin: .2rem 0 .4rem; color: var(--azul-hondo); font-size: 1.1rem; }
.convenios-list p { color: var(--gris); margin: 0; font-size: .96rem; }

/* ---------- Proceso ---------- */
.process-steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: none; }
.process-steps li { padding: 1.7rem 1.4rem; position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: linear-gradient(135deg, var(--azul-claro), var(--azul-hondo));
  color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem;
}
.process-steps h3 { font-size: 1.08rem; }
.process-steps p { color: var(--gris); margin: 0; font-size: .95rem; }

.benefits { max-width: 820px; margin: 0 auto 3.2rem; }
.benefits-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.benefits-list li {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; background: #fff;
  border: 1px solid var(--linea); border-radius: var(--radio-sm); font-weight: 600; color: #33475b;
}
.benefits-list span { font-size: 1.3rem; }

/* ---------- Galería de video ---------- */
.video-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.video-card {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra); background: #000; aspect-ratio: 16/10;
}
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s var(--ease), background .2s;
}
.video-card .play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--azul-hondo);
}
.video-card:hover .play { transform: scale(1.08); background: #fff; }
.video-card:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.video-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; color: #fff; font-weight: 600; font-size: .92rem;
  text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.72));
}

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--sombra-fuerte); }
.product-img { position: relative; aspect-ratio: 4/5; background: linear-gradient(160deg, #eaf4fb, #d5e9f7); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img--placeholder { display: flex; align-items: center; justify-content: center; }
.disp-illu { width: 55%; height: auto; }
.ref-note { position: absolute; bottom: .5rem; right: .6rem; font-size: .72rem; color: var(--gris); background: rgba(255,255,255,.85); padding: .15rem .5rem; border-radius: 6px; }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--aqua); color: #04303a; font-size: .74rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.product-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { color: var(--azul-hondo); }
.product-body p { color: var(--gris); font-size: .94rem; }
.price { color: var(--tinta) !important; font-size: 1rem; margin-top: auto; padding-top: .4rem; }
.price strong { color: var(--azul); font-size: 1.15rem; }
.product-body .btn { margin-top: .8rem; }
.ref-disclaimer { text-align: center; color: var(--gris); font-size: .82rem; margin-top: 1.4rem; }

/* ---------- Contacto ---------- */
.section-dark { background: linear-gradient(160deg, var(--azul-hondo), #06294f); color: #eaf4fb; }
.section-dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-info > li { display: flex; gap: .9rem; align-items: flex-start; }
.ci-ic { font-size: 1.4rem; flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border-radius: 12px; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #7fd0e6; font-weight: 700; }
.contact-info a { color: #fff; font-weight: 600; }
.contact-info a:hover { color: #bfe3f5; }
.ci-sub { font-size: .86rem; color: #a9c9de; }
.contact-cta { display: block; margin-top: .4rem; }

.contact-map { display: flex; flex-direction: column; gap: .8rem; }
.map-facade {
  position: relative; aspect-ratio: 16/11; border-radius: var(--radio); cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 40% 30%, #1a5fa0, #06294f); border: 1px solid rgba(255,255,255,.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: #fff; text-align: center;
}
.map-facade:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.map-pin { font-size: 2.4rem; }
.map-text { font-weight: 700; }
.map-load { font-size: .85rem; color: #bfe3f5; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { color: #bfe3f5; font-weight: 600; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #06213f; color: #b9cfe0; padding: 2.6rem 0 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: start; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin: .3rem 0 0; }
.footer-legal { font-size: .82rem; color: #7f9cb5; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a, .footer-social a { color: #b9cfe0; font-weight: 600; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #7f9cb5; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Animación de aparición (mejora progresiva: solo con .js) ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .video-gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linea); box-shadow: var(--sombra);
    padding: .5rem .9rem 1rem; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a:not(.btn) { padding: .8rem .6rem; border-radius: 8px; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .convenios-list { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .video-gallery { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 0; }
  .stats { gap: 1rem 1.4rem; }
}

/* ---------- Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
