/* ==========================================================================
   DIVINA DATA OFICIAL — SISTEMA DE DISEÑO CINEMATOGRÁFICO & ÉPICO
   Inspirado en la mística de la belleza sacra católica, iluminación cinematográfica
   y plataformas de streaming y educación de ultra alto nivel (Masterclass, Apple TV+, Hallow).
   ========================================================================== */

:root {
  /* Paleta Cinematográfica y Sacra Divina Data */
  --primary: #4f8df9;             /* Luminous Sacred Blue / Azul Celestial */
  --primary-brand: #2b6cb0;       /* Azul Institucional Noble */
  --primary-hover: #70a7ff;
  --primary-dark: #1a365d;
  --primary-light: rgba(79, 141, 249, 0.12);
  --primary-border: rgba(79, 141, 249, 0.35);
  --primary-glow: 0 0 24px rgba(79, 141, 249, 0.3);
  --primary-rgb: 79, 141, 249;

  /* Fondos y Canvas Nocturno Profundo (Mística Nocturna) */
  --bg-body: #050a12;            /* Noche Mística Profunda */
  --bg-surface: rgba(11, 20, 36, 0.95);      /* Vidrio esmerilado de alta densidad */
  --bg-surface-elevated: rgba(16, 29, 52, 0.95);
  --bg-subtle: rgba(18, 32, 54, 0.55);       /* Capa atmosférica */
  --bg-glass: rgba(7, 14, 25, 0.96);

  /* Tipografías y Contrastes Cinematográficos */
  --text-title: #ffffff;         /* Blanco estelar puro */
  --text-body: #e2e8f0;          /* Alabastro nítido de alta legibilidad */
  --text-muted: #94a3b8;         /* Plata suave */
  --text-light: #64748b;

  /* Oro Sacro Noble (Champagne & Foil Dorado Iluminado) */
  --accent-gold: #f3cf65;        /* Oro celestial cálido */
  --accent-gold-dark: #c69b27;
  --accent-gold-light: rgba(243, 207, 101, 0.14);
  --accent-gold-border: rgba(243, 207, 101, 0.4);
  --gold-gradient: linear-gradient(135deg, #fffbe8 0%, #f6d878 45%, #cca22b 100%);
  --gold-glow: 0 0 25px rgba(243, 207, 101, 0.35);

  /* Estados y Alertas */
  --danger: #ef4444;
  --success: #10b981;

  /* Bordes y Separadores con Reflejos de Luz */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(59, 130, 246, 0.25);
  --border-focus: #3b82f6;

  /* Sombras y Luces Escénicas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --shadow-dropdown: 0 20px 50px -5px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(255, 255, 255, 0.1);

  /* Tipografías */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE ATMOSFÉRICA
   ========================================================================== */

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

img, svg, video, canvas, audio, iframe {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(229, 193, 88, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.4) 0px, transparent 80%);
  background-attachment: fixed;
  color: var(--text-body);
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   PRELOADER CINEMATOGRÁFICO CON LOGO CARGANDO
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  z-index: 100000;
  background: radial-gradient(circle at center, #0a1f27 0%, #0a111a 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.preloader-aura {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(243, 206, 101, 0.1) 40%, transparent 75%);
  animation: preloaderHalo 3s ease-in-out infinite alternate;
}

@keyframes preloaderHalo {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.preloader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.45));
  animation: logoSoftPulse 2.4s ease-in-out infinite alternate;
}

@keyframes logoSoftPulse {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 28px rgba(243, 206, 101, 0.5)); }
}

.preloader-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-title);
  font-weight: 700;
  margin: 0 auto 0.25rem auto;
  text-align: center;
}

.preloader-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: none;
  margin: 0 auto 1.75rem auto;
  text-align: center;
}

.preloader-progress-track {
  width: min(290px, 82vw);
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 206, 98, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 206, 98, 0.15);
  margin: 0 auto 0.85rem auto;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #f5ce62 70%, #fff7da 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(245, 206, 98, 0.8);
  transition: width 0.12s ease-out;
}

.preloader-status-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(290px, 82vw);
  gap: 0.65rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.preloader-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(245, 206, 98, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.preloader-spinner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5ce62;
  box-shadow: 0 0 8px #f5ce62;
  animation: preloaderDotPulse 1.2s infinite ease-in-out;
}

@keyframes preloaderDotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #f5ce62; }
}

.preloader-status-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
}

.preloader-counter {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #f5ce62;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(245, 206, 98, 0.6);
  flex-shrink: 0;
  text-align: right;
}

.preloader-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1.25rem auto 0 auto;
  max-width: min(290px, 82vw);
  text-align: center;
  line-height: 1.45;
}

#preloader.decomposing .preloader-logo {
  opacity: 0;
  transform: scale(1.15);
  filter: blur(8px) brightness(1.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.decomposing .preloader-brand,
#preloader.decomposing .preloader-tagline,
#preloader.decomposing .preloader-progress-track,
#preloader.decomposing .preloader-counter,
#preloader.decomposing .preloader-verse,
#preloader.decomposing .preloader-glow-ring {
  opacity: 0;
  filter: blur(6px);
  transition: all 0.5s ease;
}

/* ==========================================================================
   RICCARDO ZANUTTA LUXURY PAGE TRANSITION (DIVINA DATA)
   Inspirado en http://riccardozanutta.com con doble cortina dorada/zafiro,
   descomposición de logotipo y stripe loader.
   ========================================================================== */

#page-transition-after {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff7da 0%, #f5ce62 35%, #cca22b 75%, #8c6a12 100%);
  box-shadow: 0 0 100px rgba(243, 207, 101, 0.45);
  z-index: 100004;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: none;
}

#page-transition {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 40%, #0c182b 0%, #050a12 75%), #050a12;
  border-left: 2px solid rgba(243, 207, 101, 0.45);
  border-right: 2px solid rgba(243, 207, 101, 0.45);
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.98);
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: none;
  overflow: hidden;
}

/* ENTRADA DE TRANSICIÓN — Pausada y Solemne (1.05s) */
body.transition-entering #page-transition-after,
body.transition-entering #page-transition,
body.transition-exiting #page-transition-after,
body.transition-exiting #page-transition {
  visibility: visible !important;
}

body.transition-entering #page-transition-after {
  transform: translate3d(100%, 0, 0);
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
}

body.transition-entering #page-transition {
  transform: translate3d(100%, 0, 0);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.08s;
  pointer-events: auto;
}

/* SALIDA DE TRANSICIÓN — Apertura Cinematográfica Lenta (1.05s) */
body.transition-exiting #page-transition {
  transform: translate3d(200%, 0, 0);
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: auto;
}

body.transition-exiting #page-transition-after {
  transform: translate3d(200%, 0, 0);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.08s;
  pointer-events: auto;
}

/* Contenido Central de Transición */
.page-transition-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease-out, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

body.transition-entering .page-transition-content {
  opacity: 1;
  transform: scale(1);
}

/* Escenario del Logo Deconstruible */
.deconstruct-logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.deconstruct-emblem-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deconstruct-aura {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 207, 101, 0.35) 0%, transparent 70%);
  filter: blur(12px);
  animation: sacredPulse 4s infinite ease-in-out;
  pointer-events: none;
}

.deconstruct-main-logo {
  width: 115px;
  height: 115px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(243, 207, 101, 0.65));
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


.transition-brand-titles {
  margin-top: 1.35rem;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-brand-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 25px rgba(243, 207, 101, 0.55);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-brand-sub {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent-gold);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stripe Loader estilo Riccardo Zanutta */
.stripe-loader {
  position: relative;
  width: 170px;
  height: 2px;
  margin: 1.75rem auto 0;
  background: rgba(243, 207, 101, 0.18);
  overflow: hidden;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, #ffffff 40%, #f3cf65 70%, transparent);
  animation: rzStripe 1.4s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.stripe:nth-child(1) { animation-delay: 0s; }
.stripe:nth-child(2) { animation-delay: 0.18s; }
.stripe:nth-child(3) { animation-delay: 0.36s; }

@keyframes rzStripe {
  0% { left: 0%; width: 0%; }
  25% { left: 0%; width: 100%; }
  50% { left: 100%; width: 0%; }
  75% { left: 0%; width: 100%; }
  100% { left: 0%; width: 0%; }
}

/* Canvas de Partículas / Chispas Divinas */
.transition-particles-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  height: min(420px, 92vw);
  max-width: 100vw;
  pointer-events: none;
  z-index: 5;
}

/* ==========================================================================
   ESTADO DE DESPLIEGUE DEL LOGO (CUANDO SALE LA TRANSICIÓN)
   Efecto sacro y cinemático del logotipo íntegro sin fracturas ni piezas rotas
   ========================================================================== */
.page-transition-content.decomposing .deconstruct-main-logo {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(8px) brightness(1.6);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-content.decomposing .transition-brand-name {
  letter-spacing: 0.38em;
  transform: scale(1.08);
  filter: blur(10px);
  opacity: 0;
}

.page-transition-content.decomposing .transition-brand-sub {
  transform: translateY(22px);
  letter-spacing: 0.3em;
  filter: blur(8px);
  opacity: 0;
}

.page-transition-content.decomposing .stripe-loader {
  opacity: 0;
  transform: scaleX(0);
}

/* ==========================================================================
   TOPBAR & NAVBAR PRINCIPAL
   ========================================================================== */

header.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-topbar {
  background: #080e18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #cbd5e1;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.92;
  transition: opacity var(--transition-fast);
}

.topbar-item:hover {
  opacity: 1;
}

.ambient-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  user-select: none;
  color: #ffffff;
  transition: background var(--transition-fast);
}

.ambient-player:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sound-waves {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-waves span {
  width: 2px;
  background: #ffffff;
  border-radius: 2px;
  height: 4px;
}

.ambient-player.playing .sound-waves span:nth-child(1) { animation: wave 1.1s ease-in-out infinite; }
.ambient-player.playing .sound-waves span:nth-child(2) { animation: wave 0.8s ease-in-out 0.2s infinite; }
.ambient-player.playing .sound-waves span:nth-child(3) { animation: wave 1.3s ease-in-out 0.4s infinite; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: max-content;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-title);
  line-height: 1.1;
  white-space: nowrap;
  word-break: keep-all;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  word-break: keep-all;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.22rem;
}

.nav-item-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.nav-item-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-item-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.nav-item-link.active::after {
  display: none;
}

/* Dropdown "Más" */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px !important;
  max-width: 90vw !important;
  background: rgba(6, 17, 23, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(37, 99, 235, 0.25);
  padding: 0.5rem;
  display: none;
  z-index: 1100;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block;
  animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.55rem 0.8rem;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap !important;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(2px);
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  z-index: 10 !important;
}

.nav-item-secondary {
  display: none !important;
}

.btn-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.btn-icon:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.btn-gold-cta {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-gold-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-mobile-toggle {
  display: none;
}

/* ==========================================================================
   MODALES TOP LAYER (@starting-style y transition-behavior)
   ========================================================================== */

dialog#search-dialog,
dialog#evangelio-dialog {
  margin: auto;
  padding: 0;
  background: rgba(8, 24, 32, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(37, 99, 235, 0.35);
  width: 90%;
  max-width: 640px;
  color: var(--text-body);
  overflow: hidden;
}

dialog#search-dialog,
dialog#cart-dialog,
dialog#evangelio-dialog {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
}

dialog[open]#search-dialog,
dialog[open]#cart-dialog,
dialog[open]#evangelio-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);

  @starting-style {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  transition: background-color 0.25s ease-out, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}

dialog[open]::backdrop {
  background: rgba(15, 23, 42, 0.5);

  @starting-style {
    background: rgba(15, 23, 42, 0);
  }
}

.evangelio-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  height: 100%;
}

.evangelio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.evangelio-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.evangelio-quote-card {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-title);
  line-height: 1.7;
}

.evangelio-reflection-box {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

.liturgy-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.liturgy-tab-btn:hover {
  color: var(--text-title);
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.liturgy-tab-btn.active {
  background: rgba(229, 184, 86, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(229, 184, 86, 0.2);
}

.evangelio-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-dialog-inner {
  display: flex;
  flex-direction: column;
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  gap: 0.75rem;
}

.search-input-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: var(--text-title);
  font-family: inherit;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-result-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   ESTRUCTURA DE SECCIONES
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
}

.page-section {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  padding: 3rem 1.5rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: var(--text-title);
}

.section-title .text-gold-gradient {
  color: var(--primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   HERO CINEMATOGRÁFICO DE ALTO IMPACTO (WIDESCREEN MASTER SHOWCASE)
   ========================================================================== */

.hero-cinematic-stage {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 207, 101, 0.35);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 50px rgba(243, 207, 101, 0.2);
}

.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.01);
  animation: heroKenBurns 32s ease-in-out infinite alternate;
  filter: brightness(0.82) contrast(1.08) saturate(1.1);
}

@keyframes heroKenBurns {
  0% { transform: scale(1.01) translateY(0); }
  100% { transform: scale(1.06) translateY(-8px); }
}

.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(5, 10, 18, 0.4) 0%, rgba(5, 10, 18, 0.3) 40%, rgba(5, 10, 18, 0.8) 80%, #050a12 100%),
    radial-gradient(ellipse at center 40%, rgba(5, 10, 18, 0.05) 0%, rgba(5, 10, 18, 0.5) 75%, rgba(5, 10, 18, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
  padding: 2.25rem 1.5rem 2.5rem 1.5rem;
}

.hero-cinematic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(20, 32, 52, 0.85);
  border: 1px solid rgba(243, 206, 101, 0.45);
  box-shadow: 0 0 25px rgba(243, 206, 101, 0.15);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: 0.45rem 1.35rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
}

.hero-cinematic-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff7da 35%, #f5ce62 70%, #d89f18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hero-cinematic-sub {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.identity-spotlight-section {
  max-width: 1180px;
  margin: 4rem auto 5rem;
  padding: 0 1.5rem;
}

.identity-spotlight-card {
  background: rgba(20, 32, 52, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 206, 101, 0.12);
  border: 1px solid rgba(243, 206, 101, 0.35);
  color: var(--accent-gold);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 1.5rem;
}

.identity-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.identity-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #cbd5e1;
  line-height: 1.85;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.identity-body strong {
  color: var(--accent-gold);
}

.identity-features-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.identity-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 24, 32, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.25s ease;
}

.identity-feature-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.hero-cinematic-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* BOTONES ÉPICOS DE ALTA MÍSTICA & INTERACTIVIDAD */
.btn-hero-epic {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.85rem;
  min-height: 52px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Efecto Shimmer de Luz Pasajera */
.btn-hero-epic::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease-in-out;
  pointer-events: none;
}

.btn-hero-epic:hover::after {
  left: 180%;
}

.btn-hero-epic:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-hero-epic:active {
  transform: translateY(0) scale(0.98);
}

/* Variante 1: Oro Celestial (Cursos de Teología) */
.btn-hero-gold {
  background: linear-gradient(135deg, #fffbeb 0%, #f6d878 40%, #cca22b 100%);
  color: #050a12 !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(243, 207, 101, 0.4), 0 0 20px rgba(243, 207, 101, 0.25);
}

.btn-hero-gold:hover {
  box-shadow: 0 14px 40px rgba(243, 207, 101, 0.6), 0 0 30px rgba(255, 246, 214, 0.5);
  color: #02060c !important;
}

/* Variante 2: Zafiro Litúrgico (Liturgia de las Horas) */
.btn-hero-sapphire {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.88) 0%, rgba(10, 25, 55, 0.95) 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(147, 197, 253, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-hero-sapphire:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.98) 0%, rgba(15, 35, 75, 0.98) 100%);
  border-color: #93c5fd;
  box-shadow: 0 14px 40px rgba(59, 130, 246, 0.55), 0 0 25px rgba(96, 165, 250, 0.4);
}

/* Variante 3: Rubí Mariano / Carmesí Sacro (Santo Rosario Meditado) */
.btn-hero-ruby {
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.88) 0%, rgba(35, 8, 18, 0.95) 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(251, 113, 133, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-ruby:hover {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.98) 0%, rgba(45, 10, 24, 0.98) 100%);
  border-color: #fda4af;
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.5), 0 0 25px rgba(251, 113, 133, 0.4);
}

/* Variante 4: Esmeralda de Esperanza (Evangelio de Hoy) */
.btn-hero-emerald {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.88) 0%, rgba(6, 30, 22, 0.95) 100%);
  color: #ffffff !important;
  border: 1.5px solid rgba(110, 231, 183, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-emerald:hover {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.98) 0%, rgba(8, 45, 32, 0.98) 100%);
  border-color: #6ee7b7;
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.5), 0 0 25px rgba(110, 231, 183, 0.4);
}

.btn-gold-cta {
  background: var(--gold-gradient);
  color: #061116;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(245, 206, 98, 0.35);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.btn-gold-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 206, 98, 0.55), 0 0 20px rgba(255, 246, 214, 0.4);
  color: #020709;
}

.btn-luxury-secondary {
  background: rgba(20, 32, 52, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(79, 141, 249, 0.45);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.btn-luxury-secondary:hover {
  background: rgba(79, 141, 249, 0.22);
  border-color: #4f8df9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 141, 249, 0.35);
}

/* Tarjetas de Servicios con Emblemas Originales de Divina Data */
.services-emblems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-emblem-card {
  background: rgba(20, 32, 52, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 2.75rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-emblem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(243, 206, 101, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-emblem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-emblem-card:hover::before {
  opacity: 1;
}

.service-emblem-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-normal);
}

.service-emblem-card:hover .service-emblem-img {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.45));
}

.service-emblem-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.85rem;
}

.service-emblem-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-emblem-action {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-emblem-card:hover .service-emblem-action {
  gap: 0.75rem;
  color: var(--accent-gold);
}

/* Sección Cinema / Video Escaparate Cinematográfico */
.cinema-feature-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 4.5rem 0;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(37, 99, 235, 0.3);
  background: #02070a;
}

.cinema-poster-bg {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition: transform 0.8s ease, opacity 0.5s ease;
}

.cinema-feature-banner:hover .cinema-poster-bg {
  transform: scale(1.03);
  opacity: 0.75;
}

.cinema-feature-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 13, 18, 0.35) 0%, rgba(5, 13, 18, 0.85) 75%, #0a111a 100%),
              linear-gradient(to top, #0a111a 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
}

.cinema-play-trigger {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0a111a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(245, 206, 98, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.cinema-play-trigger:hover {
  transform: scale(1.12);
  box-shadow: 0 0 60px rgba(245, 206, 98, 0.85), 0 0 30px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   PILARES Y TARJETAS INSTITUCIONALES
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-title);
  margin-bottom: 0.65rem;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ==========================================================================
   DIRECTORIO (EQUIPO)
   ========================================================================== */

.directorio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-fast);
  text-align: center;
  padding: 2.25rem 1.75rem;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-border);
}

.member-avatar-wrapper {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--primary);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
}

.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Emblemas Litúrgicos Sagrados para el Directorio (Sin fotos profanas) */
.member-icon-emblem {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(243, 207, 101, 0.22) 0%, rgba(11, 20, 36, 0.95) 100%);
  border: 1.5px solid var(--accent-gold-border);
  box-shadow: 0 0 25px rgba(243, 207, 101, 0.25), inset 0 0 15px rgba(243, 207, 101, 0.1);
  color: var(--accent-gold);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-icon-emblem i {
  width: 42px;
  height: 42px;
  transition: transform 0.35s ease;
}

.member-card:hover .member-icon-emblem {
  transform: scale(1.1);
  border-color: var(--accent-gold);
  box-shadow: 0 0 35px rgba(243, 207, 101, 0.45), inset 0 0 20px rgba(243, 207, 101, 0.2);
}

.member-card:hover .member-icon-emblem i {
  transform: scale(1.12);
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.member-role {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.member-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
/* ==========================================================================
   SANTO ROSARIO MEDITADO CON LOS SANTOS — EXPERIENCIA INMERSIVA Y ÉPICA
   ========================================================================== */

.rosary-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

/* 1. Selector de Santos Guías */
.rosary-saints-wrapper {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.rosary-saints-header {
  margin-bottom: 1.25rem;
}

.saints-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
}

.saints-header-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.rosary-saints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.saint-card-btn {
  background: rgba(20, 32, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-body);
  position: relative;
  overflow: hidden;
}

.saint-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s;
}

.saint-card-btn:hover {
  background: rgba(30, 48, 80, 0.7);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.saint-card-btn.active {
  background: rgba(25, 42, 70, 0.95);
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px -3px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.saint-card-btn.active::before {
  background: var(--accent-gold);
}

.saint-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--saint-color, var(--primary));
  color: var(--saint-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  box-shadow: 0 0 14px -3px var(--saint-color, rgba(59, 130, 246, 0.4));
}

.saint-avatar-badge i, .saint-avatar-badge svg {
  width: 22px;
  height: 22px;
}

.saint-card-btn.active .saint-avatar-badge {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.saint-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.saint-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.25;
  text-align: center;
  width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.saint-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.saint-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-top: 0.2rem;
}

/* 2. Banner de Devoción y Bienvenida del Santo */
.saint-devotion-banner {
  background: linear-gradient(135deg, rgba(20, 32, 55, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.saint-banner-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  padding: 2rem;
  align-items: center;
}

.saint-banner-badge-col {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.saint-banner-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px -2px rgba(0, 0, 0, 0.5);
}

.saint-banner-avatar i, .saint-banner-avatar svg {
  width: 28px;
  height: 28px;
}

.saint-banner-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.saint-banner-guide-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 700;
}

.saint-banner-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.saint-banner-title-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.2rem;
}

.saint-banner-welcome-quote {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.75rem;
}

.quote-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.welcome-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--text-title);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.welcome-jaculatoria-hint {
  font-size: 0.85rem;
  color: var(--text-body);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 3. Banner de Arte del Misterio */
.rosary-art-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.mystery-art-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rosary-art-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 18, 30, 0.92) 100%);
  display: flex;
  align-items: flex-end;
}

