/* ============================================================
   Recursos Católicos · capa personal
   Favoritos, historial, notas, modo oración, audio y "Hoy".
   ============================================================ */

:root {
  --rc-primary: #50a1b3;
  --rc-primary-dark: #3d8ba6;
  --rc-pink: #d16464;
  --rc-pink-soft: #fce4e4;
  --rc-teal-soft: #eef7f9;
  --rc-border: #dcebee;
  --rc-text: #3f4a4d;
  --rc-muted: #7b8b8f;
  --rc-white: #ffffff;
  --rc-shadow: 0 12px 30px rgba(80, 161, 179, 0.14);
  --rc-radius: 18px;
}

/* ---------- Botones y controles compartidos ---------- */

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid var(--rc-border);
  border-radius: 12px;
  background: #fff;
  color: #557078;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rc-btn:hover {
  border-color: var(--rc-primary);
  color: var(--rc-primary-dark);
  background: #fbfeff;
  box-shadow: 0 6px 16px rgba(80, 161, 179, 0.12);
  transform: translateY(-1px);
}

.rc-btn:focus-visible,
.rc-floating button:focus-visible,
.rc-floating a:focus-visible,
.rc-space-tab:focus-visible {
  outline: 3px solid rgba(126, 201, 222, 0.7);
  outline-offset: 2px;
}

.rc-btn.is-active {
  border-color: #e8b4b4;
  background: var(--rc-pink-soft);
  color: #a84e4e;
}

.rc-btn.rc-btn-primary {
  border-color: var(--rc-primary);
  background: var(--rc-primary);
  color: #fff;
}

.rc-btn.rc-btn-primary:hover {
  background: var(--rc-primary-dark);
  color: #fff;
}

.rc-btn.rc-btn-danger {
  border-color: #efcaca;
  background: #fff7f7;
  color: #b34c4c;
}

.rc-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.rc-icon-only {
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
}

/* ---------- Acciones dentro de las tarjetas de frases ---------- */

.rc-quote-actions {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
}

.rc-quote-actions .copy-btn {
  position: static;
  opacity: 1;
}

.quote-card:hover .rc-quote-actions,
.quote-card:focus-within .rc-quote-actions {
  opacity: 1;
}

@media (hover: none) {
  .rc-quote-actions {
    opacity: 1;
  }
}

.rc-quote-actions .rc-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 9px;
  background: #fbfdfd;
  color: #8ba0a5;
}

.rc-quote-actions .rc-btn:hover,
.rc-quote-actions .rc-btn.is-active {
  color: var(--rc-pink);
  border-color: #e8b4b4;
  background: #fff7f7;
}

/* ---------- Barra flotante ---------- */

