:root {
  --bg: oklch(0.965 0.014 25);
  --card: oklch(0.99 0.006 25);
  --line: oklch(0.9 0.025 20);
  --ink: oklch(0.28 0.03 20);
  --ink-2: oklch(0.5 0.03 20);
  --accent: oklch(0.45 0.14 15);
  --dark: oklch(0.36 0.1 15);
  --dark-ink: oklch(0.97 0.012 25);
  --dark-circle: oklch(0.45 0.12 15);
  --chip: oklch(0.93 0.035 20);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 18px 64px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.1; }
p { margin: 0; }
em { color: var(--accent); font-style: italic; font-weight: 500; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Cabecera */
.hero { position: relative; }
.watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.watermark span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 104px;
  line-height: 1;
  white-space: nowrap;
  color: oklch(0.45 0.14 15 / 0.08);
  transform: rotate(-8deg);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { font-size: 46px; margin-bottom: 14px; }
.hero h1 em { display: block; }
.lead { font-size: 15px; color: var(--ink-2); }
.sign { margin-top: 12px; font: italic 500 19px/1.3 var(--serif); color: var(--accent); }

/* Tarjetas */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.muted { color: var(--ink-2); font-size: 14px; }

/* Contadores */
.counters { display: flex; flex-direction: column; gap: 12px; }
.counter {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.counter .num { min-width: 72px; text-align: center; flex-shrink: 0; }
.counter .days { display: block; font: 600 42px/1 var(--serif); color: var(--accent); }
.counter .unit { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2); margin-top: 4px; }
.counter .bar { width: 1px; align-self: stretch; background: var(--line); }
.counter .text { font-size: 14px; line-height: 1.45; }
.counter .date { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }

/* Canción */
.song-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.disc {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--dark-ink);
  display: grid; place-items: center;
  font-size: 22px;
}
.song-title { font-size: 30px; }
audio { width: 100%; display: block; }

/* Listas */
.section-title { font-size: 28px; }
.intro { color: var(--ink-2); margin: 4px 0 14px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, border-color .15s ease;
}
.row:active { transform: scale(.985); }
.row:hover { border-color: oklch(0.82 0.05 18); }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--chip);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 18px;
}
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.row-note { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.arrow { color: var(--accent); flex-shrink: 0; font-size: 15px; }

/* Pregunta */
.question {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 22px;
  padding: 28px 22px;
}
.question::before {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--dark-circle);
  top: -60px; right: -60px;
}
.question > * { position: relative; }
.question .eyebrow { color: var(--dark-ink); opacity: .85; display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dark-ink); display: inline-block; }
.question h2 { font-size: 38px; margin-bottom: 12px; }
.question p:last-child { opacity: .9; }

.foot {
  text-align: center;
  font: italic 500 20px/1.3 var(--serif);
  color: oklch(0.45 0.14 15 / 0.7);
  padding-top: 6px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: oklch(0.2 0.04 15 / 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow: auto;
  background: var(--card);
  border-radius: 22px;
}
.frame { background: oklch(0.2 0.02 15); }
.frame.video { position: relative; aspect-ratio: 16 / 9; }
.frame.page { height: 72vh; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame.page { position: relative; }
.modal-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-body h3 { font-size: 24px; }
.modal-body a { color: var(--accent); font-size: 14px; word-break: break-all; }
.close {
  align-self: center;
  min-height: 44px;
  min-width: 140px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: var(--dark-ink);
  font: 600 15px var(--sans);
  cursor: pointer;
}
