/* ============================================================
   ÓPTICA COLOMBIANA — styles.css
   Tema claro premium · Salud visual + estilo
   ------------------------------------------------------------
   TODAS las variables de marca están en :root.
   Cuando llegue el manual de marca, cambia SOLO estos valores
   (colores y fuentes) y todo el sitio se actualiza.
   ============================================================ */

/* ---------- VARIABLES DE MARCA — ÓPTICA COLOMBIANA ----------
   Paleta basada en el brandbook oficial.
   Verde lima protagonista + verde grass + turquesa + grafito.
   Naranja/amarillo/azul SOLO como acentos puntuales (franjas). */
:root {
  /* Marca */
  --lima:        #b3d000;   /* verde óptica (lima) — color insignia */
  --lima-dark:   #9bb500;
  --grass:       #6db33f;   /* verde grass del isotipo */
  --grass-dark:  #4e9a2f;
  --green-deep:  #1f7a3d;   /* verde corporativo oscuro */
  --turq:        #13a89e;   /* turquesa */
  --grafito:     #4a4a49;   /* gris grafito (texto "colombiana", títulos) */

  /* Acentos (uso puntual, franjas) */
  --naranja:     #e98a2b;
  --amarillo:    #f4c20d;
  --azul:        #2aa0d6;

  /* Base */
  --bg:          #ffffff;
  --bg-soft:     #f4f7ec;   /* crema verdoso muy claro para secciones suaves */
  --bg-lima:     #b3d000;   /* secciones verde lima fuertes */
  --bg-card:     #ffffff;
  --ink:         #3a3a39;   /* texto principal (grafito) */
  --ink-soft:    #6f7370;   /* texto secundario */
  --line:        #e6ebd9;   /* bordes */

  /* Aliases para no romper estilos previos (apuntan a la marca) */
  --blue:        var(--grass);
  --blue-dark:   var(--grass-dark);
  --cyan:        var(--lima);
  --lime:        var(--lima);
  --wa:          #25d366;

  /* Sombras */
  --shadow-sm:   0 2px 8px rgba(58,58,57,0.06);
  --shadow-md:   0 8px 30px rgba(58,58,57,0.10);
  --shadow-lg:   0 20px 60px rgba(109,179,63,0.22);

  /* Tipografía — Poppins sustituye a Qanelas (oficial, de pago).
     Sua/Bodoni del manual no están en web: se usa Poppins/Inter. */
  --ff-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   INTRO ANIMADA (splash) — fondo grafito + isotipo OC lima
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--grafito);
  display: flex; align-items: center; justify-content: center;
  opacity: 1;
  /* se oculta sumando la clase .intro--done */
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.intro--done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__logo {
  width: clamp(140px, 28vw, 280px); height: auto;
  animation: intro-pop 1.15s var(--ease) both;
}
.intro__logo path, .intro__logo { will-change: transform, opacity; }
/* halo verde detrás del isotipo */
.intro::before {
  content: ''; position: absolute;
  width: clamp(280px, 50vw, 560px); height: clamp(280px, 50vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179,208,0,0.18), transparent 60%);
  animation: intro-halo 1.6s ease-in-out infinite;
}
@keyframes intro-pop {
  0%   { opacity: 0; transform: scale(0.6); }
  55%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes intro-halo {
  0%,100% { transform: scale(0.95); opacity: .6; }
  50%     { transform: scale(1.05); opacity: 1; }
}
/* Evita el "flash" de contenido antes de ocultar la intro */
body.intro-active { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .intro__logo { animation: none; }
  .intro::before { animation: none; }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- UTILIDADES ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
/* Sección verde lima fuerte (bien de marca). Texto en grafito para legibilidad. */
.section--lima { background: var(--bg-lima); }
.section--lima .tag { color: var(--green-deep); }
.section--lima .tag::before { background: var(--green-deep); }
.section--lima h2, .section--lima h3 { color: var(--ink); }
.section--lima .card { background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.6); }
.section--lima .step__num { background: linear-gradient(135deg, var(--green-deep), var(--grass)); }
.section--lima .step h3 { color: var(--ink); }
.section--lima .step p { color: #46550f; }
.center { text-align: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.tag::before { content: ''; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
.tag--center { justify-content: center; }
.tag--center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.08; color: var(--ink); }
.h-xl  { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -1.5px; }
.h-lg  { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -1px; }
.h-md  { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.5px; }
.lead  { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 620px; }
.muted { color: var(--ink-soft); }
.grad-text {
  background: linear-gradient(100deg, var(--grass), var(--lima));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- BOTONES ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: 0.95rem;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
  white-space: nowrap;
  isolation: isolate;
}
/* Brillo diagonal que cruza el botón al pasar el mouse */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); }
/* Onda al hacer click (ripple) — la pinta el JS */
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,0.5); pointer-events: none;
  animation: ripple .6s var(--ease); z-index: -1;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1eb858; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
