/* Fuentes cargadas vía <link> en el HTML (preconnect + display=swap) para no bloquear el render. */

:root {
  --navy: #062a4a;
  --deep: #0a3d6b;
  --blue: #0b74c4;
  --sky: #38b6f0;
  --leaf: #5cb82e;
  --lime: #c8e03a;
  --sand: #f4f7f9;
  --ink: #0f2233;
  --muted: #5b6d7d;
  --line: #dde6ee;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(6, 42, 74, 0.35);
  --grad: linear-gradient(135deg, var(--blue), var(--sky));
  --grad-leaf: linear-gradient(135deg, var(--leaf), var(--lime));
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Hind", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
section[id], footer[id] { scroll-margin-top: 90px; }

/* Accesibilidad: skip-link + foco visible + texto solo para lectores */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.footer a:hover, .tile .more:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; }
.container { width: min(1200px, 92%); margin-inline: auto; }
section { padding: 96px 0; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.scrolled, .header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 4px 24px -10px rgba(6,42,74,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; }
.brand span { font-family: var(--font-head); font-weight: 900; font-size: 18px; line-height: 1; color: var(--white); }
.brand small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .2em; color: var(--lime); margin-top: 4px; }
.header.scrolled .brand span, .header.solid .brand span { color: var(--navy); }
.header.scrolled .brand small, .header.solid .brand small { color: var(--leaf); }
.menu { display: flex; gap: 6px; list-style: none; align-items: center; }
.menu a { padding: 10px 16px; border-radius: 999px; font-weight: 600; color: var(--white); transition: background .2s; }
.header.scrolled .menu a, .header.solid .menu a { color: var(--navy); }
.menu a:hover, .menu a.active { background: rgba(56,182,240,.18); }
.menu .btn { margin-left: 8px; color: var(--navy) !important; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 3px; margin: 6px 8px; border-radius: 3px; background: var(--white); transition: .3s; }
.header.scrolled .burger span, .header.solid .burger span { background: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-family: var(--font-head); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-leaf { background: var(--grad-leaf); color: var(--navy); box-shadow: 0 12px 30px -10px rgba(92,184,46,.7); }
.btn-blue { background: var(--grad); color: var(--white); box-shadow: 0 12px 30px -10px rgba(11,116,196,.7); }
.btn-ghost { border: 2px solid rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; padding: 130px 0 90px;
  background: radial-gradient(circle at 80% 20%, rgba(56,182,240,.35), transparent 50%), radial-gradient(circle at 10% 90%, rgba(92,184,46,.25), transparent 45%), linear-gradient(160deg, var(--navy), var(--deep)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--grad-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 22px 0 34px; font-size: 20px; opacity: .85; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 1; }
.hero-visual .blob { position: absolute; inset: 6%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); animation: morph 10s ease-in-out infinite; }
.hero-visual img.main { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; background: var(--white); border-radius: 28px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: float 6s ease-in-out infinite; }
.chip { position: absolute; background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; font-family: var(--font-head); font-size: 14px; }
.chip b { display: block; font-size: 24px; color: var(--blue); }
.chip.a { top: 8%; left: -4%; } .chip.b { bottom: 10%; right: -2%; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes morph { 50% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; transform: rotate(8deg); } }

/* Page hero */
.page-hero { padding: 170px 0 110px; color: var(--white); position: relative; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 85% 10%, rgba(56,182,240,.4), transparent 50%), linear-gradient(160deg, var(--navy), var(--deep)); }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 900; }
.page-hero p { max-width: 720px; margin: 18px auto 0; opacity: .85; font-size: 19px; }
.crumbs { font-size: 14px; opacity: .7; margin-bottom: 14px; }

/* Headings */
.head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.head .eyebrow { color: #37821e; justify-content: center; }
.head h2 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); }
.head p { color: var(--muted); margin-top: 14px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: var(--white); margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; }
.card:nth-child(even) .icon { background: var(--grad-leaf); color: var(--navy); }
.card h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); }

