/* =========================================================
   Mi Bufalita — rediseño interactivo
   Paleta y tipografías de la marca original.
   Movimiento: solo transform / opacity.
   ========================================================= */
:root {
  --green: #183b32;
  --deep: #102c25;
  --cream: #f6f3e9;
  --paper: #fffcf5;
  --muted: #62685e;
  --line: #dcded1;
  --lime: #dce8a2;
  --gold: #ad7847;
  --ink-light: #f6f3e9;
  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
a, button, summary, .btn { -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.small { font-size: .875rem; line-height: 1.55; }
.muted { color: var(--muted); }
.muted-l { color: rgba(246, 243, 233, .62); }

/* ---------- Tipografía ---------- */
.display, .h-xl, .h-serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30;
}
.display {
  font-size: clamp(3.1rem, 9.5vw, 8.4rem);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 400;
}
.display em, .h-xl em { font-style: italic; font-weight: 300; color: var(--gold); }
.h-xl {
  font-size: clamp(2.25rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.h-serif { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.05; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 38em; text-wrap: pretty; }
.dark .lead { color: rgba(246, 243, 233, .74); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem;
}
.center .eyebrow { justify-content: center; }
.eyebrow-light { color: var(--lime); }
.pill { background: var(--green); color: var(--lime); padding: .3em .7em; border-radius: 99px; letter-spacing: .1em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .85em 1.5em; border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform .18s var(--ease-out), background-color .2s, color .2s, box-shadow .25s var(--ease-out);
}
.btn span { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
@media (hover: hover) {
  .btn:hover span { transform: translate(2px, -2px); }
  .btn-dark:hover { background: var(--deep); box-shadow: 0 10px 30px -12px rgba(16, 44, 37, .6); }
  .btn-lime:hover { background: #e7f0b8; box-shadow: 0 10px 30px -12px rgba(220, 232, 162, .8); }
  .btn-outline:hover { background: var(--green); color: var(--cream); }
  .btn-ghost-light:hover { background: rgba(246, 243, 233, .16); }
}
.btn-dark { background: var(--green); color: var(--cream); }
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost-light { border-color: rgba(246, 243, 233, .45); color: var(--cream); background: rgba(246, 243, 233, .06); }
.btn-sm { min-height: 38px; padding: .55em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navegación translúcida ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(246, 243, 233, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(24, 59, 50, .08);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.nav.is-solid::before, .nav.is-open::before { opacity: 1; }
.nav-inner {
  position: relative; height: var(--nav-h); max-width: 1200px; margin-inline: auto;
  padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px;
}
.nav-logo img { height: 44px; width: auto; transition: filter .35s; }
.nav:not(.is-solid):not(.is-open) .nav-logo img { filter: brightness(0) invert(1) sepia(.15); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: .85rem; font-weight: 500; text-decoration: none; padding: 8px 12px; border-radius: 99px;
  color: inherit; opacity: .82; transition: opacity .2s, background-color .2s;
}
.nav-links a:hover { opacity: 1; background: rgba(24, 59, 50, .07); }
.nav:not(.is-solid):not(.is-open) { color: var(--cream); }
.nav:not(.is-solid):not(.is-open) .nav-links a:hover { background: rgba(246, 243, 233, .14); }
.nav:not(.is-solid):not(.is-open) .nav-cta { background: var(--lime); color: var(--deep); }
/* Acceso a Mi Rebaño App: arriba a la derecha, visible en todos los tamaños */
.nav-app {
  margin-left: -12px; border-color: rgba(24, 59, 50, .28); color: var(--green); background: rgba(246, 243, 233, .5);
}
.nav .btn, .nav-links a { white-space: nowrap; }
.nav-app b, .nav-app i { font: inherit; font-style: normal; }
.nav-app svg { flex: none; transition: transform .25s var(--ease-out); }
.nav:not(.is-solid):not(.is-open) .nav-app { border-color: rgba(246, 243, 233, .5); color: var(--cream); background: rgba(246, 243, 233, .08); }
@media (hover: hover) {
  .nav-app:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
  .nav-app:hover svg { transform: scale(1.12); }
  .nav:not(.is-solid):not(.is-open) .nav-app:hover { background: var(--cream); border-color: var(--cream); color: var(--deep); }
}
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px; border: 0; background: transparent;
  border-radius: 50%; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav.is-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: rotate(-45deg); }

.menu {
  position: relative; padding: 8px var(--gutter) 28px; max-width: 1200px; margin-inline: auto;
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
}
.menu nav { display: grid; margin-bottom: 20px; }
.menu nav a {
  font: 400 clamp(1.4rem, 5vw, 1.9rem)/1.2 var(--serif); letter-spacing: -.02em; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.nav.is-open .menu nav a { opacity: 1; transform: none; }
.menu .btn { opacity: 0; transition: opacity .4s .2s; }
.nav.is-open .menu .btn { opacity: 1; }

@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-app { margin-left: auto; padding-inline: .9em; }
  .nav-app i { display: none; }
  .nav-toggle { margin-left: 0; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(88px, 13vw, 168px); position: relative; }
.dark { background: var(--deep); color: var(--cream); }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head.center .lead { margin-inline: auto; }
.frame { overflow: hidden; border-radius: var(--radius); background: #e9e5d6; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: .78rem; color: var(--muted); margin-top: .75rem; }
.disclaimer { font-size: .82rem; line-height: 1.6; color: var(--muted); max-width: 62em; margin-top: 40px; }

/* Revelado al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 260vh; background: var(--cream); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; transform-origin: 50% 50%;
  border-radius: 34px; overflow: hidden; will-change: transform;
  transform: scale(1.06); background: var(--deep);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 30, 25, .78) 0%, rgba(10, 30, 25, .45) 45%, rgba(10, 30, 25, 0) 75%),
    linear-gradient(0deg, rgba(10, 30, 25, .7) 0%, rgba(10, 30, 25, 0) 50%);
}
.hero-copy {
  position: absolute; inset: auto 0 0 0; color: var(--cream);
  max-width: 1200px; margin-inline: auto; padding: 0 var(--gutter) clamp(36px, 7vh, 72px);
  will-change: transform, opacity;
}
.hero-copy .display {
  color: var(--cream); margin-bottom: clamp(16px, 3vh, 28px);
  /* Limitado también por la altura: en pantallas anchas y bajas el título no sube hasta el menú */
  font-size: clamp(3.1rem, min(9.5vw, 11.5vh), 8.4rem);
}
.hero-copy .display em { color: var(--lime); }
.hero-lead { max-width: 33em; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(246, 243, 233, .86); }
.hero-lead strong { color: var(--cream); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem; margin: .4rem 0 1.4rem; font-size: .85rem; color: rgba(246, 243, 233, .75); }
.hero-price strong { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--serif); color: var(--cream); letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 1.2rem 0 0; font-size: .8rem; color: rgba(246, 243, 233, .65); }

.hero-scrollhint {
  position: absolute; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px;
  border: 1.5px solid rgba(246, 243, 233, .55); border-radius: 12px;
}
.hero-scrollhint span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--cream); animation: hint 1.8s var(--ease-in-out) infinite;
}
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(11px); } 100% { opacity: 0; } }

.hero-after { position: absolute; inset: 0; pointer-events: none; }
.hero-after > * { pointer-events: auto; }
.hero-after-top {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 3vh); text-align: center; padding-inline: var(--gutter);
  opacity: 0;
}
.hero-after-top p { color: var(--muted); margin: .5rem 0 0; font-size: clamp(.95rem, 1.3vw, 1.1rem); }
.hero-caption { position: absolute; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--muted); opacity: 0; top: 0; margin: 0; }
.hero-stats {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%);
  width: min(1000px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 3vw, 40px);
}
.hero-stats li { opacity: 0; text-align: center; }
.hero-stats strong { display: block; font: 400 clamp(1.4rem, 3.4vw, 2.6rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: .4rem; }
.hero-stats span { display: block; font-size: clamp(.72rem, 1.1vw, .9rem); line-height: 1.4; color: var(--muted); max-width: 18em; margin-inline: auto; }

/* =========================================================
   CUOTAS
   ========================================================= */
.cuotas-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.cuotas-math {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 26px 28px; margin: 28px 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
}
.cuotas-math strong { display: block; font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.05 var(--serif); letter-spacing: -.02em; }
.cuotas-math span { font-size: .82rem; color: var(--muted); }
.cuotas-math b { font: 300 1.8rem/1 var(--serif); color: var(--gold); }
.cuotas-total { font-size: 1.05rem; }
.cuotas-copy .btn { margin-top: .6rem; }
.cuotas-media .frame { aspect-ratio: 4 / 5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 96px); counter-reset: s; }
.steps li { border-top: 1px solid var(--green); padding-top: 18px; }
.steps span { font: 500 .8rem/1 var(--sans); color: var(--gold); letter-spacing: .12em; }
.steps p { font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--serif); letter-spacing: -.015em; margin: .8rem 0 0; }