.rosary-day-badge {
  background: rgba(20, 32, 52, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rosary-header-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.rosary-mystery-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mystery-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mystery-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mystery-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

/* 4. Selector de Decenas (1 a 5) */
.rosary-decade-nav-section {
  margin-bottom: 1.75rem;
}

.decade-nav-header {
  margin-bottom: 0.75rem;
}

.decade-nav-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rosary-decade-selector-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.decade-pill-btn {
  background: rgba(20, 32, 52, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.2s ease;
  font-size: 0.88rem;
  font-weight: 600;
}

.decade-pill-btn:hover {
  background: rgba(30, 48, 80, 0.8);
  border-color: var(--primary-border);
}

.decade-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px -2px rgba(59, 130, 246, 0.4);
}

.decade-pill-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.decade-pill-btn.active .decade-pill-num {
  background: #ffffff;
  color: var(--primary-dark);
}

/* 5. Escaparate Principal del Misterio (Showcase Card) */
.mystery-showcase-card {
  background: linear-gradient(145deg, rgba(20, 34, 58, 0.75) 0%, rgba(13, 22, 38, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
}

.showcase-num-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #1a1505;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.showcase-titles {
  flex: 1;
  min-width: 0;
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.showcase-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.showcase-biblical {
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.showcase-fruit {
  font-size: 0.82rem;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

/* Meditación Profunda */
.saint-meditation-box {
  margin-bottom: 1.75rem;
}

.meditation-saint-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.meditation-profound-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-title);
  text-align: justify;
}

/* Pregunta Introspectiva */
.meditation-question-callout {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 18px -4px rgba(251, 191, 36, 0.15);
}

.question-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.question-content {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fffbeb;
  line-height: 1.65;
  font-style: italic;
}

/* Jaculatoria de Cierre */
.saint-jaculatoria-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
}

.jaculatoria-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jaculatoria-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-title);
  font-weight: 600;
}

/* 6. Cuentas del Rosario y Navegador */
.rosary-bead-navigator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.9) 0%, rgba(12, 20, 34, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.bead-nav-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bead-step-indicator {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.bead-counter-display {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.beads-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.rosary-bead {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 36, 60, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.rosary-bead:hover {
  transform: scale(1.12);
  border-color: var(--primary);
  color: #ffffff;
}

.rosary-bead.our-father {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.rosary-bead.gloria {
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
  color: #38bdf8;
  font-size: 0.85rem;
}

.rosary-bead.active {
  background: var(--primary);
  color: #ffffff;
  border-color: #93c5fd;
  transform: scale(1.22);
  box-shadow: 0 0 18px 2px rgba(59, 130, 246, 0.65);
}

.rosary-bead.completed {
  background: rgba(59, 130, 246, 0.25);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.beads-action-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-bead-nav {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-bead-prev {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-body);
}

.btn-bead-prev:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-decade-next {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--primary);
}

.btn-decade-next:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 7. Oración Actual (Card Litúrgica) */
.prayer-text-box {
  background: rgba(18, 30, 50, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 820px;
  width: 100%;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-card);
}

.prayer-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.prayer-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0;
}

.prayer-badge-active {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.prayer-content {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--text-title);
  line-height: 1.85;
  font-style: italic;
}

/* 8. Resumen de las 5 decenas abajo */
.rosary-all-decades-summary {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.decades-summary-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 1.25rem;
}

.rosary-mystery-list-grid {
  display: grid;
  gap: 0.85rem;
}

.mystery-ref-badge {
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* 9. Credo Accordion */
.rosary-credo-details {
  margin-top: 2rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.rosary-credo-summary {
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.rosary-credo-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-top: 1rem;
  font-style: italic;
}

/* Responsive adjustments for mobile and tablets */
@media (max-width: 768px) {
  .rosary-dashboard {
    padding: 1.5rem 1rem;
  }
  .rosary-saints-wrapper {
    padding: 1.25rem 1rem;
  }
  .rosary-saints-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .saint-card-btn {
    min-width: 190px;
    flex: 0 0 190px;
    scroll-snap-align: start;
    padding: 0.85rem 0.65rem;
  }
  .saint-banner-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .saint-banner-welcome-quote {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 1rem;
  }
  .rosary-header-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .rosary-mystery-selector {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .mystery-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }
  .rosary-decade-selector-bar {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
  }
  .decade-pill-btn {
    padding: 0.6rem 0.25rem;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
  }
  .decade-pill-label {
    font-size: 0.68rem;
  }
  .mystery-showcase-card {
    padding: 1.25rem;
  }
  .showcase-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .showcase-title {
    font-size: 1.25rem;
  }
  .meditation-profound-text {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
  }
  .question-content {
    font-size: 0.95rem;
  }
  .rosary-bead {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }
  .rosary-bead.our-father,
  .rosary-bead.gloria {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .beads-row {
    gap: 0.45rem;
  }
  .beads-action-bar {
    width: 100%;
  }
  .btn-bead-nav {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
  .btn-decade-next {
    flex: 1 1 100%;
  }
  .prayer-text-box {
    padding: 1.25rem;
  }
  .prayer-content {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   CURSOS & ACADEMIA
   ========================================================================== */

.course-featured-banner {
  background: rgba(20, 32, 52, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.course-badge-highlight {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: none;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.course-thumb-wrapper .course-badge-highlight {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-bottom: 0;
  z-index: 5;
  background: rgba(10, 20, 36, 0.9);
  border: 1px solid rgba(245, 206, 98, 0.4);
  color: var(--accent-gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 80%;
  font-size: 0.72rem;
  line-height: 1.25;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.course-thumb-wrapper {
  position: relative;
  height: 260px;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.25) 0%, rgba(5, 10, 18, 0.95) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.course-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.65));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-thumb {
  transform: scale(1.05);
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-title);
  margin-bottom: 0.6rem;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.course-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--border-light) !important;
  margin-top: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.course-footer > div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.course-access-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 0.28rem 0.65rem !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.course-access-tag.free {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.course-access-tag.unlocked {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.course-price {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--accent-gold) !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  margin-left: auto !important;
  text-align: right !important;
}

.course-footer > button,
.course-footer > a.btn-gold-cta {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.course-footer > div:last-child:not(:first-child) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.course-footer > div:last-child:not(:first-child) > a,
.course-footer > div:last-child:not(:first-child) > button {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   TIENDA Y LIBRERÍA
   ========================================================================== */

.store-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill.active,
.category-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card-hover);
}

.product-img-box {
  position: relative;
  height: 240px;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.22) 0%, rgba(8, 15, 27, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: none;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Modal Carrito Deslizable */
dialog#cart-dialog {
  margin-left: auto;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  height: 100vh;
  max-height: 100vh;
  width: 420px;
  max-width: 100%;
  border-radius: 0;
  border: none;
  border-left: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(6, 17, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text-body);
}

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

/* ==========================================================================
   PLANES Y DONACIONES (MECENAS DIGITAL)
   ========================================================================== */

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: none;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1.25rem 0;
}

.plan-currency {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.plan-amount {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-title);
}

.plan-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.plan-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   PROGRAMAS Y RETOS
   ========================================================================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.program-img-box {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
}

.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.program-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ==========================================================================
   GRUPOS DE LA COMUNIDAD
   ========================================================================== */

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.group-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.group-banner {
  height: 130px;
  background: var(--bg-subtle);
}

.group-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-content {
  padding: 1.25rem;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-name {
  font-weight: 700;
  color: var(--text-title);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   MISTERIOS DEL ROSARIO CARDS
   ========================================================================== */

.mystery-item-card {
  background: rgba(20, 32, 52, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.mystery-item-card:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}

.mystery-item-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.mystery-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mystery-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mystery-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-title);
}

.mystery-fruit {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.mystery-item-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA CORPORATIVO)
   ========================================================================== */

footer.main-footer {
  background: #0f172a;           /* Azul pizarra profundo institucional */
  color: #e2e8f0;
  padding: 4.5rem 1.5rem 2rem;
  margin-top: 5rem;
}

.main-footer .brand-name {
  color: #ffffff;
}

.main-footer .brand-sub {
  color: var(--primary-border);
}

.footer-grid {
  max-width: 1320px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 1.25rem 0 1.5rem;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  margin-top: 0.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 3px;
}

.social-icons-row {
  display: flex;
  gap: 0.75rem;
}

.social-icons-row .btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.social-icons-row .btn-icon:hover {
  background: var(--primary);
}

.footer-bottom-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  #toast-container {
    bottom: calc(72px + env(safe-area-inset-bottom, 10px)) !important;
    right: 12px !important;
    left: 12px !important;
    align-items: center;
  }
  .toast {
    width: 100% !important;
    max-width: 380px !important;
    box-sizing: border-box !important;
  }
}

.toast {
  background: rgba(8, 24, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   DRAWER MÓVIL DESLIZABLE & BACKDROP OVERLAY
   ========================================================================== */

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100004;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-aside {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(6, 17, 23, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(59, 130, 246, 0.35);
  z-index: 100005;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  display: none;
  flex-direction: column;
}

.mobile-drawer-aside.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  display: flex !important;
}

/* ==========================================================================
   RESPONSIVE & ACCESSIBILITY
   ========================================================================== */

@media (max-width: 1520px) {
  .navbar-container {
    gap: 0.65rem !important;
    padding: 0.65rem 1rem !important;
  }
  .nav-item-link {
    padding: 0.38rem 0.52rem !important;
    font-size: 0.81rem !important;
    gap: 0.25rem !important;
  }
  .nav-item-link i {
    width: 13px !important;
    height: 13px !important;
  }
  .nav-actions {
    gap: 0.45rem !important;
  }
  .nav-actions .btn-gold-cta {
    padding: 0.42rem 0.85rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1360px) {
  .navbar-container {
    gap: 0.5rem !important;
    padding: 0.65rem 0.85rem !important;
  }
  .nav-item-link {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.8rem !important;
  }
  .nav-actions .btn-gold-cta {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 1180px) {
  .nav-links-menu { display: none !important; }
  .btn-mobile-toggle { display: inline-flex !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-featured-banner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-topbar { display: none !important; }
  .header-topbar-left { display: none; }
  .navbar-container {
    padding: 0.5rem 0.75rem !important;
    gap: 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .brand-anchor {
    gap: 0.5rem !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 135px) !important;
    overflow: hidden !important;
  }
  .brand-logo-img {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }
  .brand-titles {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .brand-name {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .brand-sub {
    font-size: 0.62rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .nav-actions .btn-icon {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  .nav-actions .btn-gold-cta { display: none !important; }
  .nav-actions .btn-mobile-toggle { display: inline-flex !important; }
  .btn-gold-patron span { display: none; }
  .btn-gold-patron { padding: 0.45rem; border-radius: var(--radius-sm); }
  .hero-wrapper { padding: 2rem 1rem 5rem 1rem; }
  .hero-cinematic-stage { min-height: auto; margin-bottom: 2.5rem; border-radius: var(--radius-md); padding: 3.5rem 1rem 3rem; }
  .hero-cinematic-content { padding: 1.5rem 0.5rem; }
  .hero-cinematic-badge {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.8rem !important;
    max-width: 95% !important;
    white-space: normal !important;
    text-align: center !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.35 !important;
  }
  .hero-cinematic-title { font-size: clamp(2rem, 7.5vw, 2.6rem); line-height: 1.15; margin-bottom: 0.75rem; }
  .hero-cinematic-sub { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; }
  .hero-cinematic-actions { flex-direction: column; width: 100%; max-width: 380px; margin: 0 auto; gap: 0.75rem; }
  .hero-cinematic-actions .btn-hero-epic,
  .hero-cinematic-actions .btn-gold-cta, 
  .hero-cinematic-actions .btn-luxury-secondary { width: 100%; justify-content: center; padding: 0.85rem 1rem; font-size: 0.92rem; }

  /* Identidad y Propósito Espacioso */
  .identity-spotlight-section { margin: 2rem auto 3rem; padding: 0 0.5rem; }
  .identity-spotlight-card { padding: 2rem 1.25rem; border-radius: var(--radius-md); }
  .identity-title { font-size: 1.65rem; }
  .identity-body { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.75rem; }
  .identity-features-grid { flex-direction: column; gap: 0.65rem; width: 100%; }
  .identity-feature-chip { width: 100%; justify-content: center; font-size: 0.8rem; padding: 0.55rem 1rem; }

  /* Atajos y Servicios sin amontonamiento */
  .quick-action-hub { grid-template-columns: 1fr; gap: 1rem; margin: 2rem auto 3rem; padding: 0 0.5rem; }
  .quick-action-card { padding: 1.1rem 1.25rem; }

  /* CERO AMONTONAMIENTO: TODOS LOS GRIDS A 1 COLUMNA EN MÓVIL */
  .services-emblems-grid,
  .pillars-grid,
  .directorio-grid,
  .course-card-grid,
  .products-grid,
  .pricing-cards-grid,
  .programs-grid,
  .groups-grid,
  .testimonials-grid,
  .projects-grid,
  .resources-grid,
  .magazine-grid,
  .cookies-grid,
  .security-grid,
  .cinema-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-emblem-card { padding: 1.75rem 1.25rem; }
  .member-card { padding: 1.75rem 1.25rem; }
  .pillar-card { padding: 1.75rem 1.25rem; }
  .pricing-card { padding: 2rem 1.25rem; }
  .testimonial-card { padding: 1.5rem 1.25rem; }

  /* Banners y Secciones destacadas */
  .page-section { padding: 2.25rem 1rem 4.5rem; }
  .section-header { margin-bottom: 2rem; }
  .section-title { 
    font-size: clamp(1.3rem, 5.5vw, 1.65rem); 
    overflow-wrap: break-word;
    word-break: normal;
  }
  .section-desc { font-size: 0.92rem; line-height: 1.6; }

  .course-featured-banner {
    grid-template-columns: 1fr !important;
    padding: 1.75rem 1.25rem !important;
    gap: 1.5rem !important;
  }

  .magazine-spotlight-banner {
    grid-template-columns: 1fr !important;
    padding: 1.75rem 1.25rem !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
    text-align: center;
  }

  .mission-statement-card,
  .cinema-divina-card,
  .legal-content-card {
    padding: 1.75rem 1.25rem !important;
  }

  .booking-card {
    padding: 1.75rem 1.25rem !important;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Santo Rosario en Móvil */
  .rosary-dashboard { padding: 1.5rem 1rem; }
  .rosary-header-panel { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .rosary-mystery-selector { width: 100%; justify-content: flex-start; gap: 0.4rem; }
  .mystery-btn { font-size: 0.74rem; padding: 0.4rem 0.7rem; }
  .beads-row { gap: 0.35rem; }
  .rosary-bead { width: 28px; height: 28px; font-size: 0.74rem; }
  .prayer-text-box { padding: 1.25rem 1rem; }
  .prayer-content { font-size: 0.92rem; line-height: 1.65; }

  /* Tienda en Móvil */
  .store-filters-bar { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .category-pills { overflow-x: auto; padding-bottom: 0.4rem; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .category-pill { flex-shrink: 0; font-size: 0.78rem; padding: 0.35rem 0.75rem; }

  /* Footer en Móvil */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

  /* Eliminar elementos flotantes amontonados */
  .floating-action-dock,
  .sacred-audio-floating-pill {
    display: none !important;
  }

  dialog#cart-dialog { width: 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   ELEMENTOS DE ALTO IMPACTO: HERO SHOWCASE, ATAJOS & FLOATING DOCK
   ========================================================================== */

.hero-grid-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Vitrina Visual de Alto Impacto */
.hero-visual-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-card-mockup {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(20, 32, 52, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 99, 235, 0.3);
  transition: transform 0.4s var(--ease-spring, ease), box-shadow 0.4s ease;
}

.hero-main-card-mockup:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.45);
}

.hero-mockup-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

.hero-mockup-overlay {
  padding: 1.5rem;
  background: rgba(8, 24, 32, 0.95);
  border-top: 1px solid rgba(59, 130, 246, 0.25);
}

/* Badges Flotantes de Impacto */
.floating-pill-badge {
  position: absolute;
  background: rgba(6, 17, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 10;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.floating-pill-badge.top-left {
  top: -15px;
  left: -20px;
}

.floating-pill-badge.bottom-right {
  bottom: 25px;
  right: -25px;
  animation-delay: -2s;
}

@keyframes floatSubtle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.4);
  animation: pulsePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hub de Atajos de Impacto (Quick Action Hub) */
.quick-action-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 3.5rem auto 5rem;
  position: relative;
  z-index: 10;
  max-width: 1280px;
  padding: 0 1.5rem;
}

.quick-action-card {
  background: rgba(20, 32, 52, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.85), 0 0 30px rgba(37, 99, 235, 0.4);
}

.quick-action-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.quick-action-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.25rem;
}

.quick-action-content p {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.4;
}

.quick-action-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: none;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   TARJETAS Y SECCIONES RESPONSIVAS (DISEÑO ESPACIOSO Y ELEGANTE)
   ========================================================================== */

/* Card de Declaración de Misión */
.mission-statement-card {
  background: var(--bg-surface);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

/* Banner de Revista Semillas de Fe en Inicio */
.magazine-spotlight-banner {
  background: var(--bg-surface);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 4rem 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

/* Cinema Divina Card y Pasos */
.cinema-divina-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

.cinema-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Tarjeta de Reserva Online */
.booking-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Tarjetas de Marco Legal y Políticas */
.legal-content-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  line-height: 1.8;
  color: var(--text-body);
  box-shadow: var(--shadow-card);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.cookies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}


/* Banner de Arte Sacro para Misterios del Rosario */
.mystery-art-banner {
  width: 100%;
  max-height: 380px;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center 25%;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-gold-border);
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(243, 207, 101, 0.15);
  transition: all 0.4s ease;
}

/* ==========================================================================
   BOTÓN FLOTANTE DISCRETO DE MÚSICA SACRA (FLOW MUSIC)
   ========================================================================== */

.mini-music-bubble {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 32, 52, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 15px rgba(243, 206, 101, 0.25);
  transition: all 0.25s ease;
}

.mini-music-bubble:hover {
  transform: scale(1.12);
  border-color: #ffe082;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 25px rgba(243, 206, 101, 0.5);
}

.mini-music-bubble.playing {
  animation: miniBubblePulse 2s ease-in-out infinite;
}

@keyframes miniBubblePulse {
  0% { box-shadow: 0 0 10px rgba(243, 206, 101, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 22px rgba(243, 206, 101, 0.8); transform: scale(1.06); }
  100% { box-shadow: 0 0 10px rgba(243, 206, 101, 0.3); transform: scale(1); }
}

@media (max-width: 768px) {
  .mini-music-bubble {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}

/* Modal de Video Cinema Divina */
dialog#cinema-modal {
  margin: auto;
  padding: 0;
  background: rgba(4, 12, 17, 0.98);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(37, 99, 235, 0.4);
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  color: #ffffff;
}

.cinema-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cinema-modal-body {
  padding: 1.5rem;
  background: #02070a;
}

.cinema-screen-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.cinema-screen-container iframe,
.cinema-screen-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   BANNER DE COOKIES & PRIVACIDAD (GDPR & LEY 29733 DE PERÚ)
   ========================================================================== */

#cookie-consent-banner {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#cookie-consent-banner.cookie-slim-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  transform: none;
  background: rgba(5, 13, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(59, 130, 246, 0.35);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 0.65rem 1.5rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.75);
  z-index: 100000;
  box-sizing: border-box;
}

.cookie-slim-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.cookie-slim-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.cookie-slim-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.cookie-slim-text strong {
  color: #ffffff;
}

.cookie-slim-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-slim-actions .btn-cookie-accept {
  background: var(--gold-gradient);
  color: #061116;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(243, 206, 101, 0.3);
  transition: all var(--transition-fast);
}

.cookie-slim-actions .btn-cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(243, 206, 101, 0.5);
}

.cookie-slim-actions .btn-cookie-essential {
  background: rgba(59, 130, 246, 0.15);
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cookie-slim-actions .btn-cookie-essential:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.cookie-slim-actions .btn-cookie-prefs {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: color var(--transition-fast);
}

.cookie-slim-actions .btn-cookie-prefs:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  #cookie-consent-banner.cookie-slim-bar {
    padding: 0.65rem 1rem;
    bottom: calc(62px + env(safe-area-inset-bottom, 10px)) !important;
  }
  .cookie-slim-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cookie-slim-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .cookie-slim-actions .btn-cookie-accept,
  .cookie-slim-actions .btn-cookie-essential {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Modal de Configuración de Preferencias de Cookies */
dialog#cookie-preferences-modal {
  margin: auto;
  padding: 0;
  background: rgba(6, 17, 23, 0.98);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  width: 90%;
  max-width: 640px;
  overflow: hidden;
  color: #ffffff;
}

.cookie-modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-item-row {
  background: rgba(20, 32, 52, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-item-desc h5 {
  font-size: 0.95rem;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.cookie-item-desc p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.cookie-toggle-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--primary);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(4, 12, 17, 0.95);
}

/* ==========================================================================
   LITURGIA DE LAS HORAS (OFICIO DIVINO) — ESTILOS DEVOCIONALES Y DIDÁCTICOS
   ========================================================================== */
.liturgia-dashboard {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  transition: all 0.4s ease;
}

/* Modo Capilla (Sanctuary Mode) para Oración Contemplativa y Concentración */
.liturgia-dashboard.sanctuary-mode {
  background: radial-gradient(circle at 50% 20%, rgba(20, 30, 38, 0.95), #020608 85%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(243, 206, 101, 0.4);
  box-shadow: 0 0 80px rgba(243, 206, 101, 0.15), 0 25px 60px rgba(0, 0, 0, 0.95);
}

.liturgia-dashboard.sanctuary-mode .liturgia-prayer-viewer {
  background: rgba(3, 8, 12, 0.95);
  border-color: rgba(243, 206, 101, 0.45);
  box-shadow: 0 0 50px rgba(243, 206, 101, 0.12);
}

.liturgia-dashboard.sanctuary-mode .liturgia-didactic-box {
  opacity: 0.4;
  filter: grayscale(40%);
  transition: opacity 0.3s;
}

.liturgia-dashboard.sanctuary-mode .liturgia-didactic-box:hover {
  opacity: 1;
  filter: none;
}

/* Barra de Calendario y Ciclo Litúrgico - Diseño Jerárquico Amplio y Sacro */
.liturgia-calendar-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
  background: rgba(14, 25, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 206, 98, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(245, 206, 98, 0.08);
}

.liturgia-day-display {
  text-align: center;
  flex: 1;
}

.liturgia-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.liturgical-season-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.liturgical-salterio-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.liturgia-date-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.15rem 0 0.35rem;
}

.liturgia-feast-title {
  font-size: 0.88rem;
  color: var(--accent-gold);
  font-style: italic;
  margin: 0;
}

.liturgia-cal-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.liturgia-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.liturgia-cal-btn:hover {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-1px);
}

.liturgia-today-btn {
  background: var(--gold-gradient);
  color: #0a111a !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(243, 206, 101, 0.3);
}

.liturgia-today-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 206, 101, 0.5);
}

/* Selector de Horas Canónicas */
.liturgia-hours-selector {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.liturgia-hours-selector::-webkit-scrollbar {
  height: 6px;
}

.liturgia-hours-selector::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
}

.liturgia-hours-tabs {
  display: flex;
  gap: 0.75rem;
  min-width: min-content;
}

.liturgia-hour-tab {
  flex: 1;
  min-width: 175px;
  background: rgba(20, 32, 52, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  color: #cbd5e1;
}

.liturgia-hour-tab:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(20, 32, 52, 0.85);
  transform: translateY(-2px);
}

.liturgia-hour-tab.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(243, 206, 101, 0.12));
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(243, 206, 101, 0.2);
  color: #ffffff;
}

.hour-tab-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.liturgia-hour-tab.active .hour-tab-top {
  color: var(--accent-gold);
}

.hour-tab-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.hour-tab-rec-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-top: 0.25rem;
}

.hour-tab-prayed-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(243, 206, 101, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(243, 206, 101, 0.4);
  margin-top: 0.25rem;
}

/* Barra de Herramientas Devocionales */
.liturgia-devotional-toolbar {
  background: rgba(8, 24, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.liturgia-active-hour-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.active-hour-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.active-hour-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.active-hour-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
}

.btn-mark-prayed {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(243, 206, 101, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-mark-prayed:hover {
  background: rgba(243, 206, 101, 0.25);
  transform: translateY(-1px);
}

.btn-mark-prayed.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.liturgia-tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.liturgia-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.liturgia-tool-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Visor del Texto Litúrgico */
.liturgia-prayer-viewer {
  background: rgba(5, 16, 21, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.liturgia-prayer-text-container {
  color: var(--text-body);
}

/* Modificadores de tamaño de letra */
.liturgia-prayer-text-container.font-sm {
  font-size: 0.95rem;
  line-height: 1.7;
}

.liturgia-prayer-text-container.font-md {
  font-size: 1.05rem;
  line-height: 1.85;
}

.liturgia-prayer-text-container.font-lg {
  font-size: 1.2rem;
  line-height: 1.95;
}

.liturgia-prayer-text-container.font-xl {
  font-size: 1.35rem;
  line-height: 2.05;
}

/* Bloques canónicos */
.prayer-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prayer-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.prayer-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.liturgy-rubric {
  display: block;
  font-style: italic;
  color: #f87171;
  font-size: 0.88rem;
  margin: 0.45rem 0 0.85rem;
  font-family: var(--font-sans);
}

.liturgy-verse {
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.liturgy-psalm-intro {
  margin-top: 1rem;
}

.liturgy-antiphon-label {
  display: block;
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 0.85rem;
}

.liturgy-antiphon {
  font-style: italic;
  font-family: var(--font-serif);
  color: #fef08a;
  padding: 0.65rem 1.15rem;
  background: rgba(243, 206, 101, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.4rem 0 1rem;
}

.liturgy-hymn-card {
  background: rgba(20, 32, 52, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.75rem;
  white-space: pre-line;
  line-height: 1.85;
  font-family: var(--font-serif);
  color: #f8fafc;
}

.psalm-card {
  background: rgba(8, 23, 29, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

.psalm-header-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #38bdf8;
  margin: 0.85rem 0 0.75rem;
}

.psalm-verses-flow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.psalm-verse-item {
  margin: 0;
  color: #e2e8f0;
  font-family: var(--font-serif);
}

.liturgy-reading-card {
  background: rgba(20, 32, 52, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.75rem;
}

.patristic-card {
  border-color: rgba(243, 206, 101, 0.35);
  background: linear-gradient(135deg, rgba(20, 32, 52, 0.8), rgba(243, 206, 101, 0.05));
}

.bible-citation {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: none;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.6rem;
}

.bible-text {
  font-family: var(--font-serif);
  line-height: 1.85;
  color: #f8fafc;
  margin: 0;
}

.liturgy-responsorio-box {
  background: rgba(4, 12, 17, 0.75);
  border-left: 3px solid #38bdf8;
  padding: 1rem 1.25rem;
  margin-top: 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.liturgy-responsorio-box p {
  margin-bottom: 0.4rem;
}

.liturgy-responsorio-box p:last-child {
  margin-bottom: 0;
}

.evangelic-canticle-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(243, 206, 101, 0.09));
  border: 1px solid rgba(243, 206, 101, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 0 35px rgba(243, 206, 101, 0.09);
}

.canticle-flow .psalm-verse-item {
  color: #fef08a;
}

.preces-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.preces-item {
  padding: 0.65rem 0.95rem;
  background: rgba(20, 32, 52, 0.55);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--primary);
  margin: 0;
}

.liturgy-padrenuestro-box {
  margin-top: 1.5rem;
  background: rgba(4, 12, 17, 0.8);
  border: 1px solid rgba(243, 206, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.75rem;
  text-align: center;
}

.padrenuestro-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.9;
  color: #fef08a;
  font-style: italic;
  margin: 0.5rem 0 0;
}

.concluding-prayer-card {
  background: rgba(20, 32, 52, 0.75);
  border: 1px solid rgba(243, 206, 101, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.85rem;
}

.concluding-text {
  font-family: var(--font-serif);
  line-height: 1.85;
  color: #f8fafc;
  margin-bottom: 1.15rem;
}

.liturgy-blessing {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  font-family: var(--font-serif);
}

.marian-antiphon-card {
  background: linear-gradient(135deg, rgba(20, 32, 52, 0.85), rgba(37, 99, 235, 0.3));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
}

.marian-latin {
  font-style: italic;
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.marian-spanish {
  font-family: var(--font-serif);
  color: #f8fafc;
  line-height: 1.85;
}

/* Guía Didáctica */
.liturgia-didactic-box {
  margin-top: 3.5rem;
  background: rgba(20, 32, 52, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.didactic-box-header {
  margin-bottom: 1.5rem;
}

.didactic-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.didactic-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.didactic-subtitle {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin: 0;
}

.didactic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.didactic-card {
  background: rgba(4, 12, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all var(--transition-fast);
}

.didactic-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.didactic-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
}

.didactic-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 0.55rem;
}

.didactic-card-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
}

/* Reglas Responsivas de la Liturgia de las Horas */
@media (max-width: 768px) {
  .liturgia-calendar-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.15rem;
    padding: 1.25rem 1rem;
  }

  .liturgia-cal-actions {
    width: 100%;
    justify-content: center;
  }

  .liturgia-date-title {
    font-size: 1.15rem;
  }

  .liturgia-hours-tabs {
    gap: 0.5rem;
  }

  .liturgia-hour-tab {
    min-width: 145px;
    padding: 0.75rem 0.85rem;
  }

  .liturgia-devotional-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .liturgia-active-hour-info {
    justify-content: space-between;
  }

  .liturgia-tool-group {
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .liturgia-tool-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.72rem;
  }

  .liturgia-prayer-viewer {
    padding: 1.5rem 1rem;
  }

  .evangelic-canticle-box {
    padding: 1.35rem 1.15rem;
  }

  .liturgia-didactic-box {
    padding: 1.35rem 1rem;
  }

  .didactic-grid {
    grid-template-columns: 1fr;
  }
}




/* ==========================================================================
   ESTILOS DE LA DOBLE VÍA LITÚRGICA (MEMORIA VS LITURGIA NORMAL)
   ========================================================================== */
.liturgia-calendar-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.25rem;
  flex-wrap: wrap;
}

.liturgia-celebration-container {
  margin-top: 0.75rem;
  width: 100%;
}

.celebration-switch-box {
  background: rgba(10, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.celebration-switch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.celebration-switch-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.celebration-switch-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.celebration-switch-badge.badge-memoria {
  background: rgba(229, 193, 88, 0.18);
  color: #fde68a;
  border: 1px solid rgba(229, 193, 88, 0.4);
}

.celebration-switch-badge.badge-feria {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.celebration-toggle-pills {
  display: flex;
  gap: 0.75rem;
}

.celebration-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: rgba(20, 32, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.celebration-pill:hover {
  background: rgba(20, 32, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.celebration-pill.active.memoria-active {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.22), rgba(37, 99, 235, 0.15));
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(229, 193, 88, 0.2);
}

.celebration-pill.active.feria-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(37, 99, 235, 0.15));
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.2);
}

.celebration-pill .pill-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  display: block;
}

.celebration-pill .pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: none;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.celebration-pill.active.memoria-active .pill-tag {
  background: rgba(229, 193, 88, 0.25);
  color: #fde68a;
}

.celebration-pill.active.feria-active .pill-tag {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Banners Didácticos de la Celebración (dentro del texto litúrgico) */
.memorial-info-banner,
.ferial-info-banner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.memorial-info-banner {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.16), rgba(20, 32, 52, 0.7));
  border: 1px solid rgba(229, 193, 88, 0.4);
}

.ferial-info-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 32, 52, 0.7));
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.memorial-icon-wrap,
.ferial-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.memorial-icon-wrap {
  background: rgba(229, 193, 88, 0.22);
  color: var(--accent-gold);
}

.ferial-icon-wrap {
  background: rgba(16, 185, 129, 0.22);
  color: #10b981;
}

.memorial-content,
.ferial-content {
  flex: 1;
}

.memorial-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.memorial-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  color: var(--accent-gold);
  background: rgba(229, 193, 88, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.ferial-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.memorial-color-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.memorial-title,
.ferial-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.memorial-desc,
.ferial-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.memorial-switch-prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.btn-switch-inline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-switch-inline:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES GLOBALES (PARA EVITAR CORTES Y AMONTONAMIENTO)
   ========================================================================== */
@media (max-width: 768px) {
  /* Ocultar barra superior en móvil para no robar pantalla */
  .header-topbar {
    display: none !important;
  }

  /* Header principal sólido y limpio */
  header.main-header {
    background: rgba(10, 17, 26, 0.98) !important;
  }

  .nav-actions {
    gap: 0.45rem !important;
  }

  .nav-actions .btn-gold-cta {
    display: none !important;
  }

  .brand-logo-img {
    height: 32px !important;
  }

  /* Liturgia en Celular */
  .liturgia-calendar-bar {
    padding: 1.25rem 0.85rem !important;
  }

  .liturgia-calendar-top-row {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.4rem !important;
  }

  .liturgia-calendar-top-row .liturgia-cal-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.65rem !important;
  }

  .celebration-toggle-pills {
    flex-direction: column !important;
    width: 100% !important;
  }

  .celebration-pill {
    width: 100% !important;
  }

  .memorial-info-banner,
  .ferial-info-banner {
    flex-direction: column !important;
    padding: 1.15rem 1rem !important;
  }

  .liturgia-prayer-viewer {
    padding: 1.5rem 0.85rem 6.5rem !important;
  }

  /* Botón de música flotante */
  .mini-music-bubble {
    bottom: 1.25rem !important;
    left: 1rem !important;
    width: 44px !important;
    height: 44px !important;
  }
}

/* ==========================================================================
   MOTION GRAPHICS & ATMÓSFERA SACRA: ENCUENTRO CON DIOS
   Efectos visuales cinematográficos, partículas orantes, iluminación de capilla
   y modo Pantalla Completa (Sanctuary Mode) para Liturgia y Evangelio
   ========================================================================== */

/* Animaciones y Keyframes de Motion Graphics Sacro */
@keyframes sacredPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    filter: drop-shadow(0 0 15px rgba(229, 193, 88, 0.3));
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(229, 193, 88, 0.6));
  }
}

@keyframes candleFlameFlicker {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
  }
  25% {
    transform: scale(1.04, 0.96) rotate(-1deg);
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.85));
  }
  50% {
    transform: scale(0.97, 1.03) rotate(1deg);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.95));
  }
  75% {
    transform: scale(1.02, 0.98) rotate(-0.5deg);
    opacity: 0.92;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.75));
  }
}

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

@keyframes divineShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes sacredParticleDrift {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) translateX(30px) scale(1);
    opacity: 0;
  }
}

@keyframes haloPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(229, 193, 88, 0.2), inset 0 0 10px rgba(229, 193, 88, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(229, 193, 88, 0.45), inset 0 0 18px rgba(229, 193, 88, 0.25);
  }
}

/* Tipografía y Rúbricas Litúrgicas Oficiales */
.liturgy-rubric,
.rubric-red {
  color: #f87171 !important;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  display: block;
  margin: 0.6rem 0;
  letter-spacing: 0.02em;
}

.choral-asterisk {
  color: var(--accent-gold);
  font-weight: 700;
  margin: 0 0.4rem;
  display: inline-block;
  user-select: none;
}

.verse-number {
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 0.5rem;
  font-family: var(--font-sans);
  opacity: 0.85;
}

.liturgy-hymn-strophe {
  margin-bottom: 1.35rem;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(229, 193, 88, 0.35);
  line-height: 1.85;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fdfbf7;
}

.liturgy-hymn-strophe p {
  margin: 0;
}

.psalm-verse-item {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: #f1f5f9;
  margin-bottom: 0.95rem;
  text-align: justify;
}

.antiphon-gold-card {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid rgba(229, 193, 88, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin: 0.85rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.antiphon-gold-card .liturgy-antiphon {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #fde68a;
  margin: 0.35rem 0 0 0;
  line-height: 1.6;
  font-style: italic;
}

/* Banner Épico en Sección Liturgia */
.liturgia-epic-hero-banner {
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.25), transparent 70%),
              linear-gradient(135deg, rgba(16, 26, 42, 0.95) 0%, rgba(10, 17, 26, 0.98) 100%);
  border: 1px solid rgba(229, 193, 88, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(229, 193, 88, 0.25);
  position: relative;
  overflow: hidden;
}

.liturgia-epic-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  animation: divineShimmer 4s infinite linear;
}

.liturgia-epic-hero-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0.4rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.liturgia-epic-hero-text p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 650px;
}

.liturgia-epic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(229, 193, 88, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 193, 88, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
}

.btn-sanctuary-epic {
  background: linear-gradient(135deg, #fde68a 0%, #e5c158 50%, #b89025 100%);
  color: #060b12;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(229, 193, 88, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-sanctuary-epic:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(229, 193, 88, 0.6);
}

/* ==========================================================================
   MODO SANTUARIO INMERSIVO (PANTALLA COMPLETA TOTAL)
   Ocupa 100vw y 100vh en PC y Móvil con atmósfera de oración profunda
   ========================================================================== */
.sanctuary-fullscreen-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(ellipse at 50% 15%, rgba(37, 99, 235, 0.18) 0%, rgba(10, 17, 26, 0.98) 75%), #060b12;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sanctuary-ambient-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sanctuary-sacred-rays {
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle at 50% 0%, rgba(229, 193, 88, 0.12), transparent 70%);
  filter: blur(40px);
  animation: sacredPulse 8s infinite ease-in-out;
}

.sanctuary-candle-aura {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(245, 158, 11, 0.08), transparent);
  pointer-events: none;
}

.sanctuary-particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sacred-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fde68a;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.9);
  animation: sacredParticleDrift 12s infinite linear;
}

/* Modo Luz de Vela Cálido */
.sanctuary-fullscreen-overlay.candle-mode {
  background: radial-gradient(ellipse at 50% 30%, rgba(245, 158, 11, 0.14) 0%, rgba(15, 20, 26, 0.99) 75%), #0a0e14;
}

.sanctuary-fullscreen-overlay.candle-mode .sanctuary-header {
  border-bottom-color: rgba(245, 158, 11, 0.35);
  background: rgba(18, 24, 32, 0.96);
}

.sanctuary-fullscreen-overlay.candle-mode .psalm-verse-item,
.sanctuary-fullscreen-overlay.candle-mode .liturgy-hymn-strophe {
  color: #fef3c7;
}

.sanctuary-viewport-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: 100%;
}

/* Encabezado del Santuario */
.sanctuary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(10, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 193, 88, 0.25);
  gap: 1rem;
  flex-shrink: 0;
}

.sanctuary-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-sanctuary-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-sanctuary-action:hover {
  background: rgba(229, 193, 88, 0.2);
  border-color: var(--accent-gold);
  color: #fde68a;
  transform: translateY(-1px);
}

.btn-sanctuary-action.active {
  background: rgba(229, 193, 88, 0.25);
  border-color: var(--accent-gold);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(229, 193, 88, 0.35);
}

.btn-sanctuary-exit {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-sanctuary-exit:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

.sanctuary-title-group {
  display: flex;
  flex-direction: column;
}

.sanctuary-feast-badge-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sanctuary-badge {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
}

.sanctuary-color-gem {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.sanctuary-hour-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

/* Selector Rápido de Horas en Santuario */
.sanctuary-hours-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0.5rem;
}

.sanctuary-hours-nav::-webkit-scrollbar {
  display: none;
}

.sanctuary-hour-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sanctuary-hour-pill:hover {
  color: #ffffff;
  border-color: rgba(229, 193, 88, 0.4);
}

.sanctuary-hour-pill.active {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.25), rgba(37, 99, 235, 0.2));
  border-color: var(--accent-gold);
  color: #fde68a;
  box-shadow: 0 0 15px rgba(229, 193, 88, 0.35);
  font-weight: 700;
}

.sanctuary-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Columna de Lectura Sacra */
.sanctuary-content-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 2.5rem 1.5rem 7rem;
  scroll-behavior: smooth;
}

