:root {
  /* Paleta tomada de las piezas de SerLife: gris pizarra + verde lima */
  --green-900: #34424a;   /* pizarra: titulares */
  --green-700: #4b5a62;
  --green-500: #7fa315;   /* lima legible para texto/íconos */
  --green-100: #eef4d4;
  --lime: #a8c923;        /* lima de marca: pastillas, subrayados */
  --on-lime: #26310a;
  --cream: #f1f1ec;
  --sand: #f8f3e1;
  --ink: #2c363b;
  --muted: #5f6a6f;
  --line: #dcdcd2;
  --accent: #a8c923;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(18, 59, 47, .25);
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Quicksand", "Avenir Next Rounded", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
body { font-weight: 500; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; color: var(--green-900); text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h1 em, h2 em { font-style: normal; color: var(--lime); }
h1 .thin, h2 .thin { display: block; font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h2::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--lime); margin-top: .35em; }
.closing h2::after { margin-inline: auto; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }
.eyebrow { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; font-weight: 800; color: var(--on-lime); background: var(--lime); padding: .35em .8em; border-radius: 10px; margin-bottom: 1em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.mt { margin-top: 1.4em; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: .85em 1.3em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 8px 20px -8px rgba(31, 168, 85, .7); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-100); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--outline { border-color: var(--line); color: var(--green-900); background: var(--white); }
.btn--outline:hover { border-color: var(--green-500); }
.btn--sm { padding: .55em 1em; font-size: .9rem; min-height: 40px; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green-900); text-decoration: none; }
.logo span { color: var(--green-500); }
.topnav { display: none; gap: 24px; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topnav a:hover { color: var(--green-500); }

/* Hero */
.hero { padding: 40px 0 32px; background: radial-gradient(ellipse at top right, var(--green-100), transparent 60%), var(--cream); }
.card__invima { font-size: .75rem; color: var(--muted); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--green-500); }

.hero__offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); max-width: 480px;
}
.hero__offer-name { width: 100%; font-weight: 600; font-size: .9rem; color: var(--muted); }
.hero__offer-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--green-900); }
.hero__offer-old { text-decoration: line-through; color: var(--muted); }
.hero__offer-save { background: var(--lime); color: var(--on-lime); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }

.hero__photo {
  aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; position: relative;
  background: #fff; border: 2px solid var(--lime);
  box-shadow: var(--shadow);
}
.hero__photo:has(.ph) { background: linear-gradient(145deg, var(--green-700), var(--green-900)); }
.hero__photo img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }

/* Placeholder de foto (se reemplaza por la oficial) */
.ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
}
.ph__jar {
  width: 34%; max-width: 150px; aspect-ratio: 1 / 1.45; border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.5);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1.1rem); color: var(--jar, var(--green-900));
  padding: 8px;
}
.ph__jar::before {
  content: ""; position: absolute; top: -12%; left: 14%; right: 14%; height: 14%;
  background: var(--jar, var(--green-900)); border-radius: 8px 8px 2px 2px;
}
.ph__jar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 6px; background: var(--jar, var(--green-900)); opacity: .8;
}
.ph__note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .7rem; color: rgba(255,255,255,.7); }

/* Rutas */
.routes { display: grid; gap: 12px; margin-top: 32px; }
.route {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s, transform .15s;
}
.route:hover { border-color: var(--lime); transform: translateY(-2px); }
.route__k { font-size: .72rem; font-weight: 700; color: var(--green-500); text-transform: uppercase; letter-spacing: .1em; }
.route strong { color: var(--green-900); font-size: 1.05rem; }
.route span:last-child { color: var(--muted); font-size: .92rem; }

/* Secciones */
.section { padding: 64px 0; }
.section--tint { background: var(--sand); }
.section__head { max-width: 680px; margin-bottom: 32px; }
.section__head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 20px; }

