/* Layout: una sola columna editorial; bandas de color a todo lo ancho con contenido a 1100px.
   La idea visual: dos relojes, dos ciudades (Torreón y Los Ángeles) unidos por la voz.
   Marca (caroline-brand/LEEME.md): morados #534AB7 #3C3489 #26215C #EEEDFE y coral #F0997B. */
:root {
  --bg: #F7F6FD;
  --surface: #FFFFFF;
  --ink: #26215C;
  --muted: #5F5A86;
  --line: #E1DFF5;
  --brand: #534AB7;
  --brand-ink: #FFFFFF;
  --night: #26215C;
  --night-ink: #F1F0FD;
  --night-muted: #BDB8EC;
  --coral: #F0997B;
  --alert: #E0533D;
  --ok: #2E9E6B;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15122E; --surface: #1E1A40; --ink: #F1F0FD; --muted: #BDB8EC; --line: #332D66;
    --brand: #A39CF0; --brand-ink: #15122E; --night: #100D26; --night-ink: #F1F0FD; --night-muted: #BDB8EC;
    --coral: #F4AE95; --alert: #F07763; --ok: #4CC08C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15122E; --surface: #1E1A40; --ink: #F1F0FD; --muted: #BDB8EC; --line: #332D66;
  --brand: #A39CF0; --brand-ink: #15122E; --night: #100D26; --night-ink: #F1F0FD; --night-muted: #BDB8EC;
  --coral: #F4AE95; --alert: #F07763; --ok: #4CC08C; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; }

/* Encabezado */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo .wordmark { display: block; height: 30px; width: auto; }
.wordmark .wm-l { fill: var(--brand); }
.wordmark .wm-h { fill: var(--coral); }
.night .wordmark .wm-l { fill: #FFFFFF; }
.wordmark-foot { display: block; height: 40px; width: auto; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav ul a:hover { color: var(--brand); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(42px, 6.6vw, 78px); font-weight: 700; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Fotos */
figure { margin: 0; }
.hero-photo { position: relative; padding-bottom: 28px; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1150; object-fit: cover; border-radius: 28px; }
.hero-msg { position: absolute; left: -18px; bottom: 0; width: min(270px, 80%); display: grid; gap: 6px; padding: 14px 16px; border-radius: 22px; background: #05070F; color: #E8ECF8; box-shadow: 0 24px 50px -20px rgba(18, 26, 58, 0.6); }
.hero-msg .from { font: 500 12px/1.3 var(--body); color: #F0997B; }
.hero-msg .msg { font: 500 15px/1.35 var(--body); }
.hero-msg .wave { height: 20px; margin-top: 4px; }
@media (max-width: 860px) { .hero-msg { left: 12px; } .hero-photo img { aspect-ratio: 4 / 3.4; object-position: center 70%; } }
.voice-grid { margin-top: 48px; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.voice-grid > * { min-width: 0; }
.voice-grid .day { margin-top: 0; }
.voice-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
@media (max-width: 860px) { .voice-grid { grid-template-columns: 1fr; } .voice-photo img { aspect-ratio: 4 / 3; object-position: center 30%; } }
.watch-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.watch-grid > * { min-width: 0; }
.watch-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.watch-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid var(--coral); }
.watch-list span { color: var(--muted); font-size: 16px; }
.watch-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
@media (max-width: 860px) { .watch-grid { grid-template-columns: 1fr; } }
.call-row { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.call-row > * { min-width: 0; }
.call-photo img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; object-position: center 25%; border-radius: 24px; }
@media (max-width: 760px) { .call-row { grid-template-columns: 1fr; } }

/* Onda de voz (mensaje sobre la foto principal) */
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: auto; }
.wave i { width: 4px; border-radius: 2px; background: #F0997B; animation: talk 1.2s ease-in-out infinite; }
@keyframes talk { 50% { transform: scaleY(0.4); } }

/* Banda de la voz */
.night { background: var(--night); color: var(--night-ink); }
.night .eyebrow { color: var(--coral); }
.night .lead { color: var(--night-muted); }
.voice-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.voice-head > * { min-width: 0; }
@media (max-width: 860px) { .voice-head { grid-template-columns: 1fr; } }
.day { margin-top: 48px; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--night-ink) 18%, transparent); }
.moment { display: grid; grid-template-columns: 150px 1fr 200px; gap: 24px; align-items: center; padding-block: 22px; border-bottom: 1px solid color-mix(in srgb, var(--night-ink) 18%, transparent); }
.moment > * { min-width: 0; }
.clock { font: 500 13px/1.5 var(--mono); color: var(--night-muted); font-variant-numeric: tabular-nums; }
.clock b { display: block; font: 700 26px/1 var(--display); color: var(--night-ink); }
.quote { font: italic 500 clamp(20px, 2.3vw, 25px)/1.35 var(--display); }
.quote::before { content: "“"; color: var(--coral); }
.quote::after { content: "”"; color: var(--coral); }
.when { font-size: 14px; color: var(--night-muted); }
@media (max-width: 760px) { .moment { grid-template-columns: 1fr; gap: 8px; } .clock b { display: inline; margin-right: 8px; } }
.voice-foot { margin-top: 32px; color: var(--night-muted); max-width: 70ch; }

/* Cómo funciona */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps > div { min-width: 0; border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.steps > div::before { counter-increment: s; content: "Paso " counter(s); font: 600 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Funciones */
.features { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: var(--surface); padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature svg { width: 28px; height: 28px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature.sos svg { stroke: var(--alert); }
.feature p { color: var(--muted); font-size: 16px; }
.feature small { font-size: 13px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* Lo que no es */
.honest { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
.honest > * { min-width: 0; }
.honest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.honest li { padding-left: 28px; position: relative; }
.honest li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--alert); }
.honest li strong { display: block; }
.honest li span { color: var(--muted); }
@media (max-width: 820px) { .honest { grid-template-columns: 1fr; } }

/* Planes */
.plan { margin-top: 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.plan > * { min-width: 0; padding: clamp(24px, 4vw, 40px); }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.plan aside { background: var(--brand); color: var(--brand-ink); display: grid; gap: 14px; align-content: center; }
.plan aside .big { font: 700 34px/1.1 var(--display); }
.plan aside p { opacity: 0.9; }
.plan aside .btn { background: var(--brand-ink); color: var(--brand); justify-self: start; }
@media (max-width: 760px) { .plan { grid-template-columns: 1fr; } }

/* Preguntas */
.faq { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 26px/1 var(--display); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 68ch; }

/* Contacto y pie */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.contact .mail { font: 700 clamp(22px, 3vw, 30px)/1.2 var(--display); color: var(--night-ink); user-select: all; overflow-wrap: anywhere; }
footer { border-top: 1px solid color-mix(in srgb, var(--night-ink) 15%, transparent); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px; font-size: 14px; color: var(--night-muted); }
.foot a { color: var(--night-ink); margin-right: 18px; }

/* Si un día no se levanta */
.wake-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.wake-grid > * { min-width: 0; }
.wake-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wake-list li { display: flex; gap: 10px; }
.wake-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.wake-phone { justify-self: center; width: min(320px, 100%); border-radius: 36px; padding: 28px 16px 22px; background: linear-gradient(160deg, #3C3489, #26215C); color: #F1F0FD; display: grid; gap: 12px; box-shadow: 0 30px 60px -28px rgba(18, 26, 58, 0.6); }
.wake-time { text-align: center; font: 700 56px/1 var(--display); font-variant-numeric: tabular-nums; }
.wake-date { text-align: center; font-size: 13px; color: #BDB8EC; margin-bottom: 8px; }
.wake-notif { display: grid; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); font-size: 14px; line-height: 1.35; }
.wake-notif strong { font-size: 12px; font-weight: 600; color: #F0997B; }
.wake-notif.soft strong { color: #BDB8EC; }
.wake-title { font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .wake-grid { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa-btn { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1FAF54; color: #FFFFFF; font: 600 15px/1 var(--body); text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); }
.wa-btn:hover { background: #179447; }
.wa-btn svg { width: 22px; height: 22px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linejoin: round; }
.contact-ways { display: grid; gap: 12px; justify-items: start; }
.wa-inline { background: #1FAF54; color: #FFFFFF; }

/* Páginas legales */
.legal { max-width: 760px; margin-inline: auto; padding-block: 48px 80px; }
.legal h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 18px; }
.legal h3 { margin: 36px 0 10px; font-size: 22px; }
.legal h4 { margin: 22px 0 6px; font: 600 17px/1.4 var(--body); }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal .draft-note { background: color-mix(in srgb, var(--coral) 22%, var(--surface)); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.pend { background: color-mix(in srgb, var(--coral) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Pagina /app.html: botones de las tiendas (inactivos hasta que la app se publique) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 58px; padding: 8px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; }
.store small { font: 500 12px/1.3 var(--body); opacity: .8; }
.store strong { font: 700 19px/1.2 var(--body); }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }
.soon { font-weight: 600; color: var(--muted); }
