/* ==========================================================================
   IGLESIA DE PAZ • PLATAFORMA DE ENSEÑANZAS Y REFLEXIONES VIVAS
   Estilos cinematográficos de alta fidelidad para presentaciones web
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(13, 19, 32, 0.75);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --gold-primary: #e5b85c;
  --gold-glow: #ffd27d;
  --gold-dark: #9e782f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #f6d285;
  
  --font-title: 'Cinzel', serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR (PORTAL HOME)
   ========================================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5b85c, #9e782f);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(229, 184, 92, 0.35);
  color: #07090e;
  font-size: 1.4rem;
  font-weight: 900;
}

.brand-text h1 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 40%, #e5b85c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

/* Widget de Audio Flotante */
.audio-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  transition: var(--transition-fast);
}

.audio-widget:hover {
  background: rgba(255, 255, 255, 0.08);
}

.audio-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.audio-btn:hover {
  transform: scale(1.1);
}

.audio-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-waves span {
  width: 3px;
  height: 100%;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

.sound-waves.paused span {
  animation-play-state: paused;
  height: 3px;
}

.sound-waves span:nth-child(2) { animation-delay: 0.2s; }
.sound-waves span:nth-child(3) { animation-delay: 0.4s; }
.sound-waves span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 14px; }
}

.volume-slider {
  width: 70px;
  height: 4px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

/* ==========================================================================
   VISTA DEL PORTAL (HOME)
   ========================================================================== */
#home-view {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(229, 184, 92, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-glow);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 30%, #e2e8f0 70%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 184, 92, 0.15);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  backdrop-filter: blur(20px);
}

@media (max-width: 960px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
}

.card-media-preview {
  position: relative;
  min-height: 380px;
  background: #000;
  overflow: hidden;
}

.card-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .card-media-preview img {
  transform: scale(1.05);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.1) 0%, rgba(7, 9, 14, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.media-tag-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tag-badge.gold {
  border-color: var(--border-gold);
  color: var(--gold-glow);
}

.card-content-area {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header-meta {
  margin-bottom: 1.5rem;
}

.scripture-pill {
  display: inline-block;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card-synopsis {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modules-selector-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.quick-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .quick-modules-grid {
    grid-template-columns: 1fr;
  }
}

.module-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  color: var(--text-main);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-chip:hover {
  background: rgba(229, 184, 92, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-glow);
  transform: translateX(4px);
}

.btn-launch-presentation {
  background: linear-gradient(135deg, #e5b85c, #c29738);
  color: #07090e;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(229, 184, 92, 0.35);
  transition: var(--transition-fast);
}

.btn-launch-presentation:hover {
  background: linear-gradient(135deg, #ffd27d, #e5b85c);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(229, 184, 92, 0.5);
}

/* ==========================================================================
   VISTA DE DIAPOSITIVAS: PANTALLA COMPLETA Y CINEMATOGRÁFICA
   ========================================================================== */
#presentation-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #000;
  display: none;
  overflow: hidden;
  user-select: none;
}

#presentation-view.active {
  display: flex;
}

/* Barra de Progreso Superior */
.presentation-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 120;
}

.presentation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9e782f, #ffd27d);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(229, 184, 92, 0.8);
}

/* Barra de Herramientas Superior */
.presentation-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 110;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.3s;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-topbar {
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-topbar:hover {
  background: rgba(229, 184, 92, 0.2);
  border-color: var(--border-gold);
  color: var(--gold-glow);
}

.slide-counter-badge {
  background: rgba(7, 9, 14, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-gold);
  color: var(--gold-glow);
  letter-spacing: 1px;
}

/* Switcher Video / Imagen */
.media-toggle-pill {
  display: none;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  overflow: hidden;
  padding: 2px;
}

.media-toggle-pill.visible {
  display: flex;
}

.media-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.media-toggle-btn.active {
  background: var(--gold-primary);
  color: #07090e;
  font-weight: 700;
}

/* ==========================================================================
   SIDEBAR LATERAL IZQUIERDO: BOSQUEJO HOMILÉTICO JERÁRQUICO
   ========================================================================== */
.presentation-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border-subtle);
  z-index: 105;
  display: flex;
  flex-direction: column;
  padding-top: 4.5rem;
  padding-bottom: 3.8rem;
  transform: translateX(0);
  transition: transform var(--transition-smooth);
}

.presentation-sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 0 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
}

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
}