.sanctuary-reading-column {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(16, 26, 42, 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 193, 88, 0.25);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(229, 193, 88, 0.2);
}

/* Tamaños de Letra en Santuario */
.sanctuary-reading-column.font-sm .psalm-verse-item,
.sanctuary-reading-column.font-sm .liturgy-hymn-strophe {
  font-size: 0.95rem;
  line-height: 1.7;
}

.sanctuary-reading-column.font-md .psalm-verse-item,
.sanctuary-reading-column.font-md .liturgy-hymn-strophe {
  font-size: 1.12rem;
  line-height: 1.88;
}

.sanctuary-reading-column.font-lg .psalm-verse-item,
.sanctuary-reading-column.font-lg .liturgy-hymn-strophe {
  font-size: 1.3rem;
  line-height: 2;
}

.sanctuary-reading-column.font-xl .psalm-verse-item,
.sanctuary-reading-column.font-xl .liturgy-hymn-strophe {
  font-size: 1.48rem;
  line-height: 2.15;
}

/* ==========================================================================
   MODO SANTUARIO PARA EL EVANGELIO DEL DÍA (PANTALLA COMPLETA TOTAL)
   ========================================================================== */
dialog#evangelio-dialog.fullscreen-sanctuary {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: radial-gradient(ellipse at 50% 20%, rgba(37, 99, 235, 0.18) 0%, rgba(6, 11, 18, 0.98) 75%), #060b12 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-content {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
}

dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-header {
  padding: 1rem 2rem !important;
  background: rgba(10, 17, 26, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(229, 193, 88, 0.3) !important;
}

dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-body {
  max-width: 880px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 2.5rem 2rem 6rem !important;
}

dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-footer {
  background: rgba(10, 17, 26, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(229, 193, 88, 0.25) !important;
  padding: 1rem 2rem !important;
}

/* Responsive Móvil para Pantalla Completa y Santuario */
@media (max-width: 768px) {
  .liturgia-epic-hero-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.35rem 1.15rem !important;
    gap: 1.15rem !important;
  }

  .btn-sanctuary-epic {
    width: 100% !important;
    justify-content: center !important;
  }

  .sanctuary-header {
    padding: 0.65rem 0.85rem !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
  }

  .sanctuary-header-left {
    gap: 0.75rem !important;
  }

  .sanctuary-header-right .sanctuary-btn-label {
    display: none !important;
  }

  .sanctuary-hours-nav {
    order: 3;
    width: 100%;
    padding: 0.35rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sanctuary-reading-column {
    padding: 1.75rem 1rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .sanctuary-content-scroll {
    padding: 1rem 0.65rem 6.5rem !important;
  }

  dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-body {
    padding: 1.25rem 0.85rem 6rem !important;
  }

  dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-header,
  dialog#evangelio-dialog.fullscreen-sanctuary .evangelio-modal-footer {
    padding: 0.75rem 1rem !important;
  }
}

/* ==========================================================================
   EVANGELIO DIARIO — NAVEGACIÓN LIMPIA, DIDÁCTICA Y 100% AMIGABLE EN MÓVIL
   Elimina la sensación de texto amontonado y guía paso a paso al orante
   ========================================================================== */

/* Barra de Controles del Evangelio */
.evangelio-controls-bar {
  display: flex;
  flex-direction: column;
  background: rgba(10, 17, 26, 0.98);
  border-bottom: 1px solid rgba(229, 193, 88, 0.2);
  flex-shrink: 0;
}

/* Selector Doble Vía (Memoria vs Feria) */
.evangelio-celebration-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.evangelio-toggle-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.evangelio-toggle-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.evangelio-toggle-pill.active {
  background: rgba(229, 193, 88, 0.18);
  border-color: var(--accent-gold);
  color: #fde68a;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.25);
}

/* 3 Pestañas Claras: Evangelio / 1ª Lectura & Salmo / Meditación */
.evangelio-section-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.evangelio-section-tabs::-webkit-scrollbar {
  display: none;
}

.evangelio-sec-btn {
  background: rgba(16, 26, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.evangelio-sec-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  color: #ffffff;
}

.evangelio-sec-btn.active {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.25), rgba(37, 99, 235, 0.25));
  border-color: var(--accent-gold);
  color: #fde68a;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(229, 193, 88, 0.35);
  transform: translateY(-1px);
}

/* Tarjeta Única Limpia de Lectura (Zero Amontonamiento) */
.evangelio-clean-card {
  background: rgba(16, 26, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 193, 88, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(229, 193, 88, 0.2);
  margin-bottom: 1.5rem;
}

.evangelio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(229, 193, 88, 0.2);
  flex-wrap: wrap;
  gap: 0.6rem;
}

.evangelio-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-serif);
}

.evangelio-card-badge {
  font-size: 0.76rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.evangelio-liturgical-dialog {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: #f87171;
  font-style: italic;
  margin-bottom: 1.35rem;
  line-height: 1.7;
  padding: 0.75rem 1rem;
  background: rgba(248, 113, 113, 0.08);
  border-left: 3px solid #f87171;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: pre-line;
}

.evangelio-text-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.95;
  color: #ffffff;
  margin-bottom: 1.5rem;
  white-space: pre-line;
  text-align: justify;
}

.evangelio-acclamation-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 1rem 1.25rem;
  background: rgba(229, 193, 88, 0.12);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

/* Barra de Pasos al Final de la Tarjeta */
.evangelio-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-evangelio-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 193, 88, 0.3);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-evangelio-step:hover {
  background: rgba(229, 193, 88, 0.2);
  border-color: var(--accent-gold);
  color: #fde68a;
  transform: translateY(-1px);
}

.btn-evangelio-step.step-primary {
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.25), rgba(37, 99, 235, 0.25));
  border-color: var(--accent-gold);
  color: #fde68a;
}

/* Pie de Página del Modal Organizado */
.evangelio-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 17, 26, 0.98);
  border-top: 1px solid rgba(229, 193, 88, 0.25);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.evangelio-footer-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.evangelio-footer-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Adaptación Específica para Pantallas Móviles (< 768px) */
@media (max-width: 768px) {
  dialog#evangelio-dialog {
    position: fixed !important;
    inset: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    z-index: 100005 !important;
  }

  .evangelio-modal-content {
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .desktop-only {
    display: none !important;
  }

  .evangelio-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 0.75rem !important;
    flex-shrink: 0 !important;
    gap: 0.5rem !important;
  }

  .evangelio-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .evangelio-header-icon-orb {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(245, 206, 98, 0.4) !important;
    color: var(--accent-gold) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .evangelio-header-icon-orb svg {
    width: 16px !important;
    height: 16px !important;
  }

  .evangelio-header-text-block {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .evangelio-title-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-wrap: nowrap !important;
  }

  .evangelio-modal-main-title {
    font-size: 1rem !important;
    font-family: var(--font-serif) !important;
    color: var(--accent-gold) !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .liturgy-color-pill {
    padding: 0.1rem 0.45rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .evangelio-modal-sub-title {
    font-size: 0.68rem !important;
    color: #94a3b8 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 190px !important;
    margin-top: 0.1rem !important;
  }

  .evangelio-header-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .evangelio-header-actions-group .btn-icon {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
  }

  .evangelio-header-actions-group .btn-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .evangelio-date-nav-bar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    padding: 0.35rem 0.65rem !important;
    background: rgba(6, 12, 22, 0.98) !important;
    border-bottom: 1px solid rgba(245, 206, 98, 0.15) !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .btn-evangelio-date-nav {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.74rem !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
  }

  .btn-evangelio-date-nav.btn-today-day {
    background: rgba(245, 206, 98, 0.12) !important;
    border-color: rgba(245, 206, 98, 0.4) !important;
    color: #f5ce62 !important;
    font-weight: 700 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .evangelio-celebration-pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 0.35rem 0.65rem !important;
    gap: 0.35rem !important;
    justify-content: stretch !important;
    flex-shrink: 0 !important;
  }

  .evangelio-toggle-pill {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    padding: 0.35rem 0.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    border-radius: var(--radius-sm) !important;
  }

  .evangelio-section-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 0.35rem 0.65rem !important;
    gap: 0.3rem !important;
    justify-content: stretch !important;
    flex-shrink: 0 !important;
  }

  .evangelio-sec-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    padding: 0.38rem 0.2rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: var(--radius-sm) !important;
  }

  .evangelio-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.85rem 0.75rem 3.5rem !important;
  }

  .evangelio-clean-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(13, 23, 38, 0.95) !important;
    border: 1px solid rgba(245, 206, 98, 0.25) !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }

  .evangelio-text-body {
    font-size: 1.15rem !important;
    line-height: 1.85 !important;
    color: #f8fafc !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    text-align: justify !important;
    letter-spacing: 0.01em !important;
  }

  .evangelio-step-nav {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .btn-evangelio-step {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Cero obstrucción: El pie de página grande se oculta en móvil; las acciones están en el encabezado y al final de la lectura */
  .evangelio-modal-footer {
    display: none !important;
  }
}

/* ==========================================================================
   SEGURIDAD VISUAL ANTICORTE EN MÓVIL Y COMPUTADORA (TOTAL PREVENTION)
   ========================================================================== */
html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
}

#main-content {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative;
}

/* ==========================================================================
   QUIÉNES SOMOS INTERACTIVE TABS & STATS
   ========================================================================== */
.qs-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.qs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.qs-tab-btn:hover {
  color: #ffffff;
  border-color: var(--accent-gold-border);
  background: rgba(243, 207, 101, 0.08);
}

.qs-tab-btn.active {
  color: #050a12;
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(243, 207, 101, 0.35);
  font-weight: 700;
}

.qs-tab-content-box {
  display: none;
  animation: fadeIn 0.35s ease;
}

.qs-tab-content-box.active {
  display: block;
}

.qs-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}

.qs-stat-card {
  background: rgba(14, 25, 45, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.qs-stat-card:hover {
  border-color: var(--accent-gold-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.qs-stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.qs-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   PROYECTOS CINEMATOGRÁFICOS DE ALTO IMPACTO
   ========================================================================== */
.cinematic-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .cinematic-projects-grid {
    grid-template-columns: 1fr !important;
  }
}

.cinematic-project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cinematic-project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold-border);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(243, 207, 101, 0.2);
}

.project-widescreen-banner {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-widescreen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.cinematic-project-card:hover .project-widescreen-img {
  transform: scale(1.06);
}

.project-widescreen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,18,0.2) 0%, rgba(5,10,18,0.7) 60%, rgba(11,20,36,0.98) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.project-content-body {
  padding: 1.75rem 2rem 2.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   YOUTUBE PODCASTS & REPRODUCTOR CINEMA MODAL
   ========================================================================== */
.podcasts-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0 3.5rem;
}

.podcast-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.podcast-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(243, 207, 101, 0.2);
}

.podcast-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060b14;
}

.podcast-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.podcast-card-item:hover .podcast-thumb-wrap img {
  transform: scale(1.07);
}

.podcast-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.podcast-card-item:hover .podcast-play-overlay {
  background: rgba(5, 10, 20, 0.25);
}

.podcast-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #050a12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(243, 207, 101, 0.5);
  transition: transform 0.3s ease;
}

.podcast-card-item:hover .podcast-play-circle {
  transform: scale(1.15);
}

.podcast-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.podcast-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.podcast-card-speaker {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.podcast-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* Modal de Video YouTube */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.video-modal-backdrop.active {
  display: flex;
}

.video-modal-container {
  width: 100%;
  max-width: 920px;
  background: #080f1a;
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(243, 207, 101, 0.2);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(15, 26, 46, 0.9);
  border-bottom: 1px solid var(--border-light);
}

.video-modal-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin: 0;
}

.video-modal-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}

.video-modal-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   LECTOR DE ARTÍCULOS & REFLEXIONES
   ========================================================================== */
.article-reader-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(4, 8, 16, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.article-reader-modal.active {
  display: flex;
}

.article-reader-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
}

.article-reader-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 20, 36, 0.95);
}

.article-reader-body {
  padding: 2.25rem 2rem;
  overflow-y: auto;
  line-height: 1.85;
  color: #e2e8f0;
  font-size: 1.05rem;
}

.article-reader-body p {
  margin-bottom: 1.5rem;
}

.article-reader-body h3 {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin: 1.75rem 0 0.75rem;
}

.article-reader-body blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(243, 207, 101, 0.08);
  font-style: italic;
  color: #fef08a;
}

/* ==========================================================================
   LOGOS ADAPTATIVOS SEGÚN EL FONDO (CLARO / OSCURO)
   ========================================================================== */
.logo-on-dark {
  display: inline-block !important;
}

.logo-on-light {
  display: none !important;
}

[data-theme="light"] .logo-on-dark,
.bg-light .logo-on-dark,
.light-surface .logo-on-dark {
  display: none !important;
}

[data-theme="light"] .logo-on-light,
.bg-light .logo-on-light,
.light-surface .logo-on-light {
  display: inline-block !important;
}

/* Modal de Video y Artículos: soporte para clases .open y .active */
.video-modal-backdrop.open,
.video-modal-backdrop.active,
.article-reader-modal.open,
.article-reader-modal.active {
  display: flex !important;
}

/* ==========================================================================
   MEDIA STUDIO & FLOATING CINEMA MINI-PLAYER (TOTALMENTE AUTOMATIZADO)
   ========================================================================== */