/* Logo real (SVG). Header usa versión color; footer usa versión blanca. */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 56px; width: auto; display: block; }
.footer .logo img { height: 64px; }
@media (max-width: 720px){ .logo img { height: 46px; } }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--blue); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 84px 0 0 0; z-index: 99;
  background: #fff; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(179,208,0,0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(109,179,63,0.10), transparent 60%);
}
/* anillos ópticos decorativos */
.hero__rings { position: absolute; top: -120px; right: -120px; width: 520px; height: 520px; z-index: 0; opacity: .6; pointer-events: none; }
.hero__rings::before, .hero__rings::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(109,179,63,0.18);
}
.hero__rings::after { inset: 80px; border-color: rgba(179,208,0,0.22); }

/* ---- Capas de parallax del hero ---- */
.hero__layer { position: absolute; pointer-events: none; z-index: 0; }
.hero__layer--blob {
  top: -10%; right: -8%; width: 70%; max-width: 900px; height: auto; opacity: .85;
}
.hero__layer--particles {
  inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; mix-blend-mode: multiply;
}
/* dentro de hero__media (z-index del media es 1) */
.hero__layer--rings {
  top: 50%; left: 50%; width: 130%; height: auto;
  opacity: .5; z-index: 0;
}
.hero__layer--lente {
  bottom: -6%; right: -10%; width: 48%; height: auto; z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(109,179,63,0.25));
  animation: float-soft 6s ease-in-out infinite reverse;
}
.hero__media .hero__image { position: relative; z-index: 1; }
.hero__media .hero__float { z-index: 4; }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(109,179,63,0.08); color: var(--blue); font-size: 0.8rem; font-weight: 600; padding: 7px 16px; border-radius: 100px; margin-bottom: 22px; }
.hero h1 { margin-bottom: 18px; }
.hero__sub { margin-bottom: 30px; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__tertiary { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.hero__tertiary:hover { gap: 10px; }

.hero__media { position: relative; }
.hero__image {
  width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; object-fit: cover;
  background: linear-gradient(135deg, #eaf3ff, #d6ecff); /* fallback si no carga */
}
.hero__float {
  position: absolute; bottom: 22px; left: -18px;
  background: #fff; border-radius: var(--radius-sm); padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px;
}
.hero__float-num { font-family: var(--ff-head); font-weight: 700; font-size: 1.7rem; color: var(--blue); line-height: 1; }
.hero__float-txt { font-size: 0.78rem; color: var(--ink-soft); }

/* ============================================================
   BARRA DE CONFIANZA
   ============================================================ */
.trust { background: var(--green-deep); color: #fff; padding: 22px 0; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust__item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; }
.trust__item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--cyan); }

/* ============================================================
   CARDS GENÉRICAS
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(109,179,63,0.25); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,179,63,0.10), rgba(179,208,0,0.12));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; color: var(--blue); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Bloque "Elige tu ruta" ---------- */
.route-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--grass), var(--grass-dark));
  color: #fff; border-radius: var(--radius); padding: 34px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.route-card:nth-child(2) { background: linear-gradient(160deg, var(--green-deep), #14592c); }
