:root {
  --ink: #163848;
  --muted: #4f7382;
  --paper: #eaf5f9;
  --card: #f6fcfe;
  --line: #b8d7e4;
  --wine: #2a9fc8;
  --wine-dark: #1a86b0;
  --gold: #7ed6ef;
  --alert: #8a2b2b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, .cita, .oracion, .versos {
  font-family: "Libre Baskerville", Georgia, serif;
}
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 0 0 10px; }
h3 { font-size: 20px; margin: 18px 0 8px; }
a { color: var(--wine); }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 22px;
  background: #5ec8e8;
  color: #0e4f66;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.top a { color: #0e4f66; text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  margin-right: 8px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  filter: hue-rotate(195deg) saturate(1.05);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: .82;
}
.top nav a:hover { opacity: 1; background: rgba(255,255,255,.35); }
.top nav a.on {
  opacity: 1;
  font-weight: 600;
  background: rgba(255,255,255,.55);
}
.who { opacity: .85; margin-left: auto; margin-right: 8px; font-size: 15px; }
.salir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: .82;
}
.salir:hover { opacity: 1; background: rgba(255,255,255,.35); }
.top nav .ico,
.top .salir .ico,
.btn .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tabla { width: 100%; border-collapse: collapse; font-size: 18px; background: var(--card); }
.tabla th, .tabla td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.disc-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.disc-hoja {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 36px;
}
.login-logo { width: 72px; height: 72px; margin: 0 0 16px; }
.login-logo-wrap {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 0 22px;
  border-radius: 28px;
  overflow: hidden;
  background: #5ec8e8;
  box-shadow: 0 18px 40px rgba(26, 134, 176, .28);
}
.login-logo-biblia {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  transform: none;
  clip-path: inset(9px round 20px);
  filter: hue-rotate(195deg) saturate(1.05);
}
.login-cita {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  margin: 8px 0 6px;
  max-width: 440px;
}
.login-cita-ref {
  color: #0a3d52;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 18px;
}
.login-demo { color: var(--muted); font-size: 15px; margin-top: 16px; }
.page.pdf-ver { max-width: 1100px; }
.pdf-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
}
.pdf-visor-caja {
  background: #cfe8f2;
  border: 1px solid var(--line);
  padding: 18px 12px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}
.pdf-pagina {
  display: block;
  margin: 0 auto 18px;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 34, 43, 0.18);
}
.pdf-visor {
  display: block;
  width: 100%;
  height: calc(100vh - 230px);
  min-height: 620px;
  border: 0;
  background: #fff;
}
@media print {
  .top, .pdf-acciones, .lead, h1, .pie, .aviso { display: none !important; }
  .page { max-width: none; padding: 0; }
  .pdf-visor-caja {
    background: #fff;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .pdf-pagina {
    box-shadow: none;
    margin: 0 0 12px;
    page-break-after: always;
  }
}
.page { max-width: 860px; margin: 0 auto; padding: 28px 20px 56px; }
.kicker {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 6px;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.lead { color: var(--muted); font-size: 20px; margin: 0 0 22px; }
.head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.fecha-form label, .busca label {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="date"], input[type="search"] {
  font: inherit;
  font-size: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.busca-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.busca-row input { flex: 1; min-width: 220px; }
.busca-row .btn {
  min-height: 48px;
  padding: 10px 16px;
}
.chips-rotulo {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--wine);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.card .chips { margin: 0; }
.chips a {
  background: rgba(126, 214, 239, .28);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--wine-dark);
  font-size: 16px;
  font-weight: 600;
}
.chips a:hover { background: rgba(126, 214, 239, .48); }
.aviso {
  background: #e5f4fa;
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  margin: 0 0 22px;
  font-size: 18px;
}
.aviso-alerta {
  background: #e5f4fa;
  border-left-color: var(--wine);
}
.alert {
  background: #fdeeee;
  border-left: 4px solid var(--alert);
  padding: 14px 16px;
  margin: 12px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 16px;
}
.card-gospel { border-color: var(--gold); box-shadow: 0 8px 24px rgba(26, 134, 176, .08); }
.card-catecismo { border-color: var(--wine); }
.cita { color: var(--wine); font-size: 18px; margin: 0 0 12px; }
.versos {
  font-size: 20px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 0;
}
.verso .versos { font-size: 20px; white-space: normal; }
.acciones { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; min-width: 0; }
.btn,
.btn-ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(126, 214, 239, .35);
  color: var(--wine-dark);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
  max-width: 100%;
}
.btn:hover,
.btn:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(126, 214, 239, .52);
  color: var(--wine-dark);
  outline: none;
}
.btn:disabled { opacity: .6; cursor: wait; }
.login-box .btn { margin-top: 18px; }
.medita { margin-top: 8px; }
.lectio-hoja {
  margin-top: 28px;
  padding: 22px 20px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(14, 79, 102, .12);
}
.lectio-hoja > h2 { margin-top: 0; }
.lectio-paso {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-left: 4px solid var(--wine);
  background: #f6fcfe;
  border-radius: 0 10px 10px 0;
}
.lectio-paso h3 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}
.lectio-paso h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5ec8e8;
  color: #0e4f66;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.lectio-preg {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}
.videos-sacerdotes {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.videos-sacerdotes h3 { margin-top: 0; }
.videos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.chip-video {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: rgba(126, 214, 239, .28);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--wine-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.nota-ia { color: var(--muted); font-size: 17px; font-family: "Source Sans 3", system-ui, sans-serif; }
.oracion { font-style: italic; font-size: 20px; }
.pie {
  color: var(--muted);
  font-size: 15px;
  margin-top: 36px;
  line-height: 1.45;
}
.lbl { display: block; margin: 16px 0 8px; font-size: 18px; font-weight: 600; }
.input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
}
.hint { color: var(--muted); font-size: 18px; margin-top: 18px; }
.hint a { color: var(--wine); }
.login-body { background: #5ec8e8; min-height: 100vh; }
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
}
.login-brand {
  padding: 48px 40px;
  color: #0e4f66;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-kicker {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 15px;
  color: #0a3d52;
  margin: 0 0 12px;
}
.login-logo { width: 72px; height: 72px; margin: 0 0 16px; }
.login-brand h1 { font-size: 48px; margin: 0 0 12px; color: #0a3d52; }
.login-lead { font-size: 22px; line-height: 1.45; max-width: 420px; }
.login-note { opacity: .8; font-size: 17px; max-width: 420px; }
.login-panel {
  background-color: #eaf5f9;
  background-image:
    linear-gradient(rgba(26, 134, 176, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 134, 176, .16) 1px, transparent 1px),
    linear-gradient(rgba(94, 200, 232, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 200, 232, .22) 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 28px 28px, 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .88);
  border: 0;
  border-radius: 16px;
  padding: 28px 26px 32px;
  box-shadow:
    0 8px 20px rgba(14, 79, 102, .14),
    0 22px 56px rgba(14, 79, 102, .22),
    0 0 72px 14px rgba(14, 79, 102, .12);
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .versos { font-size: 18px; }
  .who { width: 100%; margin: 8px 0 0; }
}