.media-studio-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  min-width: 0 !important;
  background: radial-gradient(circle at 50% 0%, rgba(20, 35, 60, 0.7), rgba(5, 10, 18, 0.95) 80%);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(243, 207, 101, 0.1);
  margin-bottom: 3.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .media-studio-card {
    padding: 2.25rem;
  }
}

/* Selector de Playlists en Pestañas con Desplazamiento Fluido */
.media-playlist-nav {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.media-playlist-nav::-webkit-scrollbar {
  height: 4px;
}

.media-playlist-nav::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.media-playlist-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  background: rgba(15, 27, 45, 0.85);
  border: 1px solid rgba(243, 207, 101, 0.25);
  color: var(--text-body);
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.media-playlist-pill:hover {
  background: rgba(243, 207, 101, 0.15);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.media-playlist-pill.active {
  background: linear-gradient(135deg, rgba(243, 207, 101, 0.25), rgba(79, 141, 249, 0.25));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(243, 207, 101, 0.25);
  font-weight: 600;
}

/* Grid del Estudio: Reproductor + Lista de Episodios */
.media-studio-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .media-studio-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
  }
}

/* Contenedor del Reproductor Principal */
.media-player-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(243, 207, 101, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.media-player-screen {
  position: relative;
  width: 100% !important;
  padding-top: 56.25% !important; /* 16:9 Aspect Ratio */
  height: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(circle at center, #1e293b 0%, #0a0e17 100%);
  background-size: cover;
  background-position: center;
}

.media-player-screen iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  z-index: 1;
}

/* Poster Cover Anti-Pantalla Negra */
.media-player-poster {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  background: radial-gradient(circle at center, #1e293b 0%, #0a0e17 100%);
}

.media-player-poster.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.media-player-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.4s ease;
}

.media-player-poster:hover img {
  transform: scale(1.05);
}

.media-poster-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.15) 0%, rgba(10, 14, 23, 0.35) 60%, rgba(10, 14, 23, 0.85) 100%);
  pointer-events: none;
}

.media-poster-play-btn {
  position: relative;
  z-index: 6;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0a0e17;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-player-poster:hover .media-poster-play-btn {
  transform: scale(1.12);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.65), 0 0 0 6px rgba(245, 158, 11, 0.35);
}