/* Product tiles */
.bg-sand { background: var(--sand); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .img { aspect-ratio: 4/3; background: var(--white); display: grid; place-items: center; padding: 22px; }
.tile .img img { max-height: 100%; object-fit: contain; transition: transform .5s; }
.tile:hover .img img { transform: scale(1.06); }
.tile .body { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.tile h3 { font-size: 18px; color: var(--navy); }
.tile .num { font-family: var(--font-head); font-weight: 900; color: var(--blue); font-size: 13px; letter-spacing: .15em; }
.tile .more { margin-top: 8px; font-weight: 600; color: var(--blue); font-size: 15px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(32px, 4vw, 50px); color: var(--navy); margin-bottom: 20px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collage div { background: var(--sand); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }
.collage div:first-child { grid-row: span 2; aspect-ratio: auto; background: var(--grad); }
.collage img { max-height: 100%; object-fit: contain; }
/* Fotos de producto con fondo blanco: celdas blancas + multiply funde el blanco de la foto */
.collage-clean div, .collage-clean div:first-child { background: var(--white); border: 1px solid var(--line); }
.collage-clean img { mix-blend-mode: multiply; }

/* Stats */
.stats { background: var(--navy); color: var(--white); padding: 70px 0; }
.stats .grid { text-align: center; }
.stat b { font-family: var(--font-head); font-size: 56px; font-weight: 900; background: var(--grad-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stat span { opacity: .8; }

/* Promo */
.promo { border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: var(--grad-leaf); color: var(--navy); position: relative; overflow: hidden; }
.promo h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 900; }
.promo .big { font-family: var(--font-head); font-size: clamp(90px, 12vw, 160px); font-weight: 900; line-height: .9; text-align: center; }
.promo .big small { display: block; font-size: 22px; letter-spacing: .3em; }

/* Brands */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brands span { font-family: var(--font-head); font-weight: 800; letter-spacing: .08em; padding: 14px 26px; border: 1px solid var(--line); border-radius: 999px; color: var(--deep); background: var(--white); }

/* Reviews */
.slider { position: relative; overflow: hidden; }
.track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.6,0,.2,1); }
.review { flex: 0 0 calc((100% - 48px) / 3); background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.stars { color: #f5b700; letter-spacing: 3px; font-size: 18px; }
.review p { margin: 14px 0 20px; color: var(--ink); }
.who { display: flex; align-items: center; gap: 12px; }
.who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: var(--white); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.who small { display: block; color: var(--muted); }
.slider-ctrl { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.slider-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 20px; color: var(--navy); }
.slider-ctrl button:hover { background: var(--navy); color: var(--white); }

/* Values / MVV */
.mvv { border-radius: var(--radius); padding: 40px; color: var(--white); background: linear-gradient(160deg, var(--deep), var(--navy)); }
.mvv:nth-child(2) { background: var(--grad); }
.mvv:nth-child(3) { background: var(--grad-leaf); color: var(--navy); }
.mvv h3 { font-size: 28px; margin-bottom: 14px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { background: rgba(255,255,255,.45); padding: 6px 14px; border-radius: 999px; font-weight: 600; }

/* CTA */
.cta { background: linear-gradient(160deg, var(--navy), var(--deep)); color: var(--white); border-radius: 28px; padding: 64px; text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta p { opacity: .85; margin: 14px auto 30px; max-width: 600px; }

/* Form */
.subscribe { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; margin-top: 24px; }
.subscribe input { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: var(--white); font: inherit; width: 100%; }
.subscribe input::placeholder { color: rgba(255,255,255,.75); }
.subscribe input:focus-visible { outline-color: var(--lime); border-color: var(--lime); }
.form-msg { margin-top: 12px; color: var(--lime); font-weight: 600; min-height: 1.5em; }

/* Footer */
.footer { background: #041d33; color: rgba(255,255,255,.75); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 18px; font-size: 17px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--lime); }
.footer .brand span { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--leaf); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: 14px; text-align: center; }

/* WhatsApp */
.wa { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); animation: pulse 2.4s infinite; }
.wa svg { width: 32px; height: 32px; }
.wa:hover { transform: scale(1.06); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* Movimiento reducido: respeta al usuario, quita autoplay visual */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .track { transition: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* Map */
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); }

@media (max-width: 960px) {
  .hero-grid, .split, .promo { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 0; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 24px) / 2); }
  .burger { display: block; }
  .menu { position: fixed; top: 80px; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 20px; gap: 4px; transform: translateY(-130%); transition: transform .35s; box-shadow: var(--shadow); }
  .menu.open { transform: none; }
  .menu a { color: var(--navy) !important; display: block; }
  .subscribe { grid-template-columns: 1fr 1fr; }
  .subscribe .btn { grid-column: 1 / -1; justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .chip.a { left: 0; } .chip.b { right: 0; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero-grid { padding-top: 0; gap: 28px; margin-top: 50px; }
  .hero p { font-size: 18px; margin: 16px 0 24px; }
  /* Chips en flujo normal: 2 columnas bajo la imagen, sin traslapes */
  .hero-visual { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 50px; }
  .hero-visual .blob { display: none; }
  .hero-visual img.main { position: static; inset: auto; grid-column: 1 / -1; width: 100%; height: auto; animation: none; }
  .chip { position: static; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; }
  .chip b { font-size: 20px; }
  .chip.a, .chip.b { top: auto; left: auto; right: auto; bottom: auto; }
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .review { flex-basis: 100%; }
  .promo, .cta { padding: 40px 24px; }
  .subscribe { grid-template-columns: 1fr; }
  .map { min-height: 280px; }
  .wa { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
}