/* =========================================================
   MODELO / TARJETAS
   ========================================================= */
.modelo { background: var(--paper); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--cream);
  border: 1px solid var(--line); min-height: 340px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out) var(--d, 0s), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0s);
}
@media (hover: hover) { .card.is-in:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(16, 44, 37, .35); } }
.card-num { font: 300 3.6rem/1 var(--serif); color: var(--gold); margin-bottom: auto; padding-bottom: 40px; }
.card h3 { font: 500 clamp(1.4rem, 2.2vw, 1.75rem)/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: .8rem; }
.card p { color: var(--muted); margin: 0; }

/* =========================================================
   FRASE (palabras)
   ========================================================= */
.statement { padding: clamp(110px, 18vw, 220px) var(--gutter); background: var(--deep); }
.statement-text {
  max-width: 1100px; margin: 0 auto; text-align: center;
  font: 400 clamp(2rem, 6vw, 5rem)/1.08 var(--serif); letter-spacing: -.03em; color: var(--cream);
  text-wrap: balance;
}
.statement-text .w { opacity: .14; transition: opacity .25s linear; }
.statement-text .w.on { opacity: 1; }

/* =========================================================
   GENERACIONES (sticky en escritorio)
   ========================================================= */
.gen { padding-block: 0 clamp(88px, 12vw, 150px); }
.gen-sticky { padding-top: clamp(88px, 12vw, 150px); }
.gen-copy .disclaimer { margin-top: 28px; font-size: .78rem; }
.gen-copy .h-xl { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.gen-tree { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.gen-line { position: absolute; left: 8px; top: 24px; bottom: 56px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gen-line span { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); }
.gen-node {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px;
  opacity: .25; transform: translateX(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), box-shadow .6s;
}
.gen-node::before {
  content: ""; position: absolute; left: -32px; top: 28px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--line); transition: border-color .4s, background-color .4s;
}
.gen-node.on { opacity: 1; transform: none; box-shadow: 0 24px 50px -32px rgba(16, 44, 37, .4); }
.gen-node.on::before { border-color: var(--gold); background: var(--gold); }
.gen-node.is-root { background: var(--green); color: var(--cream); border-color: var(--green); }
.gen-tag { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.is-root .gen-tag { color: var(--lime); }
.gen-node h3 { font: 500 1.3rem/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: 14px; }
.gen-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gen-split.one { grid-template-columns: 1fr; }
.gen-split div { background: rgba(24, 59, 50, .05); border-radius: 14px; padding: 12px 14px; }
.is-root .gen-split div { background: rgba(246, 243, 233, .1); }
.gen-split strong { display: block; font: 400 1.8rem/1 var(--serif); letter-spacing: -.02em; }
.gen-split span { font-size: .8rem; opacity: .75; }
.gen-foot { font-size: .92rem; color: var(--muted); margin: 6px 0 0; opacity: .25; transition: opacity .6s; }
.gen-foot.on { opacity: 1; }

@media (min-width: 900px) {
  .gen.is-scrolly { height: 240vh; }
  .gen.is-scrolly .gen-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); }
}