.rc-floating {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  left: auto;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border: 1px solid rgba(220, 235, 238, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(44, 82, 92, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rc-floating button,
.rc-floating a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.62rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #557078;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.rc-floating button:hover,
.rc-floating a:hover {
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

.rc-floating .rc-floating-main {
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

.rc-floating svg {
  width: 16px;
  height: 16px;
}

.rc-floating .rc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #fff;
  color: var(--rc-primary-dark);
  font-size: 0.68rem;
  box-shadow: inset 0 0 0 1px rgba(126, 201, 222, 0.35);
}

.rc-floating.rc-floating-left {
  left: max(0.75rem, env(safe-area-inset-left));
  right: auto;
}

/* ---------- Tamaño de texto flotante ---------- */

.font-size-widget,
.font-size-widget-container {
  display: none !important;
}

.rc-font-controls {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 69;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem;
  border: 1px solid rgba(220, 235, 238, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(44, 82, 92, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rc-font-label {
  padding: 0 0.38rem;
  color: #8ba0a5;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rc-font-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #557078;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.rc-font-btn:hover,
.rc-font-btn.is-active {
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

.rc-anecdote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 1rem;
}

.rc-palabra-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(62, 164, 189, 0.16);
}

.rc-palabra-actions .rc-btn,
.rc-anecdote-actions .rc-btn,
.rc-novena-actions .rc-btn {
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.rc-palabra-actions .rc-icon-only,
.rc-anecdote-actions .rc-icon-only {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
}

.rc-novena-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.day-button.is-prayed {
  position: relative;
}

.day-button.is-prayed:not(.active) {
  border-color: #8fcbb3;
  background: #f7fdf9;
  color: #2f8f62;
}

.day-button.is-prayed:not(.active) .day-date {
  color: #2f8f62;
  opacity: 0.9;
}

.day-button.is-prayed::after {
  content: "✓";
  position: absolute;
  top: -6px;
  left: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #2f8f62;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(47, 143, 98, 0.35);
}

.rc-prayer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
  margin: 2rem auto 0;
}

.rc-prayer-bottom .rc-btn {
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.78rem;
}

.rc-prayer-bottom .rc-btn.is-active {
  border-color: var(--rc-primary);
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

/* Escalado de texto en novenas */
#novenaContentContainer p,
#novenaContentContainer li {
  font-size: calc(0.95rem * var(--content-scale, 1));
  line-height: 1.7;
}

body.rc-has-floating {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)) !important;
}

/* ---------- Modal de notas ---------- */

.rc-note-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(33, 54, 60, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rc-note-overlay[hidden] {
  display: none !important;
}

.rc-note-dialog {
  width: min(560px, 100%);
  max-height: min(82vh, 620px);
  overflow: auto;
  border: 1px solid #dcebee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 58, 66, 0.3);
  padding: 1.2rem 1.2rem 1rem;
}

.rc-note-dialog h2 {
  margin: 0 0 0.2rem;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.2rem;
}

.rc-note-dialog .rc-note-context {
  margin: 0 0 0.8rem;
  color: var(--rc-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.rc-note-dialog textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 0.8rem;
  border: 1.5px solid #cfe3e8;
  border-radius: 14px;
  background: #fbfeff;
  color: var(--rc-text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
}

.rc-note-dialog textarea:focus {
  border-color: var(--rc-primary);
  box-shadow: 0 0 0 4px rgba(126, 201, 222, 0.18);
}

.rc-note-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.rc-note-dialog .rc-note-delete {
  margin-right: auto;
}

/* ---------- Toast ---------- */

.rc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 200;
  max-width: min(92vw, 440px);
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(126, 201, 222, 0.55);
  border-radius: 999px;
  background: #fff;
  color: #3f6068;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 30px rgba(44, 82, 92, 0.2);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Controles de audio retirados */
.rc-audio-bar,
.rc-reading-exit {
  display: none !important;
}

/* ---------- Contenido relacionado ---------- */

.rc-related {
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid #e6eff1;
}

.rc-related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.rc-related-head h2 {
  margin: 0;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.35rem;
}

.rc-related-head p {
  margin: 0;
  color: var(--rc-muted);
  font-size: 0.82rem;
}

.rc-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 700px) {
  .rc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rc-related-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e3eef0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(80, 161, 179, 0.05);
}

.rc-related-card h3 {
  margin: 0 0 0.55rem;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 0.98rem;
}

.rc-related-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-related-card li a,
.rc-related-card .rc-related-empty {
  color: #5b777e;
  font-size: 0.86rem;
  line-height: 1.45;
  text-decoration: none;
}

.rc-related-card li a:hover {
  color: var(--rc-pink);
  text-decoration: underline;
}

.rc-related-card .rc-related-search {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--rc-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.rc-related-card .rc-related-search:hover {
  text-decoration: underline;
}

/* ---------- Bloque "Hoy" del inicio ---------- */

.rc-hoy {
  width: 100%;
  max-width: 920px;
  margin: 2.6rem auto 0;
  padding: 1.15rem;
  border: 1px solid rgba(220, 235, 238, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(80, 161, 179, 0.09);
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rc-hoy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.rc-hoy-eyebrow {
  margin: 0 0 0.1rem;
  color: var(--rc-pink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rc-hoy h2 {
  margin: 0;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.1;
}

.rc-hoy-date {
  margin: 0.2rem 0 0;
  color: var(--rc-muted);
  font-size: 0.82rem;
}

.rc-hoy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #dcebee;
  border-radius: 999px;
  background: #fff;
  color: var(--rc-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.rc-hoy-link:hover {
  border-color: var(--rc-primary);
}

.rc-hoy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .rc-hoy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .rc-hoy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rc-hoy-card {
  display: block;
  min-width: 0;
  padding: 0.9rem 0.95rem;
  border: 1px solid #e3eef0;
  border-radius: 16px;
  background: #fff;
  color: var(--rc-text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.rc-hoy-card:hover {
  border-color: #b9dce3;
  box-shadow: 0 10px 24px rgba(80, 161, 179, 0.12);
  transform: translateY(-2px);
}

.rc-hoy-card .rc-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--rc-pink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rc-hoy-card h3 {
  margin: 0 0 0.3rem;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 0.98rem;
  line-height: 1.25;
}

.rc-hoy-card p {
  margin: 0;
  color: #6f8186;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rc-hoy-card .rc-hoy-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.55rem;
  color: var(--rc-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.rc-hoy-novena-open {
  display: inline-flex;
  margin-top: 0.6rem;
  text-decoration: none;
}

.rc-hoy-card.is-played {
  border-color: #b7e0c9;
  background: #fbfefc;
}

.rc-hoy-card.is-in-progress {
  border-color: #efd9b1;
  background: #fffdf8;
}

.rc-hoy-game-status {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #f4f7f8;
  color: #9a7e7e;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.rc-hoy-game-status.is-done {
  background: #e8f7ef;
  color: #2f8f62;
}

.rc-hoy-game-status.is-progress {
  background: #fff5e3;
  color: #9a6a2f;
}

.rc-hoy-game-card .rc-hoy-cta {
  margin-top: 0.45rem;
}

.rc-hoy-progress {
  margin-top: 0.55rem;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f5;
}

.rc-hoy-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ec9de, #50a1b3);
}

.rc-hoy-skeleton {
  min-height: 5.4rem;
  background: linear-gradient(90deg, #f7fbfc 25%, #eef7f9 37%, #f7fbfc 63%);
  background-size: 400% 100%;
  animation: rc-shimmer 1.4s ease infinite;
}

@keyframes rc-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-hoy-skeleton { animation: none; }
  .rc-btn, .rc-hoy-card, .rc-quote-actions { transition: none; }
}

/* ---------- Accesos discretos del inicio ---------- */

.rc-home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 24rem;
  margin-top: 1rem;
}

.rc-home-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.46rem 0.82rem;
  border: 1px solid #dcebee;
  border-radius: 999px;
  background: #fff;
  color: var(--rc-primary-dark);
  font-family: "Quicksand", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(80, 161, 179, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rc-home-shortcut:hover {
  border-color: #b9dce3;
  background: #fbfeff;
  color: var(--rc-primary-dark);
  box-shadow: 0 7px 16px rgba(80, 161, 179, 0.12);
  transform: translateY(-1px);
}

.rc-home-shortcut-icon {
  color: var(--rc-pink);
  font-size: 0.95rem;
  line-height: 1;
}

/* ---------- Página HOY ---------- */

.rc-hoy-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
}

.rc-hoy-page-head {
  padding: 1.1rem 0 0.4rem;
}

.rc-hoy-page-head h1 {
  margin: 0;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.rc-hoy-page-head p {
  max-width: 64ch;
  margin: 0.35rem 0 0;
  color: var(--rc-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Resumen semanal ---------- */

.rc-week {
  margin: 1rem 0 0.35rem;
}

.rc-week-card {
  padding: 0.9rem 1rem;
  border: 1px solid #e3eef0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcfd 100%);
  box-shadow: 0 8px 22px rgba(80, 161, 179, 0.06);
}

.rc-week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.rc-week-head h2 {
  margin: 0;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.rc-week-title {
  min-width: 0;
}

.rc-week-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.rc-week-range {
  color: var(--rc-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.rc-week-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid #e3eef0;
  border-radius: 50%;
  background: #fff;
  color: #557078;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rc-week-arrow:hover:not(:disabled) {
  border-color: var(--rc-primary);
  background: #fbfeff;
  color: var(--rc-primary-dark);
}

.rc-week-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.rc-week-today {
  min-height: 1.8rem;
  padding: 0 0.55rem;
  border: 1px solid #e3eef0;
  border-radius: 999px;
  background: #fff;
  color: #5b777e;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.rc-week-today:hover {
  border-color: var(--rc-primary);
  background: #fbfeff;
  color: var(--rc-primary-dark);
}

.rc-week-arrow:focus-visible,
.rc-week-today:focus-visible {
  outline: 3px solid rgba(126, 201, 222, 0.7);
  outline-offset: 2px;
}

.rc-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.rc-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.35rem 0.15rem;
  border: 1px solid #edf4f5;
  border-radius: 12px;
  background: #fff;
  color: #8a979a;
}

.rc-week-day.is-done {
  border-color: #b7e0c9;
  background: #f7fdf9;
  color: #2f8f62;
}

.rc-week-day.is-today {
  outline: 2px solid rgba(126, 201, 222, 0.55);
  outline-offset: 1px;
}

.rc-week-day.is-future {
  opacity: 0.55;
}

.rc-week-dow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rc-week-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px dashed #d5e5e8;
  border-radius: 50%;
  background: #fbfeff;
  color: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.rc-week-day.is-done .rc-week-dot {
  border-style: solid;
  border-color: #8fcbb3;
  background: #e8f7ef;
  color: #2f8f62;
}

.rc-week-num {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.rc-week-summary {
  margin: 0.65rem 0 0;
  color: #5a7076;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rc-week-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.rc-week-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #e3eef0;
  border-radius: 999px;
  background: #fff;
  color: #6f8186;
  font-size: 0.68rem;
}

.rc-week-chip strong {
  color: var(--rc-primary-dark);
}

.rc-hoy-config {
  margin: 1.1rem 0 1.2rem;
  padding: 0.9rem;
  border: 1px solid #e3eef0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.rc-hoy-config-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.rc-hoy-config-head h2 {
  margin: 0;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
}

.rc-hoy-config-head p {
  margin: 0.2rem 0 0;
  color: var(--rc-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rc-hoy-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .rc-hoy-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rc-hoy-config-group {
  padding: 0.65rem 0.7rem;
  border: 1px solid #edf4f5;
  border-radius: 14px;
  background: #fbfeff;
}

.rc-hoy-config-group h3 {
  margin: 0 0 0.45rem;
  color: var(--rc-pink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rc-hoy-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  padding: 0.22rem 0;
  color: #557078;
  font-size: 0.78rem;
  line-height: 1.35;
  cursor: pointer;
}

.rc-hoy-choice input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0.08rem 0 0;
  accent-color: var(--rc-primary);
  flex: 0 0 auto;
}

.rc-hoy-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.rc-hoy-config-actions .rc-btn {
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
}

.rc-hoy-content {
  margin-top: 0.2rem;
}

.rc-hoy-empty {
  padding: 1.5rem 1rem;
  border: 1px dashed #dcebee;
  border-radius: 18px;
  background: #fbfeff;
  color: var(--rc-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.rc-hoy-card h3 a {
  color: inherit;
  text-decoration: none;
}

.rc-hoy-card h3 a:hover {
  color: var(--rc-pink);
}

/* ---------- Seguimiento de oraciones ---------- */

.rc-prayer-panel {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e3eef0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(80, 161, 179, 0.06);
}

.rc-prayer-panel-head {
  margin-bottom: 0.7rem;
}

.rc-prayer-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--rc-pink);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rc-prayer-panel-head h2 {
  margin: 0;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
}

.rc-prayer-panel-head p {
  margin: 0.25rem 0 0;
  color: var(--rc-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rc-prayer-tracker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.rc-prayer-status {
  color: #8a6d6d;
  font-size: 0.82rem;
  font-weight: 700;
}

.rc-prayer-status.is-done {
  color: #23734e;
}

.rc-prayer-count {
  color: #9aa8aa;
  font-size: 0.7rem;
}

.rc-prayer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.55rem;
}

.rc-prayer-actions .rc-btn {
  min-height: 2rem;
  padding: 0.35rem 0.62rem;
  font-size: 0.74rem;
}

.rc-prayer-actions .rc-btn.is-done {
  border-color: #2f8f62;
  background: #dff3e9;
  color: #23734e;
}

.rc-hoy-card .rc-prayer-tracker {
  margin-top: 0.15rem;
}

.rc-hoy-card .rc-prayer-status {
  font-size: 0.76rem;
}

.rc-hoy-card .rc-prayer-actions {
  margin-top: 0.6rem;
}

/* ---------- Calendario de oraciones ---------- */

body.rc-prayer-modal-open {
  overflow: hidden;
}

.rc-prayer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(38, 50, 56, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.rc-prayer-modal-overlay[hidden] {
  display: none !important;
}

.rc-prayer-modal {
  position: relative;
  width: min(100%, 430px);
  max-height: 90vh;
  overflow: auto;
  padding: 1.15rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(30, 60, 70, 0.35);
}

.rc-prayer-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f7f8;
  color: #6b7f83;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rc-prayer-modal-close:hover {
  background: #fce4e4;
  color: var(--rc-pink);
}

.rc-prayer-modal-head {
  padding-right: 2rem;
}

.rc-prayer-modal-head h2 {
  margin: 0;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.3rem;
}

.rc-prayer-modal-head p {
  margin: 0.25rem 0 0;
  color: var(--rc-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.rc-prayer-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1rem 0 0.6rem;
}

.rc-prayer-cal-nav strong {
  color: #3e6872;
  font-size: 0.9rem;
  text-align: center;
}

.rc-prayer-cal-nav .rc-btn {
  min-height: 1.9rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}

.rc-prayer-cal-nav .rc-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.rc-prayer-cal-weekdays,
.rc-prayer-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.rc-prayer-cal-weekdays {
  margin-bottom: 0.3rem;
}

.rc-prayer-cal-weekdays span {
  color: #9aa8aa;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.rc-prayer-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f7fbfc;
  color: #557078;
  font-size: 0.78rem;
  font-weight: 700;
}

.rc-prayer-day.is-empty {
  background: transparent;
}

.rc-prayer-day.is-done {
  border-color: #2f8f62;
  background: #2f8f62;
  color: #fff;
  box-shadow: 0 2px 6px rgba(47, 143, 98, 0.22);
}

.rc-prayer-day.is-today {
  box-shadow: inset 0 0 0 2px var(--rc-primary);
}

.rc-prayer-day.is-done.is-today {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #2f8f62;
}

.rc-prayer-day.is-future {
  background: #fbfdfd;
  color: #c3ced0;
}

.rc-prayer-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
  color: #7b8b8f;
  font-size: 0.7rem;
}

.rc-prayer-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rc-prayer-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
}

.rc-prayer-dot--done {
  border: 1px solid #2f8f62;
  background: #2f8f62;
}

.rc-prayer-dot--today {
  box-shadow: inset 0 0 0 2px var(--rc-primary);
  background: #f7fbfc;
}

.rc-prayer-cal-count {
  margin: 0.55rem 0 0;
  color: #7b8b8f;
  font-size: 0.72rem;
}

@media (max-width: 520px) {
  .rc-prayer-panel {
    padding: 0.8rem;
  }

  .rc-prayer-modal {
    padding: 1rem;
    border-radius: 20px;
  }
}

/* ---------- Mi espacio ---------- */

.rc-space {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
}

.rc-space-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.rc-space-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--rc-primary);
  text-decoration: none;
}

.rc-space-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.rc-space-brand span {
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.rc-space h1 {
  margin: 0;
  color: var(--rc-primary);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.rc-space-sub {
  margin: 0.35rem 0 0;
  color: var(--rc-muted);
  font-size: 0.95rem;
}

.rc-space-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
}

@media (min-width: 620px) {
  .rc-space-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rc-space-stat {
  padding: 0.8rem 0.9rem;
  border: 1px solid #e3eef0;
  border-radius: 15px;
  background: #fff;
}

.rc-space-stat strong {
  display: block;
  color: var(--rc-primary-dark);
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.rc-space-stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--rc-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rc-space-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.rc-space-tab {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e3eef0;
  border-radius: 999px;
  background: #fff;
  color: #5b777e;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.rc-space-tab.is-active {
  border-color: var(--rc-primary);
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

.rc-space-panel[hidden] {
  display: none !important;
}

.rc-space-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}

.rc-space-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.68rem;
  border: 1px solid #e3eef0;
  border-radius: 999px;
  background: #fff;
  color: #5b777e;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rc-space-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #f2f8f9;
  color: #6b8388;
  font-size: 0.66rem;
}

.rc-space-filter:hover {
  border-color: var(--rc-primary);
  color: var(--rc-primary-dark);
}

.rc-space-filter.is-active {
  border-color: var(--rc-primary);
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
}

.rc-space-filter.is-active span {
  background: #fff;
  color: var(--rc-primary-dark);
}

.rc-space-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rc-space-list {
  display: grid;
  gap: 0.65rem;
}

.rc-space-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e3eef0;
  border-radius: 15px;
  background: #fff;
}

.rc-space-item-main {
  flex: 1 1 220px;
  min-width: 0;
}

.rc-space-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.45rem;
  margin-bottom: 0.28rem;
  border-radius: 999px;
  background: var(--rc-teal-soft);
  color: var(--rc-primary-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rc-space-item h3 {
  margin: 0 0 0.18rem;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}

.rc-space-item h3 a {
  color: inherit;
  text-decoration: none;
}

.rc-space-item h3 a:hover {
  color: var(--rc-pink);
  text-decoration: underline;
}

.rc-space-item p {
  margin: 0;
  color: #6f8186;
  font-size: 0.82rem;
  line-height: 1.45;
}

.rc-space-item .rc-space-text {
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #e8b4b4;
  border-radius: 0 10px 10px 0;
  background: #fffaf9;
  color: #4a5c61;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.rc-space-item-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: auto;
}

.rc-space-item-actions .rc-btn {
  min-height: 1.9rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}

.rc-space-empty {
  padding: 1.4rem 1rem;
  border: 1px dashed #dcebee;
  border-radius: 15px;
  background: #fbfeff;
  color: #7b8b8f;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.rc-space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 1rem;
}

.rc-space-progress {
  margin: 0.6rem 0 1rem;
}

.rc-space-progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: #557078;
  font-size: 0.82rem;
  font-weight: 700;
}

.rc-space-progress-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f5;
}

.rc-space-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ec9de, #50a1b3);
}

.rc-space-months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .rc-space-months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rc-space-month {
  padding: 0.8rem;
  border: 1px solid #e3eef0;
  border-radius: 15px;
  background: #fff;
}

.rc-space-month h3 {
  margin: 0 0 0.5rem;
  color: #3e6872;
  font-family: "Comfortaa", cursive, sans-serif;
  font-size: 0.9rem;
}

.rc-space-month ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-space-month li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #6f8186;
  font-size: 0.78rem;
}

.rc-space-month li .rc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid #dcebee;
  border-radius: 50%;
  color: transparent;
  font-size: 0.65rem;
  flex: 0 0 auto;
}

.rc-space-month li.is-done .rc-check {
  border-color: #8fcbb3;
  background: #e8f7ef;
  color: #2f8f62;
}

.rc-space-month li.is-pending {
  color: #a7b3b5;
  font-style: italic;
}

.rc-space-footer {
  margin-top: 1.5rem;
  color: #8a979a;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 520px) {
  .rc-floating {
    right: max(0.55rem, env(safe-area-inset-right));
    left: auto;
    transform: none;
    bottom: max(0.55rem, env(safe-area-inset-bottom));
  }

  .rc-floating.rc-floating-left {
    left: max(0.55rem, env(safe-area-inset-left));
    right: auto;
  }

  .rc-floating button span,
  .rc-floating a span {
    display: none;
  }

  .rc-floating button,
  .rc-floating a {
    width: 2.25rem;
    padding: 0;
  }

  .rc-font-controls {
    right: max(0.55rem, env(safe-area-inset-right));
    bottom: max(0.55rem, env(safe-area-inset-bottom));
    gap: 0.1rem;
    padding: 0.22rem;
  }

  .rc-font-label {
    display: none;
  }

  .rc-font-btn {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.3rem;
    font-size: 0.7rem;
  }

  .rc-audio-bar {
    right: 50%;
    transform: translateX(50%);
    bottom: 4.1rem;
  }

  .rc-hoy {
    padding: 0.9rem;
    border-radius: 18px;
  }
}

@media print {
  .rc-floating,
  .rc-font-controls,
  .rc-prayer-bottom,
  .rc-audio-bar,
  .rc-note-overlay,
  .rc-toast,
  .rc-related,
  .rc-hoy,
  .rc-hoy-config,
  .rc-prayer-panel,
  .rc-prayer-modal-overlay {
    display: none !important;
  }
}

/* ============================================================
   Modo oscuro de Oraciones
   Se activa con html[data-rc-theme="dark"] y afecta solo a las
   páginas que cargan esta capa (Rosario, Palabra, Meditaciones,
   Consagraciones y Novenas).
   ============================================================ */

html[data-rc-theme="dark"] {
  color-scheme: dark;
  background-color: #000 !important;
  --rc-white: #121212;
  --rc-text: #e7e7e7;
  --rc-muted: #9aa6a9;
  --rc-border: #2b3538;
  --rc-teal-soft: #102025;
  --rc-pink-soft: #2e1d1d;

  /* Paleta de las meditaciones */
  --med-bg-top: #000000;
  --med-bg-bottom: #000000;
  --med-text: #e8e4dd;
  --med-text-soft: #b9b0a6;
  --med-border: rgba(255, 255, 255, 0.16);
  --med-dash: rgba(255, 255, 255, 0.2);
  --med-tint-gold: #1e1a12;
  --med-tint-pray: #201b13;
  --med-tint-soft: #191611;
  --med-card: #121212;
  --med-shadow: rgba(0, 0, 0, 0.6);
  --med-primary: #e8c98c;
  --med-primary-light: #d3a44c;
  --med-accent: #e0a3b4;

  /* Paleta compartida de novenas y consagraciones */
  --color-card-bg: #121212;
  --color-text: #e6e6e6;
  --color-sky-soft: #141414;
  --color-gold-light: #1e1a10;
  --color-rose-soft: #2a1b20;
  --color-sky-main: #8fdcef;
  --color-sky-deep: #bfe6ef;
  --color-emerald-main: #8fd6ae;
  --color-emerald-deep: #b8ebc9;
  --color-amber-soft: #221d0e;
  --color-amber-accent: #e8c98c;

  /* Paleta de la Novena del voluntario */
  --azul: #5aa9dd;
  --azul-oscuro: #b9dcf5;
  --azul-profundo: #d7ecff;
  --azul-claro: #101b22;
  --azul-borde: #2a3f4c;
  --oro: #e5c25a;
  --oro-claro: #221d0e;
  --oro-borde: #4a3f1a;
  --blanco: #121212;
  --texto: #e6e6e6;
  --texto-suave: #aab6bb;
  --sombra: rgba(0, 0, 0, 0.5);
}

html[data-rc-theme="dark"],
html[data-rc-theme="dark"] body {
  background-color: #000 !important;
  background-image: none !important;
}

html[data-rc-theme="dark"] body {
  color: #e6e6e6 !important;
}

html[data-rc-theme="dark"] .bg-pattern {
  background-image: none !important;
  background-color: #000 !important;
}

html[data-rc-theme="dark"] .media-container,
html[data-rc-theme="dark"] .video-container {
  background-color: #0b0b0b !important;
  border-color: #2b3538 !important;
}

html[data-rc-theme="dark"] .top-action,
html[data-rc-theme="dark"] .hero-frame {
  background: #151515 !important;
  border-color: #2b3538 !important;
  color: #b9dcf5 !important;
}

html[data-rc-theme="dark"] .top-action:hover {
  background: #1b2b30 !important;
  border-color: #3ea4bd !important;
  color: #d7ecff !important;
}

html[data-rc-theme="dark"] [style*="#F8FCFF" i],
html[data-rc-theme="dark"] [style*="#F3F9FD" i] {
  background-color: #151515 !important;
}

html[data-rc-theme="dark"] [style*="color: #6B540B" i] {
  color: #f2d28b !important;
}

/* Encabezados de página con fondo pastel inline */
html[data-rc-theme="dark"] header h1[style*="F7DCE1"] {
  background-color: #231a1d !important;
  color: #8fdcef !important;
}

/* Tarjetas, paneles y bloques de contenido */
html[data-rc-theme="dark"] .prayer-card,
html[data-rc-theme="dark"] .meditation-card,
html[data-rc-theme="dark"] .section-card,
html[data-rc-theme="dark"] .section-card-rose-accent,
html[data-rc-theme="dark"] .oracion-item,
html[data-rc-theme="dark"] .semana-foto,
html[data-rc-theme="dark"] .notes-card,
html[data-rc-theme="dark"] .invocations-card,
html[data-rc-theme="dark"] .prayer-item,
html[data-rc-theme="dark"] .section,
html[data-rc-theme="dark"] .section2,
html[data-rc-theme="dark"] .rc-prayer-panel,
html[data-rc-theme="dark"] .rc-related-card,
html[data-rc-theme="dark"] .rc-note-dialog,
html[data-rc-theme="dark"] .rc-prayer-modal,
html[data-rc-theme="dark"] .rc-hoy-card,
html[data-rc-theme="dark"] .rc-hoy-config,
html[data-rc-theme="dark"] .rc-space-item,
html[data-rc-theme="dark"] .rc-space-month,
html[data-rc-theme="dark"] .rc-space-stat {
  background: #121212 !important;
  border-color: #2a2a2a !important;
  color: #e6e6e6 !important;
  box-shadow: none !important;
}

html[data-rc-theme="dark"] .prayer-card:hover,
html[data-rc-theme="dark"] .meditation-card:hover,
html[data-rc-theme="dark"] .section-card:hover,
html[data-rc-theme="dark"] .prayer-item:hover {
  background-color: #1a1a1a !important;
}

/* Secciones temáticas de las meditaciones */
html[data-rc-theme="dark"] .section.biblical-text,
html[data-rc-theme="dark"] .section2.biblical-text,
html[data-rc-theme="dark"] .section.pilgrim-prayer,
html[data-rc-theme="dark"] .section2.pilgrim-prayer {
  background: linear-gradient(135deg, #121212 0%, var(--med-tint-gold) 100%) !important;
  border-color: var(--med-border) !important;
}

html[data-rc-theme="dark"] .section.prayer,
html[data-rc-theme="dark"] .section2.prayer {
  background: linear-gradient(135deg, #121212 0%, var(--med-tint-pray) 100%) !important;
  border-color: var(--med-primary-light) !important;
}

html[data-rc-theme="dark"] .section.prayer-final,
html[data-rc-theme="dark"] .section2.prayer-final {
  background: linear-gradient(135deg, #121212 0%, var(--med-tint-soft) 100%) !important;
}

html[data-rc-theme="dark"] .section.reflection,
html[data-rc-theme="dark"] .section2.reflection {
  background: var(--med-card) !important;
}

/* Fondos claros de Tailwind */
html[data-rc-theme="dark"] [class~="bg-white"],
html[data-rc-theme="dark"] [class*="bg-white/"],
html[data-rc-theme="dark"] [class~="bg-gray-50"],
html[data-rc-theme="dark"] [class*="bg-gray-50/"],
html[data-rc-theme="dark"] [class~="bg-gray-100"],
html[data-rc-theme="dark"] [class~="bg-gray-200"],
html[data-rc-theme="dark"] [class~="bg-gray-300"],
html[data-rc-theme="dark"] [class~="bg-slate-50"],
html[data-rc-theme="dark"] [class~="bg-slate-100"],
html[data-rc-theme="dark"] [class~="bg-slate-200"],
html[data-rc-theme="dark"] [class~="bg-sky-50"],
html[data-rc-theme="dark"] [class*="bg-sky-50/"],
html[data-rc-theme="dark"] [class~="bg-sky-100"],
html[data-rc-theme="dark"] [class~="bg-cyan-50"],
html[data-rc-theme="dark"] [class~="bg-teal-50"],
html[data-rc-theme="dark"] [class~="bg-teal-100"],
html[data-rc-theme="dark"] [class~="bg-amber-50"],
html[data-rc-theme="dark"] [class*="bg-amber-50/"],
html[data-rc-theme="dark"] [class~="bg-amber-100"],
html[data-rc-theme="dark"] [class~="bg-pink-50"],
html[data-rc-theme="dark"] [class~="bg-pink-100"],
html[data-rc-theme="dark"] [class~="bg-red-50"],
html[data-rc-theme="dark"] [class~="bg-red-100"],
html[data-rc-theme="dark"] [class~="bg-emerald-50"],
html[data-rc-theme="dark"] [class~="bg-stone-50"] {
  background-color: #151515 !important;
}

html[data-rc-theme="dark"] [class~="border-gray-100"],
html[data-rc-theme="dark"] [class~="border-gray-200"],
html[data-rc-theme="dark"] [class~="border-slate-100"],
html[data-rc-theme="dark"] [class~="border-slate-200"],
html[data-rc-theme="dark"] [class~="border-slate-300"],
html[data-rc-theme="dark"] [class~="border-sky-100"],
html[data-rc-theme="dark"] [class~="border-sky-200"],
html[data-rc-theme="dark"] [class~="border-sky-300"],
html[data-rc-theme="dark"] [class~="border-cyan-200"],
html[data-rc-theme="dark"] [class~="border-teal-100"],
html[data-rc-theme="dark"] [class~="border-amber-200"],
html[data-rc-theme="dark"] [class~="border-pink-100"],
html[data-rc-theme="dark"] [class~="border-pink-200"] {
  border-color: #2b3538 !important;
}

/* Textos neutros */
html[data-rc-theme="dark"] [class*="text-gray-7"],
html[data-rc-theme="dark"] [class*="text-gray-8"],
html[data-rc-theme="dark"] [class*="text-gray-9"],
html[data-rc-theme="dark"] [class*="text-slate-7"],
html[data-rc-theme="dark"] [class*="text-slate-8"],
html[data-rc-theme="dark"] [class*="text-slate-9"],
html[data-rc-theme="dark"] [class*="text-stone-7"],
html[data-rc-theme="dark"] [class*="text-stone-8"],
html[data-rc-theme="dark"] [class*="text-stone-9"] {
  color: #dcdcdc !important;
}

html[data-rc-theme="dark"] [class*="text-gray-3"],
html[data-rc-theme="dark"] [class*="text-gray-4"],
html[data-rc-theme="dark"] [class*="text-gray-5"],
html[data-rc-theme="dark"] [class*="text-gray-6"],
html[data-rc-theme="dark"] [class*="text-slate-3"],
html[data-rc-theme="dark"] [class*="text-slate-4"],
html[data-rc-theme="dark"] [class*="text-slate-5"],
html[data-rc-theme="dark"] [class*="text-slate-6"],
html[data-rc-theme="dark"] [class*="text-stone-5"],
html[data-rc-theme="dark"] [class*="text-stone-6"] {
  color: #a3b0b4 !important;
}

/* Acentos y textos de color */
html[data-rc-theme="dark"] [class*="text-sky-6"],
html[data-rc-theme="dark"] [class*="text-sky-7"],
html[data-rc-theme="dark"] [class*="text-sky-8"],
html[data-rc-theme="dark"] [class*="text-sky-9"],
html[data-rc-theme="dark"] [class*="text-cyan-6"],
html[data-rc-theme="dark"] [class*="text-cyan-7"],
html[data-rc-theme="dark"] [class*="text-cyan-8"],
html[data-rc-theme="dark"] [class*="text-cyan-9"] {
  color: #8fdcef !important;
}

html[data-rc-theme="dark"] [class*="text-teal-6"],
html[data-rc-theme="dark"] [class*="text-teal-7"],
html[data-rc-theme="dark"] [class*="text-teal-8"],
html[data-rc-theme="dark"] [class*="text-emerald-5"],
html[data-rc-theme="dark"] [class*="text-emerald-6"],
html[data-rc-theme="dark"] [class*="text-emerald-7"] {
  color: #8fd6ae !important;
}

html[data-rc-theme="dark"] [class*="text-amber-5"],
html[data-rc-theme="dark"] [class*="text-amber-6"],
html[data-rc-theme="dark"] [class*="text-amber-7"],
html[data-rc-theme="dark"] [class*="text-amber-8"],
html[data-rc-theme="dark"] [class*="text-yellow-6"],
html[data-rc-theme="dark"] [class*="text-yellow-7"] {
  color: #f2d28b !important;
}

html[data-rc-theme="dark"] [class*="text-pink-4"],
html[data-rc-theme="dark"] [class*="text-pink-5"],
html[data-rc-theme="dark"] [class*="text-pink-6"],
html[data-rc-theme="dark"] [class*="text-pink-7"],
html[data-rc-theme="dark"] [class*="text-pink-8"],
html[data-rc-theme="dark"] [class*="text-pink-9"],
html[data-rc-theme="dark"] [class*="text-rose-4"],
html[data-rc-theme="dark"] [class*="text-rose-5"],
html[data-rc-theme="dark"] [class*="text-rose-6"],
html[data-rc-theme="dark"] [class*="text-rose-7"],
html[data-rc-theme="dark"] [class*="text-rose-8"],
html[data-rc-theme="dark"] [class*="text-rose-9"] {
  color: #f0a9b9 !important;
}

html[data-rc-theme="dark"] .reflection-source {
  color: #f0a9b9 !important;
}

html[data-rc-theme="dark"] [class*="text-red-5"],
html[data-rc-theme="dark"] [class*="text-red-6"],
html[data-rc-theme="dark"] [class*="text-red-7"] {
  color: #ffabab !important;
}

/* Formularios y campos de notas */
html[data-rc-theme="dark"] input,
html[data-rc-theme="dark"] textarea,
html[data-rc-theme="dark"] select {
  background-color: #151515 !important;
  color: #e6e6e6 !important;
  border-color: #344347 !important;
}

html[data-rc-theme="dark"] input::placeholder,
html[data-rc-theme="dark"] textarea::placeholder {
  color: #7f8b8e !important;
}

/* Botones claros */
html[data-rc-theme="dark"] .btn-back,
html[data-rc-theme="dark"] .btn-how-to,
html[data-rc-theme="dark"] .day-tab,
html[data-rc-theme="dark"] .mystery-tab,
html[data-rc-theme="dark"] .btn-chip,
html[data-rc-theme="dark"] .btn-nav-day,
html[data-rc-theme="dark"] .btn-share,
html[data-rc-theme="dark"] .btn-font-size,
html[data-rc-theme="dark"] .nav-btn,
html[data-rc-theme="dark"] .rc-week-arrow,
html[data-rc-theme="dark"] .rc-week-today {
  background-color: #151515 !important;
  color: #bfe6ef !important;
  border-color: #33505a !important;
}

html[data-rc-theme="dark"] .btn-back:hover,
html[data-rc-theme="dark"] .btn-how-to:hover,
html[data-rc-theme="dark"] .day-tab:hover,
html[data-rc-theme="dark"] .mystery-tab:hover,
html[data-rc-theme="dark"] .btn-chip:hover,
html[data-rc-theme="dark"] .btn-nav-day:hover:not(:disabled),
html[data-rc-theme="dark"] .btn-share:hover {
  background-color: #1e2e33 !important;
  color: #ffffff !important;
}

html[data-rc-theme="dark"] .day-tab.active,
html[data-rc-theme="dark"] .mystery-tab.active,
html[data-rc-theme="dark"] .option-dot.active,
html[data-rc-theme="dark"] .day-button.active,
html[data-rc-theme="dark"] .btn-chip.active {
  background: linear-gradient(135deg, #2f879c 0%, #8f3d52 100%) !important;
  color: #ffffff !important;
  border-color: #2f879c !important;
}

html[data-rc-theme="dark"] .platform-btn.active {
  background: #151515 !important;
}

html[data-rc-theme="dark"] .btn-share.copiado {
  background: #8f3d52 !important;
  border-color: #b84e6b !important;
  color: #ffffff !important;
}

html[data-rc-theme="dark"] .btn-fav {
  background: #1c1518 !important;
  border-color: #6d3f4b !important;
  color: #f0a9b9 !important;
}

html[data-rc-theme="dark"] .btn-fav.is-active {
  background: #3a2028 !important;
  color: #ffd2dd !important;
}

html[data-rc-theme="dark"] .btn-historia {
  color: #2b1018 !important;
}

/* Modales y avisos */
html[data-rc-theme="dark"] .popup-content,
html[data-rc-theme="dark"] .modal-content,
html[data-rc-theme="dark"] .rc-note-dialog,
html[data-rc-theme="dark"] .rc-prayer-modal {
  background: #151515 !important;
  color: #e6e6e6 !important;
}

html[data-rc-theme="dark"] .popup-content h2 {
  color: var(--med-primary) !important;
}

html[data-rc-theme="dark"] .popup-content p {
  color: #cfcfcf !important;
}

html[data-rc-theme="dark"] .rc-prayer-modal-close {
  background: #202020 !important;
  color: #c9d4d7 !important;
}

/* Meditaciones: contenedores y textos */
html[data-rc-theme="dark"] .container,
html[data-rc-theme="dark"] .container2 {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-rc-theme="dark"] .current-date,
html[data-rc-theme="dark"] .month-theme,
html[data-rc-theme="dark"] .saint-title,
html[data-rc-theme="dark"] .saint2-title {
  color: var(--med-primary-light) !important;
}

html[data-rc-theme="dark"] .section-title,
html[data-rc-theme="dark"] .section-title2 {
  color: var(--med-primary) !important;
  border-bottom-color: var(--med-dash) !important;
}

html[data-rc-theme="dark"] .meditation-header {
  border-bottom-color: var(--med-dash) !important;
}

html[data-rc-theme="dark"] .notes-section {
  background: #1d1a13 !important;
  color: #f0dfb6 !important;
}

html[data-rc-theme="dark"] .notes-textarea {
  background: #151310 !important;
  color: #eae5dc !important;
  border-color: #3a3428 !important;
}

html[data-rc-theme="dark"] .success-message {
  background: #1d1a13 !important;
  color: #e8d8a8 !important;
}

html[data-rc-theme="dark"] .progress-indicator,
html[data-rc-theme="dark"] .date-input {
  background: #151515 !important;
  color: #d8d8d8 !important;
}

/* Novenas y consagraciones */
html[data-rc-theme="dark"] .day-button {
  background-color: #151515 !important;
  color: #c7d2d5 !important;
  border-color: #33454b !important;
}

html[data-rc-theme="dark"] .day-button .day-date {
  color: #a9b4b7 !important;
}

html[data-rc-theme="dark"] .card-title {
  color: #8fdcef !important;
  border-bottom-color: rgba(143, 220, 239, 0.22) !important;
}

html[data-rc-theme="dark"] .card-title-rose,
html[data-rc-theme="dark"] .card-title-gold {
  color: #f0b3c1 !important;
  border-bottom-color: rgba(240, 179, 193, 0.24) !important;
}

html[data-rc-theme="dark"] .bible-box {
  background: linear-gradient(135deg, #101a1e 0%, #12242a 100%) !important;
  border-left-color: #3ea4bd !important;
}

html[data-rc-theme="dark"] .notes-input {
  background: #151515 !important;
  color: #e6e6e6 !important;
  border-color: #33454b !important;
}

html[data-rc-theme="dark"] .notes-help,
html[data-rc-theme="dark"] .notes-meta {
  color: #a9b4b7 !important;
}

html[data-rc-theme="dark"] .invocation-text {
  color: #e8c98c !important;
}

html[data-rc-theme="dark"] .invocations-card {
  background: linear-gradient(135deg, #161410 0%, #201b12 100%) !important;
}

html[data-rc-theme="dark"] .prose-prayer,
html[data-rc-theme="dark"] #prayerModalText,
html[data-rc-theme="dark"] #modalSongLyrics {
  background: #151515 !important;
  color: #e6e6e6 !important;
  border-color: #2b3538 !important;
}

html[data-rc-theme="dark"] .semana-foto img {
  background: #101010 !important;
}

html[data-rc-theme="dark"] .oracion-item summary {
  color: #8fdcef !important;
}

html[data-rc-theme="dark"] .oracion-item[open] summary {
  background: #1d2426 !important;
}

html[data-rc-theme="dark"] .oracion-item .oracion-texto {
  color: #d8d8d8 !important;
}

/* Barra flotante y controles de texto */
html[data-rc-theme="dark"] .rc-floating,
html[data-rc-theme="dark"] .rc-font-controls {
  background: rgba(16, 16, 16, 0.94) !important;
  border-color: rgba(70, 82, 86, 0.9) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
}

html[data-rc-theme="dark"] .rc-font-label {
  color: #8d9a9d !important;
}

html[data-rc-theme="dark"] .rc-font-btn,
html[data-rc-theme="dark"] .rc-floating button,
html[data-rc-theme="dark"] .rc-floating a {
  color: #c2cdd0 !important;
}

html[data-rc-theme="dark"] .rc-font-btn:hover,
html[data-rc-theme="dark"] .rc-font-btn.is-active,
html[data-rc-theme="dark"] .rc-floating button:hover,
html[data-rc-theme="dark"] .rc-floating a:hover {
  background: #1b2b30 !important;
  color: #8fdcef !important;
}

html[data-rc-theme="dark"] .rc-floating .rc-count {
  background: #1c1c1c !important;
  color: #8fdcef !important;
  box-shadow: inset 0 0 0 1px rgba(126, 201, 222, 0.35) !important;
}

html[data-rc-theme="dark"] .rc-theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

html[data-rc-theme="dark"] .rc-theme-toggle.is-active {
  background: #2a2416 !important;
  color: #f2d28b !important;
}
