/* Rezar con Escrivá · v1.0.0
   Basado en la estética minimalista de la página original facilitada.
   Tipografías del sistema: no se necesitan servicios ni fuentes externas. */
:root {
  color-scheme: light;
  --bg: #faf9f7;
  --bg-soft: #f4f1ec;
  --paper: #fffefa;
  --text: #282520;
  --text-soft: #68625b;
  --text-muted: #9c948b;
  --accent: #967e66;
  --accent-soft: #bdab96;
  --line: rgba(55, 44, 32, .15);
  --line-strong: rgba(55, 44, 32, .27);
  --shadow: 0 15px 45px rgba(73, 58, 35, .065);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191916;
  --bg-soft: #24231f;
  --paper: #201f1c;
  --text: #efebe5;
  --text-soft: #b8b0a6;
  --text-muted: #8d8479;
  --accent: #c7a783;
  --accent-soft: #8a7763;
  --line: rgba(239, 235, 229, .12);
  --line-strong: rgba(239, 235, 229, .28);
  --shadow: 0 15px 45px rgba(0, 0, 0, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #191916;
    --bg-soft: #24231f;
    --paper: #201f1c;
    --text: #efebe5;
    --text-soft: #b8b0a6;
    --text-muted: #8d8479;
    --accent: #c7a783;
    --accent-soft: #8a7763;
    --line: rgba(239, 235, 229, .12);
    --line-strong: rgba(239, 235, 229, .28);
    --shadow: 0 15px 45px rgba(0, 0, 0, .14);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(20px, 4vw, 54px);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  position: relative;
  width: 100%;
  max-width: 1090px;
  margin: auto;
}
.brand {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text-soft); }
.header-line {
  position: absolute;
  width: 40px;
  height: 1px;
  background: var(--accent-soft);
  bottom: 22px;
  left: calc(50% - 20px);
  opacity: .75;
}
.theme-toggle {
  position: absolute;
  top: 35px;
  right: 0;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: color .18s, background .18s, border-color .18s;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
.app { width: 100%; display: flex; justify-content: center; align-items: center; outline: none; }
.view { width: 100%; animation: appear .36s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1.8;
  font-weight: 600;
  text-transform: uppercase;
}
.welcome {
  max-width: 560px;
  padding: 45px 0 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top-eyebrow { margin-bottom: 21px; }
.welcome-title, .section-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.026em;
  color: var(--text);
}
.welcome-title { font-size: clamp(29px, 5.3vw, 40px); margin: 0 0 10px; line-height: 1.2; }
.welcome-intro, .section-intro {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 350;
  line-height: 1.7;
}
.welcome-intro { margin: 0 0 52px; }
.prayer-button {
  width: 202px;
  height: 202px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 0 0 7px var(--bg);
  color: var(--text-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.prayer-button:hover { transform: scale(1.045); border-color: var(--accent); box-shadow: 0 17px 40px rgba(73, 58, 35, .13); }
.prayer-button:active { transform: scale(.98); }
.cross-icon { width: 36px; height: 41px; position: relative; display: block; }
.cross-icon::before, .cross-icon::after { content: ''; display: block; position: absolute; background: var(--accent); border-radius: 2px; }
.cross-icon::before { top: 0; left: 16px; width: 3px; height: 41px; }
.cross-icon::after { top: 11px; left: 3px; width: 30px; height: 3px; }
.prayer-label {
  font-family: var(--serif);
  color: var(--text-soft);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
}
.welcome-footnote {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: .20em;
  margin: 51px 0 0;
}
.welcome-footnote span { padding: 0 7px; color: var(--accent); }
.books { max-width: 480px; padding: 26px 0 65px; }
.back-link {
  border: 0;
  padding: 7px 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  font-size: 12px;
  letter-spacing: .025em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .18s;
}
.back-link span { font-size: 17px; }
.back-link:hover { color: var(--text); }
.section-eyebrow { margin-top: 40px; }
.section-title { text-align: left; font-size: clamp(33px, 5vw, 42px); margin: 7px 0 6px; line-height: 1.3; }
.section-intro { margin: 0 0 32px; }
.book-grid { display: flex; flex-direction: column; gap: 12px; }
.book-btn {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  width: 100%;
  padding: 23px 19px;
  display: flex;
  align-items: center;
  gap: 21px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(73, 58, 35, .018);
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.book-btn:hover { transform: translateY(-2px); border-color: var(--accent-soft); background: var(--bg-soft); box-shadow: var(--shadow); }
.book-btn:active { transform: translateY(0); }
.book-roman { font: italic 27px/1 var(--serif); min-width: 41px; text-align: center; color: var(--accent); }
.book-info { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.book-name { color: var(--text); font: 500 21px/1.1 var(--serif); }
.book-range { color: var(--text-muted); font-size: 11px; letter-spacing: .08em; }
.book-arrow { color: var(--accent); font-size: 19px; font-weight: 300; }
.books-caption { text-align: center; color: var(--text-muted); font: italic 14px var(--serif); margin: 32px 0 0; }
.reading { max-width: 740px; align-self: start; padding: 24px 0 50px; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.reader-nav-mark { color: var(--accent-soft); font-size: 19px; }
.reader-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reader-head .eyebrow { margin-bottom: 22px; }
.result-circle {
  height: 113px; width: 113px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 6px var(--bg), 0 6px 25px rgba(75, 60, 35, .05);
}
.result-num { font: 400 42px/1 var(--serif); color: var(--text); letter-spacing: -.035em; }
.result-number-label { color: var(--text-muted); margin-top: 9px; font-size: 9px; letter-spacing: .16em; }
.reading-title {
  font: 400 clamp(26px, 4vw, 35px)/1.2 var(--serif);
  letter-spacing: -.016em;
  margin: 25px 0 6px;
}
.reading-subtitle { font: italic 15px/1.3 var(--serif); color: var(--text-muted); margin: 0; }
.fine-divider { max-width: 270px; display: flex; align-items: center; gap: 16px; margin: 33px auto 37px; color: var(--accent-soft); font-size: 13px; }
.fine-divider::before, .fine-divider::after { content: ''; display: block; flex: 1; height: 1px; background: var(--line); }
.reading-text {
  max-width: 655px;
  padding: 0 16px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .002em;
  text-align: left;
  overflow-wrap: anywhere;
}
.reading-text p { margin: 0 0 1.2em; white-space: pre-line; }
.reading-text p:last-child { margin-bottom: 0; }
.reading-signature { color: var(--text-muted); font-size: 11px; letter-spacing: .08em; text-align: center; margin: 39px 0 0; }
.reading-actions {
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 34px auto 0;
}
.action-primary, .action-secondary {
  width: 100%; min-height: 54px;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px; letter-spacing: .025em;
  display: inline-flex; justify-content: center; align-items: center; gap: 11px;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.action-primary { color: var(--bg); background: var(--text); border: 1px solid var(--text); }
.action-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.action-primary span { font-size: 19px; line-height: 1; }
.action-secondary { color: var(--text-soft); background: transparent; border: 1px solid var(--line-strong); }
.action-secondary:hover { background: var(--bg-soft); border-color: var(--accent-soft); color: var(--text); }
.quiet-caption { text-align: center; color: var(--text-muted); font: italic 14px/1.6 var(--serif); margin-top: 25px; }
.status-view { max-width: 490px; text-align: center; padding: 80px 0; }
.status-view .section-title { text-align: center; }
.status-view .section-intro { margin-bottom: 28px; }
.status-symbol { font: 52px var(--serif); color: var(--accent); }
.status-view .action-secondary { max-width: 245px; margin: 0 auto; }
.site-footer {
  padding: 15px 0 27px;
  text-align: center;
  color: var(--text-muted);
}
.site-footer .footer-rule { display: block; background: var(--line); width: 26px; height: 1px; margin: 0 auto 18px; }
.site-footer p { margin: 0; font-size: 9px; line-height: 1.7; letter-spacing: .16em; }
.site-footer .footer-subtle { letter-spacing: .025em; font-size: 10px; margin-top: 4px; }
@media (max-width: 620px) {
  .layout { padding: 0 21px; }
  .site-header { min-height: 82px; }
  .brand { font-size: 9px; letter-spacing: .16em; }
  .theme-toggle { top: 20px; right: -8px; }
  .header-line { bottom: 12px; }
  .welcome { padding-top: 43px; }
  .welcome-intro { margin-bottom: 40px; max-width: 260px; }
  .prayer-button { width: 186px; height: 186px; }
  .books { padding: 24px 0 45px; }
  .section-eyebrow { margin-top: 33px; }
  .book-btn { padding: 21px 14px; gap: 15px; }
  .reading { padding-top: 16px; }
  .reader-nav { margin-bottom: 21px; }
  .reading-text { padding: 0 3px; font-size: 20px; line-height: 1.73; }
  .reading-head .eyebrow { margin-bottom: 18px; }
  .fine-divider { margin-top: 29px; margin-bottom: 30px; }
  .reading-actions { margin-top: 30px; }
  .site-footer { padding-bottom: 20px; }
}
@media (max-width: 350px) { .brand { font-size: 8px; } .welcome-title { font-size: 27px; } .reading-text { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
