/* ==========================================================================
   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;
  z-index: 99999;
  background: radial-gradient(circle at center, #0a1f27 0%, #0a111a 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  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: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.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: 110px;
  height: 110px;
  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: 1.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.preloader-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
  text-transform: none;
  margin-bottom: 2rem;
}

.preloader-progress-track {
  width: 240px;
  height: 4px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

.preloader-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.75rem;
}

.preloader-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 320px;
  text-align: center;
}

#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: 99998;
  pointer-events: none;
  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: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: none;
  overflow: hidden;
}

/* ENTRADA DE TRANSICIÓN — Pausada y Solemne (1.05s) */
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: 480px;
  height: 480px;
  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.35rem;
}

.nav-item-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  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: 250px;
  background: rgba(6, 17, 23, 0.95);
  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;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 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);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.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: 85vh;
}

.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);
}

.evangelio-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

.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: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  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: 4.5rem 2rem;
}

.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: 1.75rem;
  backdrop-filter: blur(12px);
}

.hero-cinematic-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  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
   ========================================================================== */

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

.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;
}

.rosary-bead-navigator {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

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

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

.rosary-bead {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 46, 56, 0.6);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rosary-bead.our-father {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
}

.rosary-bead.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  transform: scale(1.15);
  border-color: var(--primary-dark);
}

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

.prayer-text-box {
  background: rgba(20, 32, 52, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.prayer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prayer-content {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  font-style: italic;
}

/* ==========================================================================
   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: nowrap !important;
  word-break: normal !important;
}

.course-thumb-wrapper .course-badge-highlight {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-bottom: 0;
  z-index: 5;
  background: rgba(10, 20, 36, 0.88);
  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: nowrap !important;
  word-break: normal !important;
}

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

.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;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

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

/* ==========================================================================
   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: 1420px) {
  .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) {
  .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: 1.65rem; }
  .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 {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 92vh !important;
    margin: auto !important;
    border-radius: var(--radius-md) !important;
  }

  .evangelio-modal-header {
    padding: 0.85rem 1rem !important;
  }

  .evangelio-modal-main-title {
    font-size: 1.1rem !important;
  }

  .evangelio-modal-sub-title {
    font-size: 0.75rem !important;
  }

  .evangelio-celebration-pills {
    padding: 0.5rem 0.65rem 0.35rem !important;
    gap: 0.4rem !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .evangelio-toggle-pill {
    font-size: 0.76rem !important;
    padding: 0.3rem 0.65rem !important;
  }

  .evangelio-section-tabs {
    padding: 0.5rem 0.65rem !important;
    gap: 0.4rem !important;
    justify-content: flex-start !important;
  }

  .evangelio-sec-btn {
    font-size: 0.8rem !important;
    padding: 0.42rem 0.85rem !important;
  }

  .evangelio-modal-body {
    padding: 1rem 0.85rem !important;
  }

  .evangelio-clean-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .evangelio-text-body {
    font-size: 1.05rem !important;
    line-height: 1.85 !important;
    text-align: left !important;
  }

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

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

  .evangelio-modal-footer {
    flex-direction: column !important;
    padding: 0.75rem 1rem !important;
    gap: 0.6rem !important;
  }

  .evangelio-footer-main,
  .evangelio-footer-main .btn-gold-cta {
    width: 100% !important;
    justify-content: center !important;
  }

  .evangelio-footer-secondary {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .evangelio-footer-secondary .btn-luxury-secondary {
    flex: 1 1 auto !important;
    justify-content: center !important;
    padding: 0.45rem 0.5rem !important;
    font-size: 0.78rem !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: #000000;
}

.media-player-screen iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* 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: #000000;
}

.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 */
  button,
  .btn-gold-cta, .btn-gold-cta *,
  .btn-luxury-secondary, .btn-luxury-secondary *,
  .btn-hero-epic, .btn-hero-epic *,
  .nav-item-link, .nav-item-link *,
  .dropdown-item,
  .liturgia-cal-btn, .liturgia-cal-btn *,
  .celebration-pill, .celebration-pill *,
  .liturgical-season-badge,
  .liturgical-salterio-badge,
  .celebration-switch-badge,
  .celebration-switch-label,
  .pill-name, .pill-tag,
  .badge-pill, .badge-counter,
  .table-badge, .table-badge *,
  .evangelio-toggle-pill, .evangelio-toggle-pill *,
  .evangelio-sec-btn, .evangelio-sec-btn *,
  .evangelio-card-tag, .evangelio-card-badge,
  .btn-evangelio-step, .btn-evangelio-step *,
  .course-badge-highlight,
  .portal-course-badge {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: normal;
  }

  /* 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 {
    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;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.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);
}

.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;
}

.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.92rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.25;
}

.user-row-email {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.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;
}

.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;
}

/* ==========================================================================
   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.05em;
  margin-bottom: 0.75rem;
  white-space: nowrap !important;
}

.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: nowrap !important;
}

.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: nowrap !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: nowrap !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: nowrap !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;
}


