:root {
  --fondo: #f7f3ec;
  --tarjeta: #fffdf8;
  --tinta: #2e2419;
  --tinta-suave: #6f6151;
  --acento: #8a5a33;
  --acento-oscuro: #6d4526;
  --dorado: #c9a36a;
  --borde: #eadfce;
  --sombra: 0 10px 30px rgba(78, 55, 30, .10), 0 2px 8px rgba(78, 55, 30, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.pagina {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 16px -8px 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 43 / 30;
}

.hero-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-texto {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(64, 35, 18, .45);
  padding-bottom: 26px;
}

.hero-linea {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin-left: .32em; /* compensa el letter-spacing final */
}

.hero-script {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 3.4rem;
  line-height: 1.05;
  margin-top: -2px;
}

.hero-corazon {
  margin-top: 10px;
  font-size: .95rem;
  letter-spacing: .25em;
  opacity: .9;
}

/* ---------- Saludo ---------- */
.saludo {
  text-align: center;
  margin: 26px 8px 22px;
  color: var(--tinta-suave);
  font-size: 1.02rem;
}

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 20px;
  box-shadow: var(--sombra);
  padding: 26px 24px;
  margin-bottom: 18px;
}

.etiqueta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: 18px;
}

.etiqueta time {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tinta-suave);
  font-size: .85rem;
  text-align: right;
}

.texto-versiculo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.32;
  color: var(--tinta);
  quotes: "«" "»";
}

.texto-versiculo::before { content: open-quote; color: var(--dorado); }
.texto-versiculo::after  { content: close-quote; color: var(--dorado); }

.cita {
  margin-top: 16px;
  font-weight: 600;
  color: var(--acento-oscuro);
}

.traduccion {
  font-weight: 400;
  color: var(--tinta-suave);
  font-size: .85rem;
}

/* ---------- Botones ---------- */
.boton {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--acento);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.boton:hover { background: var(--acento-oscuro); }
.boton:active { transform: scale(.98); }

.boton.secundario {
  background: var(--fondo);
  color: var(--acento-oscuro);
  border: 1.5px solid var(--borde);
  margin-top: 14px;
}

.boton.secundario:hover { border-color: var(--dorado); background: #fbf6ec; }

/* ---------- Historial ---------- */
.sutil { color: var(--tinta-suave); font-size: .88rem; }

.historial .etiqueta { margin-bottom: 6px; }

.dia-anterior {
  border-top: 1px solid var(--borde);
}

.dia-anterior summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 2px;
  cursor: pointer;
  list-style: none;
}

.dia-anterior summary::-webkit-details-marker { display: none; }

.dia-anterior summary::after {
  content: "▾";
  color: var(--dorado);
  font-size: .8rem;
  transition: transform .15s ease;
}

.dia-anterior[open] summary::after { transform: rotate(180deg); }

.dia-fecha {
  font-weight: 600;
  font-size: .9rem;
  color: var(--tinta);
  white-space: nowrap;
}

.dia-ref {
  margin-left: auto;
  font-size: .88rem;
  font-weight: 500;
  color: var(--acento);
  text-align: right;
}

.dia-texto {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--tinta-suave);
  padding: 0 2px 16px;
}

/* ---------- Pie ---------- */
.pie {
  text-align: center;
  margin-top: 34px;
  color: var(--tinta-suave);
}

.lema {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: var(--tinta);
}

.marca {
  margin-top: 14px;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Aviso (toast) ---------- */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--tinta);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: var(--sombra);
}

@media (min-width: 700px) {
  .pagina { padding-top: 24px; }
  .hero { margin: 24px 0 0; }
}