/* =========================================================
   LLANO
   ========================================================= */
.llano { position: relative; height: 180vh; background: var(--deep); }
.llano-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.llano-media { position: absolute; inset: 0; will-change: transform; transform: scale(1.18); }
.llano-media img { width: 100%; height: 100%; object-fit: cover; }
.llano-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 30, 25, .85) 0%, rgba(10, 30, 25, .25) 55%, rgba(10, 30, 25, .1) 100%); }
.llano-copy { position: relative; color: var(--cream); padding-bottom: clamp(48px, 10vh, 110px); will-change: transform, opacity; }
.llano-copy .h-xl { max-width: 13em; }
.llano-copy .h-xl em { color: var(--lime); }
.llano-copy .lead { color: rgba(246, 243, 233, .82); }
.llano-place { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 243, 233, .6); margin: 1.6rem 0 0; }

/* =========================================================
   TRABAJO
   ========================================================= */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 30px;
  transition: transform .5s var(--ease-out) var(--d, 0s), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0s);
}
.tile-ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); color: var(--deep); font-weight: 600; margin-bottom: 44px;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .tile.is-in:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(16, 44, 37, .35); }
  .tile:hover .tile-ico { transform: rotate(45deg); }
}
.tile h3 { font: 500 1.25rem/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: .6rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }

/* =========================================================
   APP / TELÉFONOS
   ========================================================= */
.app { overflow: hidden; }
.app .h-xl em { color: var(--lime); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .6em 1.1em; border-radius: 99px; border: 1px solid rgba(220, 232, 162, .4); color: var(--lime); }
.phones {
  display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(20px, 3vw, 44px);
  padding-inline: var(--gutter); align-items: start;
}
.phone-wrap { will-change: transform; }
.phone-wrap figcaption { color: rgba(246, 243, 233, .78); font-size: .88rem; line-height: 1.5; margin-top: 22px; text-align: center; padding-inline: 8px; }
.phone-wrap figcaption strong { color: var(--cream); font-weight: 600; }
.phone {
  aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: #0a1a16;
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 233, .14), 0 50px 90px -40px rgba(0, 0, 0, .8);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: #0a1a16; border-radius: 20px; z-index: 2; }
.phone-bar { position: absolute; z-index: 1; top: 22px; left: 34px; right: 30px; display: flex; justify-content: space-between; font-size: .7rem; font-weight: 600; color: var(--green); }
.phone-screen { height: 100%; border-radius: 36px; background: var(--cream); color: var(--green); padding: 54px 16px 16px; overflow: hidden; display: flex; flex-direction: column; font-size: .8rem; }
.ps-tag { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.ps-h { font: 500 1.35rem/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.ps-photo { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.ps-photo img, .ps-hero img { width: 100%; height: 100%; object-fit: cover; }
.ps-brand { font-size: .65rem; color: var(--muted); margin-bottom: 2px; }
.ps-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ps-title strong { font: 500 1.35rem/1 var(--serif); }
.chip { font-size: .62rem; font-weight: 600; background: var(--lime); color: var(--deep); padding: .35em .7em; border-radius: 99px; white-space: nowrap; }
.chip-gold { background: rgba(173, 120, 71, .14); color: var(--gold); }
.ps-list { margin: 0; display: grid; gap: 6px; }
.ps-list div { display: flex; justify-content: space-between; gap: 8px; background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.ps-list dt { color: var(--muted); font-size: .7rem; }
.ps-list dd { margin: 0; font-weight: 600; font-size: .72rem; text-align: right; }
.ps-hero { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.ps-hero span { position: absolute; left: 10px; bottom: 8px; color: #fff; font: 500 1.05rem/1 var(--serif); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.ps-hero em { display: block; font: 600 .6rem/1.4 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.ps-rows { display: grid; gap: 6px; }
.ps-rows li { background: var(--paper); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; }
.ps-rows b { font-size: .75rem; }
.ps-rows span { font-size: .68rem; color: var(--muted); }
.ps-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 10px; font-size: .62rem; color: var(--muted); }
.ps-tabs .on { color: var(--green); font-weight: 700; }
.ps-gen { display: grid; gap: 4px; }
.ps-gen i { text-align: center; font-style: normal; color: var(--gold); font-size: .8rem; }
.ps-g { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 12px; padding: 9px 10px; }
.ps-g.root { background: var(--green); color: var(--cream); }
.ps-g img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.ps-g b { display: block; font-size: .78rem; }
.ps-g span { display: block; font-size: .62rem; opacity: .7; }
.ps-g em { display: block; font-style: normal; font-size: .62rem; font-weight: 600; color: var(--gold); margin-top: 2px; }
.ps-g.root em { color: var(--lime); }
.app-foot { margin-top: clamp(48px, 7vw, 80px); }
.app-foot .btn { margin-top: .5rem; }

/* =========================================================
   SEGUIMIENTO
   ========================================================= */
.seg-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.seg-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -50px rgba(16, 44, 37, .45);
}
.seg-card.is-in { transition: transform .6s var(--ease-out), opacity .9s var(--ease-out); }
.seg-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .85rem; margin-bottom: 26px; }
.seg-card h3 { font: 500 1.6rem/1.1 var(--serif); letter-spacing: -.02em; }
.seg-card > .muted { font-size: .85rem; }
.seg-big { font: 400 3.4rem/1 var(--serif); letter-spacing: -.03em; margin: 8px 0 22px; }
.seg-big span { font: 500 .85rem/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.seg-list { margin: 0 0 18px; }
.seg-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.seg-list dt { color: var(--muted); }
.seg-list dd { margin: 0; font-weight: 600; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chips li { font-size: .85rem; font-weight: 500; padding: .5em 1em; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }

/* =========================================================
   PRECIOS / PROTECCIÓN
   ========================================================= */
.precios { background: var(--paper); }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 20px; font-weight: 500; font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--gold); margin-right: .45em; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; align-items: stretch; }
.plan, .prot {
  position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out) var(--d, 0s), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0s);
}
@media (hover: hover) { .plan.is-in:hover, .prot.is-in:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -36px rgba(16, 44, 37, .4); } }
.plan .btn, .prot .btn { margin-top: auto; }
.plan-featured, .prot-featured { background: var(--green); color: var(--cream); border-color: var(--green); }
.plan-featured .plan-per, .prot-featured .plan-per, .plan-featured .plan-desc, .prot-featured .ticks { color: rgba(246, 243, 233, .75); }
.plan-flag { position: absolute; top: 22px; right: 22px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--lime); color: var(--deep); padding: .45em .8em; border-radius: 99px; }
.plan-name { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.plan-featured .plan-name, .prot-featured .plan-name { color: var(--lime); }
.plan-price { font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.03em; margin-bottom: .4rem; }
.plan-price small { font: 500 1rem/1 var(--sans); letter-spacing: 0; opacity: .7; }
.plan-per { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.plan-desc { color: var(--muted); margin-bottom: 1.8rem; }
.plan-desc strong { color: inherit; }
.plan-featured .plan-desc strong { color: var(--cream); }
.prot h3 { font: 500 1.9rem/1 var(--serif); letter-spacing: -.02em; margin-bottom: 1rem; }
.prot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ticks { display: grid; gap: 10px; margin-bottom: 1.8rem; color: var(--muted); font-size: .95rem; }
.ticks li { padding-left: 1.5em; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.prot-featured .ticks li::before { color: var(--lime); }
.prot-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.prot-notes div { border-top: 1px solid var(--green); padding-top: 18px; }
.prot-notes h4 { font: 500 1.1rem/1.2 var(--serif); margin-bottom: .5rem; }
.prot-notes p { color: var(--muted); font-size: .92rem; margin: 0; }

/* =========================================================
   KIT
   ========================================================= */
.kit { background: var(--paper); }
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.kit-media .frame { aspect-ratio: 1 / 1; will-change: transform; }
.kit-media .frame img { will-change: transform; }

/* =========================================================
   PRODUCTOS (galería horizontal)
   ========================================================= */
.productos { position: relative; background: var(--cream); padding-block: clamp(88px, 12vw, 150px); }
.hs-head { margin-bottom: 40px; }
.hs-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 6px; }
.hs-viewport::-webkit-scrollbar { display: none; }
.hs-track { display: flex; gap: 18px; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); width: max-content; }
.prod { flex: none; width: min(78vw, 360px); scroll-snap-align: center; }
.prod-wide { width: min(88vw, 640px); }
.prod img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: #e9e5d6; }
.prod-wide img { aspect-ratio: 16 / 12.5; }
.prod p { font: 500 1.2rem/1.2 var(--serif); letter-spacing: -.015em; margin: 14px 0 0; }
.prod p span { display: block; font: 400 .78rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.productos .disclaimer { margin-top: 36px; }

@media (min-width: 900px) {
  .productos.is-pinned { padding-block: 0; }
  .productos.is-pinned .hs-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); overflow: hidden; }
  .productos.is-pinned .hs-viewport { overflow: visible; scroll-snap-type: none; }
  .productos.is-pinned .hs-track { will-change: transform; }
  .productos.is-pinned .hs-head { margin-bottom: 28px; }
  .productos.is-pinned .hs-head .h-xl { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
  .productos.is-pinned .prod img { height: min(46vh, 450px); width: auto; aspect-ratio: 4 / 5; }
  .productos.is-pinned .prod { width: auto; }
  .productos.is-pinned .prod-wide img { aspect-ratio: 16 / 12; }
  .productos.is-pinned .disclaimer { margin-top: 24px; font-size: .75rem; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
@media (min-width: 900px) { .faq-side { position: sticky; top: calc(var(--nav-h) + 40px); } }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary, .legal summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font: 500 clamp(1.08rem, 1.6vw, 1.3rem)/1.3 var(--serif); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker, .legal summary::-webkit-details-marker { display: none; }
.qa summary::after, .legal summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat,
    rgba(24, 59, 50, .06);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.qa[open] summary::after, .legal[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .qa summary:hover::after { background-color: var(--lime); } }
.qa-body { padding: 0 54px 24px 0; color: var(--muted); }
.qa[open] .qa-body, .legal[open] .qa-body { animation: qa-in .5s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   CONTACTO / FORMULARIO
   ========================================================= */
.contacto .h-xl em { color: var(--lime); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.offer { border: 1px solid rgba(246, 243, 233, .18); border-radius: 22px; padding: 24px 26px; margin: 28px 0; }
.offer p { color: rgba(246, 243, 233, .72); font-size: .9rem; margin: 0; }
.offer strong { display: block; font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.03em; color: var(--lime); margin: 6px 0 10px; }
.form { background: var(--cream); color: var(--green); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .6); }
.form h3 { font: 500 1.8rem/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: .4rem; }
.form > .muted { margin-bottom: 1.6rem; }
.form a { color: var(--green); }
.hp { position: absolute; left: -9999px; }
.field { position: relative; margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select {
  width: 100%; height: 60px; padding: 24px 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  font: 500 1rem/1.2 var(--sans); color: var(--green); appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 22px) 28px, calc(100% - 17px) 28px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(24, 59, 50, .1); }
.field label {
  position: absolute; left: 17px; top: 20px; font-size: 1rem; color: var(--muted); pointer-events: none;
  transform-origin: 0 0; transition: transform .25s var(--ease-out), color .2s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field label.fixed { transform: translateY(-11px) scale(.75); }
.field input:focus + label { color: var(--green); }
.field input.invalid { border-color: #b4532a; }
.form .small { margin: 14px 0 18px; }
.form-status { margin: 14px 0 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #2e6b3a; }
.form-status.err { color: #b4532a; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--deep); color: var(--cream); padding: 80px 0 40px; border-top: 1px solid rgba(246, 243, 233, .08); }
.foot-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-logo { height: 76px; width: auto; filter: brightness(0) invert(1) sepia(.15); }
.foot-slogan { font: 400 clamp(1.6rem, 3.5vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 0; }
.foot-slogan em { color: var(--lime); font-weight: 300; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-bottom: 32px; border-bottom: 1px solid rgba(246, 243, 233, .14); margin-bottom: 12px; }
.foot-nav a { text-decoration: none; opacity: .8; font-size: .92rem; transition: opacity .2s; }
.foot-nav a:hover { opacity: 1; }
.legal { border-bottom: 1px solid rgba(246, 243, 233, .14); }
.legal summary { font-size: 1.05rem; padding: 18px 0; }
.legal summary::after { background-color: rgba(246, 243, 233, .08); }
.legal .qa-body { color: rgba(246, 243, 233, .7); font-size: .88rem; padding-right: 0; }
.legal a { color: var(--lime); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; opacity: .6; margin-top: 30px; }
.foot-bottom p { margin: 0; }

/* Aviso de cookies (Google Ads, Consent Mode v2) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  max-width: 760px; margin: 0 auto; padding: 18px 20px;
  background: rgba(16, 44, 37, .94); color: var(--cream);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 20px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .5);
  font-size: .85rem; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center;
  animation: cookie-in .5s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; color: rgba(246, 243, 233, .86); }
.cookie-banner a { color: var(--lime); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner button {
  min-height: 40px; padding: .55em 1.2em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .85rem/1.2 var(--sans); cursor: pointer; transition: transform .18s var(--ease-out), background-color .2s;
}
.cookie-banner button:active { transform: scale(.97); }
.cookie-accept { background: var(--lime); color: var(--deep); }
.cookie-reject { background: transparent; color: var(--cream); border-color: rgba(246, 243, 233, .35) !important; }
@media (hover: hover) { .cookie-reject:hover { background: rgba(246, 243, 233, .12); } .cookie-accept:hover { background: #e7f0b8; } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 480px) { .cookie-banner { padding: 16px; } .cookie-actions { width: 100%; } .cookie-banner button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-settings-link { background: none; border: 0; padding: 0; margin-left: .6em; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--lime); box-shadow: 0 14px 34px -10px rgba(16, 44, 37, .6);
  transform: translateY(90px); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.wa-float.show { transform: none; opacity: 1; }
.wa-float:active { transform: scale(.94); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 899px) {
  .cuotas-grid, .gen-grid, .seg-grid, .kit-grid, .faq-grid, .contacto-grid { grid-template-columns: 1fr; }
  .cuotas-media { max-width: 460px; }
  .cards3, .plans, .prot-grid, .prot-notes { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .card { min-height: 0; }
  .card-num { padding-bottom: 28px; }
  .seg-card { order: 2; }
  .kit-media { order: 2; }
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px);
    justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 8px; overscroll-behavior-x: contain;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone-wrap { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  :root { --radius: 22px; --nav-h: 58px; }
  .nav-logo img { height: 38px; }
  .hero { height: 230vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 30, 25, .9) 0%, rgba(10, 30, 25, .55) 55%, rgba(10, 30, 25, .1) 85%); }
  .hero-copy { padding-bottom: 28px; }
  .hero-lead { font-size: .95rem; margin-bottom: .6rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-scrollhint { display: none; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; bottom: 3vh; }
  .hero-stats li { display: grid; grid-template-columns: 8.6rem 1fr; align-items: baseline; gap: 10px; text-align: left; }
  .hero-stats strong { font-size: 1.3rem; margin: 0; }
  .hero-stats span { margin: 0; }
  .cards4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; }
  .steps p { margin: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cuotas-math { padding: 20px; }
  .qa-body { padding-right: 0; }
  .llano { height: 150vh; }
}
@media (max-height: 640px) and (min-width: 561px) {
  .hero-copy .display { font-size: clamp(2.6rem, 7vw, 5rem); }
  .hero-note { display: none; }
}

/* =========================================================
   ACCESIBILIDAD: movimiento, transparencia y contraste
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .4s ease; }
  .hero { height: auto; }
  .hero-sticky { position: relative; height: auto; overflow: visible; }
  .hero-media { position: relative; inset: auto; height: 100svh; transform: none !important; border-radius: 0; }
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .hero-scrollhint { display: none; }
  .hero-after { position: relative; padding: 72px var(--gutter); }
  .hero-after-top, .hero-caption, .hero-stats, .hero-stats li { position: static; opacity: 1 !important; transform: none !important; }
  .hero-caption { margin: 12px 0 32px; }
  .hero-stats { width: auto; max-width: 1000px; margin: 0 auto; }
  .llano { height: auto; }
  .llano-sticky { position: relative; min-height: 90vh; }
  .llano-media, .llano-copy { transform: none !important; opacity: 1 !important; }
  .gen-node, .gen-foot { opacity: 1; transform: none; }
  .gen-line span { transform: none; }
  .statement-text .w { opacity: 1; }
  .phone-wrap, .kit-media .frame, .kit-media img, .cuotas-media { transform: none !important; }
  .card, .tile, .plan, .prot, .btn, .btn span { transition: none; }
  .hero-scrollhint span { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav::before { background: var(--cream); box-shadow: 0 1px 0 var(--green); }
  .muted, .lead, .card p, .tile p { color: #3b4139; }
}
