/* ============================================================
   LOS HIJOS DE LA LUZ — Oraciones: tipografía accesible
   Diseñado para personas mayores: letra grande, alto contraste
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --ink:        #0F0D0B;
  --ink-muted:  #2C2820;
  --gold:       #8B6914;
  --gold-light: #C9A84C;
  --cream:      #FAF7F2;
  --cream-dark: #F0EBE1;
  --border:     #D4C9B0;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;

  /* Tamaños grandes para legibilidad */
  --text-base:  22px;
  --text-lg:    24px;
  --text-xl:    28px;
  --text-2xl:   32px;
  --text-3xl:   40px;
  --line-height: 1.85;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
a:hover { color: var(--ink); }

/* ── Barra de accesibilidad (tamaño de fuente) ─────────── */
.a11y-bar {
  background: var(--ink);
  color: #fff;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: sans-serif;
  font-size: 14px;
}
.a11y-bar span { color: rgba(255,255,255,0.6); }
.a11y-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: sans-serif;
}
.a11y-btn:hover { background: rgba(255,255,255,0.22); }
.a11y-btn.active {
  background: var(--gold-light);
  color: var(--ink);
  border-color: var(--gold-light);
}

/* Modificadores de tamaño aplicados al body */
body.size-grande  { font-size: 26px; }
body.size-muy-grande { font-size: 30px; }

/* ── Nav ───────────────────────────────────────────────── */
.site-nav {
  background: var(--cream);
  border-bottom: 2px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}
.nav-back {
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-back:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Header de la oración ──────────────────────────────── */
.prayer-header {
  background: var(--cream-dark);
  border-bottom: 2px solid var(--border);
  padding: 48px 32px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.prayer-category {
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.prayer-category::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold-light);
}
.prayer-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  margin-bottom: 16px;
}
.prayer-intro {
  font-size: var(--text-base);
  line-height: 1.75;
  color: #444;
  max-width: 680px;
  border-left: 4px solid var(--gold-light);
  padding-left: 20px;
  margin-top: 20px;
  font-style: italic;
}

/* ── Contenido principal ───────────────────────────────── */
.prayer-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* Bloque de oración individual */
.prayer-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.prayer-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.prayer-block-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.prayer-block-title .num {
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

/* El texto de la oración en sí */
.prayer-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--ink);
}
.prayer-text p {
  margin-bottom: 1.4em;
}
.prayer-text p:last-child { margin-bottom: 0; }

/* Texto destacado — invocaciones */
.prayer-invocation {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  background: var(--cream-dark);
  border-left: 6px solid var(--gold-light);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

/* Nota al pie dentro de oración */
.prayer-note {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  background: #F5F5F0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}
.prayer-note::before {
  content: 'Nota: ';
  font-weight: 700;
  color: var(--ink);
}

/* Respuesta / estribillo */
.prayer-response {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-style: italic;
  color: #444;
  padding: 10px 0 10px 24px;
  border-left: 3px solid var(--border);
  margin: 12px 0;
}

/* Separador ornamental */
.ornament {
  text-align: center;
  color: var(--gold-light);
  font-size: 28px;
  letter-spacing: 12px;
  margin: 40px 0;
  user-select: none;
}

/* Sección (con título de sección) */
.section-heading {
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 28px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Día de novena */
.novena-day {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 24px;
  margin-bottom: 28px;
}
.novena-day-num {
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.novena-day p {
  font-size: var(--text-base);
  line-height: var(--line-height);
  color: var(--ink);
  margin-bottom: 1em;
}
.novena-day p:last-child { margin-bottom: 0; }
.novena-response {
  font-style: italic;
  color: #555;
  margin-top: 8px;
  padding-left: 18px;
  border-left: 3px solid var(--border);
}

/* ── Navegación entre oraciones ──────────────────────── */
.prayer-nav {
  background: var(--cream-dark);
  border-top: 2px solid var(--border);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}
.prayer-nav a {
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  transition: all 0.15s;
}
.prayer-nav a:hover {
  background: var(--gold);
  color: var(--white);
}
.prayer-nav .back-to-list {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border: none;
  padding: 0;
}
.prayer-nav .back-to-list:hover {
  background: transparent;
  color: var(--gold);
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 24px;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer a { color: var(--gold-light); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
  .a11y-bar { padding: 7px 16px; gap: 10px; font-size: 13px; }
  .prayer-header { padding: 36px 20px 28px; }
  .prayer-content { padding: 32px 20px 56px; }
  .site-nav { padding: 0 16px; }
  .prayer-title { font-size: 26px; line-height: 1.15; }
  .prayer-intro { font-size: 16px; }
  .prayer-block-title { font-size: 20px; flex-wrap: wrap; }
  .prayer-block-title .num { font-size: 11px; }
  .prayer-nav { padding: 20px; flex-direction: column; align-items: stretch; gap: 10px; }
  .prayer-nav a { justify-content: center; text-align: center; }
  .prayer-nav .back-to-list { text-align: center; }
  .novena-day { padding: 20px; }
  .prayer-invocation { font-size: 18px; padding: 16px; }
  /* Índice (oracion-mando-directo) */
  .prayer-index { padding: 20px; }
  .prayer-index ol li a { font-size: 16px; }
  /* Header de cada oración */
  .prayer-entry-header { flex-wrap: wrap; gap: 10px; }
  .prayer-entry-num { font-size: 36px; width: 36px; }
  .prayer-entry-title { font-size: 20px; }
  .share-btn span { display: none; }
  .share-btn { padding: 7px 10px; }
  /* Back to top */
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
}
