/* Te Cuento! · sitio web · estilos compartidos
   Tokens tomados del sistema de diseño "Señal". Diseño deliberadamente de un solo tema (claro con secciones verde noche). */
:root {
  --night: #123B34;
  --night-deep: #0B2620;
  --lime: #C6E836;
  --lime-hover: #B3D42A;
  --lime-deep: #5E7A12;
  --lime-tint: #F1F9D3;
  --coral: #F0806B;
  --coral-text: #A8432E;
  --coral-tint: #FCE9E4;
  --cream: #F4F7F1;
  --cream-warm: #ECF1E6;
  --white: #FFFFFF;
  --ink: #16241F;
  --muted: #5B6E67;
  --on-dark: #CFE0D9;
  --line: #E3E9DF;
  --font-display: Montserrat, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --r-sm: 9px;
  --r-md: 16px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.06; }
h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 88px); }
.section--white { background: var(--white); }
.section--night { background: var(--night); color: var(--white); }
.section--night p { color: var(--on-dark); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.section--night .lead { color: var(--on-dark); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-deep); }
.section--night .eyebrow { color: var(--lime); }
.small { font-size: 13px; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--lime); color: var(--night-deep); }
.btn--primary:hover { background: var(--lime-hover); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { background: transparent; color: var(--night); border-color: var(--night); }
.btn--outline:hover { background: var(--night); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 700; color: var(--lime-deep); text-decoration: underline; text-underline-offset: 3px; }
.link--coral { color: var(--coral-text); }

/* Etiquetas de producto */
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--night-deep); background: var(--lime); }
.tag--coral { background: var(--coral); }

/* Encabezado */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--night); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }
.nav .btn { color: var(--night-deep); min-height: 42px; padding: 8px 18px; font-size: 15px; }
.nav .btn:hover { color: var(--night-deep); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 10px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--night); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding-block: clamp(64px, 9vw, 112px); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .lead { color: var(--on-dark); }
.hero__bars { position: absolute; right: 6%; bottom: -60px; display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); opacity: .9; }
.hero__bars span { width: clamp(44px, 6vw, 84px); border-radius: 999px; background: var(--lime); }
.hero__bars span:nth-child(1) { height: clamp(120px, 16vw, 220px); }
.hero__bars span:nth-child(2) { height: clamp(200px, 27vw, 380px); }
.hero__bars span:nth-child(3) { height: clamp(280px, 38vw, 540px); }
.hero__bars--coral span:nth-child(3) { background: var(--coral); }
.hero--page { padding-block: clamp(56px, 7vw, 88px); }
.hero--page .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--page .hero__copy { max-width: 720px; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__bars { opacity: .25; right: -20px; }
}

/* Antes / después */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare__card { border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.compare__card--before { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.compare__card--after { background: var(--lime); color: var(--night-deep); }
.compare__label { font-size: 13px; font-weight: 700; }
.compare__card--before .compare__label { color: var(--on-dark); }
.compare__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.compare__card--before .compare__num { color: var(--white); }
.compare__note { font-size: 14px; }
.compare__card--before .compare__note { color: var(--on-dark); }

/* Grillas de tarjetas */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section--white .card { background: var(--cream); border-color: var(--cream-warm); }
.icon-circle { width: 52px; height: 52px; border-radius: 999px; background: var(--night); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle svg { width: 24px; height: 24px; stroke: var(--lime); }
.icon-circle--coral svg { stroke: var(--coral); }

/* Dato destacado */
.fact { margin-top: 32px; padding: 20px 24px; border-radius: var(--r-md); background: var(--lime-tint); display: flex; gap: 16px; align-items: flex-start; }
.fact strong { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--lime-deep); line-height: 1; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Pasos */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps--3, .steps--4 { grid-template-columns: minmax(0, 1fr); } }
.step { counter-increment: step; display: flex; flex-direction: column; gap: 10px; }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: var(--lime); color: var(--night-deep); font-family: var(--font-display); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.steps--coral .step::before { background: var(--coral); }

/* Video */
.video { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--night-deep); aspect-ratio: 16 / 9; max-width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--on-dark); padding: 24px; }
.video__play { width: 72px; height: 72px; border-radius: 999px; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.video__play svg { width: 28px; height: 28px; fill: var(--night-deep); margin-left: 4px; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Productos */
.product { overflow: hidden; padding: 0; }
.product__head { padding: 24px 28px; background: var(--lime); color: var(--night-deep); display: flex; flex-direction: column; gap: 4px; }
.product__head--coral { background: var(--coral); }
.product__head p { font-weight: 600; }
.product__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.product dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.product dd { margin: 2px 0 0; }
.product .link { margin-top: auto; }

/* Bloque con color de producto */
.band { border-radius: var(--r-md); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band--lime { background: var(--lime-tint); }
.band--coral { background: var(--coral-tint); }
@media (max-width: 720px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* Kits */
.kit { position: relative; }
.kit--featured { border: 2px solid var(--lime-deep); }
.kit__badge { position: absolute; top: -13px; left: 24px; }
.kit ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.kit li { display: flex; gap: 10px; align-items: flex-start; }
.kit li svg { width: 18px; height: 18px; stroke: var(--lime-deep); flex-shrink: 0; margin-top: 4px; }
.kit__price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--night); }

/* Preguntas */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 800; color: var(--lime-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink); }

/* Historia */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.story__text { display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.photo-slot { aspect-ratio: 4 / 5; border-radius: var(--r-md); background: var(--cream-warm); border: 2px dashed #C9D4C4; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .story { grid-template-columns: minmax(0, 1fr); } .photo-slot { aspect-ratio: 16 / 10; } }
.person { flex-direction: row; align-items: flex-start; gap: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--night); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--lime); font-variant-numeric: tabular-nums; }

/* Formulario */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #CFD8CC; border-radius: var(--r-sm);
  min-height: 48px; padding: 10px 14px; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--night); outline: none; box-shadow: 0 0 0 3px var(--lime-tint); }
.field .error { color: var(--coral-text); font-size: 13px; min-height: 0; }
.field.has-error input, .field.has-error select { border-color: var(--coral-text); }
.form-status { grid-column: 1 / -1; padding: 16px 20px; border-radius: var(--r-sm); font-weight: 600; }
.form-status--ok { background: var(--lime-tint); color: var(--night); }
.form-status--error { background: var(--coral-tint); color: var(--coral-text); }
.hidden-field { position: absolute; left: -9999px; }

/* Cierre */
.cta { text-align: left; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Pie */
.footer { background: var(--night-deep); color: var(--on-dark); padding-block: 48px 32px; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer img { height: 30px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__bottom { padding-top: 24px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 56px; height: 56px; border-radius: 999px; background: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(11,38,32,.25);
}
.wa-float svg { width: 26px; height: 26px; stroke: var(--night-deep); }
.btn svg { width: 20px; height: 20px; stroke: currentColor; }
.tag { align-self: flex-start; }
.video { max-width: 880px; }
.hero .eyebrow { color: var(--lime); }
.story__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--r-md); display: block; }
@media (max-width: 820px) { .story__photo { aspect-ratio: 4 / 3; } }