/* Tarjeta de producto */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.card__media .ph { background: linear-gradient(150deg, color-mix(in srgb, var(--jar) 18%, #fff), color-mix(in srgb, var(--jar) 38%, #fff)); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--lime); color: var(--on-lime); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__focus { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--jar); }
.card__name { margin: 0; font-size: 1.4rem; }
.card__nick { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.card__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.card__price { margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--green-900); }
.price { font-weight: 800; }
.price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price--tbd { font-size: 1.05rem; color: var(--muted); }
.card__actions { display: grid; gap: 8px; margin-top: 10px; }

/* Combos */
.combo {
  background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 24px; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.combo--featured { border-color: var(--lime); box-shadow: var(--shadow); }
.combo__ribbon { position: absolute; top: -13px; left: 24px; background: var(--lime); color: var(--on-lime); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.combo__tag { color: var(--muted); margin: -8px 0 0; }
.combo__jars { display: flex; gap: 10px; }
.combo__jars .mini { flex: 1; aspect-ratio: 1.1; border-radius: 14px; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.combo__jars .mini img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.combo__jars .mini .ph__jar { width: 44%; font-size: .72rem; }
.breakdown { width: 100%; border-collapse: collapse; font-size: .95rem; }
.breakdown td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown .save td { color: var(--green-500); font-weight: 700; }
.breakdown .ship td { color: var(--green-500); font-weight: 600; }
.breakdown .total td { border-bottom: 0; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.breakdown .total td:last-child { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-900); }
.combo__cond { font-size: .85rem; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 10px 12px; margin: 0; }

/* Beneficio por cantidad */
.tiers__title { margin: 40px 0 16px; }
.tiers { display: grid; gap: 20px; }
.tier { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: 28px 22px 22px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.tier--best { border-color: var(--lime); box-shadow: var(--shadow); }
.tier__units { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; color: var(--green-900); margin: 0; }
.tier__lines { list-style: none; padding: 0; margin: 0 0 auto; color: var(--muted); }
.tier .btn { margin-top: auto; }
.gift { display: flex; gap: 14px; align-items: center; background: var(--green-100); border-radius: 16px; padding: 12px; }
.gift__img { width: 84px; height: auto; flex: none; }
.gift__text { min-width: 0; font-size: .95rem; }
.gift__list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.gift__list li::before { content: "✓ "; color: var(--green-500); font-weight: 700; }
.gift__save { color: var(--green-900); font-family: var(--font-display); font-size: 1.1rem; }
.gift__legal { font-size: .72rem; color: var(--muted); margin: 0; }
.hint--next { font-weight: 700; }

/* Testimonios en video: fila en escritorio, carrusel horizontal en móvil */
.testis { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.testi { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.testi__media { aspect-ratio: 9 / 16; max-width: 360px; width: 100%; margin-inline: auto; background: var(--green-900); }
.testi__media video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--green-900); }
.testi__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.testi__title { margin: 0; font-size: 1.1rem; }
.testi__summary { margin: 0; color: var(--ink); }
.testi__actions { display: grid; gap: 8px; margin-top: auto; }
.testi__link { justify-self: center; font-weight: 700; color: var(--green-500); text-decoration: none; padding: 6px; }
.testi__link:hover { text-decoration: underline; }
.testi__legal { font-size: .72rem; color: var(--muted); margin: 0; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; font-size: 1.1rem; color: var(--green-900); }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.trust { display: grid; gap: 20px; }
.trust__card { background: var(--green-900); color: #e8f1ec; border-radius: 24px; padding: 28px; }
.trust__card h3 { color: #fff; }
.trust__card--alt { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.trust__card--alt h3 { color: var(--green-900); }
.checks, .pay { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
.pay li { padding-left: 14px; border-left: 3px solid var(--lime); font-size: .95rem; }

/* Pedido */
.order { margin-top: 56px; display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.order__intro p:last-child { color: var(--muted); }
.order__form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.order__form legend { font-weight: 700; color: var(--green-900); margin-bottom: 10px; }
.order__items { display: grid; gap: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.qty-row__name { font-weight: 600; }
.qty-row__price { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); font-size: 1.1rem; cursor: pointer; color: var(--green-900); }
.qty button:hover { border-color: var(--green-500); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.fields { display: grid; gap: 12px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.fields input, .fields select { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); min-height: 48px; }
.fields input:focus, .fields select:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.order__summary { background: var(--green-100); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: .95rem; }
.order__summary .row { display: flex; justify-content: space-between; }
.order__summary .row--total { font-weight: 700; font-size: 1.1rem; margin-top: 6px; color: var(--green-900); }
.order__summary .hint { font-size: .82rem; color: var(--green-700); margin: 6px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-500); }
.form-error { color: #b42318; font-size: .9rem; min-height: 1.2em; margin: 0 0 8px; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; list-style: none; position: relative; color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-500); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq__a p:last-child { margin: 0; }

/* Cierre */
.closing { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #eef0ea; padding: 64px 0; text-align: center; }
.closing h2 { color: #fff; }
.closing__inner { max-width: 720px; }
.closing__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* Footer */
.footer { background: #263137; color: #a9bdb4; padding: 36px 0 110px; font-size: .82rem; }
.footer__legal { max-width: 860px; }
.footer a { color: #cfe3da; }
.footer__copy { margin-top: 18px; color: #7f978d; }

/* Barra fija móvil: no tapa contenido gracias al padding-bottom del footer */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2);
  transform: translateY(110%); transition: transform .25s ease;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__price { font-size: .82rem; color: var(--muted); line-height: 1.25; }
.stickybar__price strong { display: block; color: var(--green-900); font-size: 1.05rem; }
.stickybar .btn { flex: none; }

/* Responsive */
@media (min-width: 640px) {
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .routes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields__full { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero { padding: 64px 0 48px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__trust { grid-template-columns: 1fr; }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .grid--combos { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .testis { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
  .order { grid-template-columns: .8fr 1.2fr; padding: 40px; gap: 40px; }
  .section { padding: 88px 0; }
  .stickybar { display: none; }
  .footer { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