/* Encabezados de Puntos Mayores (I, II, III...) */
.sidebar-major-heading {
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  padding: 0.8rem 0.6rem 0.3rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-major-heading:first-child {
  border-top: none;
  margin-top: 0;
}

/* Subpuntos (1.1, 1.2...) */
.sidebar-item {
  padding: 0.45rem 0.75rem 0.45rem 1.25rem;
  margin-bottom: 0.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-item.active {
  background: rgba(229, 184, 92, 0.16);
  border-left: 3px solid var(--gold-primary);
  color: var(--gold-glow);
  font-weight: 700;
  padding-left: 1.1rem;
}

/* ==========================================================================
   CANVAS DE DIAPOSITIVA: TEXTO FLOTANTE SOBRE LA IMAGEN ("EN EL AIRE")
   ========================================================================== */
.slide-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 280px; /* Espacio para el sidebar izquierdo */
  padding-right: 3rem;
  padding-bottom: 5rem; /* Espacio para el teleprompter */
  transition: padding-left var(--transition-smooth);
}

.presentation-sidebar.collapsed ~ .slide-canvas {
  padding-left: 4rem;
}

/* Medios de Fondo (100% Pantalla) */
.slide-background-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.slide-background-media img,
.slide-background-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.slide-background-media video {
  display: none;
}

.slide-background-media video.active {
  display: block;
}

/* Gradiente sutil y cinematográfico que NO tapa la imagen central */
.slide-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.45) 30%, rgba(7, 9, 14, 0.1) 60%, rgba(7, 9, 14, 0.35) 100%),
              radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

/* CONTENIDO FLOTANTE "EN EL AIRE" (SIN CAJA OPACA) */
.slide-content-overlay {
  position: relative;
  z-index: 10;
  max-width: 1050px;
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  animation: slideFadeIn 0.4s ease-out;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tag Bíblico Superior Refinado */
.slide-block-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 0.35rem;
  opacity: 0.88;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slide-block-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.slide-main-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 2px 5px rgba(0, 0, 0, 1);
}

.slide-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--text-gold);
  margin-bottom: 1.15rem;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Caja de Texto Bíblico Translúcida y Delicada (Clic para abrir texto completo) */
.scripture-card-box {
  background: rgba(10, 15, 26, 0.32);
  backdrop-filter: blur(6px);
  border-left: 3px solid rgba(229, 184, 92, 0.7);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.95rem 1.4rem;
  margin-bottom: 0.85rem;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-left-color 0.2s ease, box-shadow 0.2s ease;
}

.scripture-card-box:hover {
  background: rgba(15, 23, 42, 0.48);
  border-left-color: var(--gold-glow);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 184, 92, 0.15);
  transform: translateX(4px);
}