.media-poster-label {
  position: absolute;
  bottom: 0.85rem;
  left: 1rem;
  right: 1rem;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.media-poster-label span {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-poster-label p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
  .media-poster-play-btn {
    width: 52px;
    height: 52px;
  }
  .media-poster-play-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .media-poster-label {
    bottom: 0.45rem;
    left: 0.5rem;
    right: 0.5rem;
    gap: 0.4rem;
  }
  .media-poster-label span {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62%;
  }
  .media-poster-label p {
    font-size: 0.62rem;
    white-space: nowrap;
  }
}

/* Barra de Control y Título debajo del Video */
.media-player-meta {
  padding: 1.25rem 0 0;
  width: 100%;
  box-sizing: border-box;
}

.media-now-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.media-now-playing-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.media-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

/* Lista Lateral de Episodios (Cola de Reproducción) */
.media-queue-box {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  background: rgba(11, 20, 36, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.media-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.media-queue-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
}

.media-queue-list::-webkit-scrollbar {
  width: 4px;
}

.media-queue-list::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.media-episode-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(15, 27, 45, 0.5);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
}

.media-episode-item:hover {
  background: rgba(20, 35, 60, 0.85);
  border-color: rgba(243, 207, 101, 0.35);
  transform: translateX(3px);
}

.media-episode-item.active {
  background: rgba(243, 207, 101, 0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(243, 207, 101, 0.2);
}

.media-episode-thumb {
  width: 95px;
  min-width: 95px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #000000;
  flex-shrink: 0;
}

.media-episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-episode-play-icon {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-episode-item:hover .media-episode-play-icon,
.media-episode-item.active .media-episode-play-icon {
  opacity: 1;
}

.media-episode-info {
  flex: 1;
  min-width: 0;
}

.media-episode-badge {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-episode-name {
  font-size: 0.86rem;
  color: #f1f5f9;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   MINI-REPRODUCTOR FLOTANTE PERSISTENTE (PICTURE-IN-PICTURE NATIVO)
   ========================================================================== */
.floating-miniplayer-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100% - 32px);
  background: rgba(11, 20, 36, 0.98);
  border: 1.5px solid var(--accent-gold);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(243, 207, 101, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFloat 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-miniplayer-dock.active {
  display: flex;
}

@keyframes slideUpFloat {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-miniplayer-header {
  padding: 0.5rem 0.85rem;
  background: rgba(5, 10, 18, 0.95);
  border-bottom: 1px solid rgba(243, 207, 101, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-miniplayer-title {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.floating-miniplayer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.floating-btn-mini {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.floating-btn-mini:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.floating-miniplayer-body {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: radial-gradient(circle at center, #1e293b 0%, #0a0e17 100%);
}

.floating-miniplayer-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES Y TABLETS (RESPONSIVE TOTAL AUTOMATIZADO)
   ========================================================================== */

/* Tablet (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .media-studio-card {
    padding: 1.75rem 1.25rem !important;
  }
  .media-studio-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }
  .media-queue-box {
    max-height: 420px !important;
  }
  .media-player-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
}

/* Celulares (<= 767px) */
@media (max-width: 767px) {
  .media-studio-card {
    padding: 0.85rem 0.65rem !important;
    border-radius: 12px !important;
    margin-bottom: 2rem !important;
  }

  .media-playlist-nav {
    gap: 0.4rem !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.5rem !important;
  }

  .media-playlist-pill {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.76rem !important;
    gap: 0.35rem !important;
  }

  .media-player-meta {
    padding: 0.85rem 0.2rem 0 !important;
  }

  .media-now-playing-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }

  .media-player-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .media-player-actions > * {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 0.84rem !important;
    padding: 0.5rem 1rem !important;
  }

  .media-queue-box {
    padding: 0.75rem !important;
    max-height: 340px !important;
    border-radius: 10px !important;
  }

  .media-queue-header {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .media-queue-title {
    font-size: 0.95rem !important;
  }

  .media-episode-item {
    padding: 0.45rem !important;
    gap: 0.6rem !important;
    border-radius: 6px !important;
  }

  .media-episode-thumb {
    width: 76px !important;
    min-width: 76px !important;
    height: 48px !important;
  }

  .media-episode-badge {
    font-size: 0.68rem !important;
  }

  .media-episode-name {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  /* Mini-reproductor flotante en Celular */
  .floating-miniplayer-dock {
    bottom: 12px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(243, 207, 101, 0.3) !important;
  }

  .floating-miniplayer-header {
    padding: 0.4rem 0.65rem !important;
  }

  .floating-miniplayer-title {
    font-size: 0.72rem !important;
    max-width: calc(100% - 110px) !important;
  }

  /* Modal de Video en Celular */
  .video-modal-backdrop {
    padding: 0.5rem !important;
  }

  .video-modal-container {
    width: 100% !important;
    border-radius: 10px !important;
  }

  .video-modal-header {
    padding: 0.65rem 0.85rem !important;
  }

  .video-modal-title {
    font-size: 0.9rem !important;
  }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN INFERIOR MÓVIL CON ATAJOS RÁPIDOS (MOBILE BOTTOM DOCK)
   Navegación nativa tipo app sacra con acceso rápido a Liturgia, Evangelio y Rosario
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom, 10px));
    padding-bottom: env(safe-area-inset-bottom, 10px);
    background: rgba(5, 10, 18, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(243, 207, 101, 0.35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9), 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: border-box;
  }

  /* Padding inferior al body para que el contenido de la página no quede tapado por la barra */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 10px)) !important;
  }

  .mobile-dock-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0.25rem 0.2rem;
    flex: 1 1 0;
    max-width: 72px;
    min-width: 0;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dock-item i {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
    transition: all 0.2s ease;
  }

  .mobile-dock-item.active {
    color: var(--accent-gold);
  }

  .mobile-dock-item.active i {
    color: var(--accent-gold);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(243, 207, 101, 0.7));
  }

  .mobile-dock-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
  }

  /* Atajo central: Medallón Sagrado Elevado para el Evangelio */
  .mobile-dock-item.center-feature {
    position: relative;
    top: -14px;
    color: #ffffff;
    font-weight: 700;
  }

  .dock-center-halo {
    position: absolute;
    top: -4px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 207, 101, 0.4) 0%, transparent 70%);
    animation: sacredPulse 3s infinite ease-in-out;
    pointer-events: none;
  }

  .dock-center-orb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff7da 0%, #f6d878 35%, #cca22b 75%, #9a6f08 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(243, 207, 101, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050a12;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .dock-center-orb i {
    width: 20px;
    height: 20px;
    color: #050a12;
    stroke-width: 2.5px;
  }

  .mobile-dock-item.center-feature:active .dock-center-orb {
    transform: scale(0.92);
  }

  .mobile-dock-item.center-feature span {
    font-size: 0.68rem;
    color: var(--accent-gold);
    margin-top: 2px;
  }

  /* ==========================================================================
     REGLAS MAESTRAS ANTICORTE DE TEXTO EN MÓVIL
     "en varias partes las letras están salidas fuera de su caja" -> TOTAL RESOLUTION
     ========================================================================== */
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  /* Prevenir desborde de textos largos sin romper botones ni insignias */
  p, blockquote,
  .section-title, .hero-cinematic-title, .hero-cinematic-sub,
  .pillar-title, .pillar-desc,
  .course-title, .course-desc,
  .identity-title, .identity-body,
  .media-now-playing-title, .media-queue-title, .media-episode-name,
  .service-emblem-title, .service-emblem-desc,
  .group-card-title, .article-card-title,
  .liturgia-reading-text, .evangelio-text-body {
    word-break: normal;
    overflow-wrap: break-word;
  }

  /* PROTECCIÓN ABSOLUTA ANTICORTE VERTICAL PARA BOTONES, INSIGNIAS Y NAVEGACIÓN */
  .btn-gold-cta,
  .nav-item-link,
  .dropdown-item,
  .liturgia-cal-btn,
  .celebration-pill,
  .liturgical-season-badge,
  .liturgical-salterio-badge,
  .celebration-switch-badge,
  .celebration-switch-label,
  .pill-name, .pill-tag,
  .badge-pill, .badge-counter,
  .table-badge,
  .evangelio-toggle-pill,
  .evangelio-sec-btn,
  .evangelio-card-tag, .evangelio-card-badge,
  .portal-course-badge {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: normal;
  }

  /* Insignias y etiquetas que pueden contener textos largos: deben envolverse limpiamente */
  .course-badge-highlight,
  .unlock-badge-pill,
  .course-insignia-pill,
  .onboarding-cta-badge,
  .sacred-gold-pill,
  .choice-card-badge-top {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
  }

  /* Asegurar que las fechas y festividades litúrgicas no se partan letra por letra */
  .liturgia-date-title,
  .liturgia-feast-title,
  .evangelio-modal-main-title,
  .evangelio-modal-sub-title {
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  /* Ajustar tamaños fluidos para evitar desbordes en teléfonos estrechos (320px - 414px) */
  .hero-cinematic-title {
    font-size: clamp(1.65rem, 6.8vw, 2.25rem) !important;
    line-height: 1.18 !important;
    padding: 0 0.5rem !important;
  }

  .section-title {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem) !important;
    line-height: 1.25 !important;
    padding: 0 0.25rem !important;
  }

  .hero-cinematic-sub {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    padding: 0 0.5rem !important;
  }

  /* Botones del hero y llamadas a la acción */
  .hero-cinematic-actions {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
    gap: 0.65rem !important;
  }

  .hero-cinematic-actions > * {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    line-height: 1.3 !important;
  }

  /* Tarjetas y cajas contenedoras: contener todo dentro del ancho disponible */
  .pillar-card, .course-card, .service-emblem-card,
  .identity-spotlight-card, .media-studio-card, .plan-card,
  .group-card, .qs-stat-card, .mystery-btn,
  .pricing-card, .colab-card, .portal-card,
  .testimonial-card, .article-card, .stat-card,
  .course-featured-banner, .credo-quiz-card,
  .onboarding-choice-card, .colaboracion-emblem-banner {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Botones de misterios del Santo Rosario: evitar que los títulos salgan de la caja */
  .mystery-btn {
    white-space: normal !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    padding: 0.75rem 0.85rem !important;
    text-align: left !important;
    height: auto !important;
    min-height: 48px !important;
  }

  /* Píldoras e insignias con texto largo */
  .section-eyebrow, .hero-cinematic-badge, .identity-badge,
  .media-now-playing-badge,
  .category-pill, .rosary-mystery-pill {
    white-space: normal !important;
    max-width: 100% !important;
    text-align: center !important;
    line-height: 1.35 !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Banner de Cookies en Móvil para que no tape la barra y no se salga */
  .cookie-consent-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.85rem 1rem !important;
    gap: 0.75rem !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 10px)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cookie-consent-actions {
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .cookie-consent-actions button {
    flex: 1 1 auto !important;
    text-align: center !important;
    font-size: 0.76rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Topbar en Móvil */
  .header-topbar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.35rem 0.75rem !important;
  }

  /* Menú desplegable y cajón móvil */
  .mobile-drawer-aside {
    max-width: 88vw !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   LOGO OFICIAL DE COLABORACIÓN DIVINA DATA
   Emblema sagrado para planes de mecenazgo y perfiles de colaboradores
   ========================================================================== */
.colaboracion-emblem-banner {
  background: radial-gradient(ellipse at 50% 30%, rgba(14, 30, 56, 0.95) 0%, rgba(5, 10, 18, 0.98) 100%);
  border: 1.5px solid rgba(243, 207, 101, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 0 auto 3.5rem auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.colaboracion-emblem-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colaboracion-glow-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 207, 101, 0.35) 0%, transparent 70%);
  filter: blur(14px);
  animation: sacredPulse 3.5s infinite ease-in-out;
  pointer-events: none;
}

.colaboracion-seal-svg {
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9));
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.colaboracion-seal-svg:hover {
  transform: scale(1.04) rotate(1deg);
}

.colaboracion-emblem-text {
  flex: 1;
}

.colaboracion-emblem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(243, 207, 101, 0.15);
  border: 1px solid rgba(243, 207, 101, 0.4);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.colaboracion-emblem-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.colaboracion-emblem-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .colaboracion-emblem-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .colaboracion-emblem-heading {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   PORTAL DE ESTUDIANTES, AUTENTICACIÓN GOOGLE & CLAVE
   ========================================================================== */
.portal-card-container {
  max-width: 1050px;
  margin: 0 auto;
}

.portal-auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: radial-gradient(ellipse at 50% 20%, rgba(14, 28, 52, 0.95) 0%, rgba(6, 12, 22, 0.98) 100%);
  border: 1px solid rgba(243, 207, 101, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.portal-auth-header {
  margin-bottom: 1.75rem;
}

.auth-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: rgba(243, 207, 101, 0.12);
  border: 1px solid rgba(243, 207, 101, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.auth-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Botón Google Oficial con Guías de Google Identity */
.btn-google-official {
  width: 100%;
  height: 48px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-google-official:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border-color: #d2e3fc;
}

.auth-divider {
  position: relative;
  margin: 1.75rem 0;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  position: relative;
  background: #08111e;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-tabs-toggle {
  display: flex;
  background: rgba(5, 10, 18, 0.6);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.55rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: rgba(243, 207, 101, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(243, 207, 101, 0.4);
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.portal-form .form-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.portal-form .form-group input,
.admin-add-form input,
.admin-add-form select {
  width: 100%;
  height: 44px;
  background: rgba(5, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.portal-form .form-group input:focus,
.admin-add-form input:focus,
.admin-add-form select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(243, 207, 101, 0.25);
}

/* Quick Demo Access Pills */
.quick-demo-access-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.quick-demo-label {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.quick-demo-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-demo-pill {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-demo-pill:hover {
  background: rgba(243, 207, 101, 0.15);
  border-color: var(--accent-gold);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-demo-pill.demo-admin {
  border-color: rgba(243, 207, 101, 0.4);
  background: rgba(243, 207, 101, 0.08);
  color: var(--accent-gold);
}

.btn-demo-pill.demo-colab {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
}

/* ==========================================================================
   PERFIL DEL ESTUDIANTE / DASHBOARD
   ========================================================================== */
.profile-hero-card {
  background: radial-gradient(ellipse at 50% 20%, rgba(14, 28, 54, 0.95) 0%, rgba(5, 10, 18, 0.98) 100%);
  border: 1.5px solid rgba(243, 207, 101, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-bottom: 2.5rem;
}

.profile-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 25px rgba(243, 207, 101, 0.45);
}

.profile-role-orb {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5ce62 0%, #cca22b 100%);
  color: #050a12;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #050a12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.profile-details-box {
  flex: 1;
}

.profile-names-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.profile-user-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.profile-user-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem 0;
}

.profile-meta-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.profile-actions-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Insignias Oficiales */
.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-official.colaborador {
  background: linear-gradient(135deg, rgba(243, 207, 101, 0.25) 0%, rgba(204, 162, 43, 0.35) 100%);
  border: 1.5px solid var(--accent-gold);
  color: #fff8db;
  box-shadow: 0 0 15px rgba(243, 207, 101, 0.4);
}

.badge-official.admin {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(126, 34, 206, 0.35) 100%);
  border: 1.5px solid #c084fc;
  color: #f3e8ff;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.badge-official.alumno {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* Pestañas de Navegación del Dashboard */
.portal-tabs-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.portal-tab-link {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.portal-tab-link:hover {
  color: #ffffff;
}

.portal-tab-link.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* Tarjetas de Cursos en el Portal */
.portal-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.portal-course-card {
  background: rgba(11, 20, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.portal-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 207, 101, 0.4);
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.course-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.course-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #f5ce62 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ==========================================================================
   DIPLOMA OFICIAL DE ACREDITACIÓN (ESTILO SACRO CON MEMBRETE)
   ========================================================================== */
.diploma-certificate-wrapper {
  background: radial-gradient(ellipse at 50% 50%, #fffef8 0%, #f9f5e3 85%, #f1e9cb 100%);
  color: #1a1a1a;
  border: 12px double #8c6a12;
  border-radius: 8px;
  padding: 3.5rem 3rem;
  max-width: 820px;
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(204, 162, 43, 0.25);
  font-family: var(--font-serif);
  text-align: center;
}

.diploma-inner-border {
  border: 2px solid #b38b25;
  padding: 2rem;
  position: relative;
}

.diploma-header-crest {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.diploma-institution {
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: #785a10;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.diploma-motto {
  font-size: 0.82rem;
  font-style: italic;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.diploma-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.diploma-conferred-to {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.diploma-student-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #8c6a12;
  border-bottom: 2px solid #cca22b;
  display: inline-block;
  padding: 0 2rem 0.5rem 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.diploma-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.diploma-signatures-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.diploma-signature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.diploma-sign-line {
  width: 190px;
  height: 1.5px;
  background: #334155;
  margin-bottom: 0.5rem;
}

.diploma-sign-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.diploma-sign-title {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diploma-seal-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px double #8c6a12;
  background: radial-gradient(circle, #f5ce62 0%, #b38b25 100%);
  color: #050a12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.diploma-seal-text {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   PANEL DE ADMINISTRADOR GENERAL & TABLA INTERACTIVA
   ========================================================================== */
.admin-dashboard-dialog {
  width: min(1100px, 95vw);
  max-height: 90vh;
  background: #060e1a;
  border: 1.5px solid rgba(243, 207, 101, 0.5);
  border-radius: var(--radius-lg);
  padding: 0;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.admin-dashboard-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.admin-dialog-inner {
  padding: 2.25rem;
}

.admin-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.admin-crown-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(243, 207, 101, 0.15);
  border: 1px solid rgba(243, 207, 101, 0.4);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #ffffff;
  margin: 0;
}

.admin-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: rgba(14, 25, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.admin-stat-card.gold {
  border-color: rgba(243, 207, 101, 0.4);
  background: rgba(243, 207, 101, 0.08);
}

.admin-stat-card .stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.admin-stat-card .stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(5, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  width: 280px;
}

.admin-search-box input {
  background: transparent;
  border: none;
  height: 38px;
  color: #ffffff;
  font-size: 0.85rem;
  width: 100%;
}

.admin-search-box input:focus {
  outline: none;
}

.admin-filters-group {
  display: flex;
  gap: 0.45rem;
}

.admin-filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filter-pill.active {
  background: rgba(243, 207, 101, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.admin-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  position: relative;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 680px;
}

.mobile-cell-title {
  display: none;
}

.admin-users-table th {
  background: rgba(5, 10, 18, 0.95);
  padding: 1rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.admin-users-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.admin-users-table tr:hover {
  background: rgba(243, 207, 101, 0.04);
}

.user-row-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.user-row-info {
  min-width: 0;
  flex: 1;
}

.user-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.user-row-name {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.user-row-email {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: normal;
  word-break: break-all;
}

.btn-table-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-table-action:hover {
  background: rgba(243, 207, 101, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-table-action.colab-active {
  background: rgba(243, 207, 101, 0.25);
  border-color: var(--accent-gold);
  color: #fff7da;
}

.admin-add-user-box {
  background: rgba(14, 25, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.admin-add-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-add-form input,
.admin-add-form select {
  flex: 1 1 200px;
}

/* ==========================================================================
   ADMIN DASHBOARD DIALOG - MOBILE RESPONSIVE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
  .admin-dashboard-dialog {
    width: min(96vw, 680px) !important;
    max-height: 94vh !important;
    margin: auto !important;
    border-radius: 14px !important;
  }

  .admin-dialog-inner {
    padding: 1.15rem 0.85rem !important;
  }

  .admin-dialog-header {
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.85rem !important;
    align-items: flex-start !important;
  }

  .admin-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }

  .admin-subtitle {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  .admin-crown-box {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  /* Stats grid: 2 columnas limpias en móvil */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .admin-stat-card {
    padding: 0.85rem 0.6rem !important;
    border-radius: 10px !important;
  }

  .admin-stat-card .stat-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
  }

  .admin-stat-card .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Tabs de navegación móvil */
  .admin-tabs-nav {
    display: flex !important;
    gap: 0.4rem !important;
    margin-bottom: 1rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.5rem !important;
  }

  .admin-tab-btn {
    font-size: 0.78rem !important;
    padding: 0.5rem 0.85rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Toolbar: Buscador y filtros */
  .admin-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 1rem !important;
  }

  .admin-search-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-filters-group {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.25rem !important;
  }

  .admin-filter-pill {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Transformar tabla a tarjetas sacras elegantes en móvil */
  #admin-subview-users .admin-table-container {
    border: none !important;
    background: transparent !important;
    overflow-x: visible !important;
    margin-bottom: 1.25rem !important;
  }

  #admin-subview-users .admin-users-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #admin-subview-users .admin-users-table thead {
    display: none !important;
  }

  #admin-subview-users .admin-users-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  #admin-subview-users .admin-users-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(135deg, rgba(14, 25, 45, 0.95), rgba(7, 18, 36, 0.98)) !important;
    border: 1.5px solid rgba(243, 207, 101, 0.35) !important;
    border-radius: 12px !important;
    padding: 0.95rem 1rem !important;
    gap: 0.65rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #admin-subview-users .admin-users-table td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.4rem 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 0.75rem !important;
  }

  #admin-subview-users .admin-users-table td:first-child {
    border-bottom: 1px solid rgba(243, 207, 101, 0.25) !important;
    padding-bottom: 0.65rem !important;
    justify-content: flex-start !important;
  }

  #admin-subview-users .admin-users-table td:last-child {
    border-bottom: none !important;
    padding-top: 0.5rem !important;
    justify-content: stretch !important;
  }

  .mobile-cell-title {
    display: inline-block !important;
    font-size: 0.72rem !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    flex-shrink: 0 !important;
  }

  .table-actions-cell {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .table-actions-cell .btn-table-action {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.55rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  /* Formulario añadir usuario */
  .admin-add-user-box {
    padding: 1rem 0.85rem !important;
  }

  .admin-add-form {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .admin-add-form input,
  .admin-add-form select,
  .admin-add-form button {
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  /* Tabla de presencia en vivo con desplazamiento horizontal suave */
  #admin-subview-live .admin-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #admin-subview-live .admin-users-table {
    min-width: 650px !important;
    display: table !important;
  }

  #admin-subview-live .admin-users-table thead {
    display: table-header-group !important;
  }

  #admin-subview-live .admin-users-table tbody {
    display: table-row-group !important;
  }

  #admin-subview-live .admin-users-table tr {
    display: table-row !important;
  }

  #admin-subview-live .admin-users-table th,
  #admin-subview-live .admin-users-table td {
    display: table-cell !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   GOOGLE AUTH DIALOG (ONE-TAP CHOOOSER)
   ========================================================================== */
.google-auth-dialog {
  width: min(440px, 92vw);
  background: #ffffff;
  color: #202124;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.google-auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.google-dialog-inner {
  padding: 1.75rem 1.5rem 1.25rem 1.5rem;
}

.google-dialog-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid #e8eaed;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.google-dialog-title {
  font-size: 1rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
}

.google-dialog-sub {
  font-size: 0.78rem;
  color: #5f6368;
  margin: 0;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.google-account-item:hover {
  background: #f1f3f4;
}

.google-acc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.google-acc-icon-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-acc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.google-acc-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #202124;
}

.google-acc-email {
  font-size: 0.78rem;
  color: #5f6368;
}

.google-acc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #e8eaed;
  color: #3c4043;
}

.google-acc-badge.admin {
  background: #fce8e6;
  color: #c5221f;
}

.google-acc-badge.colab {
  background: #e6f4ea;
  color: #137333;
}

.google-acc-badge.student {
  background: #e8f0fe;
  color: #1a73e8;
}

.google-dialog-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f3f4;
  font-size: 0.72rem;
  color: #70757a;
  line-height: 1.4;
}

/* Print Diploma */
@media print {
  body * {
    visibility: hidden;
  }
  .diploma-certificate-wrapper,
  .diploma-certificate-wrapper * {
    visibility: visible;
  }
  .diploma-certificate-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border-width: 8px;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   DIPLOMA MODAL & SACRED CERTIFICATE ARTISTRY
   ========================================================================== */
.diploma-fullscreen-dialog {
  width: min(940px, 96vw);
  max-height: 92vh;
  background: #060e1a;
  border: 1.5px solid rgba(243, 207, 101, 0.5);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.diploma-fullscreen-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.diploma-dialog-inner {
  padding: 1.75rem;
}

.diploma-dialog-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.diploma-certificate-wrapper {
  background: #fbf8ee;
  border-radius: 4px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

.diploma-sheet {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #faf6e8 85%, #f2ebd0 100%);
  padding: 1.5rem;
  color: #1a202c;
  font-family: 'Playfair Display', Georgia, serif;
}

.diploma-border-outer {
  border: 6px double #cca22b;
  padding: 0.75rem;
}

.diploma-border-inner {
  border: 1.5px solid #cca22b;
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
}

.diploma-corner {
  position: absolute;
  color: #cca22b;
  font-size: 1.4rem;
  line-height: 1;
}

.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; }
.corner-bl { bottom: 8px; left: 8px; }
.corner-br { bottom: 8px; right: 8px; }

.diploma-seal-crest {
  margin: 0 auto 0.75rem;
  display: flex;
  justify-content: center;
}

.diploma-institution {
  margin-bottom: 1.25rem;
}

.diploma-inst-sub {
  display: block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #718096;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.diploma-inst-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0c1c38;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem 0;
}

.diploma-motto {
  font-size: 0.85rem;
  font-style: italic;
  color: #8c6a12;
}

.diploma-award-banner {
  background: linear-gradient(90deg, transparent, rgba(204, 162, 43, 0.15), transparent);
  border-top: 1px solid #cca22b;
  border-bottom: 1px solid #cca22b;
  padding: 0.45rem 1rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #92400e;
}

.diploma-intro {
  font-size: 0.88rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 0.85rem;
  line-height: 1.6;
}

.diploma-student-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0c1c38;
  margin: 0.5rem 0 1rem;
  text-decoration: underline;
  text-decoration-color: #cca22b;
  text-underline-offset: 6px;
}

.diploma-statement {
  font-size: 0.88rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.diploma-course-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 1.25rem 0;
}

.diploma-meta-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: #4a5568;
  padding: 0.5rem;
  background: rgba(204, 162, 43, 0.08);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.diploma-signatures-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.diploma-sign-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
}

.diploma-sign-line {
  border-bottom: 1px solid #718096;
  width: 100%;
  margin-bottom: 0.35rem;
}

.diploma-sign-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a202c;
}

.diploma-sign-role {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  color: #718096;
}

.diploma-official-gold-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #fceea7 0%, #cca22b 75%, #8c6a12 100%);
  border: 3px double #ffffff;
  box-shadow: 0 4px 14px rgba(140, 106, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.seal-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(5, 10, 18, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seal-text-top, .seal-text-bottom {
  font-family: system-ui, sans-serif;
  font-size: 0.45rem;
  font-weight: 800;
  color: #071224;
  letter-spacing: 0.05em;
}

.seal-cross {
  font-size: 1.25rem;
  color: #071224;
  line-height: 1;
  margin: 1px 0;
}

/* ==========================================================================
   PORTAL EXTRA & USER BADGES IN TOPBAR
   ========================================================================== */
.nav-user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: inline-block;
  line-height: 1;
}

.nav-user-badge.admin {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.nav-user-badge.colab {
  background: rgba(245, 206, 98, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 206, 98, 0.4);
}

.nav-user-badge.alumno {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.table-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.table-badge.colab {
  background: rgba(245, 206, 98, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 206, 98, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.table-badge.alumno {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-grant-colab {
  background: linear-gradient(135deg, rgba(245, 206, 98, 0.2), rgba(204, 162, 43, 0.1));
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-grant-colab:hover {
  background: var(--accent-gold);
  color: #071224;
}

.portal-course-thumb {
  position: relative;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.portal-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-course-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.portal-course-badge.completed {
  background: #166534;
  color: #bbf7d0;
  border: 1px solid #22c55e;
}

.portal-course-badge.in-progress {
  background: rgba(5, 10, 18, 0.85);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.portal-course-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.portal-course-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.portal-course-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

/* Colaborador Status Tab */
.colaborador-status-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: rgba(14, 25, 45, 0.75);
  border: 1.5px solid var(--accent-gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .colaborador-status-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }
}

.colab-hero-info {
  flex: 1;
}

.colab-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.colab-perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Diplomas Grid in Portal */
.portal-diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 480px) {
  .portal-diplomas-grid {
    grid-template-columns: 1fr;
  }
}

.diploma-card-preview {
  background: rgba(14, 25, 45, 0.85);
  border: 1.5px solid var(--accent-gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}

.diploma-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.diploma-seal-mini {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(245, 206, 98, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diploma-card-titles {
  flex: 1;
}

.diploma-doc-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2rem;
}

.diploma-card-course {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.diploma-card-meta {
  background: rgba(5, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   SACRED INSIGNIAS, LIVE PRESENCE MONITOR & COLLABORATOR SYSTEM
   ========================================================================== */

.live-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap !important;
}

.admin-tab-btn:hover {
  background: rgba(243, 207, 101, 0.12);
  border-color: rgba(243, 207, 101, 0.35);
  color: #ffffff;
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(243, 207, 101, 0.22) 0%, rgba(197, 155, 39, 0.3) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(243, 207, 101, 0.15);
}

.colab-master-unlock-banner {
  background: linear-gradient(135deg, rgba(20, 36, 62, 0.95) 0%, rgba(9, 17, 30, 0.98) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2rem 0 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 206, 98, 0.12);
  position: relative;
  overflow: hidden;
}

.colab-master-unlock-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 206, 98, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.unlock-banner-content {
  flex: 1;
}

.unlock-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 206, 98, 0.15);
  border: 1px solid rgba(245, 206, 98, 0.4);
  color: var(--accent-gold);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  line-height: 1.35;
}

.unlock-banner-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #ffffff;
  margin: 0 0 0.65rem 0;
  line-height: 1.25;
}

.unlock-banner-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.unlock-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .colab-master-unlock-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  
  .unlock-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .unlock-banner-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.course-insignia-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 206, 98, 0.12);
  border: 1px solid rgba(245, 206, 98, 0.3);
  color: var(--accent-gold);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  line-height: 1.3;
}

.sacred-insignia-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sacred-insignia-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 206, 98, 0.7) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 206, 98, 0.25) !important;
}

.sacred-insignia-card.unlocked .insignia-medal-icon {
  animation: insigniaMedalGlow 4s infinite alternate ease-in-out;
}

@keyframes insigniaMedalGlow {
  0% {
    box-shadow: 0 4px 15px rgba(245, 206, 98, 0.35);
  }
  100% {
    box-shadow: 0 6px 22px rgba(245, 206, 98, 0.65);
  }
}

.colab-ideas-box-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.colab-ideas-box-card:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 206, 98, 0.15) !important;
}

/* ==========================================================================
   BIENVENIDA & ONBOARDING EN PANTALLA COMPLETA
   "Bienvenido a Divina Data: Un espacio católico para crecer"
   ========================================================================== */

.welcome-onboarding-cta-box {
  background: linear-gradient(135deg, rgba(20, 36, 62, 0.9) 0%, rgba(10, 18, 32, 0.95) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 206, 98, 0.12);
  text-align: left;
}

.onboarding-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 206, 98, 0.15);
  border: 1px solid rgba(245, 206, 98, 0.35);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.onboarding-cta-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 0.4rem;
}

.onboarding-cta-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* Fullscreen Dialog */
.onboarding-fullscreen-dialog {
  width: min(960px, 95vw);
  max-height: 92vh;
  background: linear-gradient(145deg, #07101e 0%, #030811 100%);
  color: #ffffff;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 206, 98, 0.15);
  overflow: hidden;
}

.onboarding-fullscreen-dialog::backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.onboarding-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow-y: auto;
}

.onboarding-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 12, 22, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.onboarding-brand-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.onboarding-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.onboarding-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  display: block;
}

.onboarding-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.onboarding-content-mount {
  padding: 2.25rem 2rem;
}

.onboarding-hero-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.sacred-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 206, 98, 0.12);
  border: 1px solid rgba(245, 206, 98, 0.4);
  color: var(--accent-gold);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.onboarding-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  color: #ffffff;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #f5ce62 0%, #ffe999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onboarding-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.onboarding-question-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Choice Cards Grid */
.onboarding-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.onboarding-choice-card {
  background: rgba(14, 25, 45, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.onboarding-choice-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 206, 98, 0.15);
}

.choice-card-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(245, 206, 98, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.choice-card-icon-halo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 1.25rem;
}

.choice-card-icon-halo.gold-halo {
  background: rgba(245, 206, 98, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.choice-card-role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.choice-card-role-tag.gold {
  color: var(--accent-gold);
}

.choice-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.choice-card-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.choice-card-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice-card-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.choice-card-perks li i {
  color: var(--accent-gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-choice-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-choice-action.gold {
  background: linear-gradient(135deg, #f5ce62 0%, #d4a72c 100%);
  color: #071224;
  border: none;
}

.onboarding-choice-card:hover .btn-choice-action {
  background: var(--accent-gold);
  color: #071224;
  border-color: var(--accent-gold);
}

.onboarding-footer-links {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-link-action {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Pitch Card */
.student-colab-pitch-card {
  background: linear-gradient(135deg, rgba(20, 36, 62, 0.95) 0%, rgba(9, 18, 32, 0.98) 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 30px rgba(245, 206, 98, 0.12);
  position: relative;
  overflow: hidden;
}

.pitch-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 206, 98, 0.15);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pitch-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Colab Tiers in Onboarding */
.colab-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.colab-tier-card {
  background: rgba(14, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.colab-tier-card:hover, .colab-tier-card.selected {
  border-color: var(--accent-gold);
  background: rgba(20, 36, 62, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 206, 98, 0.15);
}

.colab-tier-card.featured-tier {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(145deg, rgba(25, 45, 75, 0.9) 0%, rgba(10, 20, 36, 0.95) 100%);
}

.tier-card-ribbon {
  position: absolute;
  top: -12px;
  right: 14px;
  background: linear-gradient(135deg, #f5ce62 0%, #cca22b 100%);
  color: #071224;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.tier-card-badge {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

.tier-card-badge.gold {
  color: var(--accent-gold);
}

.tier-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.tier-card-price {
  margin-bottom: 1.25rem;
}

.price-currency {
  font-size: 1rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.price-val {
  font-size: 1.85rem;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-serif);
}

.price-cycle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tier-card-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tier-card-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.tier-card-benefits li i {
  color: var(--accent-gold);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-tier-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.colab-tier-card:hover .btn-tier-select {
  background: var(--accent-gold);
  color: #071224;
  border-color: var(--accent-gold);
}

/* Yape & Procedure Card */
.payment-procedure-box {
  background: rgba(14, 25, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.colab-active-tier-pill {
  display: inline-block;
  background: rgba(245, 206, 98, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.yape-instruction-card {
  background: rgba(5, 12, 22, 0.9);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.yape-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.yape-badge-icon {
  font-size: 1.75rem;
}

.yape-number-display {
  background: rgba(245, 206, 98, 0.12);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.yape-number-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.yape-number-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.btn-copy-yape {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.yape-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #071224;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.btn-whatsapp-voucher {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp-voucher:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

/* Welcome Email Modal */
.welcome-email-fullscreen-dialog {
  width: min(840px, 94vw);
  max-height: 94vh;
  background: #091220;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.welcome-email-fullscreen-dialog::backdrop {
  background: rgba(2, 6, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.welcome-email-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  overflow-y: auto;
}

.email-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #060e1a;
  position: sticky;
  top: 0;
  z-index: 10;
}

.official-email-envelope {
  padding: 1.75rem;
}

.email-envelope-meta {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.meta-field {
  display: flex;
  gap: 0.65rem;
}

.email-envelope-meta .meta-label {
  color: var(--accent-gold);
  font-weight: 700;
  width: 65px;
  flex-shrink: 0;
}

.email-envelope-meta .meta-value.highlight {
  color: #ffffff;
  font-weight: 700;
}

.email-letter-body {
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.95) 0%, rgba(8, 16, 28, 0.98) 100%);
  border: 1px solid rgba(245, 206, 98, 0.3);
  border-radius: var(--radius-md);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.letter-seal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.letter-seal-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.letter-seal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin: 0;
}

.letter-seal-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.2rem;
}

.letter-gold-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 0.75rem auto 0;
}

.letter-salutation {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.letter-paragraph {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.email-perks-showcase {
  background: rgba(5, 12, 22, 0.75);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perk-bullet {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.perk-bullet-dot {
  color: var(--accent-gold);
  font-weight: 800;
  flex-shrink: 0;
}

.letter-signature-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.signature-cross {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.signature-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
}

.signature-title {
  font-size: 0.82rem;
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.signature-contact {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .onboarding-choice-grid,
  .colab-tiers-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-content-mount {
    padding: 1.5rem 1.15rem;
  }
  .email-letter-body {
    padding: 1.5rem 1.15rem;
  }
}

/* ==========================================================================
   ESTILOS: EDITAR PERFIL (FOTO Y NOMBRE) Y ACCESO MAESTRO DE ADMINISTRADOR
   ========================================================================== */
.profile-avatar-box {
  position: relative;
}

.profile-avatar-badge-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-gold);
  color: #050a12;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  z-index: 2;
}

.profile-avatar-box:hover .profile-avatar-badge-edit {
  transform: scale(1.15);
}

.edit-profile-dialog,
.master-admin-dialog {
  border: 1px solid rgba(245, 206, 98, 0.4);
  background: linear-gradient(135deg, #090f1d, #0d1726);
  border-radius: 20px;
  color: #ffffff;
  padding: 0;
  max-width: 520px;
  width: 90vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 206, 98, 0.15);
}

.edit-profile-dialog::backdrop,
.master-admin-dialog::backdrop {
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
}

.edit-profile-inner,
.master-admin-inner {
  padding: 1.75rem;
}

.edit-profile-header,
.master-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-profile-icon,
.master-admin-seal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 206, 98, 0.12);
  border: 1px solid rgba(245, 206, 98, 0.35);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.edit-profile-title,
.master-admin-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}

.edit-profile-subtitle,
.master-admin-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0.2rem 0 0;
}

.avatar-edit-preview-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.avatar-preview-wrapper {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.avatar-preview-img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(245, 206, 98, 0.35);
  background: #0f172a;
}

.avatar-upload-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-gold);
  color: #050a12;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.avatar-upload-badge:hover {
  transform: scale(1.15);
}

.sacred-avatars-row {
  display: flex;
  gap: 0.75rem;
}

.sacred-avatar-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 206, 98, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.sacred-avatar-chip:hover {
  background: rgba(245, 206, 98, 0.12);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.sacred-avatar-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #0d1726;
  border: 1px solid rgba(245, 206, 98, 0.4);
}

.sacred-avatar-chip span {
  font-size: 0.72rem;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   ADMIN STUDENT INSPECTOR DIALOG (VISTA DEL ESTUDIANTE PARA EL ADMIN)
   ========================================================================== */
.admin-inspect-dialog {
  width: min(920px, 94vw);
  max-height: 90vh;
  background: linear-gradient(135deg, #090f1d, #0d1726);
  border: 1px solid rgba(245, 206, 98, 0.4);
  border-radius: 20px;
  color: #ffffff;
  padding: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 206, 98, 0.15);
  overflow-y: auto;
}

.admin-inspect-dialog::backdrop {
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
}

.admin-inspect-inner {
  padding: 2rem;
}

.admin-inspect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.inspect-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(14, 25, 45, 0.7);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.inspect-profile-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inspect-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.inspect-role-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(5, 10, 18, 0.6);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inspect-section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inspect-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.inspect-course-card {
  background: rgba(14, 25, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inspect-course-card.completed {
  border-color: rgba(52, 211, 153, 0.4);
}

.inspect-diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.inspect-diploma-card {
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(245, 206, 98, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-table-role-select {
  background: rgba(14, 25, 45, 0.95);
  border: 1px solid rgba(245, 206, 98, 0.4);
  color: #fff7da;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.admin-table-role-select:focus,
.admin-table-role-select:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 206, 98, 0.25);
}

/* ==========================================================================
   FIX RESPONSIVE MÓVIL: PERFIL DE USUARIO Y PORTAL (SIN CORTES DE TEXTO)
   ========================================================================== */
@media (max-width: 768px) {
  .profile-hero-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .profile-avatar-box {
    margin: 0 auto;
  }

  .profile-details-box {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .profile-names-row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }

  .profile-user-name {
    font-size: 1.35rem !important;
    text-align: center !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  #user-official-badge-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .badge-official {
    white-space: normal !important;
    text-align: center !important;
    padding: 0.4rem 0.85rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.72rem !important;
  }

  .badge-official .badge-text-group {
    white-space: normal !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .badge-official .badge-main,
  .badge-official .badge-sub {
    white-space: normal !important;
    word-break: break-word !important;
  }

  .profile-user-email {
    font-size: 0.82rem !important;
    margin-bottom: 0.75rem !important;
    word-break: break-all !important;
    text-align: center !important;
  }

  .profile-meta-tags {
    justify-content: center !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  .meta-tag {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.6rem !important;
    white-space: normal !important;
  }

  .profile-actions-box {
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .profile-actions-box button,
  .profile-actions-box a {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: 120px !important;
    font-size: 0.78rem !important;
    padding: 0.55rem 0.65rem !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .portal-tabs-nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
  }

  .portal-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }

  .portal-tab-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    padding: 0.55rem 0.85rem !important;
  }
}

/* ==========================================================================
   PORTAL ADMIN SECTION (DIRECTORIO DE ALUMNOS Y COMUNICADOS EN VIVO)
   ========================================================================== */
.portal-admin-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.portal-admin-banner {
  background: linear-gradient(135deg, rgba(245, 206, 98, 0.12), rgba(14, 25, 45, 0.95));
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.admin-student-card {
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.admin-student-card:hover {
  border-color: rgba(245, 206, 98, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.admin-student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-student-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

.admin-broadcast-card {
  background: radial-gradient(ellipse at 50% 20%, rgba(14, 28, 52, 0.95) 0%, rgba(6, 12, 22, 0.98) 100%);
  border: 1.5px solid rgba(245, 206, 98, 0.45);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.student-announcement-card {
  background: linear-gradient(135deg, rgba(245, 206, 98, 0.1), rgba(14, 25, 45, 0.9));
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   AULA VIRTUAL Y MOTOR PEDAGÓGICO DE "EL CREDO" (CREDO LMS)
   ========================================================================== */

dialog#credo-course-dialog,
dialog#voluntad-course-dialog,
dialog.credo-lms-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 1300px;
  width: 96vw;
  max-height: 94vh;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(245, 206, 98, 0.35);
  overflow: hidden;
  color: var(--text-title);
}

dialog#credo-course-dialog::backdrop,
dialog#voluntad-course-dialog::backdrop,
dialog.credo-lms-dialog::backdrop {
  background: rgba(4, 9, 18, 0.88);
  backdrop-filter: blur(10px);
}

.credo-lms-content {
  background: radial-gradient(circle at 50% 10%, #0d1e38 0%, #060b14 100%);
  display: flex;
  flex-direction: column;
  height: 92vh;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Encabezado del Aula Virtual */
.credo-lms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem;
  background: rgba(10, 20, 38, 0.95);
  border-bottom: 1.5px solid rgba(245, 206, 98, 0.25);
  flex-shrink: 0;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.credo-lms-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.credo-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5ce62 0%, #d4a017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060c16;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(245, 206, 98, 0.4);
}

.credo-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credo-brand-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
  display: block;
}

.credo-header-progress-wrap {
  flex: 1;
  max-width: 320px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.credo-header-progress-bar-bg {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.credo-header-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #f5ce62 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.credo-header-progress-label {
  font-size: 0.74rem;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.credo-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Grid Layout Principal (2 Columnas en Desktop) */
.credo-lms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.credo-lms-main-col {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Reproductor de Video 16:9 */
.credo-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 206, 98, 0.3);
  position: relative;
  flex-shrink: 0;
  display: block;
}

.credo-video-aspect {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.credo-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Tarjeta de Metadatos de la Lección */
.credo-lesson-meta-box {
  background: rgba(14, 25, 45, 0.7);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.credo-lesson-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.credo-lesson-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.credo-lesson-main-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}

.credo-lesson-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.credo-lesson-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.credo-lesson-takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.credo-lesson-takeaways-list li i {
  color: var(--accent-gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Banner Rápido para Acceder al Quizizz (Muy Visible en Celular y Desktop) */
.credo-quick-quiz-banner {
  background: linear-gradient(135deg, rgba(245, 206, 98, 0.16) 0%, rgba(14, 25, 45, 0.95) 100%);
  border: 1.5px solid rgba(245, 206, 98, 0.5);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.credo-quick-quiz-banner:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 206, 98, 0.25);
}

.credo-quick-quiz-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.credo-quick-quiz-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.3;
}

.credo-quick-quiz-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
  line-height: 1.45;
}

.credo-quick-quiz-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 206, 98, 0.2);
  border: 1px solid rgba(245, 206, 98, 0.45);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Sección de PDFs y Lecturas de Profundización por Lección */
.credo-lesson-pdfs-section {
  background: rgba(10, 18, 34, 0.75);
  border: 1.5px solid rgba(245, 206, 98, 0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.credo-lesson-pdfs-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credo-lesson-pdfs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.credo-pdf-chip-card {
  background: rgba(14, 25, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.credo-pdf-chip-card:hover {
  border-color: rgba(245, 206, 98, 0.5);
  background: rgba(20, 35, 60, 0.95);
  transform: translateY(-2px);
}

.credo-pdf-chip-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.credo-pdf-chip-icon {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.credo-pdf-chip-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.credo-pdf-chip-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.credo-pdf-chip-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Barra Flotante Inferior de Navegación del Aula Virtual */
.credo-mobile-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 20, 38, 0.97);
  border-top: 1.5px solid rgba(245, 206, 98, 0.3);
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  position: sticky;
  bottom: 0;
  z-index: 20;
}

/* ==========================================================================
   QUIZIZZ PEDAGÓGICO E INTERACTIVO POR LECCIÓN
   ========================================================================== */
.credo-quiz-card {
  background: linear-gradient(135deg, rgba(16, 30, 56, 0.95) 0%, rgba(9, 17, 32, 0.98) 100%);
  border: 2px solid rgba(245, 206, 98, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.credo-quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #f5ce62 50%, #10b981 100%);
}

.credo-quiz-card.quiz-passed {
  border-color: #10b981;
  box-shadow: 0 15px 45px rgba(16, 185, 129, 0.2);
}

.credo-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.credo-quiz-title-group {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
}

.credo-quiz-icon-orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 206, 98, 0.15);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.credo-quiz-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.credo-quiz-question {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.45;
}

.credo-quiz-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credo-quiz-badge.pending {
  background: rgba(245, 206, 98, 0.15);
  color: #f5ce62;
  border: 1px solid rgba(245, 206, 98, 0.4);
}

.credo-quiz-badge.passed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

/* Opciones de Respuesta en Tarjetas Gamificadas */
.credo-quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.credo-quiz-option-btn {
  background: rgba(18, 33, 60, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-size: 0.96rem;
  line-height: 1.5;
  width: 100%;
}

.credo-quiz-option-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(245, 206, 98, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.credo-opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #f5ce62;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.credo-quiz-option-btn:hover:not(:disabled) .credo-opt-letter {
  background: #f5ce62;
  color: #060c16;
}

.credo-opt-text {
  flex: 1;
  font-weight: 500;
}

.credo-opt-feedback-icon {
  font-size: 1.15rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Estados de Aprobado / Error */
.credo-quiz-option-btn.option-correct {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 95, 70, 0.3) 100%) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3) !important;
}

.credo-quiz-option-btn.option-correct .credo-opt-letter {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.credo-quiz-option-btn.option-wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  animation: shakeHoriz 0.4s ease-in-out;
}

.credo-quiz-option-btn.option-wrong .credo-opt-letter {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Caja de Retroalimentación Didáctica */
.credo-quiz-feedback-box {
  display: none;
  background: rgba(10, 25, 48, 0.95);
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
  animation: fadeIn 0.4s ease;
}

.credo-quiz-feedback-box.visible {
  display: block;
}

.credo-feedback-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.credo-feedback-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
}

.credo-feedback-title {
  font-size: 0.92rem;
  color: #f5ce62;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.credo-feedback-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0;
}

.credo-quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}

#btn-credo-advance.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* Columna Lateral: Temario (14 Lecciones) */
.credo-lms-sidebar-col {
  background: rgba(8, 15, 28, 0.95);
  border-left: 1.5px solid rgba(245, 206, 98, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.credo-sidebar-header {
  padding: 1.25rem 1.5rem;
  background: rgba(12, 23, 44, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.credo-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credo-sidebar-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.credo-playlist-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Item de Lección en el Temario */
.credo-playlist-item {
  background: rgba(18, 30, 52, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credo-playlist-item:hover {
  background: rgba(30, 50, 85, 0.7);
  border-color: rgba(245, 206, 98, 0.4);
}

.credo-playlist-item.active {
  background: rgba(245, 206, 98, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 206, 98, 0.2);
}

.credo-playlist-item.completed {
  border-left: 3px solid #10b981;
}

.credo-playlist-item.locked {
  opacity: 0.65;
}

.credo-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.credo-item-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  opacity: 0.8;
  flex-shrink: 0;
}

.credo-item-info {
  min-width: 0;
}

.credo-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.credo-item-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credo-free-tag {
  color: #34d399;
  font-weight: 700;
}

.credo-vip-tag {
  color: #f5ce62;
  font-weight: 700;
}

/* Pastillas de Estado */
.credo-status-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.credo-status-pill.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.credo-status-pill.current {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.credo-status-pill.vip {
  background: rgba(245, 206, 98, 0.2);
  color: #f5ce62;
  border: 1px solid rgba(245, 206, 98, 0.4);
}

.credo-status-pill.locked {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.credo-status-pill.free {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 206, 98, 0.2);
  color: #f5ce62;
  border: 1px solid rgba(245, 206, 98, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   VENTANA FLOTANTE DE PAGO YAPE (S/ 50)
   ========================================================================== */
dialog#credo-payment-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 580px;
  width: 94vw;
  max-height: 92vh;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 0 2px var(--accent-gold);
  overflow-y: auto;
  overflow-x: hidden;
  color: #ffffff;
}

dialog#credo-payment-dialog::backdrop {
  background: rgba(2, 6, 14, 0.9);
  backdrop-filter: blur(12px);
}

.credo-payment-card {
  background: radial-gradient(circle at 50% 0%, #152747 0%, #060e1d 100%);
  padding: 1.85rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
}

.credo-payment-header {
  text-align: center;
}

.credo-payment-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: rgba(245, 206, 98, 0.15);
  border: 1px solid var(--accent-gold);
  color: #f5ce62;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.credo-payment-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.credo-payment-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.credo-payment-price-amount {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 0 25px rgba(245, 206, 98, 0.4);
}

.credo-payment-price-note {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: left;
  line-height: 1.3;
}

/* Tarjeta Destacada de Yape / Plin */
.credo-yape-box {
  background: rgba(116, 34, 134, 0.15);
  border: 1.5px solid #a855f7;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.credo-yape-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.credo-yape-logo-orb {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #742286;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(116, 34, 134, 0.6);
}

.credo-yape-number {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0;
}

.credo-yape-owner {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 0.15rem;
}

/* Pasos Didácticos */
.credo-payment-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.credo-payment-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(14, 25, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.credo-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #060c16;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.credo-step-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

/* Activación Rápida / Admin */
.credo-activation-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.credo-activation-input {
  flex: 1;
  background: rgba(7, 14, 26, 0.9);
  border: 1.5px solid rgba(245, 206, 98, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.credo-activation-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 206, 98, 0.3);
}

/* ==========================================================================
   CERTIFICADO OFICIAL DE CULMINACIÓN (DIPLOMA DE ACREDITACIÓN)
   ========================================================================== */
dialog#credo-certificate-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 920px;
  width: 95vw;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

dialog#credo-certificate-dialog::backdrop {
  background: rgba(2, 6, 14, 0.92);
  backdrop-filter: blur(12px);
}

.credo-cert-wrapper {
  background: radial-gradient(circle at 50% 50%, #fffdfa 0%, #fdf8eb 100%);
  color: #1a1a1a;
  padding: 3rem;
  position: relative;
  border: 12px solid #0f1e36;
  box-shadow: inset 0 0 0 3px #d4af37, inset 0 0 0 6px #ffffff, inset 0 0 0 9px #d4af37;
  border-radius: var(--radius-md);
  text-align: center;
}

.credo-cert-border-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  color: #d4af37;
}

.credo-cert-tl { top: 14px; left: 14px; }
.credo-cert-tr { top: 14px; right: 14px; }
.credo-cert-bl { bottom: 14px; left: 14px; }
.credo-cert-br { bottom: 14px; right: 14px; }

.credo-cert-header-tag {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b6b23;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.credo-cert-main-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f1e36;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.credo-cert-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.credo-cert-intro {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 0.75rem;
}

.credo-cert-student-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #8b6b23;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding: 0 2rem 0.4rem;
  margin: 0.25rem 0 1.5rem;
  min-width: 320px;
}

.credo-cert-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.credo-cert-footer-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.credo-cert-signature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.credo-cert-signature-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1e36;
  border-top: 1.5px solid #0f1e36;
  padding-top: 0.4rem;
  min-width: 200px;
}

.credo-cert-signature-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 0.15rem;
}

.credo-cert-seal-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5ce62 0%, #b8860b 100%);
  border: 3px double #ffffff;
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f1e36;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credo-cert-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1.5rem;
}

/* Barra de Acciones del Certificado */
.credo-cert-actions-bar {
  background: #091322;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Adaptación Responsive para Móvil (< 768px) */
/* Adaptación Responsive para Tablet y Móvil (< 960px) */
@media (max-width: 960px) {
  dialog#credo-course-dialog,
  dialog#voluntad-course-dialog,
  dialog.credo-lms-dialog {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
  }

  .credo-lms-content {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .credo-lms-header {
    padding: 0.65rem 0.9rem !important;
    gap: 0.5rem !important;
  }

  .credo-brand-title {
    font-size: 0.95rem !important;
  }

  .credo-brand-subtitle {
    font-size: 0.72rem !important;
  }

  .credo-brand-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  .credo-header-progress-wrap {
    order: 3;
    width: 100%;
    max-width: 100% !important;
    margin-top: 0.2rem;
  }

  /* Pestañas de Vista en Móvil: Video vs Quizizz vs Temario */
  .credo-mobile-view-tabs {
    display: flex !important;
    background: rgba(8, 16, 30, 0.98);
    border-bottom: 1.5px solid rgba(245, 206, 98, 0.25);
    padding: 0.4rem 0.5rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .credo-mobile-tab-btn {
    flex: 1 1 0;
    min-width: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .credo-mobile-tab-btn i {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
  }

  .credo-mobile-tab-btn.active {
    color: #060b14 !important;
    background: linear-gradient(135deg, #f5ce62 0%, #d4a017 100%) !important;
    border-color: #f5ce62 !important;
    box-shadow: 0 2px 10px rgba(245, 206, 98, 0.35);
  }

  .credo-lms-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .credo-lms-main-col {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.85rem 1rem 4.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .credo-lms-sidebar-col {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-left: none !important;
    border-top: none !important;
    max-height: none !important;
    width: 100% !important;
    padding-bottom: 4.5rem;
  }

  /* Control de visibilidad en vista móvil: por defecto se muestra el video al 100% */
  .credo-lms-grid:not(.show-playlist) .credo-lms-sidebar-col {
    display: none !important;
  }
  .credo-lms-grid:not(.show-playlist) .credo-lms-main-col {
    display: flex !important;
  }

  /* Cuando el usuario presiona Temario */
  .credo-lms-grid.show-playlist .credo-lms-main-col {
    display: none !important;
  }
  .credo-lms-grid.show-playlist .credo-lms-sidebar-col {
    display: flex !important;
  }

  .credo-video-wrapper {
    min-height: 190px !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
  }

  .credo-lesson-main-title {
    font-size: 1.2rem;
  }

  /* Banner Rápido al Quizizz en móvil (diseño verticalizado y botón completo) */
  .credo-quick-quiz-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    padding: 0.9rem 1rem !important;
  }

  .credo-quick-quiz-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .credo-quick-quiz-banner button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  /* Cuestionario Quizizz Responsivo en móvil sin cortes de texto */
  .credo-quiz-card {
    padding: 1.15rem 0.95rem !important;
  }

  .credo-quiz-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 0.9rem !important;
  }

  .credo-quiz-title-group {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .credo-quiz-icon-orb {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .credo-quiz-question {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    word-break: normal !important;
  }

  .credo-quiz-score-pill {
    align-self: flex-start !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.65rem !important;
  }

  .credo-quiz-option-btn {
    padding: 0.75rem 0.85rem !important;
    gap: 0.65rem !important;
    font-size: 0.88rem !important;
  }

  .credo-opt-text {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }

  .credo-cert-wrapper {
    padding: 1.5rem 1rem;
  }

  .credo-cert-main-title {
    font-size: 1.6rem;
  }

  .credo-cert-student-name {
    font-size: 1.5rem;
    min-width: 220px;
  }

  dialog#credo-payment-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: auto !important;
  }

  .credo-payment-card {
    padding: 1.5rem 1rem !important;
    gap: 1rem !important;
  }

  .credo-payment-price-amount {
    font-size: 2.1rem !important;
  }

  .credo-yape-box {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }

  .credo-whatsapp-pay-btn,
  .credo-submit-code-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .credo-code-row,
  .credo-activation-form {
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .credo-code-input,
  .credo-activation-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Estilos de Impresión para Certificado */
@media print {
  body * {
    visibility: hidden;
  }
  dialog#credo-certificate-dialog,
  dialog#credo-certificate-dialog .credo-cert-wrapper,
  dialog#credo-certificate-dialog .credo-cert-wrapper * {
    visibility: visible;
  }
  dialog#credo-certificate-dialog {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .credo-cert-actions-bar {
    display: none !important;
  }
}

/* ==========================================================================
   MODAL VISUALIZADOR DE DOCUMENTOS PDF (GOOGLE DRIVE PREVIEW)
   ========================================================================== */
dialog#pdf-viewer-dialog {
  background: transparent;
  border: none;
  padding: 0;
  width: 95vw;
  max-width: 1200px;
  height: 92vh;
  max-height: 92vh;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 206, 98, 0.4);
  overflow: hidden;
  color: #ffffff;
}

dialog#pdf-viewer-dialog::backdrop {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
}

.pdf-viewer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #070d18;
}

.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: rgba(12, 22, 40, 0.98);
  border-bottom: 1px solid rgba(245, 206, 98, 0.25);
  gap: 1rem;
  flex-wrap: wrap;
}

.pdf-viewer-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pdf-viewer-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.pdf-viewer-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
}

.pdf-viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pdf-viewer-body {
  flex: 1;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.pdf-viewer-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

@media (max-width: 768px) {
  dialog#pdf-viewer-dialog {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  .pdf-viewer-title {
    max-width: 200px;
    font-size: 0.9rem;
  }
  .pdf-viewer-header {
    padding: 0.65rem 0.85rem;
  }
}

/* ==========================================================================
   SECCIÓN: HERRAMIENTAS DIDÁCTICAS PARA DOCENTES Y PADRES DE FAMILIA
   ========================================================================== */
.didactica-hero-banner {
  background: radial-gradient(circle at 50% 20%, rgba(245, 206, 98, 0.12) 0%, rgba(10, 20, 38, 0.95) 75%), #060b14;
  border: 1.5px solid rgba(245, 206, 98, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.didactica-hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(245, 206, 98, 0.18), transparent 70%);
  pointer-events: none;
}

.didactica-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.didactica-tier-card {
  background: rgba(14, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.didactica-tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 206, 98, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.didactica-tier-card.featured {
  border-color: rgba(245, 206, 98, 0.6);
  background: linear-gradient(180deg, rgba(245, 206, 98, 0.08) 0%, rgba(14, 25, 45, 0.85) 100%);
  box-shadow: 0 8px 30px rgba(245, 206, 98, 0.15);
}

.didactica-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.didactica-tier-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.didactica-tier-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.didactica-tier-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
}

/* Fases Metodológicas de la Clase de Religión */
.didactica-method-section {
  background: rgba(10, 18, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
}

.didactica-phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.didactica-phase-card {
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(245, 206, 98, 0.25);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.didactica-phase-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 206, 98, 0.2);
}

.didactica-phase-img-box {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.didactica-phase-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.didactica-phase-card:hover .didactica-phase-img {
  transform: scale(1.08);
}

.didactica-phase-step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  background: rgba(245, 206, 98, 0.12);
  border: 1px solid rgba(245, 206, 98, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.didactica-phase-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.didactica-phase-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Material de Refuerzo */
.didactica-reinforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.didactica-reinforce-card {
  background: rgba(14, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.didactica-reinforce-img-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.didactica-reinforce-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.didactica-reinforce-card:hover .didactica-reinforce-img-wrap img {
  transform: scale(1.04);
}

/* Canva Embeds */
.didactica-canva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.didactica-canva-card {
  background: rgba(14, 25, 45, 0.8);
  border: 1.5px solid rgba(245, 206, 98, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.canva-embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 75%; /* 4:3 para presentaciones de Canva */
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.15rem;
  background: #000;
}

.canva-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Catálogo de PDFs Descargables */
.didactica-pdf-section {
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-top: 2.5rem;
}

.didactica-pdf-tabs-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.didactica-pdf-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.didactica-pdf-tab-btn.active {
  background: linear-gradient(135deg, #f5ce62 0%, #d4a017 100%);
  color: #060b14;
  border-color: #f5ce62;
  box-shadow: 0 2px 10px rgba(245, 206, 98, 0.3);
}

.didactica-pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.didactica-pdf-card {
  background: rgba(14, 25, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.didactica-pdf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 206, 98, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.didactica-pdf-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.didactica-pdf-icon-orb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.didactica-pdf-icon-orb.gold {
  background: rgba(245, 206, 98, 0.15);
  border-color: rgba(245, 206, 98, 0.4);
  color: var(--accent-gold);
}

.didactica-pdf-icon-orb.blue {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.didactica-pdf-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}

.didactica-pdf-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.didactica-pdf-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   PROGRAMA DIDÁCTICO: SEMANA SANTA KIDS & JUVENIL (TIPO ESTUDIO)
   ========================================================================== */
.didactica-program-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .didactica-program-card {
    padding: 1.25rem 0.85rem;
  }
}

.didactica-program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.didactica-program-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .didactica-program-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.didactica-program-screen {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b14;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.didactica-program-screen iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  border: 0;
}

.didactica-program-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.didactica-program-item {
  display: flex;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  align-items: center;
}

.didactica-program-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 206, 98, 0.3);
  transform: translateX(4px);
}

.didactica-program-item.active {
  background: rgba(245, 206, 98, 0.1);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(245, 206, 98, 0.15);
}

.prog-item-thumb {
  position: relative;
  width: 110px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #050a12;
}

.prog-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prog-item-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.prog-item-content {
  flex: 1;
  min-width: 0;
}

.prog-item-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prog-item-badge.juvenil {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.prog-item-badge.kids {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.prog-item-title {
  font-size: 0.88rem;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SANTA ROSA DE LIMA — 21 DÍAS EN VIDEO
   ========================================================================== */
.sr-days-pills-container {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.sr-day-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-body);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sr-day-pill:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: #e11d48;
  color: #fff;
}

.sr-day-pill.active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: #e11d48;
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
}

/* ==========================================================================
   REPOSITORIO RENOVATIONE MUNDI (GRADOS & SESIONES)
   ========================================================================== */
.reno-level-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.reno-level-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.reno-level-tab-btn.active {
  color: var(--accent-gold);
}

.reno-level-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 3px 3px 0 0;
}

.reno-grades-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.reno-grade-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-body);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reno-grade-btn:hover {
  background: rgba(245, 206, 98, 0.1);
  border-color: rgba(245, 206, 98, 0.35);
  color: #fff;
}

.reno-grade-btn.active {
  background: linear-gradient(135deg, rgba(245, 206, 98, 0.2) 0%, rgba(229, 184, 86, 0.1) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(245, 206, 98, 0.15);
}

.reno-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .reno-sessions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.reno-session-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.reno-session-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 206, 98, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.reno-session-card.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(245, 206, 98, 0.25);
  background: rgba(245, 206, 98, 0.06);
}

.reno-session-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050a12;
  overflow: hidden;
}

.reno-session-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reno-session-card:hover .reno-session-thumb img {
  transform: scale(1.05);
}

.reno-session-code-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 25, 45, 0.88);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}

.reno-session-info {
  padding: 1rem;
  flex: 1;
}

.reno-session-title {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.reno-session-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   PROYECTO DE CUARESMA: COMPROMISOS & VIDEOS
   ========================================================================== */
.cuaresma-day-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-body);
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cuaresma-day-pill:hover {
  background: rgba(147, 51, 234, 0.15);
  border-color: #a855f7;
  color: #fff;
}

.cuaresma-day-pill.active {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 3px 12px rgba(147, 51, 234, 0.35);
}

/* ==========================================================================
   SEMANA SANTA: 16 VIDEOS & MATERIAL COLABORADORES
   ========================================================================== */
.ss-videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ss-video-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ss-video-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 206, 98, 0.4);
  transform: translateY(-2px);
}

.ss-video-item.active {
  border-color: var(--accent-gold);
  background: rgba(245, 206, 98, 0.08);
}

.ss-thumb-box {
  position: relative;
  width: 90px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.ss-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-day-tag {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-gold);
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
}

.ss-item-info {
  flex: 1;
  min-width: 0;
}

.ss-item-title {
  font-size: 0.82rem;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ss-colab-material-banner {
  background: linear-gradient(135deg, rgba(20, 109, 124, 0.35) 0%, rgba(14, 25, 45, 0.95) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 206, 98, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ss-colab-material-banner {
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   MÚSICA SACRA DIVINA DATA
   ========================================================================== */
.music-player-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .music-player-container {
    padding: 1.25rem 0.85rem;
  }
}

.music-album-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.music-album-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-body);
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.music-album-btn:hover {
  background: rgba(245, 206, 98, 0.15);
  border-color: rgba(245, 206, 98, 0.4);
  color: #fff;
}

.music-album-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.music-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.music-track-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.music-track-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 206, 98, 0.3);
  transform: translateX(4px);
}

.music-track-item.active {
  background: rgba(245, 206, 98, 0.1);
  border-color: var(--accent-gold);
}

.music-track-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold);
  width: 28px;
  font-weight: bold;
}

.music-track-info {
  flex: 1;
}

.music-track-name {
  font-size: 0.94rem;
  color: #fff;
  margin: 0 0 0.2rem 0;
  font-weight: 600;
}

.music-track-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.music-track-action {
  color: var(--accent-gold);
}

/* ==========================================================================
   EL ÁNGELUS — RECORDATORIOS & BANNER
   ========================================================================== */
.angelus-hero-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(14, 25, 45, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .angelus-hero-banner {
    padding: 1.5rem 1rem;
  }
}

.angelus-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   AUDIOLIBROS CATÓLICOS
   ========================================================================== */
.audiobook-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.audiobook-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 206, 98, 0.35);
  transform: translateX(3px);
}

.audiobook-item.active {
  background: rgba(245, 206, 98, 0.12);
  border-color: var(--accent-gold);
}

.audiobook-item-index {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  width: 24px;
}

.audiobook-item-info {
  flex: 1;
}

.audiobook-item-title {
  font-size: 0.94rem;
  color: #fff;
  margin: 0 0 0.2rem 0;
  font-weight: 600;
}

.audiobook-item-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.audiobook-item-icon {
  color: var(--accent-gold);
}

.audiobook-chapters-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.35rem;
}


/* ==========================================================================
   BARRA SUPERIOR DE ANUNCIO DE NOVEDADES & BADGES
   ========================================================================== */
.site-announcement-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #311042 50%, #1e293b 100%);
  border-bottom: 1px solid rgba(245, 206, 98, 0.4);
  padding: 0.6rem 1rem;
  color: #f8fafc;
  font-size: 0.86rem;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.announcement-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #f5ce62, #d4af37);
  color: #07090e;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.announcement-text {
  flex: 1;
  min-width: 260px;
  line-height: 1.4;
  color: #e2e8f0;
}

.announcement-text strong {
  color: #fde047;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.announcement-link {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.announcement-link:hover {
  background: rgba(245, 206, 98, 0.2);
  border-color: #f5ce62;
  color: #f5ce62;
}

.announcement-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-close:hover {
  color: #fff;
}

/* Nav pill badges */
.nav-pill-badge-gold {
  background: rgba(245, 206, 98, 0.2);
  color: #f5ce62;
  border: 1px solid rgba(245, 206, 98, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nav-pill-badge-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Botones Hero adicionales */
.btn-hero-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.btn-hero-purple:hover {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.55);
  transform: translateY(-2px);
}

.btn-hero-amber {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-hero-amber:hover {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

/* ==========================================================================
   VITRINA DE ACTUALIZACIONES RECIENTES EN EL INICIO
   ========================================================================== */
.home-updates-showcase {
  max-width: 1300px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.home-updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.home-update-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.home-update-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 206, 98, 0.45);
  box-shadow: 0 15px 35px rgba(245, 206, 98, 0.15);
}

.home-update-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.home-update-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.badge-gold {
  background: #f5ce62;
  color: #07090e;
}

.badge-blue {
  background: #3b82f6;
  color: #ffffff;
}

.badge-purple {
  background: #8b5cf6;
  color: #ffffff;
}

.badge-amber {
  background: #f59e0b;
  color: #ffffff;
}

.badge-emerald {
  background: #10b981;
  color: #ffffff;
}

.badge-rose {
  background: #f43f5e;
  color: #ffffff;
}

.home-update-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-update-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.home-update-desc {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.home-update-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold, #f5ce62);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease;
}

.home-update-card:hover .home-update-btn {
  transform: translateX(4px);
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES EXCLUSIVAS (RESPONSIVE & TOUCH UI)
   ========================================================================== */

.sr-player-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.reno-player-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  /* Barras de Anuncio Compacta y Elegante */
  .site-announcement-bar {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.76rem !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .announcement-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    gap: 0.45rem !important;
    padding-right: 2.2rem !important;
    scrollbar-width: none !important;
  }

  .announcement-content::-webkit-scrollbar {
    display: none !important;
  }

  .announcement-badge {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.65rem !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.02em !important;
  }

  .announcement-text {
    min-width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }

  .announcement-actions {
    width: auto !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: 0.35rem !important;
  }

  .announcement-link {
    padding: 0.15rem 0.5rem !important;
    font-size: 0.7rem !important;
    border-radius: 4px !important;
  }

  .announcement-close {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 27, 75, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
    cursor: pointer !important;
  }

  /* Banner de Cookies Delgado y no obstructivo */
  #cookie-consent-banner.cookie-slim-bar {
    padding: 0.45rem 0.85rem !important;
    bottom: calc(58px + env(safe-area-inset-bottom, 8px)) !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7) !important;
    background: rgba(5, 13, 18, 0.96) !important;
  }

  .cookie-slim-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.35rem !important;
  }

  .cookie-slim-text {
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
  }

  .cookie-slim-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
  }

  .cookie-slim-actions .btn-cookie-accept,
  .cookie-slim-actions .btn-cookie-essential {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.6rem !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .cookie-slim-actions .btn-cookie-prefs {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.35rem !important;
    white-space: nowrap !important;
  }

  /* Grid de Novedades en Inicio */
  .home-updates-grid {
    grid-template-columns: 1fr !important;
  }

  .home-updates-showcase {
    padding: 0 1rem !important;
    margin: 2rem auto !important;
  }

  /* Reproductores de Didáctica y Santa Rosa en Móvil */
  .sr-player-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .sr-player-grid #sr-video-container {
    width: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  .sr-days-pills-container {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.5rem !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
  }

  .sr-days-pills-container::-webkit-scrollbar {
    display: none !important;
  }

  .sr-day-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  /* Renovatione Mundi en Móvil */
  .reno-player-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .reno-player-grid #reno-video-screen {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  #renovatione-player-wrapper {
    padding: 1rem !important;
  }

  .reno-level-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .reno-level-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .reno-level-tab-btn {
    white-space: nowrap !important;
    font-size: 0.95rem !important;
    padding: 0.4rem 0.75rem !important;
    flex-shrink: 0 !important;
  }

  .reno-grades-selector {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }

  .reno-grades-selector::-webkit-scrollbar {
    display: none !important;
  }

  .reno-grade-btn {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    flex-shrink: 0 !important;
  }

  /* Cuaresma Selector en Móvil */
  #cuaresma-videos-selector {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0.5rem !important;
    scrollbar-width: none !important;
    gap: 0.35rem !important;
  }

  #cuaresma-videos-selector::-webkit-scrollbar {
    display: none !important;
  }

  #cuaresma-videos-selector button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.78rem !important;
  }

  /* Didáctica Kids Selector en Móvil */
  .didactica-filter-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.4rem !important;
    gap: 0.35rem !important;
  }

  .didactica-filter-pills::-webkit-scrollbar {
    display: none !important;
  }

  .didactica-filter-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   PROTECCIÓN UNIVERSAL ANTI-DESBORDAMIENTO (LAS LETRAS NUNCA SALEN DEL CAJÓN)
   Garantiza que en celular y computadora el texto nunca desborde ningún botón,
   cuestionario Quizizz o tarjeta pedagógica.
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

.quiz-opt-btn,
.credo-quiz-option-btn {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.quiz-opt-text,
.credo-opt-text {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  line-height: 1.45 !important;
}

.quiz-opt-letter,
.credo-opt-letter {
  flex-shrink: 0 !important;
}

.quiz-question-block,
.quizizz-card-wrapper,
.credo-quiz-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
  .quiz-opt-btn,
  .credo-quiz-option-btn {
    padding: 0.75rem 0.85rem !important;
    gap: 0.65rem !important;
    font-size: 0.88rem !important;
  }

  .quiz-question-block,
  .quizizz-card-wrapper {
    padding: 1rem 0.75rem !important;
  }

  /* Prevenir desbordamientos horizontales generales en móvil */
  .credo-lms-main-col,
  .credo-lms-sidebar-col,
  .content-section,
  .page-section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
}

/* ==========================================================================
   LETRERO FLOTANTE DEL ÁNGELUS (NOTIFICACIÓN Y ACOMPAÑAMIENTO MUSICAL)
   ========================================================================== */

.angelus-floating-card {
  position: fixed;
  bottom: 84px;
  right: 28px;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, rgba(14, 25, 45, 0.96) 0%, rgba(6, 12, 22, 0.98) 100%);
  border: 1.5px solid rgba(243, 206, 101, 0.55);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(243, 206, 101, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10001;
  box-sizing: border-box;
  animation: angelusSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.angelus-floating-card.closing {
  animation: angelusSlideOut 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes angelusSlideIn {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes angelusSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
  }
}

.angelus-floating-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(243, 206, 101, 0.22) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.angelus-floating-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.angelus-floating-badge-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.angelus-bell-ring-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(243, 206, 101, 0.15);
  border: 1px solid rgba(243, 206, 101, 0.4);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: angelusBellRing 3s ease-in-out infinite;
}

@keyframes angelusBellRing {
  0%, 100% { transform: rotate(0); }
  5% { transform: rotate(14deg); }
  10% { transform: rotate(-14deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(0); }
}

.bell-wave-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 206, 101, 0.5);
  animation: bellRipple 2s ease-out infinite;
}

@keyframes bellRipple {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.angelus-badge-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.angelus-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(243, 206, 101, 0.12);
  border: 1px solid rgba(243, 206, 101, 0.3);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  width: fit-content;
  letter-spacing: 0.02em;
}

.angelus-badge-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.angelus-floating-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.angelus-floating-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

.angelus-floating-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.35;
}

.angelus-floating-motto {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 0.85rem 0;
  font-style: italic;
}

.angelus-audio-notice {
  background: rgba(243, 206, 101, 0.08);
  border: 1px solid rgba(243, 206, 101, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
  box-sizing: border-box;
}

.audio-notice-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(243, 206, 101, 0.15);
  flex-shrink: 0;
}

.audio-pulse-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  top: -2px;
  right: -2px;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.audio-notice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.audio-notice-text strong {
  font-size: 0.78rem;
  color: #fde68a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-notice-text span {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-audio-mute-toggle {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-audio-mute-toggle:hover {
  background: rgba(243, 206, 101, 0.15);
}

.angelus-floating-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.angelus-btn-pray {
  width: 100%;
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  box-sizing: border-box;
}

.angelus-btn-later {
  width: 100%;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 10px;
  box-sizing: border-box;
}

.btn-test-angelus-chip {
  background: rgba(243, 206, 101, 0.12);
  border: 1px solid rgba(243, 206, 101, 0.35);
  color: #fde68a;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.btn-test-angelus-chip:hover {
  background: rgba(243, 206, 101, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .angelus-floating-card {
    top: calc(14px + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 440px;
    margin: 0 auto;
    padding: 1rem 1rem 0.9rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.92), 0 0 25px rgba(243, 206, 101, 0.3);
  }

  .angelus-floating-title {
    font-size: 1.05rem;
  }

  .angelus-floating-motto {
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
  }

  .angelus-btn-pray {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  .angelus-btn-later {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
}




/* ==========================================================================
   DEVOCIONARIO Y ACOMPAÑAMIENTO LITÚRGICO DE ADVIENTO: MARANATHA (2026)
   Paleta dinámica: Oscuro solemne (#0F0C1B a #1A142E), blanco hueso (#F5F3EF),
   dorado litúrgico (#D4AF37), morado real (#4B2C78) y rosa Gaudete (#D88A9E).
   ========================================================================== */

/* ==========================================================================
   ADVIENTO 2026: IFRAME A TODO EL ANCHO & BANNER DE PORTADA
   ========================================================================== */

#adviento {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

#adviento iframe {
  width: 100% !important;
  border: 0 !important;
  display: block !important;
  background: transparent !important;
}

.adviento-portada-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 1.25rem auto;
  box-sizing: border-box;
}

.adviento-portada-wrapper iframe {
  width: 100%;
  border: 0;
  display: block;
  background: transparent;
}

@media (max-width: 768px) {
  .adviento-portada-wrapper {
    margin: 0 -1rem 1rem -1rem !important;
    width: calc(100% + 2rem) !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
}

/* Dinámica Visual de la Semana 3 (Gaudete: Rosa Litúrgico #D88A9E) */
#adviento.gaudete-active {
  --adv-accent: #D88A9E;
  --adv-gold: #E5A4B5;
  --adv-gold-light: #FCE7EC;
  --adv-border: rgba(216, 138, 158, 0.35);
  --adv-glow: rgba(216, 138, 158, 0.25);
  --adv-purple: #5E2E4B;
  --adv-purple-glow: rgba(216, 138, 158, 0.35);
  background: radial-gradient(circle at 50% 0%, #381E2E 0%, #0F0C1B 75%);
}

.advent-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* ==========================================================================
   BANNER HERO DEL CURSO CON CARÁTULA OFICIAL
   ========================================================================== */
.advent-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 20, 46, 0.95), rgba(15, 12, 27, 0.98));
  border: 1px solid var(--adv-border);
  border-radius: 24px;
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px var(--adv-glow);
  position: relative;
  overflow: hidden;
}

.advent-hero-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--adv-purple-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.advent-hero-info {
  position: relative;
  z-index: 1;
}

.advent-hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--adv-border);
  color: var(--adv-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.advent-hero-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 2.2rem;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 0.85rem 0;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.advent-hero-title .gold-gradient-text {
  background: linear-gradient(135deg, #FFF, var(--adv-gold-light), var(--adv-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.advent-hero-dates {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--adv-gold-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

.advent-hero-desc {
  font-size: 0.95rem;
  color: var(--adv-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.advent-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.advent-hero-cover-col {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.advent-cover-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--adv-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px var(--adv-glow);
  background: #000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advent-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.advent-cover-frame:hover .advent-cover-img {
  transform: scale(1.02);
}

/* ==========================================================================
   BARRA DE PROGRESO GLOBAL DEL ADVIENTO
   ========================================================================== */
.advent-progress-strip {
  background: var(--adv-bg-card);
  border: 1px solid var(--adv-border);
  border-radius: 16px;
  padding: 1.15rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.progress-strip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.progress-strip-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adv-gold-light);
}

.progress-strip-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--adv-text-muted);
}

.progress-pct-badge {
  background: rgba(212, 175, 55, 0.18);
  color: var(--adv-gold);
  border: 1px solid var(--adv-border);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
}

.advent-progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.advent-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4B2C78, var(--adv-accent), var(--adv-gold-light));
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--adv-glow);
}

/* ==========================================================================
   BANNER DE INSCRIPCIÓN / ESTADO DEL USUARIO
   ========================================================================== */
#advent-enrollment-banner {
  margin-bottom: 2rem;
}

.enrollment-invite-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.25), rgba(26, 20, 46, 0.9));
  border: 1px solid var(--adv-border);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.invite-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--adv-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.invite-title {
  font-family: var(--font-serif), serif;
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 0 0 0.4rem 0;
}

.invite-desc {
  font-size: 0.88rem;
  color: var(--adv-text-muted);
  line-height: 1.5;
  margin: 0 0 0.85rem 0;
  max-width: 650px;
}

.invite-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--adv-gold-light);
}

.invite-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.invite-note {
  font-size: 0.75rem;
  color: var(--adv-text-muted);
}

/* Tarjeta cuando el usuario ya está inscrito */
.enrollment-status-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(26, 20, 46, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.15);
}

.enrollment-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.enrollment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.enrolled-name {
  font-family: var(--font-serif), serif;
  font-size: 1.3rem;
  color: #FFFFFF;
  margin: 0 0 0.3rem 0;
}

.enrolled-meta {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.enrolled-intention {
  font-size: 0.85rem;
  color: var(--adv-gold-light);
  margin: 0;
}

.enrolled-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-advent-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-advent-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-advent-credential-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--adv-gold-light);
  border: 1px solid var(--adv-border);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-advent-credential-view:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--adv-gold);
}

.enrolled-footer-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--adv-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

/* ==========================================================================
   SELECTOR DE SEMANAS (SEMANA 1 A 4)
   ========================================================================== */
.advent-week-selector-wrapper {
  margin-bottom: 1.5rem;
}

.advent-week-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.advent-week-tab {
  background: var(--adv-bg-card);
  border: 1px solid var(--adv-border);
  border-radius: 16px;
  padding: 1.15rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--adv-text-main);
  box-sizing: border-box;
}

.advent-week-tab:hover {
  transform: translateY(-3px);
  border-color: var(--adv-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.advent-week-tab.active {
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.5), rgba(26, 20, 46, 0.95));
  border: 2px solid var(--adv-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--adv-glow);
}

.advent-week-tab.tab-gaudete.active {
  background: linear-gradient(135deg, rgba(216, 138, 158, 0.3), rgba(26, 20, 46, 0.95));
  border: 2px solid var(--adv-rose);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--adv-rose-glow);
}

.week-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.18);
  color: var(--adv-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-rose {
  background: rgba(216, 138, 158, 0.25);
  color: #FFFFFF;
  border: 1px solid rgba(216, 138, 158, 0.45);
}

.week-tab-progress {
  font-size: 0.75rem;
  color: var(--adv-text-muted);
  font-weight: 700;
}

.week-tab-title {
  font-family: var(--font-serif), serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.week-tab-candle {
  font-size: 0.76rem;
  color: var(--adv-gold-light);
}

/* ==========================================================================
   TIRA DE DÍAS DE LA SEMANA SELECCIONADA
   ========================================================================== */
.advent-days-strip-wrapper {
  margin-bottom: 2rem;
}

.advent-days-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--adv-gold) rgba(255, 255, 255, 0.05);
}

.advent-days-strip::-webkit-scrollbar {
  height: 6px;
}
.advent-days-strip::-webkit-scrollbar-thumb {
  background: var(--adv-gold);
  border-radius: 999px;
}

.advent-day-pill {
  flex: 0 0 155px;
  background: var(--adv-bg-card);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  color: var(--adv-text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-sizing: border-box;
}

.advent-day-pill:hover {
  border-color: var(--adv-gold);
  transform: translateY(-2px);
}

.advent-day-pill.active {
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.45), rgba(26, 20, 46, 0.95));
  border: 2px solid var(--adv-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--adv-glow);
}

.card-gaudete .advent-day-pill.active,
#adviento.gaudete-active .advent-day-pill.active {
  border-color: var(--adv-rose);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--adv-rose-glow);
}

.advent-day-pill.completed {
  border-color: rgba(52, 211, 153, 0.4);
}

.day-pill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-pill-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-gold-light);
}

.day-pill-check {
  color: var(--adv-text-muted);
}
.advent-day-pill.completed .day-pill-check {
  color: #34d399;
}

.day-pill-name {
  font-family: var(--font-serif), serif;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.day-pill-motto {
  font-size: 0.75rem;
  color: var(--adv-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.day-pill-tag-done {
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ==========================================================================
   TARJETA PRINCIPAL DEL DEVOCIONARIO DIARIO (LOS 7 BLOQUES LITÚRGICOS)
   ========================================================================== */
.advent-day-card {
  background: var(--adv-bg-card);
  border: 1px solid var(--adv-border);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 35px var(--adv-glow);
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.advent-day-card.card-gaudete {
  border-color: rgba(216, 138, 158, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 35px var(--adv-rose-glow);
}

/* Barra de Navegación entre días */
.advent-day-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-advent-nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--adv-border);
  color: var(--adv-gold-light);
  padding: 0.6rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-advent-nav-arrow:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--adv-gold);
  transform: translateY(-1px);
}

.btn-advent-nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.advent-day-nav-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.advent-counter-pill {
  background: rgba(75, 44, 120, 0.4);
  color: var(--adv-gold-light);
  border: 1px solid var(--adv-border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.advent-date-chip {
  font-size: 0.85rem;
  color: var(--adv-text-muted);
}

/* ==========================================================================
   BLOQUE 1: HEADER LITÚRGICO
   ========================================================================== */
.advent-block-header {
  margin-bottom: 2rem;
}

.advent-badges-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.advent-badge-week,
.advent-badge-color,
.advent-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.advent-badge-week {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.advent-badge-color.color-purple {
  background: rgba(75, 44, 120, 0.4);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.advent-badge-color.color-rose {
  background: rgba(216, 138, 158, 0.3);
  color: #ffd6e0;
  border: 1px solid rgba(216, 138, 158, 0.5);
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.advent-badge-status.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.advent-badge-status.status-pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--adv-text-muted);
}

.advent-title-liturgical {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 2rem;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  box-sizing: border-box;
}

.advent-motto-wrapper {
  margin-bottom: 1.25rem;
}

.advent-motto-text {
  font-family: 'Playfair Display', var(--font-serif), serif;
  font-size: 1.25rem;
  color: var(--adv-gold-light);
  font-style: italic;
}

.advent-antiphon-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(15, 12, 27, 0.65);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
}

.antiphon-icon {
  color: var(--adv-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.antiphon-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.antiphon-quote {
  font-family: var(--font-serif), serif;
  font-size: 0.98rem;
  color: #FFFFFF;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   BLOQUE 2: ORACIÓN INICIAL (COLECTA DEL DÍA)
   ========================================================================== */
.advent-block-colecta {
  margin-bottom: 2.25rem;
}

.block-gold-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--adv-gold);
  border: 1px solid var(--adv-border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.colecta-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(26, 20, 46, 0.85));
  border-left: 4px solid var(--adv-gold);
  border-top: 1px solid var(--adv-border);
  border-right: 1px solid var(--adv-border);
  border-bottom: 1px solid var(--adv-border);
  border-radius: 0 16px 16px 0;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.colecta-text {
  font-family: var(--font-serif), serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   BLOQUE 3: DESARROLLO BÍBLICO DEL DÍA
   ========================================================================== */
.advent-block-biblical {
  margin-bottom: 2.25rem;
}

.block-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.block-tag-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(75, 44, 120, 0.4);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scripture-cites {
  font-family: var(--font-serif), serif;
  font-size: 0.92rem;
  color: var(--adv-gold-light);
  font-weight: 700;
}

.scripture-snippets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.scripture-card {
  background: rgba(15, 12, 27, 0.7);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-sizing: border-box;
}

.scripture-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-gold-light);
  margin-bottom: 0.5rem;
}

.scripture-quote {
  font-family: 'Playfair Display', var(--font-serif), serif;
  font-size: 0.95rem;
  color: #F1F5F9;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.exegetical-card {
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.2), rgba(20, 15, 36, 0.9));
  border: 1px solid var(--adv-border);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
}

.exegetical-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-gold);
  margin-bottom: 0.65rem;
}

.exegetical-text {
  font-size: 0.95rem;
  color: #E2E8F0;
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

.keyword-spotlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 12, 27, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  flex-wrap: wrap;
}

.keyword-badge {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 1rem;
}

.keyword-lang {
  font-size: 0.68rem;
  color: var(--adv-gold);
  text-transform: uppercase;
  font-weight: 800;
}

.keyword-term {
  font-family: var(--font-serif), serif;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.keyword-meaning {
  font-size: 0.88rem;
  color: var(--adv-text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   BLOQUE 4: EXPLICACIÓN TEOLÓGICA DEL TIEMPO
   ========================================================================== */
.advent-block-theology {
  margin-bottom: 2.25rem;
}

.theology-category-pill {
  background: rgba(212, 175, 55, 0.15);
  color: var(--adv-gold);
  border: 1px solid var(--adv-border);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.theology-heading {
  font-family: var(--font-serif), serif;
  font-size: 1.3rem;
  color: #FFFFFF;
  margin: 0 0 0.85rem 0;
}

.theology-content-card {
  background: rgba(15, 12, 27, 0.6);
  border: 1px solid var(--adv-border);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
}

.theology-content-card p {
  font-size: 0.98rem;
  color: #E2E8F0;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   BLOQUE 5: REFLEXIÓN PATRÍSTICA
   ========================================================================== */
.advent-block-patristic {
  margin-bottom: 2.25rem;
}

.patristic-card {
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.25), rgba(26, 20, 46, 0.9));
  border: 1px solid var(--adv-border);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.patristic-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.patristic-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--adv-border);
  color: var(--adv-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.patristic-father {
  font-family: var(--font-serif), serif;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin: 0 0 0.15rem 0;
}

.patristic-work {
  font-size: 0.82rem;
  color: var(--adv-gold-light);
  font-style: italic;
}

.patristic-quote {
  font-family: 'Playfair Display', var(--font-serif), serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-style: italic;
  border-left: 3px solid var(--adv-gold);
  padding-left: 1rem;
}

.patristic-commentary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--adv-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

/* ==========================================================================
   BLOQUE 6: PETICIONES LITÚRGICAS (PRECES)
   ========================================================================== */
.advent-block-preces {
  margin-bottom: 2.25rem;
}

.preces-invitatory {
  font-size: 0.95rem;
  color: var(--adv-gold-light);
  font-style: italic;
  margin: 0.5rem 0 1rem 0;
}

.preces-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.preces-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(15, 12, 27, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
}

.preces-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--adv-border);
  color: var(--adv-gold);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.preces-text {
  font-size: 0.92rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin: 0;
}

.preces-interactive-box {
  background: linear-gradient(135deg, rgba(75, 44, 120, 0.35), rgba(15, 12, 27, 0.8));
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.15rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.preces-prompt {
  font-size: 0.82rem;
  color: var(--adv-text-muted);
}

.btn-preces-response {
  background: linear-gradient(135deg, #4B2C78, #2A1747);
  border: 1.5px solid var(--adv-gold);
  color: var(--adv-gold-light);
  font-family: var(--font-serif), serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.btn-preces-response span {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.btn-preces-response:hover {
  background: linear-gradient(135deg, #5E3696, #3B2064);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-preces-response.pulse-glow {
  animation: precesAura 0.6s ease;
}

@keyframes precesAura {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   BLOQUE 7: ORACIÓN FINAL Y COMPROMISO PRÁCTICO
   ========================================================================== */
.advent-block-closing {
  margin-bottom: 2rem;
}

.closing-prayer-box {
  background: rgba(15, 12, 27, 0.65);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.closing-prayer-text {
  font-family: var(--font-serif), serif;
  font-size: 1rem;
  color: #FFFFFF;
  line-height: 1.65;
  margin: 0;
}

/* Recuadro Interactivo de Propósito */
.advent-purpose-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(26, 20, 46, 0.95));
  border: 2px solid var(--adv-border);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.advent-purpose-card.purpose-completed {
  border-color: rgba(52, 211, 153, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(26, 20, 46, 0.95));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.purpose-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.purpose-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--adv-gold);
}

.purpose-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.purpose-checkbox-label input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--adv-gold);
  background: rgba(15, 12, 27, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.purpose-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: #10b981;
  border-color: #34d399;
}

.purpose-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✓";
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
}

.checkbox-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--adv-gold-light);
}

.purpose-action-title {
  font-family: var(--font-serif), serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.purpose-detail-text {
  font-size: 0.92rem;
  color: var(--adv-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Botón Maestro de Marcar Día Completo */
.advent-day-complete-action {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn-mark-day-done {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(75, 44, 120, 0.4));
  border: 1.5px solid var(--adv-gold);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-mark-day-done:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(75, 44, 120, 0.6));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.btn-mark-day-done.is-done {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 78, 59, 0.7));
  border-color: #34d399;
  color: #a7f3d0;
}

/* Navegación Inferior Continua */
.advent-day-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.advent-footer-day-indicator {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   MODAL DE INSCRIPCIÓN Y CREDENCIAL DIGITAL
   ========================================================================== */
#advent-enrollment-modal,
#advent-credential-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 580px;
  width: 92%;
  margin: auto;
}

#advent-enrollment-modal::backdrop,
#advent-credential-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.advent-modal-box {
  background: #140F24;
  border: 1px solid var(--adv-border);
  border-radius: 24px;
  padding: 2rem;
  color: #F5F3EF;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--adv-glow);
  box-sizing: border-box;
}

.advent-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.advent-modal-title {
  font-family: var(--font-serif), serif;
  font-size: 1.45rem;
  color: #FFFFFF;
  margin: 0 0 0.25rem 0;
}

.advent-modal-subtitle {
  font-size: 0.85rem;
  color: var(--adv-text-muted);
  margin: 0;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.advent-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.advent-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--adv-gold-light);
}

.advent-form-input,
.advent-form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.advent-form-input:focus,
.advent-form-textarea:focus {
  outline: none;
  border-color: var(--adv-gold);
  background: rgba(255, 255, 255, 0.08);
}

.advent-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Credencial Digital */
.credential-diploma-card {
  background: radial-gradient(circle at 50% 30%, #2A1747 0%, #140F24 100%);
  border: 2px solid var(--adv-gold);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.credential-cross {
  font-size: 1.8rem;
  color: var(--adv-gold);
  margin-bottom: 0.5rem;
}

.credential-header-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--adv-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.credential-header-sub {
  font-size: 0.75rem;
  color: var(--adv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.credential-user-name {
  font-family: var(--font-serif), serif;
  font-size: 1.75rem;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--adv-border);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.credential-meta-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.credential-folio {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--adv-gold-light);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES (375px Y DISPOSITIVOS PEQUEÑOS)
   Garantiza que ningún texto desborde los cajones ("no puede salir del cajón")
   ========================================================================== */
@media (max-width: 900px) {
  .advent-hero-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .advent-hero-title {
    font-size: 1.7rem;
  }

  .advent-week-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scripture-snippets-grid {
    grid-template-columns: 1fr;
  }

  .enrollment-invite-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .advent-container {
    padding: 0 0.75rem;
  }

  .advent-hero-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .advent-hero-title {
    font-size: 1.4rem;
  }

  .advent-hero-dates {
    font-size: 0.82rem;
  }

  .advent-hero-desc {
    font-size: 0.88rem;
  }

  .advent-week-tabs-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .advent-day-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
  }

  .advent-title-liturgical {
    font-size: 1.35rem;
  }

  .advent-motto-text {
    font-size: 1.05rem;
  }

  .advent-day-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn-advent-nav-arrow {
    justify-content: center;
    width: 100%;
  }

  .advent-day-nav-center {
    justify-content: center;
  }

  .colecta-box {
    padding: 1rem 1.15rem;
  }

  .colecta-text {
    font-size: 0.95rem;
  }

  .keyword-spotlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .keyword-badge {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 0;
    padding-bottom: 0.5rem;
    width: 100%;
  }

  .advent-form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn-mark-day-done {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    justify-content: center;
  }

  .btn-preces-response {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
  }

  .advent-modal-box {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .credential-diploma-card {
    padding: 1.25rem 1rem;
  }

  .credential-user-name {
    font-size: 1.35rem;
  }
}


/* ==========================================================================
   CINEMA DIVINA: EL SÉPTIMO ARTE HACIA LA CONVERSIÓN Y EL AMOR A LA SANTIDAD
   Paleta: Oscuro teatral (#0A0714 a #18122B), dorado litúrgico (#D4AF37),
   morado sacro (#4B2C78) y blanco hueso (#F5F3EF).
   ========================================================================== */

#cine {
  --cine-bg: #0A0714;
  --cine-card-bg: #150F26;
  --cine-gold: #D4AF37;
  --cine-gold-light: #F7E7A9;
  --cine-purple: #4B2C78;
  --cine-border: rgba(212, 175, 55, 0.22);
  --cine-glow: rgba(212, 175, 55, 0.18);

  background: radial-gradient(ellipse at 50% 0%, #1F1538 0%, #0A0714 80%);
  color: #F5F3EF;
  padding-bottom: 5rem;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.cinema-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ==========================================================================
   SALA DE TEATRO Y REPRODUCTOR CINEMATOGRÁFICO
   ========================================================================== */
.cinema-theater-wrapper {
  background: linear-gradient(180deg, rgba(26, 18, 48, 0.95), rgba(10, 7, 20, 0.98));
  border: 1px solid var(--cine-border);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px var(--cine-glow);
  box-sizing: border-box;
}

.cinema-screen-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  margin-bottom: 1.5rem;
}

.cinema-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.theater-meta-header {
  padding-top: 0.5rem;
  box-sizing: border-box;
}

.theater-badges-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.theater-badge-saint,
.theater-badge-category,
.theater-badge-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.theater-badge-saint {
  background: rgba(212, 175, 55, 0.15);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
}

.theater-badge-category {
  background: rgba(75, 44, 120, 0.4);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.theater-badge-duration {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.theater-film-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 2.1rem;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 0.35rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.theater-film-sub {
  font-family: 'Playfair Display', var(--font-serif), serif;
  font-size: 1.15rem;
  color: var(--cine-gold-light);
  font-style: italic;
  margin: 0 0 0.85rem 0;
}

.theater-film-synopsis {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  max-width: 950px;
}

/* ==========================================================================
   FILTROS Y CATÁLOGO DE LAS 8 PELÍCULAS
   ========================================================================== */
.cinema-catalog-section {
  margin-bottom: 3.5rem;
}

.cinema-filter-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cine-gold) rgba(255, 255, 255, 0.05);
}

.cinema-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cine-border);
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cinema-filter-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--cine-gold);
  color: #FFFFFF;
}

.cinema-filter-btn.active {
  background: linear-gradient(135deg, #4B2C78, #2A1747);
  border: 1.5px solid var(--cine-gold);
  color: var(--cine-gold-light);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.cinema-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.cinema-card {
  background: var(--cine-card-bg);
  border: 1px solid var(--cine-border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.cinema-card:hover {
  transform: translateY(-4px);
  border-color: var(--cine-gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px var(--cine-glow);
}

.cinema-card.active {
  border: 2px solid var(--cine-gold);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px var(--cine-glow);
}

.cinema-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.cinema-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cinema-card:hover .cinema-card-thumb {
  transform: scale(1.04);
}

.cinema-card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cinema-badge-cat {
  background: rgba(10, 7, 20, 0.85);
  color: var(--cine-gold-light);
  border: 1px solid var(--cine-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cinema-badge-dur {
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.cinema-play-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(75, 44, 120, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.cinema-card:hover .cinema-play-hover-overlay {
  opacity: 1;
}

.cinema-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
}

.cinema-card-saint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cinema-saint-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cine-gold);
  text-transform: uppercase;
}

.cinema-tag-committed {
  font-size: 0.68rem;
  font-weight: 800;
  color: #34d399;
}

.cinema-card-title {
  font-family: var(--font-serif), serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.cinema-card-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
  flex: 1;
}

.cinema-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
}

.cinema-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cine-gold-light);
  transition: color 0.2s ease;
}

.cinema-card:hover .cinema-card-cta {
  color: #FFFFFF;
}

/* ==========================================================================
   LOS 5 PASOS DE CINEMA DIVINA (ITINERARIO DE CONVERSIÓN Y SANTIDAD)
   ========================================================================== */
.cinema-steps-wrapper {
  background: var(--cine-card-bg);
  border: 1px solid var(--cine-border);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.cinema-steps-header {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.cinema-steps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.cinema-steps-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 1.85rem;
  color: #FFFFFF;
  margin: 0 0 0.4rem 0;
}

.cinema-steps-desc {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 850px;
}

/* Tarjeta individual de cada paso */
.step-card {
  background: rgba(10, 7, 20, 0.65);
  border: 1px solid var(--cine-border);
  border-radius: 18px;
  padding: 1.6rem 1.85rem;
  margin-bottom: 1.85rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.step-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
}

.tag-purple {
  background: rgba(75, 44, 120, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.tag-ruby {
  background: rgba(225, 29, 72, 0.2);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.step-subtitle {
  font-family: var(--font-serif), serif;
  font-size: 0.92rem;
  color: var(--cine-gold-light);
  font-style: italic;
}

.step-symbol-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--cine-gold);
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1rem;
}

.step-focus-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-focus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.55;
}

/* Paso 2: Scripture & Reflection */
.step-scripture-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-cite-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cine-gold);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.step-quote {
  font-family: 'Playfair Display', var(--font-serif), serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.step-reflection-text p {
  font-size: 0.96rem;
  color: #e2e8f0;
  line-height: 1.7;
  margin: 0;
}

/* Paso 3: Preguntas de Conversión */
.conversion-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.conversion-q-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(18, 12, 32, 0.75);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.q-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.q-content {
  flex: 1;
}

.q-main {
  font-family: var(--font-serif), serif;
  font-size: 1.02rem;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.q-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* Cuaderno Espiritual */
.step-notebook-box {
  background: rgba(18, 12, 32, 0.9);
  border: 1.5px solid var(--cine-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.notebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cinema-note-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.6;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cinema-note-textarea:focus {
  outline: none;
  border-color: var(--cine-gold);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* Paso 4: Plegaria */
.step-prayer-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(75, 44, 120, 0.25));
  border-left: 4px solid var(--cine-gold);
  border-radius: 0 16px 16px 0;
  padding: 1.35rem 1.65rem;
  border-top: 1px solid var(--cine-border);
  border-right: 1px solid var(--cine-border);
  border-bottom: 1px solid var(--cine-border);
}

.step-prayer-text {
  font-family: var(--font-serif), serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.75;
  margin: 0;
}

/* Paso 5: Compromiso Práctico */
.step-action-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(20, 15, 36, 0.9));
  border: 2px solid var(--cine-border);
  border-radius: 16px;
  padding: 1.35rem 1.65rem;
  transition: all 0.3s ease;
}

.step-action-box.is-committed {
  border-color: rgba(52, 211, 153, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 15, 36, 0.95));
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.action-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.action-title {
  font-family: var(--font-serif), serif;
  font-size: 1.18rem;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.35;
}

.action-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.action-checkbox-label input[type="checkbox"] {
  display: none;
}

.action-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  background: #10b981;
  border-color: #34d399;
}

.action-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✓";
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
}

.action-detail {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   GUÍA PEDAGÓGICA INTERACTIVA Y DINÁMICA DE CINEMA DIVINA
   ========================================================================== */
.cinema-pedagogical-guide {
  background: linear-gradient(135deg, rgba(20, 15, 36, 0.95), rgba(30, 20, 50, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 1.6rem 1.85rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.pedagogical-guide-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.pedagogical-title-wrap {
  flex: 1;
  min-width: 260px;
}

.pedagogical-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pedagogical-main-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 1.55rem;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.pedagogical-subtitle {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.btn-toggle-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cine-border);
  color: var(--cine-gold-light);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-toggle-guide:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--cine-gold);
  color: #FFFFFF;
}

/* Selector Interactivo de Pasos Pedagógicos */
.pedagogical-tabs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin: 1.35rem 0 1.15rem 0;
}

.btn-pedagogical-tab {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-pedagogical-tab:hover {
  border-color: var(--cine-gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-pedagogical-tab.active {
  border-color: var(--cine-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(75, 44, 120, 0.35));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.ped-tab-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: var(--cine-gold);
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-pedagogical-tab.active .ped-tab-num {
  background: var(--cine-gold);
  color: #0b0718;
}

.ped-tab-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ped-tab-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ped-tab-theme {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ficha Detallada del Paso Pedagógico */
.pedagogical-detail-card {
  background: rgba(10, 7, 20, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  margin-top: 0.85rem;
  box-sizing: border-box;
}

.pedagogical-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ped-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.ped-detail-theme-chip {
  font-size: 0.78rem;
  color: var(--cine-gold-light);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.ped-detail-heading {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
}

.pedagogical-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.ped-col-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.ped-col-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cine-gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.ped-col-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin: 0;
}

.pedagogical-bottom-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ped-highlight-quote {
  flex: 1;
  min-width: 260px;
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--cine-gold);
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  color: #FFFFFF;
  line-height: 1.5;
}

.ped-highlight-quote strong {
  color: var(--cine-gold-light);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.ped-fruit-box {
  flex: 1;
  min-width: 260px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  color: #d1fae5;
  line-height: 1.5;
}

.ped-fruit-box strong {
  color: #34d399;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.ped-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-go-to-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(75, 44, 120, 0.45));
  border: 1px solid var(--cine-gold);
  color: #FFFFFF;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-go-to-step:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(75, 44, 120, 0.6));
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   ACORDEONES DE LOS 5 PASOS DE CINEMA DIVINA (ABREN CON CLIC)
   ========================================================================== */
.steps-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.steps-quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-step-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step-action-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--cine-gold);
  color: #FFFFFF;
}

.cinema-steps-accordions-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cinema-step-accordion {
  background: rgba(10, 7, 20, 0.65);
  border: 1px solid var(--cine-border);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cinema-step-accordion.is-open {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.12);
}

.step-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.15rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.step-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.step-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.step-header-topic {
  font-family: var(--font-serif), serif;
  font-size: 0.94rem;
  color: var(--cine-gold-light);
  font-style: italic;
  word-break: break-word;
  overflow-wrap: break-word;
}

.step-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.step-status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-status-chip.chip-open {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.step-status-chip.chip-closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--adv-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-chevron {
  transition: transform 0.25s ease;
  color: var(--cine-gold);
}

.step-chevron.is-open {
  transform: rotate(180deg);
}

.step-accordion-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.35rem 1.45rem;
  box-sizing: border-box;
}

.step-card-inner {
  box-sizing: border-box;
}

/* ==========================================================================
   ACORDEONES DE PARTES LITÚRGICAS DE ADVIENTO (ABREN CON CLIC)
   ========================================================================== */
.advent-parts-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 12, 27, 0.7);
  border: 1px solid var(--adv-border);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0 1.25rem 0;
  box-sizing: border-box;
}

.parts-bar-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--adv-gold-light);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.parts-bar-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-part-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--adv-border);
  color: var(--adv-text-main);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-part-action-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--adv-gold);
  color: #FFFFFF;
}

.advent-parts-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.advent-part-accordion {
  border: 1px solid var(--adv-border);
  border-radius: 18px;
  background: rgba(14, 10, 26, 0.65);
  transition: all 0.25s ease;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.advent-part-accordion.is-open {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.1);
}

.gaudete-active .advent-part-accordion.is-open {
  border-color: rgba(216, 138, 158, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(216, 138, 158, 0.15);
}

.part-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.15rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.part-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.part-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.part-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.part-badge.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--adv-gold);
  border: 1px solid var(--adv-border);
}

.part-badge.badge-purple {
  background: rgba(75, 44, 120, 0.35);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.gaudete-active .part-badge.badge-purple {
  background: rgba(216, 138, 158, 0.25);
  color: #ffd6e0;
  border: 1px solid rgba(216, 138, 158, 0.45);
}

.part-title-text {
  font-family: var(--font-serif), serif;
  font-size: 0.98rem;
  color: #FFFFFF;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}

.part-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.part-status-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.part-status-chip.chip-open {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.part-status-chip.chip-closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--adv-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.part-chevron {
  transition: transform 0.25s ease;
  color: var(--adv-gold);
}

.part-chevron.is-open {
  transform: rotate(180deg);
}

.part-accordion-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.35rem 1.45rem;
  box-sizing: border-box;
}

.part-body-inner {
  box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES (375px)
   Garantiza que ningún texto desborde los cajones ("no puede salir del cajón")
   ========================================================================== */
@media (max-width: 1024px) {
  .cinema-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pedagogical-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cinema-container {
    padding: 0 0.75rem;
  }

  .cinema-theater-wrapper {
    padding: 1.15rem 0.85rem;
    border-radius: 18px;
  }

  .theater-film-title {
    font-size: 1.45rem;
  }

  .theater-film-sub {
    font-size: 0.98rem;
  }

  .theater-film-synopsis {
    font-size: 0.88rem;
  }

  .cinema-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cinema-steps-wrapper {
    padding: 1.25rem 0.85rem;
    border-radius: 18px;
  }

  .cinema-steps-title {
    font-size: 1.35rem;
  }

  .cinema-steps-desc {
    font-size: 0.86rem;
  }

  .step-card {
    padding: 1.15rem 0.85rem;
    border-radius: 14px;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .conversion-q-item {
    padding: 0.85rem;
  }

  .q-main {
    font-size: 0.95rem;
  }

  .q-sub {
    font-size: 0.82rem;
  }

  .step-prayer-box {
    padding: 1rem;
  }

  .step-prayer-text {
    font-size: 0.92rem;
  }

  .action-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .action-title {
    font-size: 1.05rem;
  }

  /* Ajustes Móviles para Acordeones y Guía Pedagógica */
  .cinema-pedagogical-guide {
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
  }

  .pedagogical-main-title {
    font-size: 1.25rem;
  }

  .pedagogical-subtitle {
    font-size: 0.84rem;
  }

  .pedagogical-tabs-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn-pedagogical-tab {
    padding: 0.65rem 0.75rem;
  }

  .pedagogical-detail-card {
    padding: 1.1rem 0.85rem;
  }

  .ped-detail-heading {
    font-size: 1.05rem;
  }

  .pedagogical-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ped-highlight-quote,
  .ped-fruit-box {
    min-width: 100%;
  }

  .step-accordion-header,
  .part-accordion-header {
    padding: 0.95rem 0.85rem;
    gap: 0.5rem;
  }

  .step-header-topic,
  .part-title-text {
    font-size: 0.86rem;
  }

  .step-accordion-body,
  .part-accordion-body {
    padding: 1rem 0.85rem;
  }

  .steps-header-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps-quick-actions,
  .parts-bar-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .btn-step-action-chip,
  .btn-part-action-chip {
    flex: 1;
    justify-content: center;
  }

  .advent-parts-action-bar {
    padding: 0.75rem 0.85rem;
  }
}

/* ==========================================================================
   CINE-FORO COMUNITARIO TEOLÓGICO (DESGLOSABLE & ELEGANTE)
   ========================================================================== */
.cinema-forum-wrapper {
  margin: 2.5rem 0 2rem 0;
  background: var(--cine-card-bg);
  border: 1px solid var(--cine-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.cinema-forum-wrapper.is-open {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.12);
}

.cinema-forum-toggle-bar {
  width: 100% !important;
  background: linear-gradient(135deg, rgba(20, 15, 36, 0.95), rgba(35, 20, 60, 0.9));
  border: none;
  padding: 1.25rem 1.65rem;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background 0.2s ease;
  box-sizing: border-box;
  white-space: normal !important;
}

.cinema-forum-toggle-bar:hover {
  background: linear-gradient(135deg, rgba(25, 18, 45, 0.98), rgba(45, 25, 75, 0.95));
}

.forum-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.forum-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.forum-toggle-title {
  font-family: var(--font-serif), 'Cinzel', serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  font-weight: 700;
  white-space: normal !important;
  word-break: break-word;
}

.forum-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.forum-status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-status-pill.pill-open {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.forum-status-pill.pill-closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--adv-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.forum-chevron {
  color: var(--cine-gold);
  transition: transform 0.25s ease;
}

.forum-chevron.is-open {
  transform: rotate(180deg);
}

.cinema-forum-body {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.85rem;
  box-sizing: border-box;
}

.forum-body-inner {
  box-sizing: border-box;
}

.forum-intro-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--cine-gold);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.35rem;
  margin-bottom: 1.75rem;
}

.forum-intro-title {
  margin: 0 0 0.35rem 0;
  color: var(--cine-gold-light);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.forum-intro-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.forum-form-card {
  background: rgba(15, 10, 28, 0.75);
  border: 1px solid var(--cine-border);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.forum-form-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.forum-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cine-gold-light);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-input,
.forum-select,
.forum-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.forum-input:focus,
.forum-select:focus,
.forum-textarea:focus {
  outline: none;
  border-color: var(--cine-gold);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.forum-select option {
  background: #110d22;
  color: #FFFFFF;
}

.forum-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.forum-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feed-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(75, 44, 120, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.feed-sub-note {
  font-size: 0.8rem;
  color: var(--adv-text-muted);
}

.forum-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.forum-comment-card {
  background: rgba(12, 8, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.forum-comment-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.comment-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(75, 44, 120, 0.5));
  border: 1.5px solid var(--cine-gold);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.comment-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.comment-location {
  font-size: 0.78rem;
  color: var(--adv-text-muted);
  display: block;
}

.comment-meta-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.comment-film-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--cine-gold);
  border: 1px solid var(--cine-border);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--adv-text-muted);
}

.comment-body-text p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
  font-family: 'Playfair Display', var(--font-serif), serif;
}

.comment-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.btn-like-comment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-like-comment:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.4);
  color: #fda4af;
}

.forum-collapse-bottom-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ==========================================================================
   BLINDAJE TOTAL CONTRA TEXTO DESCUADRADO O QUE SE SALE DE LAS CAJAS
   Garantiza adaptabilidad 100% en Móvil y Escritorio sin fugas de texto
   ========================================================================== */
.step-accordion-header,
.step-accordion-header *,
.part-accordion-header,
.part-accordion-header *,
.step-header-left,
.step-header-left *,
.part-header-left,
.part-header-left *,
.step-header-topic,
.part-title-text,
.btn-mark-day-done,
.btn-mark-day-done *,
.btn-preces-response,
.btn-preces-response *,
.ped-tab-label,
.ped-tab-theme,
.ped-detail-heading,
.advent-hero-dates,
.advent-title-liturgical,
.advent-motto-text,
.forum-toggle-title,
.comment-author-name,
.comment-body-text,
.comment-body-text * {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
}

.step-accordion-header,
.part-accordion-header {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
}

.step-header-left,
.part-header-left {
  flex: 1 1 200px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.step-header-right,
.part-header-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.btn-pedagogical-tab {
  min-width: 0 !important;
}

.ped-tab-info {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.ped-tab-label {
  white-space: normal !important;
  line-height: 1.25 !important;
}

@media (max-width: 600px) {
  .forum-form-grid {
    grid-template-columns: 1fr;
  }
  .cinema-forum-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .cinema-forum-toggle-bar {
    padding: 0.85rem 0.75rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .forum-toggle-left {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: 1 1 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
  }
  .forum-toggle-right {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
    padding-top: 0.45rem !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
  }
  .forum-toggle-title {
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .cinema-forum-body {
    padding: 1.15rem 0.85rem;
  }
  .forum-comment-card {
    padding: 1rem 0.85rem;
  }
  .comment-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment-meta-right {
    margin-top: 0.35rem;
  }
  .step-header-left,
  .part-header-left {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
  .step-header-right,
  .part-header-right {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: space-between !important;
    padding-top: 0.4rem !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
  }
  .advent-hero-card::before {
    display: none !important;
  }
  .advent-hero-card {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .advent-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .advent-hero-actions .btn-hero-epic,
  .advent-hero-actions .btn-luxury-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }
  .announcement-content {
    white-space: normal !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   CINEMA DIVINA: JERARQUÍA PEDAGÓGICA, EXPERIENCIA DINÁMICA & CINE-FORO
   ========================================================================== */

#cinema-pedagogical-viewer {
  margin-bottom: 2.5rem;
}

.cinema-pedagogical-standalone {
  background: linear-gradient(145deg, rgba(19, 13, 31, 0.95), rgba(10, 6, 18, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pedagogical-standalone-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.pedagogical-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pedagogical-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adv-gold, #f6d365);
  margin-bottom: 0.35rem;
}

.pedagogical-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.pedagogical-subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.pedagogical-steps-nav {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.pedagogical-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: inherit;
}

.pedagogical-nav-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  color: #fff;
}

.pedagogical-nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(168, 85, 247, 0.2));
  border-color: var(--adv-gold, #f6d365);
  color: var(--adv-gold, #f6d365);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.pedagogical-step-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
}

.step-detail-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-detail-num {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--adv-gold, #f6d365);
  opacity: 0.85;
  line-height: 1;
}

.step-detail-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.step-detail-motto {
  color: #a78bfa;
  font-size: 0.88rem;
  font-style: italic;
  margin: 0;
}

.step-detail-desc {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.step-detail-quote-box {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--adv-gold, #f6d365);
  padding: 0.85rem 1.15rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.step-detail-quote-box strong {
  color: var(--adv-gold, #f6d365);
}

/* BOTÓN CLIC PARA ABRIR EN TARJETAS DE CATÁLOGO */
.film-card-open-btn-wrap {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-open-film-card {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
}

.btn-open-film-card:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(168, 85, 247, 0.35));
  border-color: var(--adv-gold, #f6d365);
  color: var(--adv-gold, #f6d365);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

/* BARRA SUPERIOR DE EXPERIENCIA ABIERTA */
#cinema-experience-viewer {
  scroll-margin-top: 5rem;
}

.cinema-experience-bar {
  background: linear-gradient(90deg, rgba(26, 17, 44, 0.95), rgba(14, 9, 25, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.experience-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.experience-bar-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--adv-gold, #f6d365);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}

.experience-bar-title {
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.experience-bar-title strong {
  color: var(--adv-gold, #f6d365);
}

.btn-change-film-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-change-film-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fff;
}

/* ==========================================================================
   ADVIENTO LITÚRGICO: TARJETA DE ESPERA & CONTADOR AL 30 DE NOVIEMBRE
   ========================================================================== */

.advent-waiting-lock-card {
  background: linear-gradient(145deg, rgba(28, 16, 48, 0.95), rgba(12, 6, 22, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.advent-waiting-lock-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}

.waiting-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--adv-gold, #f6d365);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}

.waiting-card-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1.15rem auto;
  max-width: 780px;
  line-height: 1.3;
}

.waiting-card-quote {
  font-style: italic;
  color: #cbd5e1;
  font-size: 1.05rem;
  margin: 0 auto 1.25rem auto;
  max-width: 650px;
  border-left: none;
  padding: 0;
}

.waiting-card-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

/* RELOJ REGRESIVO */
.advent-countdown-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 1.25rem 2rem;
  margin: 0 auto 2.25rem auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.countdown-unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.countdown-num {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--adv-gold, #f6d365);
  line-height: 1;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.countdown-colon {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.4);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.waiting-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.waiting-preview-switch-box {
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.btn-preview-mode-toggle {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-preview-mode-toggle:hover {
  border-color: var(--adv-gold, #f6d365);
  color: var(--adv-gold, #f6d365);
  background: rgba(212, 175, 55, 0.08);
}

.advent-preview-active-bar {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.preview-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.btn-close-preview {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-close-preview:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.day-pill-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.35rem;
}

/* ==========================================================================
   PORTAL: MIS MEDITACIONES & CUADERNO ESPIRITUAL
   ========================================================================== */

#portal-tab-meditaciones {
  padding-top: 1rem;
}

.meditaciones-journal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journal-hero-banner {
  background: linear-gradient(145deg, rgba(24, 15, 38, 0.95), rgba(12, 7, 20, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.journal-badge-row {
  margin-bottom: 0.85rem;
}

.journal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adv-gold, #f6d365);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

.journal-hero-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.65rem 0;
  line-height: 1.3;
}

.journal-hero-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 0 1.5rem 0;
}

.journal-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-journal-export {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-journal-export:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(168, 85, 247, 0.35));
  border-color: var(--adv-gold, #f6d365);
  color: var(--adv-gold, #f6d365);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.journal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.journal-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.journal-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adv-gold, #f6d365);
  flex-shrink: 0;
}

.journal-stat-val {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.journal-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.journal-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
}

.journal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.journal-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.journal-section-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.journal-count-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--adv-gold, #f6d365);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.journal-entry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
}

.journal-entry-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.journal-entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.journal-film-title {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.journal-saint-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
}

.journal-entry-date {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

.journal-notes-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--adv-gold, #f6d365);
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  flex: 1 1 auto;
}

.journal-notes-box-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adv-gold, #f6d365);
  margin-bottom: 0.35rem;
}

.journal-notes-text {
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.journal-commitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.journal-entry-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-open-meditation-link {
  background: transparent;
  border: none;
  color: var(--adv-gold, #f6d365);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-open-meditation-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* LISTA DE ADVIENTO EN CUADERNO */
.advent-journal-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.advent-journal-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.advent-row-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.advent-day-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--adv-gold, #f6d365);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advent-day-meta {
  display: flex;
  flex-direction: column;
}

.advent-day-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.advent-day-motto {
  color: #94a3b8;
  font-size: 0.78rem;
  font-style: italic;
}

.advent-row-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.advent-tag-done {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.journal-empty-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.empty-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--adv-gold, #f6d365);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.empty-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.empty-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cinema-pedagogical-standalone {
    padding: 1.25rem 1rem;
  }
  .pedagogical-standalone-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .pedagogical-title {
    font-size: 1.15rem;
  }
  .advent-waiting-lock-card {
    padding: 2rem 1rem;
  }
  .waiting-card-title {
    font-size: 1.35rem;
  }
  .advent-countdown-clock {
    padding: 1rem 0.75rem;
    gap: 0.5rem;
  }
  .countdown-num {
    font-size: 1.8rem;
  }
  .countdown-unit-box {
    min-width: 48px;
  }
  .countdown-colon {
    font-size: 1.4rem;
  }
  .journal-hero-banner {
    padding: 1.5rem 1.15rem;
  }
  .journal-hero-title {
    font-size: 1.35rem;
  }
  .journal-section-card {
    padding: 1.25rem 1rem;
  }
  .journal-grid {
    grid-template-columns: 1fr;
  }
}