.route-card:nth-child(3) { background: linear-gradient(160deg, var(--turq), #0d8077); }
.route-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.route-card h3 { color: #fff; font-size: 1.45rem; margin-bottom: 8px; }
.route-card p { color: rgba(255,255,255,0.9); font-size: 0.92rem; margin-bottom: 18px; }
.route-card__link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.route-card__link:hover { gap: 12px; }

/* ============================================================
   SECCIÓN SPLIT (imagen + texto)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(135deg,#eaf3ff,#d6ecff); }
.split__list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.split__list svg { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   PRODUCTOS (lentes de contacto)
   ============================================================ */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(109,179,63,0.25); }
.product__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: linear-gradient(135deg,#f0f7ff,#e0f0ff); }
.product__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product__brand { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.product__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.product__price { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }
.product__price strong { color: var(--ink); font-size: 1.05rem; }
.product__note { font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 16px; }
.product__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.product__actions .btn { width: 100%; font-size: 0.88rem; padding: 12px 18px; }

/* filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 22px; border-radius: 100px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 0.9rem; color: var(--ink-soft);
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.notice {
  background: rgba(179,208,0,0.08); border: 1px solid rgba(179,208,0,0.3);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 0.9rem;
  color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
}
.notice svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   SEDES
   ============================================================ */
.sede-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; align-items: center; }
.search-input, .select {
  font-family: var(--ff-body); font-size: 0.95rem;
  padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 100px;
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.search-input { flex: 1; min-width: 220px; }
.search-input:focus, .select:focus { border-color: var(--blue); outline: none; }
.select { cursor: pointer; min-width: 180px; }

.sede {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .3s var(--ease), box-shadow .3s;
}
.sede:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sede__city { font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.sede__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.sede__row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 8px; }
.sede__row svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.sede__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sede__actions .btn { font-size: 0.82rem; padding: 10px 16px; flex: 1; min-width: 120px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); grid-column: 1 / -1; }

/* ============================================================
   PROCESO (pasos)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 20px; }
.step__num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(109,179,63,0.3);
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   PROMO
   ============================================================ */
.promo {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--grass), var(--green-deep) 60%, #14592c);
  border-radius: 28px; padding: 60px 5%; color: #fff; text-align: center;
}
.promo::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(179,208,0,0.4), transparent 70%); }
.promo::after { content: ''; position: absolute; bottom: -80px; left: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(200,255,0,0.15), transparent 70%); }
.promo > * { position: relative; z-index: 1; }
.promo h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.promo h2 .price { color: var(--lime); }
.promo p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--ff-head); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq__q .icon { width: 26px; height: 26px; border-radius: 50%; background: rgba(109,179,63,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: transform .3s; }
.faq__item.open .faq__q .icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form { display: grid; gap: 16px; max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 0.95rem; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field--error input, .field--error select, .field--error textarea { border-color: #e23b3b; }
.field__err { font-size: 0.78rem; color: #e23b3b; display: none; }
.field--error .field__err { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }

/* ============================================================
   PÁGINAS INTERNAS / LEGALES
   ============================================================ */
.page-hero { background: var(--bg-soft); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--blue); }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal-pending {
  background: rgba(255,176,0,0.10); border: 1px solid rgba(255,176,0,0.4);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 28px;
  font-size: 0.92rem; color: var(--ink); display: flex; gap: 12px; align-items: flex-start;
}
.legal-pending svg { width: 24px; height: 24px; color: #d98b00; flex-shrink: 0; }

/* ============================================================
   MULTIMARCA — carrusel infinito + grilla de marcas premium
   ============================================================ */
.brands { background: var(--ink); color: #fff; overflow: hidden; }
.brands .tag { color: var(--lima); }
.brands .tag::before { background: var(--lima); }
.brands h2 { color: #fff; }
.brands__intro { max-width: 640px; margin: 0 auto 10px; color: #cdd3c4; }

/* Marquee (cinta que se desplaza sola) */
.marquee {
  position: relative; width: 100%; margin-top: 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse { margin-top: 18px; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee__item {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: 0.5px; color: #e9efe0;
  padding: 0 0 0 34px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 34px;
  transition: color .25s;
}
.marquee__item::after { content: '•'; color: var(--lima); font-size: 0.7em; }
.marquee__item:hover { color: var(--lima); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brands__note { margin-top: 34px; text-align: center; color: #9fab90; font-size: 0.85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-deep); color: #d7e4cf; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo span { color: var(--cyan); }
.footer__desc { font-size: 0.9rem; color: #b8cdab; max-width: 300px; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: 0.9rem; color: #b8cdab; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--lima); }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: #cfdae6; transition: all .2s; }
.footer__socials a:hover { background: var(--lima); border-color: var(--lima); color: var(--green-deep); transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.82rem; color: #9fbb90; }

/* ============================================================
   FLOTANTES (WhatsApp + CTA sticky mobile)
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 89;
  display: none; gap: 10px; padding: 12px 16px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; padding: 14px; font-size: 0.92rem; }

/* ============================================================
   ANIMACIONES (con respeto a prefers-reduced-motion)
   ============================================================ */
/* Reveal base */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reveals direccionales (data-reveal="left|right|zoom") */
[data-reveal] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: transform, opacity; }
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"]  { transform: scale(0.9); }
[data-reveal].visible { opacity: 1; transform: none; }
/* Escalonado por hijos (data-stagger en el contenedor) */
[data-stagger].visible > * { animation: stagger-in .6s var(--ease) both; }
[data-stagger].visible > *:nth-child(1){ animation-delay:.05s }
[data-stagger].visible > *:nth-child(2){ animation-delay:.12s }
[data-stagger].visible > *:nth-child(3){ animation-delay:.19s }
[data-stagger].visible > *:nth-child(4){ animation-delay:.26s }
[data-stagger].visible > *:nth-child(5){ animation-delay:.33s }
[data-stagger].visible > *:nth-child(6){ animation-delay:.40s }
@keyframes stagger-in { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform:none; } }

/* PARALLAX por scroll (lo mueve el JS con --p) */
.parallax { will-change: transform; }

/* Hero: imagen con flotación suave continua */
.hero__image { animation: float-soft 7s ease-in-out infinite; }
@keyframes float-soft { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
/* Anillos del hero que laten */
.hero__rings { animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
/* Tarjeta flotante del precio: entra rebotando y late */
.hero__float { animation: pop-in .8s var(--ease) .6s both; }
@keyframes pop-in { 0%{ opacity:0; transform: translateY(20px) scale(.8) } 60%{ transform: translateY(-4px) scale(1.04) } 100%{ opacity:1; transform: none } }

/* Eyebrow del hero con brillo pulsante */
.hero__eyebrow { animation: glow-pulse 3s ease-in-out infinite; }
@keyframes glow-pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(109,179,63,0) } 50%{ box-shadow: 0 0 0 6px rgba(109,179,63,0.08) } }

/* Cards: brillo al pasar el cursor (capa superior) */
.card, .product, .sede, .route-card { position: relative; }
.card::after, .product::after {
  content:''; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: radial-gradient(180px circle at var(--mx,50%) var(--my,0%), rgba(109,179,63,0.08), transparent 60%);
  opacity:0; transition: opacity .3s;
}
.card:hover::after, .product:hover::after { opacity:1; }

/* Iconos de servicio: micro-rebote en hover */
.card:hover .card__icon { animation: icon-bounce .5s var(--ease); }
@keyframes icon-bounce { 0%,100%{ transform: translateY(0) } 40%{ transform: translateY(-6px) rotate(-4deg) } }

/* Números de pasos: pulso al revelar */
.step.visible .step__num { animation: num-pop .6s var(--ease) both; }
@keyframes num-pop { 0%{ transform: scale(.4); opacity:0 } 70%{ transform: scale(1.12) } 100%{ transform: scale(1); opacity:1 } }

/* Contadores animados (barra de confianza / stats) */
.count { font-variant-numeric: tabular-nums; }

/* Trust bar: cinta con leve desplazamiento parallax */
.trust__item { transition: transform .3s var(--ease); }
.trust__item:hover { transform: translateY(-3px); color: #fff; }

/* Botón flotante WhatsApp: latido sutil que invita */
.wa-float { animation: wa-beat 2.6s ease-in-out infinite; }
@keyframes wa-beat { 0%,100%{ box-shadow: 0 10px 30px rgba(37,211,102,0.4) } 50%{ box-shadow: 0 10px 40px rgba(37,211,102,0.7) } }
.wa-float:hover { animation: none; }

/* Link subrayado animado en nav */
.nav__links a { position: relative; }
.nav__links a::after {
  content:''; position:absolute; left:0; bottom:-4px; height:2px; width:100%;
  background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__actions { display: none; }
  .burger { display: flex; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; } /* espacio para sticky CTA */
  .wa-float { bottom: 84px; }
  .hero__float { left: 0; }
}