.scripture-verse-ref {
  font-weight: 700;
  color: var(--gold-glow);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.scripture-text-content {
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  color: #ffffff;
  font-weight: 400;
  font-style: italic;
  font-family: Georgia, serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Caja de Comparación Práctica (Arena vs Roca) - Sutil y Translúcida */
.practical-contrast-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  max-width: 900px;
}

@media (max-width: 768px) {
  .practical-contrast-box {
    grid-template-columns: 1fr;
  }
}

.contrast-col {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.contrast-col.arena {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contrast-col.roca {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contrast-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.contrast-col.arena .contrast-header {
  color: #fca5a5;
}

.contrast-col.roca .contrast-header {
  color: #6ee7b7;
}

.contrast-body {
  font-size: 0.92rem;
  color: #f8fafc;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   TELEPROMPTER DISIMULADO + BOTÓN ORADOR A LA DERECHA
   ========================================================================== */
.teleprompter-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.55rem 2rem;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.teleprompter-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  overflow: hidden;
}

.teleprompter-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teleprompter-icon {
  color: var(--gold-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Grupo de botones de apoyo (Guion y Orador) a la derecha */
.speaker-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-speaker-study {
  background: linear-gradient(135deg, rgba(229, 184, 92, 0.25), rgba(158, 120, 47, 0.35));
  border: 1px solid var(--border-gold);
  color: var(--gold-glow);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-speaker-study:hover {
  background: linear-gradient(135deg, #e5b85c, #c29738);
  color: #07090e;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(229, 184, 92, 0.4);
}

/* Flechas de Navegación Flotantes */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 105;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  opacity: 0.35;
}

.nav-arrow:hover {
  opacity: 1;
  background: rgba(229, 184, 92, 0.35);
  transform: translateY(-50%) scale(1.1);
  color: var(--gold-glow);
}

.nav-arrow.prev {
  left: 270px;
}

.presentation-sidebar.collapsed ~ .nav-arrow.prev {
  left: 1.5rem;
}

.nav-arrow.next {
  right: 1.5rem;
}

/* ==========================================================================
   MODAL DE LECTURA BÍBLICA COMPLETA (RVR1960 / NVI)
   ========================================================================== */
.scripture-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.scripture-modal-backdrop.open {
  display: flex;
}

.scripture-modal-content {
  background: #090d16;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(229, 184, 92, 0.22);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.scripture-modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.2);
  background: linear-gradient(180deg, rgba(229, 184, 92, 0.08) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-header-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 0.2rem;
}

#scripture-modal-ref {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Toolbar de versiones bíblicas (Flechas + Tabs) */
.bible-version-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-version-arrow {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-version-arrow:hover {
  background: rgba(229, 184, 92, 0.2);
  color: #fff;
  transform: scale(1.1);
}

.version-switch-pills {
  display: flex;
  gap: 0.25rem;
}

.version-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.version-pill:hover {
  color: #ffffff;
}

.version-pill.active {
  background: linear-gradient(135deg, #e5b85c, #c29738);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(229, 184, 92, 0.35);
}

/* Sub-barra indicadora de versión */
.scripture-version-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.version-badge {
  background: rgba(229, 184, 92, 0.15);
  border: 1px solid rgba(229, 184, 92, 0.3);
  color: var(--gold-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.version-subtext {
  color: #64748b;
  font-style: italic;
}

/* Cuerpo del texto bíblico completo */
.scripture-modal-body {
  padding: 2.2rem 2.5rem;
  overflow-y: auto;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  line-height: 1.85;
  color: #f8fafc;
  background: radial-gradient(circle at 50% 30%, rgba(229, 184, 92, 0.04) 0%, transparent 70%);
}

.scripture-modal-body p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #f8fafc;
  font-size: 1.38rem;
}

.scripture-modal-body p:last-child {
  margin-bottom: 0;
}

.scripture-modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scripture-modal-footer small {
  color: #64748b;
  font-size: 0.8rem;
}

.scripture-modal-footer kbd,
.speaker-modal-footer kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gold-primary);
}

/* ==========================================================================
   MODAL DE ESTUDIO DEL ORADOR (POP-UP CON SCROLL Y DETALLES DEL MD)
   ========================================================================== */
.speaker-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.speaker-modal-backdrop.open {
  display: flex;
}

.speaker-modal-content {
  background: #0c111d;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 184, 92, 0.2);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.speaker-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-text h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: #fff;
}

.speaker-modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f1f5f9;
}

.speaker-modal-body h4 {
  color: var(--gold-glow);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.speaker-modal-body h4:first-child {
  margin-top: 0;
}

.speaker-modal-body p {
  margin-bottom: 0.9rem;
  color: #e2e8f0;
}

.speaker-modal-body ul, .speaker-modal-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.speaker-modal-body li {
  margin-bottom: 0.4rem;
}

.speaker-modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speaker-modal-footer small {
  color: #64748b;
  font-size: 0.8rem;
}

/* ==========================================================================
   MODAL DEL GUION HOMILÉTICO MAESTRO COMPLETO (MD CON SCROLL)
   ========================================================================== */
.guion-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.guion-modal-backdrop.open {
  display: flex;
}

.guion-modal-content {
  background: #090d16;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(229, 184, 92, 0.25);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.guion-modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(229, 184, 92, 0.2);
  background: linear-gradient(180deg, rgba(229, 184, 92, 0.08) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.guion-header-sub {
  color: #94a3b8;
  font-size: 0.82rem;
  display: block;
  margin-top: 0.15rem;
}

.guion-modal-body {
  padding: 2.2rem 2.8rem;
  overflow-y: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #f1f5f9;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) rgba(15, 23, 42, 0.6);
}

.guion-modal-body::-webkit-scrollbar {
  width: 8px;
}

.guion-modal-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.guion-modal-body::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.guion-modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guion-modal-footer small {
  color: #64748b;
  font-size: 0.8rem;
}

/* Tipografía y bloques del Guion Maestro */
.master-script-hero h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: #ffffff;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.script-badge {
  background: rgba(229, 184, 92, 0.15);
  border: 1px solid rgba(229, 184, 92, 0.4);
  color: var(--gold-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.script-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.script-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.script-section h3 {
  font-family: var(--font-title);
  color: var(--gold-glow);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.script-section h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.script-note {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.script-list, .script-ordered-list {
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: #e2e8f0;
}

.script-list li, .script-ordered-list li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.script-callout {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.script-callout.gold {
  background: rgba(229, 184, 92, 0.1);
  border: 1px solid rgba(229, 184, 92, 0.35);
  color: #fff;
}

.script-callout.alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.script-callout strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--gold-glow);
}

.script-callout.alert strong {
  color: #ef4444;
}

.script-quote {
  border-left: 4px solid var(--gold-primary);
  padding: 1.2rem 1.6rem;
  margin: 1.5rem 0;
  background: rgba(10, 15, 26, 0.45);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  font-style: italic;
  color: #f8fafc;
}

.quote-author {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--gold-glow);
  font-family: var(--font-body);
  font-weight: 700;
}

/* Niveles de la voluntad del Padre */
.levels-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}

.level-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.level-tag {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.level-box h5 {
  font-size: 1.05rem;
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Tabla comparativa */
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.script-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10, 15, 26, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.script-comparison-table th {
  background: rgba(229, 184, 92, 0.15);
  color: var(--gold-glow);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.script-comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

.script-comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.truths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}

@media (max-width: 768px) {
  .truths-grid { grid-template-columns: 1fr; }
}

.truth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.truth-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-primary);
  opacity: 0.35;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

.truth-card h5 {
  font-size: 1.05rem;
  color: var(--gold-glow);
  margin-bottom: 0.4rem;
}

.steps-container {
  display: grid;
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.step-card h4 {
  color: var(--gold-glow);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.step-action {
  background: rgba(229, 184, 92, 0.1);
  border-left: 3px solid var(--gold-primary);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #fff;
  font-size: 0.95rem;
}
