/* 
========= CSS VARIABLES =========
*/
:root {
  /* Colors */
  --bg-dark: #F4F4F2;
  --bg-alt: #EBEBE8;
  --bg-gray: #FFFFFF;
  --text-main: #2C3035;
  --text-muted: #6B727A;

  /* Accents */
  --accent-cristianismo: #A69B82; /* Dorado suave */
  --accent-islam: #6B8071; /* Verde oscuro */
  --accent-judaismo: #5A718F; /* Azul profundo (ajustado para que el frío sea para ciencia) */
  --accent-budismo: #BA8A78; /* Naranja/rojo suave para diferenciar */
  --accent-newage: #857C8A; /* Violeta suave */
  --accent-filosofia: #9A7671; /* Rojo arcilla */
  --accent-ciencia: #758699; /* Azul frío */
  --accent-galicia: #738075; /* Gris verdoso/musgo */

  /* Typography */
  --font-title: 'Playfair Display', serif;
  --font-text: 'Inter', 'Source Sans 3', Helvetica, sans-serif;
  
  /* Layout */
  --nav-height: 70px;
}

/* 
========= RESET & BASE =========
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 
========= TYPOGRAPHY =========
*/
h1, h2, h3, h4, h5, h6, .font-title {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: 4.5rem; letter-spacing: -0.02em; }
h2 { font-size: 3rem; margin-bottom: 1.5rem; }
h3 { font-size: 2rem; margin-bottom: 1rem; }
h4 { font-size: 1.3rem; margin-bottom: 0.5rem; font-family: var(--font-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p { margin-bottom: 1.5rem; font-size: 1.125rem; font-weight: 300; }

.lead-text { font-size: 1.4rem; font-style: italic; color: var(--text-muted); }

/* 
========= LAYOUT & CONTAINERS =========
*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container.narrow { max-width: 800px; }

.section-block {
  padding: 6rem 0;
  position: relative;
}

.bg-dark { background-color: var(--bg-dark); }
.bg-alt { background-color: var(--bg-alt); }
.bg-conclusion { background-color: var(--bg-gray); }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.my-4 { margin: 2rem 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* 
========= NAVBAR =========
*/
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(11, 11, 12, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
    text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
    line-height: 1.1;
    max-width: 18rem;
    flex: 0 1 auto;
}

.nav-title:hover,
.nav-title:focus-visible {
    color: var(--text-main);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent-cristianismo);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s;
}

/* 
========= HERO =========
*/
.fullscreen-hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.3) 0%, rgba(11, 11, 12, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-style: italic;
  margin-top: 1rem;
  color: var(--accent-cristianismo);
}

.hero-intro {
  margin-top: 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  text-decoration: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}
.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--text-main);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* 
========= INTERACTIVE MENU (INDICE) =========
*/
.indice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card-indice {
  display: block;
  background-color: var(--bg-gray);
  padding: 3rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-main);
  text-align: center;
  border-top: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-indice h3 { font-size: 1.8rem; margin-bottom: 0.5rem; transition: color 0.3s; }
.card-indice p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0;}

.card-indice:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card-religion:hover { border-color: var(--accent-cristianismo); }
.card-religion:hover h3 { color: var(--accent-cristianismo); }

.card-filosofia:hover { border-color: var(--accent-filosofia); }
.card-filosofia:hover h3 { color: var(--accent-filosofia); }

.card-ciencia:hover { border-color: var(--accent-ciencia); }
.card-ciencia:hover h3 { color: var(--accent-ciencia); }

.card-galicia:hover { border-color: var(--accent-galicia); }
.card-galicia:hover h3 { color: var(--accent-galicia); }

/* 
========= GENERAL COMPONENTS =========
*/

/* Titles colors */
.text-filosofia { color: var(--accent-filosofia); }
.text-ciencia { color: var(--accent-ciencia); }
.text-galicia { color: var(--accent-galicia); }

/* Splits / Grids */
.content-split {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.content-split .text-content { flex: 1 1 60%; }
.content-split .sidebar-content { flex: 1 1 35%; }

/* Images */
.inline-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.img-hero-small {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem 10%;
}
.overlay-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-dark) 5%, transparent 100%);
}
.sub-title {
  position: relative;
  z-index: 2;
  font-size: 3rem;
}

/* Resumen / Info Cards */
.cuadro-resumen {
  background-color: var(--bg-gray);
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--text-main);
}
.cuadro-resumen ul {
  list-style: none;
}
.cuadro-resumen li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.cuadro-resumen li strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.accent-cristianismo { border-color: var(--accent-cristianismo); }
.accent-cristianismo h3, .accent-cristianismo h4 { color: var(--accent-cristianismo); }

.accent-islam { border-color: var(--accent-islam); }
.accent-islam h3, .accent-islam h4 { color: var(--accent-islam); }

.accent-judaismo { border-color: var(--accent-judaismo); }
.accent-judaismo h3, .accent-judaismo h4 { color: var(--accent-judaismo); }

.accent-budismo { border-color: var(--accent-budismo); }
.accent-budismo h3, .accent-budismo h4 { color: var(--accent-budismo); }

.accent-newage { border-color: var(--accent-newage); }
.accent-newage h3, .accent-newage h4 { color: var(--accent-newage); }

.accent-filosofia { border-color: var(--accent-filosofia); color: var(--accent-filosofia); }
.accent-ciencia { border-color: var(--accent-ciencia); color: var(--accent-ciencia); }
.accent-galicia { border-color: var(--accent-galicia); color: var(--accent-galicia); }

/* Entrevistas */
.entrevista-bloque {
  margin-top: 3rem;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 4px;
}
.entrevista-label {
  font-family: var(--font-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.frase-destacada {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-style: italic;
  margin: 1.5rem 0;
  line-height: 1.4;
  border-left: none;
  padding-left: 0;
  color: #fff;
}
.cargo {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.btn:hover { background: var(--text-main); color: var(--bg-dark); }
.btn.accent-cristianismo { border-color: var(--accent-cristianismo); color: var(--accent-cristianismo); }
.btn.accent-cristianismo:hover { background: var(--accent-cristianismo); color: var(--bg-dark); }

.btn.accent-budismo { border-color: var(--accent-budismo); color: var(--accent-budismo); }
.btn.accent-budismo:hover { background: var(--accent-budismo); color: var(--bg-dark); }

.btn.btn-ciencia { border-color: var(--accent-ciencia); color: var(--accent-ciencia); }
.btn.btn-ciencia:hover { background: var(--accent-ciencia); color: var(--bg-dark); }

.btn.accent-galicia { border-color: var(--accent-galicia); color: var(--accent-galicia); }
.btn.accent-galicia:hover { background: var(--accent-galicia); color: var(--bg-dark); }

.transcripcion-oculta {
  display: none;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
}

/* Acordeón */
.accordion-btn {
  background-color: var(--bg-gray);
  color: var(--text-main);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-title);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease;
  border-radius: 4px;
}
.accordion-btn:hover { background-color: rgba(255,255,255,0.05); }
.accordion-content {
  padding: 0 18px;
  background-color: var(--bg-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.accordion-content p { padding: 1rem 0; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.accordion-content p:last-child { border-bottom: none; }

/* Filosofía Specifics */
.sticky-col {
  position: sticky;
  top: 100px;
}
.filosofia-content {
  border-left: 1px solid rgba(164, 90, 82, 0.3); /* dark red solid line */
  padding-left: 2rem;
}
.comparador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: 4px;
}

/* Ciencia Specifics */
.ciencia-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

/* Galicia Specifics */
.galicia-hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  position: relative;
}
.galicia-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11,11,12, 0.4);
}
.galicia-split { align-items: flex-start; }

/* Conclusión Specifics */
.frase-final {
  font-size: 2.5rem;
  font-style: italic;
  color: var(--accent-cristianismo);
  line-height: 1.3;
}
.creditos p { margin-bottom: 0.2rem; font-size: 0.9rem; color: var(--text-muted); }

/* 
========= ANIMATIONS / FADE INS =========
*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up {
  animation: fadeInUp 1.2s ease-out forwards;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 
========= RESPONSIVE OVERRIDES =========
*/
@media (max-width: 900px) {
  .content-split { flex-direction: column; }
  .content-split .sidebar-content, 
  .content-split .text-content { flex: 1 1 100%; }
  
  .filosofia-content { border-left: none; padding-left: 0; }
  .sticky-col { position: relative; top: 0; mb-4; }
  
  .ciencia-grid { grid-template-columns: 1fr; }
  
  .comparador-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.6rem; }
  
  .nav-links { display: none; /* simple mobile cleanup */ }
  .nav-container { justify-content: center; }
  .nav-title { font-size: 1.2rem; }
  
  .img-hero-small { height: 250px; }
  
  .frase-destacada { font-size: 1.4rem; }
}

/* Added constraints to images and layout per instructions */
.text-content, .sidebar-content {
    max-width: 900px;
}

.text-content p {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.inline-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.interview-video {
    width: 100%;
    display: block;
}

.entrevista-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .entrevista-card {
        flex-direction: row;
        align-items: flex-start;
    }
    .video-container {
        flex: 1 1 40%;
        margin-bottom: 0;
    }
    .entrevista-info {
        flex: 1 1 60%;
    }
}

/* Fixes for Image constraints */
.inner-img {
    max-width: 900px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

.img-jesus {
    max-width: 850px !important;
    max-height: 380px !important;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

/* Interview card updates */
.interview-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.video-wrapper {
    flex: 1 1 50%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.interview-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Dropdown */

.dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}
.dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-card:hover 




/* Fixes for Image constraints */
.inner-img {
    max-width: 900px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

.img-jesus {
    max-width: 850px !important;
    max-height: 380px !important;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

/* Interview card updates */
.interview-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.video-wrapper {
    flex: 1 1 50%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.interview-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Dropdown */

.dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
    font-family: 'Playfair Display', serif;
}
.dropdown-toggle:hover {
    background: rgba(255,255,255,0.1);
}









.scroll-to-top {
    background-color: #800020 !important; /* Burgundy */
    color: white !important;
    border-radius: 5px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}
.scroll-to-top:hover {
    background-color: #5a0016 !important; /* Darker burgundy */
}

.img-jesus {
    max-width: 850px !important;
    width: 100%;
    margin: 0 auto;
    display: block;
    height: auto;
}






/* Hover state for desktop */
@media (hover: hover) {
    .dropdown-card:hover 
}

/* Fallback/Mobile tap class */







/* Botón Volver Arriba */
html {
    scroll-behavior: smooth;
}
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s ease;
    
    background-color: #1a1a1a;
    color: #eaddc0 !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(234, 221, 192, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #0d0d0d;
    color: #eaddc0 !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    border: 1px solid rgba(234, 221, 192, 0.8);
}


img[src*="Cristianismo3"],
img[src*="cristianismo3"] {
  max-width: 720px !important;
  max-height: 320px !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 2rem auto !important;
  border-radius: 10px !important;
}

.filosofia-section {
  position: relative;
  overflow: visible;
}

.filosofia-section img {
  position: static !important;
  float: none !important;
  clear: both;
  max-width: 850px;
  max-height: 380px;
  object-fit: cover;
  margin: 2.5rem auto;
  display: block;
}

.filosofia-section .text-block {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* General images rules */
img.inner-img {
  max-width: 850px !important;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  margin: 2.5rem auto;
  border-radius: 10px;
}



.dropdown-card {
    position: relative;
    overflow: visible !important;
    z-index: 9999;
}


.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 86%;
  background: rgba(18, 18, 20, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  list-style: none; /* Just in case */
  padding: 0.35rem;
  margin: 0;
}

.dropdown-card:hover .dropdown-menu,
.dropdown-menu.show-mobile {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  letter-spacing: normal;
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  border-bottom: none;
  border-radius: 5px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.38);
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.interview-card video {
  width: 100%;
  border-radius: 10px;
}

.interview-info {
  max-width: 560px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  
}

.interview-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 3rem auto;
}

.interview-card video {
  width: 100%;
  border-radius: 10px;
}

.interview-info {
  max-width: 560px;
  line-height: 1.6;
}

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

/* ====== NUEVOS ESTILOS PARA RESUMEN (FICHA PERIODÍSTICA / ACORDEÓN) ====== */
.cuadro-resumen {
  background-color: var(--bg-gray);
  padding: 0;
  border-radius: 8px;
  border-left: 0;
  border-top: 4px solid var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra suave, no dramática */
  margin-top: 2rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cuadro-resumen:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.resumen-details {
  width: 100%;
}
.resumen-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0,0,0,0.02);
  color: var(--text-main);
}
.resumen-summary::-webkit-details-marker {
  display: none;
}
.resumen-summary::after {
  content: "＋";
  font-family: var(--font-text);
  font-size: 1.5rem;
  font-weight: 400;
  color: inherit;
  transition: transform 0.2s ease;
}
.resumen-details[open] .resumen-summary::after {
  transform: rotate(45deg);
  content: "×";
}
.resumen-content {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light, #E0E0DE);
  background-color: var(--bg-gray);
}
.cuadro-resumen ul {
  padding-left: 0;
}
.cuadro-resumen li {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.cuadro-resumen li strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}
/* Reaplicamos acentos al borde top de cada cuadro */
.accent-cristianismo { border-top-color: var(--accent-cristianismo) !important; }
.accent-islam { border-top-color: var(--accent-islam) !important; }
.accent-judaismo { border-top-color: var(--accent-judaismo) !important; }
.accent-budismo { border-top-color: var(--accent-budismo) !important; }
.accent-newage { border-top-color: var(--accent-newage) !important; }
.accent-filosofia { border-top-color: var(--accent-filosofia) !important; }
.accent-ciencia { border-top-color: var(--accent-ciencia) !important; }
.accent-galicia { border-top-color: var(--accent-galicia) !important; }

/* Estilización de imágenes para quitar tono místico (darles look académico) */
img.inner-img {
  filter: sepia(0.3) grayscale(0.4) contrast(0.9);
  mix-blend-mode: multiply;
  opacity: 0.85;
  box-shadow: none !important;
  border-radius: 4px;
}
.video-wrapper {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important; /* Quitar resplandores dorados/blancos */
  border-radius: 8px;
  overflow: hidden;
}

/* Modificamos algunas clases de entrevistas que pudieran tener texto negro sobre fondo dorado */
.interview-card {
  background: var(--bg-gray) !important;
  border: 1px solid var(--border-light, #E0E0DE) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}
.entrevista-label {
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-alt { background-color: var(--bg-alt) !important; }
.bg-conclusion { background-color: var(--bg-alt) !important; }

/* Override Bootstrap solemn classes to fit academic journal style */
.text-white {
    color: var(--text-main) !important;
}
.text-warning, .text-gold, .border-gold {
    color: var(--text-main) !important;
    border-color: var(--border-light, #E0E0DE) !important;
}
.display-1, .display-2, .display-3, .display-4, h1, h2 {
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: none !important; /* Quitar solemnidad de mayúsculas */
    letter-spacing: -0.5px !important;
    color: var(--text-main);
}
.display-4 {
    font-size: 2.2rem !important; /* Reducir grandilocuencia */
}
.display-1 {
    font-size: 3.5rem !important; /* Título principal portada */
}
blockquote {
    font-family: var(--font-text);
    font-style: normal;
    border-left: 3px solid var(--text-muted);
    padding-left: 1rem;
    color: var(--text-main);
}
.fst-italic {
    font-style: normal !important; /* Minimizar cursivas divinas */
    font-weight: 500;
}
header, .hero-section {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
}
.hero-section::before {
    background: rgba(244, 244, 242, 0.8) !important; /* Overlay claro en vez de oscuro */
}
.text-gold {
    color: var(--accent-ciencia) !important; /* Cambiar p.ej titulo oro a un azul periodístico */
}

/* NUEVOS ESTILOS PERIODÍSTICOS / FICHAS INTERACTIVAS */

/* Entradillas */
.section-intro {
    font-size: 1.15rem;
    color: var(--text-color);
    opacity: 0.9;
    border-bottom: 2px solid var(--accent-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

/* Ficha Interactiva (Resumen de Concepto rediseñado) */
.ficha-interactiva {
    background: var(--card-bg);
    border: 1px solid var(--accent-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.ficha-interactiva.accent-cristianismo { border-top: 4px solid var(--accent-cristianismo); }
.ficha-interactiva.accent-islam { border-top: 4px solid var(--accent-islam); }
.ficha-interactiva.accent-judaismo { border-top: 4px solid var(--accent-judaismo); }
.ficha-interactiva.accent-budismo { border-top: 4px solid var(--accent-budismo); }
.ficha-interactiva.accent-newage { border-top: 4px solid var(--accent-newage); }
.ficha-interactiva.accent-filosofia { border-top: 4px solid var(--accent-philosophy); }
.ficha-interactiva.accent-ciencia { border-top: 4px solid var(--accent-science); }
.ficha-interactiva.accent-galicia { border-top: 4px solid var(--accent-galicia); }

.ficha-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.ficha-item {
    border-bottom: 1px solid var(--accent-gray);
    margin-bottom: 0.5rem;
}
.ficha-item:last-child {
    border-bottom: none;
}

.ficha-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
    list-style: none; /* Hide default arrow in standard browsers */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ficha-item summary::-webkit-details-marker {
    display: none; /* Safari */
}

.ficha-item summary::after {
    content: '+';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.ficha-item[open] summary::after {
    content: '×';
    transform: rotate(90deg);
}

.ficha-body {
    padding: 0.5rem 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Mini tarjetas introductorias */
.mini-tarjeta {
    background: #f7f9f9;
    border-left: 3px solid var(--text-color);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    border-radius: 0 8px 8px 0;
}

.mini-tarjeta-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.mini-tarjeta p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mini-tarjeta p:last-child {
    margin-bottom: 0;
}

/* Destacados periodísticos */
blockquote.destacado-lateral {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    border-left: 4px solid var(--accent-gray);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #fcfcfc;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

/* Subtítulos de bloque de texto */
.text-content h4.bloque-subtitulo {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}


/* NUEVAS CLASES PARA IMÁGENES INTEGRADAS */

.img-integrated {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    object-fit: cover;
    max-height: 400px;
}

.cinematic-figure {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 3rem;
    margin-bottom: 4rem;
    background: #111;
    overflow: hidden;
}

.img-cinematic {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.cinematic-figure:hover .img-cinematic {
    opacity: 1;
}

.cinematic-figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 10vw;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.inner-img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.conclusion-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

/* === CORRECCIÓN DE PORTADA Y ENTREVISTAS === */

.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%) !important;
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4) !important;
}

.hero-subtitle, .hero-intro {
    color: #f7f9f9 !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7) !important;
}

/* === CORRECCIÓN DE ENTREVISTAS === */
.interview-card {
    display: grid !important;
    grid-template-columns: minmax(300px, 40%) 1fr !important;
    gap: 2.5rem !important;
    align-items: center !important;
    margin: 3rem 0 !important;
    background: #fdfdfd !important;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    height: auto !important;
    min-height: min-content !important;
}

@media (max-width: 900px) {
    .interview-card {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }
}

.interview-info {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.interview-info h4 {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    color: #333 !important;
}

.interview-info p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin: 0 !important;
}

.video-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
}

.video-wrapper video {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* === BACKGROUND VIDEOS FOR SECTIONS === */
.has-bg-video {
    position: relative;
    overflow: hidden;
    background-image: none !important; /* Remove static image */
}
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.65); /* slightly darken */
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.section-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}
.bg-video-inline {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}
.video-overlay-inline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Ensure section headers have position relative for absolute video children */
.section-galicia, .section-ciencia, .filosofia-section {
    position: relative;
    color: var(--white);
}
.section-galicia .container, .section-ciencia .container, .filosofia-section .container {
    position: relative;
    z-index: 2;
}
/* We also need to hide any old integrated image in the hero headers replaced by videos */
.section-video-container + h2 {
    position: relative;
    z-index: 2;
}
.section-video-container + h2 + img,
.section-video-container + h2 + p {
    position: relative;
    z-index: 2;
}

/* === RELIGIONES DROPDOWN === */
.dropdown-religiones {
    position: relative;
    display: inline-block;
}
.dropdown-content-religiones {
    visibility: hidden;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown-religiones:hover .dropdown-content-religiones {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-content-religiones a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-content-religiones a:hover {
    background-color: var(--accent-light);
    color: var(--primary-color);
}

/* === FIX INTERVIEW VIDEOS AND MARGINS === */
.interview-card video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background-color: transparent !important;
    border-radius: 8px !important; /* matches card internal border usually */
}
.video-column {
    background-color: transparent !important;
    padding: 0 !important; /* Remove any padding creating black margins */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* === FICHA INTERACTIVA TRANSITIONS === */
details.ficha-item .ficha-body {
    animation: fade-in-details 0.3s ease-in-out forwards;
    padding-top: 0.5rem;
}
@keyframes fade-in-details {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === REFINED EDITORIAL INTERVIEWS (CLEAN NO-BLACK BORDERS) === */
.interview-card {
    background: var(--bg-color) !important; /* Match page background for clean integration */
    border: none !important; 
    border-top: 1px solid var(--border-light, #E0E0DE) !important;
    border-bottom: 1px solid var(--border-light, #E0E0DE) !important;
    box-shadow: none !important;
    padding: 3.5rem 0 !important; /* Huge breathing room */
    grid-template-columns: 42% 1fr !important; /* Fixed elegant proportion */
    gap: 3.5rem !important;
    align-items: start !important; /* Align to text start */
    border-radius: 0 !important; /* No rounded boxes for card */
}

/* Ensure no inner padding breaks the alignment on desktop */
.interview-card .interview-info {
    padding: 0 !important;
}

.interview-card video {
    width: 100% !important;
    height: auto !important; /* Let height respect the aspect ratio */
    aspect-ratio: 16 / 9; /* Force uniform size across all */
    object-fit: cover !important; /* Crop if necessary to avoid black bars */
    border-radius: 4px !important; /* Slight soft edge for video frame */
    background-color: var(--bg-color) !important; /* Hide any black default background */
    box-shadow: 0 6px 15px rgba(0,0,0,0.06); /* Very soft shadow to separate from background */
}

.video-column {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .interview-card {
        grid-template-columns: 1fr !important;
        padding: 2.5rem 0 !important;
        gap: 2rem !important;
    }
}

/* === NUEVA RONDA DE MEJORAS EDITORIALES === */

/* 1. Portada: Aumentar visibilidad del vídeo */
.video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%) !important;
}
.bg-video {
    filter: brightness(0.85) contrast(1.05) !important;
}

/* 2. Navbar: Mejorar tipografía y legibilidad */
#navbar {
    background-color: rgba(18, 18, 20, 0.88) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-links a {
    color: rgba(240, 240, 240, 0.85) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    transition: color 0.3s ease, text-shadow 0.3s ease !important;
}
.nav-links a:hover, .nav-links a.active {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.3) !important;
}
.dropbtn-religiones {
    color: rgba(240, 240, 240, 0.85) !important;
}
.dropdown-religiones:hover .dropbtn-religiones {
    color: rgba(255, 255, 255, 1) !important;
}

/* 3 y 4. Z-index y Dropdown contextual */
.dropdown-card {
    z-index: 10 !important; /* Fix overlap with navbar (z-index: 1000) */
}
body.reading-mode .dropdown-content-religiones {
    display: none !important; /* Desactivar dropdown durante lectura */
}

/* 5. Composición Editorial (Imágenes flotantes) */
.editorial-image-left {
    float: left;
    width: 42%;
    max-width: 420px;
    margin: 0.5rem 2.5rem 1.5rem 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.editorial-image-right {
    float: right;
    width: 42%;
    max-width: 420px;
    margin: 0.5rem 0 1.5rem 2.5rem !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
h3, h4.bloque-subtitulo {
    clear: both; /* Evitar que textos de secciones nuevas monten sobre imágenes anteriores */
    padding-top: 1rem;
}

@media (max-width: 800px) {
    .editorial-image-left, .editorial-image-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 2rem 0 !important;
    }
}

/* === NEW ROUND: EDITORIAL REFINEMENT === */
/* 1. Sections Videos */
.bg-video, .bg-video-inline {
    min-width: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.9) contrast(1.1) !important;
}
.video-overlay, .video-overlay-inline {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%) !important;
}

/* 2. Typography over Videos */
.hero-title, .hero-subtitle, .hero-intro, .section-title, .section-intro {
    color: rgba(250, 250, 245, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    font-weight: 400;
}
.hero-title {
    text-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}

/* 3. Interview Videos (No black margins, correct framing) */
.interview-card video {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important; /* Remove fixed 16:9 to avoid letterboxing if videos have another AR */
    min-height: 300px;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    background-color: transparent !important;
    margin: 0 !important;
}

/* 7. Nav title */
.nav-title {
    color: rgba(250, 250, 245, 0.9) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4) !important;
}

/* 8. Back to Top Button */
.back-to-top {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}



/* === FIX DESCUBRIR (SCROLL INDICATOR) BUTTON === */
.scroll-indicator {
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
    z-index: 10;
}
.scroll-indicator .mouse {
    border-color: rgba(255,255,255,0.8) !important;
    width: 20px;
    height: 32px;
}
.scroll-indicator .mouse::before {
    background: rgba(255,255,255,1) !important;
    animation: scroll-wheel 1.5s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translateY(2px); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* === CLEAR FIX FOR EDITORIAL IMAGES === */
.editorial-wrapper {
    overflow: hidden; /* Provides block formatting context to contain the floats */
    margin-bottom: 2rem;
}

/* === OVERHAUL: CINEMATIC SECTIONS & EDITORIAL INTERVIEWS === */

/* 1. SECION HEADERS: True Cinematic Cover */
.section-galicia, .section-ciencia, .filosofia-section {
    position: relative !important;
    padding: 0 !important;
    background-color: var(--bg-dark) !important;
}


.bg-video-inline {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(1.2) contrast(1.1) !important; /* brighter, cinematic */
}
.video-overlay-inline {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%) !important; /* elegant side gradient */
    mix-blend-mode: multiply;
}

/* 2. TEXT OVER VIDEO */
.section-header {
    position: relative !important;
    z-index: 5 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 4rem 2rem !important;
    text-align: left !important;
    width: 100% !important;
}

.section-title {
    font-family: var(--font-serif), Georgia, serif !important;
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #F8F7F4 !important; /* warm ivory */
    text-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
}

.section-intro {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    max-width: 600px !important; /* narrow controlled width */
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem !important; }
    .section-video-container { background: #000; }
    .video-overlay-inline { background: rgba(0,0,0,0.6) !important; }
}

/* 3. INTERVIEWS: TRUE EDITORIAL BLOCKS */
.entrevista-label {
    display: inline-block !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--text-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding-bottom: 4px !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
}

.interview-card {
    background: rgba(0,0,0,0.02) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    display: grid !important;
    grid-template-columns: 45% 1fr !important; /* Más estrecho el vídeo */
    gap: 2.5rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    margin: 4rem auto !important; /* Centrado */
    max-width: 900px !important; /* Más pequeño en general */
}

body.dark-mode .interview-card {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.interview-card .video-wrapper {
    width: 100% !important;
    /* Force 16:9 box correctly */
    aspect-ratio: 16/9 !important; 
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #000 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.interview-card video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fix margins / framing */
    aspect-ratio: auto !important; /* let container clip it */
}

/* 4. BACK TO TOP BUTTON: MINIMAL & ELEGANT */
#btn-back {
    position: fixed !important;
    bottom: 30px !important;
    right: 40px !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 24px !important;
    font-family: inherit !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    
    background: rgba(15, 15, 18, 0.85) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 30px !important; /* Pill shape */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}

#btn-back:hover {
    transform: translateY(-4px) !important;
    background: rgba(15, 15, 18, 1) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

#btn-back span {
    font-size: 1.1rem !important;
    margin-right: 4px !important;
}

@media (max-width: 900px) {
    .interview-card {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }
}



.chapter-hero .bg-video-inline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover !important;
    z-index: 1;
}

.chapter-hero .video-overlay-inline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%) !important;
    z-index: 2;
}

.chapter-hero .section-header {
    position: relative;
    z-index: 3 !important;
    padding: 4rem 2rem !important;
}

.chapter-hero {
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-top: -6rem !important; /* Counteract .section-block padding top */
    margin-bottom: 4rem !important;
}

.chapter-hero .bg-video-inline {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
}

.chapter-hero .video-overlay-inline {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%) !important;
    z-index: 2 !important;
}

.chapter-hero .section-header {
    position: relative !important;
    z-index: 3 !important;
    padding: 4rem 2rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.img-hero-small {
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    margin-top: -6rem !important;
    margin-bottom: 4rem !important;
}

.img-hero-small .overlay-gradient {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%) !important;
    z-index: 1 !important;
}

.img-hero-small .sub-title {
    position: relative !important;
    z-index: 2 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 3rem !important;
}

/* === OVERHAUL: CRISTIANISMO PREMIUM EDITORIAL === */

/* Hero Update */
.cristianismo-hero, .editorial-hero {
    height: auto !important; /* Let padding define height */
    padding-top: 12rem;
    padding-bottom: 8rem;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center; 
}

.overlay-gradient-editorial {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%) !important;
    z-index: 1 !important;
}

.hero-content-editorial {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.sub-title-editorial {
    font-family: var(--font-serif), Georgia, serif !important;
    font-size: 4rem !important;
    color: #fff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8) !important;
    margin-bottom: 0.5rem !important;
}

.hero-intro-editorial {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    max-width: 600px !important;
}

/* Base Typo & Layout for reading */
.cristiandad .content-body p {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    margin-bottom: 2rem !important;
    color: #333 !important;
}

body.dark-mode .cristiandad .content-body p {
    color: #ddd !important;
}

.cristiandad h4.bloque-subtitulo {
    font-family: var(--font-serif), Georgia, serif !important;
    font-size: 1.75rem !important;
    margin-top: 4rem !important;
    margin-bottom: 1.5rem !important;
    border-left: 3px solid var(--accent-cristianismo) !important;
    padding-left: 1rem !important;
}

/* Split layout Protestantism */
.editorial-split {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    align-items: center !important;
    background: rgba(0,0,0,0.02) !important;
    padding: 3rem !important;
    border-radius: 12px !important;
}

body.dark-mode .editorial-split {
    background: rgba(255,255,255,0.02) !important;
}

/* Timeline component */
.editorial-timeline {
    padding: 3rem !important;
    background: #fdfbf7 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

body.dark-mode .editorial-timeline {
    background: #161616 !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.timeline-title {
    text-align: center !important;
    font-family: var(--font-serif) !important;
    font-size: 1.5rem !important;
    margin-bottom: 3rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--accent-cristianismo) !important;
}

.timeline-steps {
    display: flex !important;
    justify-content: space-between !important;
    position: relative !important;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 6px; left: 0; right: 0;
    height: 1px;
    background: var(--accent-cristianismo);
    z-index: 0;
}

.timeline-steps .step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 25%;
}

.step-dot {
    display: inline-block;
    width: 14px; height: 14px;
    background: #fff;
    border: 3px solid var(--accent-cristianismo);
    border-radius: 50%;
    margin-bottom: 1rem;
}

body.dark-mode .step-dot { background: #000; }

.timeline-steps h5 {
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}
.timeline-steps p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* Contemplative Image */
.editorial-contemplative-image {
    text-align: center !important;
    margin: 6rem 0 !important;
}

.editorial-contemplative-image img {
    max-height: 500px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* Sacerdote Card */
.badge-expert {
    background: var(--accent-cristianismo) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    border-bottom: none !important;
    letter-spacing: 0.1em !important;
}

/* Back to Top Refined Minimalist */
#btn-back {
    bottom: 40px !important;
    right: 40px !important;
    padding: 10px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    
    background: rgba(250, 249, 246, 0.7) !important; /* Crema translúcido */
    color: #333 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

body.dark-mode #btn-back {
    background: rgba(20, 20, 20, 0.7) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

#btn-back:hover {
    background: rgba(240, 239, 236, 0.9) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(0,0,0,0.2) !important;
}

body.dark-mode #btn-back:hover {
    background: rgba(40, 40, 40, 0.9) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

@media (max-width: 768px) {
    .editorial-split { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .timeline-steps { flex-direction: column !important; align-items: center !important; }
    .timeline-steps::before { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; margin-left: -0.5px; }
    .timeline-steps .step { width: 100%; margin-bottom: 2rem; }
}

/* ------------------------------------------------ */
/* OVERHAUL CRISTIANISMO (EDITORIAL DOCUMENTARY)    */
/* ------------------------------------------------ */

/* 1. Hero 45vh with bottom subtitle */
.cristianismo-hero, .editorial-hero {
    height: auto !important; /* Let padding define height */
    padding-top: 12rem;
    padding-bottom: 8rem;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center; 
}
.cristianismo-hero .overlay-gradient, .editorial-hero .overlay-gradient {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%; /* Uniform coverage */
    background: rgba(15, 10, 5, 0.45); /* Deep brownish/black uniform overlay for depth */
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(20,15,10,0.3) 100%);
    z-index: 1;
}
.cristianismo-hero .hero-content-editorial {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0; /* Align left */
    text-align: left;
}
.cristianismo-hero .title-editorial {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cristianismo-hero .intro-editorial {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    font-family: var(--font-serif);
    font-style: italic;
}

/* 2. Center Reading Column */
#cristianismo .content-split {
    display: block; /* Remove right sidebar flex gap */
}
#cristianismo .sidebar-content {
    display: none; /* Hide interactive sidebar for editorial purity */
}
#cristianismo .text-content {
    max-width: 780px !important; /* Strict newspaper column width */
    margin: 0 auto;             /* Always centered */
    padding: 0 1rem;
}

/* 3. Quote Block */
.editorial-quote {
    border-left: 3px solid #b71c1c; /* Deep red for Cristianismo theme */
    padding-left: 1.5rem;
    margin: 3rem 0;
    background: transparent;
}
.editorial-quote p {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-style: italic;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

/* 4. Protestant Grid Split */
.editorial-layout-split {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
    clear: both;
}
.editorial-layout-split .layout-text h3 {
    margin-top: 0 !important;
}
.editorial-layout-split .layout-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
@media (max-width: 900px) {
    .editorial-layout-split {
        grid-template-columns: 1fr;
    }
    .editorial-layout-split .layout-image {
        grid-row: 1; /* Image floats to top on mobile */
        margin-bottom: 2rem;
    }
}

/* 5. Minimal Horizontal Timeline (Animated) */
.editorial-timeline-clean {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: #fdfdfd;
    padding: 2.5rem 1rem;
    margin-top: 3rem;
    border-radius: 8px;
}
/* Acorde a la estética, aplicamos color de borde lateral si tiene clase theme- */
.editorial-timeline-clean.theme-cristianismo {
    border-left: 6px solid var(--accent-cristianismo);
}

.editorial-timeline-clean .timeline-title {
    text-align: center;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}
.editorial-timeline-clean .timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}
/* Base line */
.editorial-timeline-clean .timeline-steps::before {
    content: '';
    position: absolute;
    top: 15px; /* Center of dots */
    left: 10%; right: 10%;
    height: 2px;
    background: #eee;
    z-index: 0;
}
/* Animated active line */
.editorial-timeline-clean .timeline-steps::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    width: 0%;
    height: 2px;
    background: var(--accent-cristianismo);
    z-index: 0;
    transition: width 2.4s linear; /* Total time of animation */
}
.editorial-timeline-clean.animated .timeline-steps::after {
    width: 80%; /* 100% - left(10%) - right(10%) */
}

.editorial-timeline-clean .step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}
.editorial-timeline-clean .step.active {
    opacity: 1;
}

.editorial-timeline-clean .step-dot {
    width: 16px;
    height: 16px;
    background: #eee;
    border: 3px solid #fff;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.editorial-timeline-clean.theme-cristianismo .step.active .step-dot {
    background: var(--accent-cristianismo);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2); /* assuming accent is red-ish */
    transform: scale(1.2);
}

.editorial-timeline-clean .step h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.editorial-timeline-clean .step p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .editorial-timeline-clean .timeline-steps {
        flex-direction: column;
        gap: 2rem;
    }
    .editorial-timeline-clean .timeline-steps::before {
        left: 50%; width: 2px; height: 100%; top: 0;
    }
    .editorial-timeline-clean .timeline-steps::after {
        left: 50%; width: 2px; top: 0; height: 0%;
        transition: height 2.4s linear;
    }
    .editorial-timeline-clean.animated .timeline-steps::after {
        width: 2px;
        height: 100%;
    }
}

/* 6. Fix Figure / Image width */
.editorial-figure img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* 7. Sacerdote Interview */
.subsection-voz {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #b71c1c;
    text-align: center;
    margin-bottom: 1.5rem;
}
.interview-editorial {
    background: #f9f9fa !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.interview-editorial .video-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: black;
}
.interview-editorial .interview-info {
    padding: 3rem 2rem;
}

/* ------------------------------------------------ */
/* ESTÉTICA DE INICIO DE SECCIÓN (CARDS SUPERPUESTAS) */
/* ------------------------------------------------ */

.hero-epigrafe {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #e0dcd3;
    margin-bottom: 0.5rem;
}
.hero-epigrafe span {
    color: #b71c1c; /* Acento */
}
.hero-divider {
    width: 60px;
    border: 0;
    border-top: 2px solid #e0dcd3;
    margin: 1.5rem 0;
}

/* Contenedor de superposición */
.hero-overlap-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem; /* Better block separation */
    max-width: 1100px;
    margin: -80px auto 5rem auto; /* Overlap but cleaner */
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

@media (max-width: 850px) {
    .hero-overlap-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem; /* Better block separation */
    max-width: 1100px;
    margin: -80px auto 5rem auto; /* Overlap but cleaner */
    position: relative;
    z-index: 10;
    padding: 0 5%;
}
}

/* Estilos de las tarjetas */
.overlap-card {
    background-color: #f6f5f0;
    border-radius: 8px; /* Slightly squarer, more elegant */
    padding: 3.5rem 3rem; /* More air */
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); /* Softer shadow */
}

.overlap-card h4 {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: #8c7b65;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overlap-card h4 i {
    font-size: 1.1rem;
    color: #b71c1c; /* Cross, etc. */
}

/* Textos internos tarjeta izquierda */
.overlap-idea {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
}
.overlap-idea strong {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #1a1a1a;
}
.overlap-divider {
    border: 0;
    border-top: 1px solid #dddccb;
    margin: 1.5rem 0;
}
.overlap-claves {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #444;
}

/* Acordeón tarjeta derecha */
.accordion-card {
    padding: 2rem;
}

.ficha-accordions .ficha-item {
    border-bottom: 1px solid #e8e5dc;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.ficha-accordions .ficha-item:last-child {
    border-bottom: none;
}
.ficha-accordions summary {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #333;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    font-weight: 400;
}
.ficha-accordions summary i {
    width: 25px;
    color: #8c7b65;
    margin-right: 0.5rem;
}
.ficha-body p {
    font-family: var(--font-serif);
    color: #555;
    margin-bottom: 1.5rem;
    padding-left: 33px; /* Align with text */
}

/* Titulares de texto principal */
.editorial-section-title {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
    color: #1a1a1a;
    border-left: 2px solid #b71c1c;
    padding-left: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.editorial-hero .hero-content-editorial {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 800px; /* Limit text width */
    margin: 0; 
    text-align: left;
}
.editorial-hero .title-editorial {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-family: var(--font-serif);
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Keep title popping */
}
.editorial-hero .intro-editorial {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    color: #f8f6f0;
    max-width: 600px;
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6); /* More contrast for subtitle */
}

.ficha-accordions summary {
    list-style: none; /* remove default triangle */
    justify-content: space-between;
}
.ficha-accordions summary::-webkit-details-marker {
    display: none;
}
.ficha-accordions summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #8c7b65;
    font-family: var(--font-sans);
    font-weight: 300;
}
details[open] summary::after {
    content: '−'; /* Minus when open */
}
.ficha-accordions summary i {
    display: none; /* Hide fontawesome icons if they are there */
}
.ficha-body p {
    padding-left: 0; /* Align perfectly left since icons are gone */
}

/* Button back to top discreet */
.back-to-top {
    background: transparent !important;
    color: #666 !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
    border-radius: 30px !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.back-to-top:hover {
    opacity: 1;
    background: #f6f5f0 !important;
    color: #333 !important;
}


/* Correcciones de anchura general */
.text-content {
    max-width: 780px !important;
    margin: 0 auto !important;
}

/* Hacer todos los content-split (la parte de las tarjetas laterales) single column para editorial */
.content-split {
    display: block !important;
}

.sidebar-content {
    max-width: 780px !important;
    margin: 2rem auto !important;
}

/* Ocultar espacios vacíos en sidebar-content si se quedaron sin hijos */
.sidebar-content:empty {
    display: none !important;
}

/* ------------------------------------------------ */
/* HERO PANTALLA COMPLETA - BLOQUE RELIGIONES       */
/* ------------------------------------------------ */
.intro-religiones-hero {
    /* Forzar ancho completo de la ventana ignorando contenedores padres */
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;

    /* Altura moderada (mas estrecho) */
    min-height: 55vh !important;
    
    /* Imagen fija y centrada (estilo cinematográfico/editorial) */
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
    
    /* Centrado vertical del contenido */
    display: flex;
    align-items: center;
}

.intro-religiones-hero .overlay-gradient {
    /* Mantiene el fondo pero hace que el borde inferior casi funda al color oscuro para transición suave */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 1) 100%) !important; 
}

/* === ESTILOS EDITORIALES PREMIUM PARA TARJETAS DE ENTREVISTA === */
.interview-info {
    padding: 1.5rem 2.5rem !important; /* Menos padding vertical, buen padding horizontal */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.entrevista-label, .interview-info .badge-expert {
    font-family: var(--font-text, 'Inter'), sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    font-size: 0.75rem !important; /* Etiqueta discreta / micro-header */
    color: #888 !important;
    margin-bottom: 0.4rem !important;
    font-weight: 500 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.interview-title {
    font-family: var(--font-serif, 'Cormorant Garamond'), serif !important;
    font-size: 1.7rem !important; /* Título elegante y no invasivo */
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    color: var(--text-main, #222) !important;
    line-height: 1.2 !important;
}

body.dark-mode .interview-title {
    color: #fdfdfd !important;
}
body.dark-mode .entrevista-label {
    color: #aaa !important;
}

.interview-info p:not(.entrevista-label) {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    color: inherit !important;
}

@media (max-width: 768px) {
    .interview-info {
        padding: 1.5rem !important;
    }
    .interview-title {
        font-size: 1.5rem !important;
    }
}

/* === FORZAR VIDEOS A FORMATO 16:9 HORIZONTAL === */
.interview-card .video-wrapper,
.interview-card .interview-video,
.interview-card video {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* === ESTILOS DINÁMICOS PARA TÍTULOS DE SECCIÓN === */
.editorial-section-title {
    font-family: var(--font-serif) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 1.3rem !important;
    color: var(--text-main, #1a1a1a) !important;
    border-left: 3px solid var(--text-muted) !important; /* Default */
    padding-left: 1rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
}

body.dark-mode .editorial-section-title {
    color: #fdfdfd !important;
}

/* Colores específicos de cada sección */
.border-cristianismo { border-left-color: var(--accent-cristianismo) !important; }
.border-islam { border-left-color: var(--accent-islam) !important; }
.border-judaismo { border-left-color: var(--accent-judaismo) !important; }
.border-budismo { border-left-color: var(--accent-budismo) !important; }
.border-newage { border-left-color: var(--accent-newage) !important; }
.border-filosofia { border-left-color: var(--accent-filosofia) !important; }
.border-ciencia { border-left-color: var(--accent-ciencia) !important; }
.border-galicia { border-left-color: var(--accent-galicia) !important; }


/* Fix overlap in Filosofía */
.filosofia-section .img-hero-small,
.section-ciencia .img-hero-small,
.section-galicia .img-hero-small {
    height: auto !important;
    min-height: 400px !important;
    padding-top: 6rem !important;
    padding-bottom: 8rem !important;
    justify-content: flex-start !important;
}

.filosofia-section .section-title {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.filosofia-section .section-intro {
    color: #eee;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* === COLORES TEMÁTICOS PARA TARJETAS OVERLAP (TRADICIÓN / FICHA) === */
.hero-overlap-cards.theme-cristianismo h4 { color: var(--accent-cristianismo) !important; }
.hero-overlap-cards.theme-islam h4 { color: var(--accent-islam) !important; }
.hero-overlap-cards.theme-judaismo h4 { color: var(--accent-judaismo) !important; }
.hero-overlap-cards.theme-budismo h4 { color: var(--accent-budismo) !important; }
.hero-overlap-cards.theme-newage h4 { color: var(--accent-newage) !important; }
.hero-overlap-cards.theme-filosofia h4 { color: var(--accent-filosofia) !important; }
.hero-overlap-cards.theme-ciencia h4 { color: var(--accent-ciencia) !important; }
.hero-overlap-cards.theme-galicia h4 { color: var(--accent-galicia) !important; }

/* Hacer que la franja separadora <hr> debajo de Tradición también herede un poco de ese color si queremos, o dejarla neutra. Se queda neutra para no sobrecargar, solo los títulos */

/* === FILOSOFÍA: ÍNDICE INTERACTIVO === */

.text-content p:not(.overlap-idea):not(.overlap-claves), 
.filosofia-detailed-text p:not(.overlap-idea):not(.overlap-claves),
.texto-placeholder p {
    text-align: justify;
}

.filosofia-index-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 0;
}

.filosofia-index-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 2rem);
}

.filosofia-index-card img {
    width: 100%;
    aspect-ratio: 3/4; /* formato vertical */
    object-fit: cover;
    transition: filter 0.5s ease, transform 0.8s ease;
    filter: grayscale(0%);
}

.filosofia-index-card:hover img {
    filter: grayscale(100%);
    transform: scale(1.03);
}

.filosofia-index-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent-filosofia);
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.filosofia-subsection {
    animation: fadeInSubsection 0.6s ease;
}

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

.btn-cerrar-ventana {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.6rem 1.8rem;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-cerrar-ventana:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .filosofia-index-grid {
        grid-template-columns: 1fr;
    }
    .filosofia-index-card img {
        height: 250px;
    }
}

/* === FILOSOFÍA: NUEVO ÍNDICE VERTICAL (16:9) === */
.filosofia-index-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.ratio-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.ratio-16-9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover based on original image. We'll use cover to fill 16:9 smoothly */
    object-fit: cover;
    opacity: 0.85;
}

.filosofia-index-card:hover .ratio-16-9 img {
    opacity: 0.5;
}

.card-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    pointer-events: none;
}

.card-overlay .filosofia-index-title {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.text-filosofia-card {
    background-color: var(--accent-filosofia);
    color: #ffffff;
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-width: 900px !important;
}

.text-filosofia-card h3 {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.text-filosofia-card p, .text-filosofia-card blockquote {
    color: #f8f8f8;
}

.text-filosofia-card blockquote {
    border-left-color: rgba(255,255,255,0.5);
}

.btn-cerrar-container {
    text-align: center;
    margin-top: 3rem;
    clear: both;
}

.btn-cerrar-ventana {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-cerrar-ventana:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #ffffff;
    color: #fff;
}

@media (max-width: 768px) {
    .text-filosofia-card {
        padding: 2rem 1.5rem;
    }
}

/* === REVISIÓN FILOSOFÍA: DISPOSICIÓN CAPTURA === */

.filosofia-index-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.filosofia-index-card {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    flex: 0 0 calc(33.333% - 2rem);
}

.filosofia-index-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}



.filosofia-index-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.filosofia-index-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--accent-filosofia);
    margin: 0 1.2rem 0.5rem;
}

.filosofia-index-subtitle {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 0 1.2rem;
    line-height: 1.4;
}

.filosofia-instrucciones {
    text-align: center;
    margin-top: 3rem;
    color: #888;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.filosofia-instrucciones span {
    font-size: 1rem;
    margin-right: 5px;
    vertical-align: middle;
}

/* DETALLE DESPLEGADO */
.text-filosofia-card {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 1200px !important;
}

.filosofia-detailed-flex {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.filosofia-detailed-img {
    flex: 0 0 45%;
}

.filosofia-detailed-img img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.filosofia-detailed-text {
    flex: 1;
}

.filosofia-detailed-text h3 {
    text-align: left !important;
    font-size: 2.2rem;
    color: var(--accent-filosofia) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* === Ajustes finales para publicación === */
.dropdown-content-religiones {
    top: calc(100% + 10px) !important;
    left: 0 !important;
    min-width: 235px !important;
    padding: 0.35rem !important;
    background: rgba(18, 18, 20, 0.97) !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dropdown-content-religiones a {
    border-radius: 5px !important;
    color: rgba(255,255,255,0.94) !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.38);
}

.dropdown-content-religiones a:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

body.reading-mode .dropdown-religiones:hover .dropdown-content-religiones,
body.reading-mode .dropdown-religiones:focus-within .dropdown-content-religiones {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.interview-card .video-wrapper,
.interview-editorial .video-wrapper {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
    background: #000 !important;
}

.interview-card .video-wrapper video,
.interview-editorial .video-wrapper video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* BOTÓN CERRAR VENTANA */
.btn-cerrar-container {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.btn-cerrar-rounded {
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 30px !important;
    padding: 0.6rem 2.5rem !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-cerrar-rounded:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.btn-cross {
    font-size: 1.1rem;
    font-weight: 300;
    color: #888;
}

@media (max-width: 992px) {
    .filosofia-index-grid {
        flex-direction: column;
        align-items: center;
    }
    .filosofia-index-card {
        width: 100%;
        max-width: 400px;
    }
    .filosofia-detailed-flex {
        flex-direction: column;
    }
    .filosofia-detailed-img {
        flex: 100%;
        width: 100%;
    }
}

/* Fichas inline dentro de sección filosofía */
.inline-fichas {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.inline-fichas .overlap-card {
    width: 100%;
    margin-top: 0;
    max-width: 100%;
}
@media (min-width: 768px) {
    .inline-fichas {
        flex-direction: row;
    }
    .inline-fichas .overlap-card {
        flex: 1;
    }
}

.theme-filosofia.inline-fichas .overlap-card h4,
.theme-filosofia.inline-fichas .overlap-card summary {
    color: var(--accent-filosofia) !important;
}

.theme-filosofia.inline-fichas .overlap-card strong {
    color: var(--accent-filosofia);
}

.theme-filosofia.inline-fichas .overlap-card p {
    color: #333 !important; /* Aseguramos legibilidad en el fondo claro de la tarjeta */
}

/* Reducimos el ancho máximo para la nueva vista sin imagen lateral */
.filosofia-detailed-flex {
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

/* === Ajuste estable de desplegables y entrevistas === */
.dropdown-religiones,
.dropdown-card {
    position: relative !important;
}

.dropdown-religiones:hover .dropdown-content-religiones,
.dropdown-religiones:focus-within .dropdown-content-religiones,
.dropdown-card:hover .dropdown-menu,
.dropdown-card:focus-within .dropdown-menu,
.dropdown-menu.show-mobile {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.dropdown-religiones:hover .dropdown-content-religiones,
.dropdown-religiones:focus-within .dropdown-content-religiones {
    transform: translateY(0) !important;
}

.dropdown-content-religiones {
    top: 100% !important;
    margin-top: 0 !important;
    pointer-events: none !important;
}

.dropdown-menu {
    top: 100% !important;
    margin-top: 0 !important;
    transform: translateX(-50%) translateY(0) !important;
}

.dropdown-content-religiones::before,
.dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.entrevista-bloque {
    width: min(100%, 1080px) !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.text-content .entrevista-bloque {
    width: min(100vw - 2rem, 1080px) !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
}

.interview-card,
.interview-card.interview-editorial {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1080px !important;
    display: grid !important;
    grid-template-columns: minmax(420px, 52%) minmax(280px, 1fr) !important;
    align-items: center !important;
    gap: clamp(1.75rem, 3vw, 3rem) !important;
    padding: clamp(2rem, 3vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) !important;
}

.interview-card .video-wrapper,
.interview-editorial .video-wrapper {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #000 !important;
}

.interview-card .video-wrapper video,
.interview-editorial .video-wrapper video,
.interview-card video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
}

.interview-card .interview-info,
.interview-editorial .interview-info {
    align-self: center !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    .text-content .entrevista-bloque {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none;
    }

    .interview-card,
    .interview-card.interview-editorial {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 2rem clamp(1rem, 5vw, 1.5rem) !important;
    }
}

@media (min-width: 769px) and (max-width: 1120px) {
    .nav-container {
        padding-left: clamp(1rem, 2vw, 1.5rem) !important;
        padding-right: clamp(1rem, 2vw, 1.5rem) !important;
        gap: 1rem !important;
    }

    .nav-title {
        max-width: 12rem !important;
        font-size: clamp(1.05rem, 1.7vw, 1.35rem) !important;
        line-height: 1.05 !important;
        letter-spacing: 0.08em !important;
        white-space: normal !important;
    }

    .nav-links {
        gap: clamp(0.75rem, 1.6vw, 1.25rem) !important;
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: clamp(0.72rem, 1.1vw, 0.82rem) !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .nav-title {
        max-width: calc(100vw - 2rem) !important;
        text-align: center;
        white-space: normal !important;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 118px;
    }

    #navbar {
        height: var(--nav-height) !important;
    }

    .nav-container {
        height: 100% !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 0.55rem !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
    }

    .nav-title {
        display: block !important;
        align-self: center !important;
        font-size: clamp(1rem, 4.4vw, 1.22rem) !important;
        line-height: 1.05 !important;
        letter-spacing: 0.08em !important;
        max-width: min(21rem, calc(100vw - 2rem)) !important;
    }

    .nav-links {
        display: flex !important;
        width: 100% !important;
        gap: 0.45rem !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 0.1rem 0 0.35rem !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto !important;
    }

    .nav-links a {
        display: block !important;
        padding: 0.42rem 0.62rem !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,0.04) !important;
        font-size: 0.68rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .dropdown-content-religiones {
        position: fixed !important;
        top: var(--nav-height) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        min-width: 0 !important;
        width: auto !important;
    }
}

@media (max-width: 760px) {
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container,
    .container.narrow,
    .container.content-body,
    .content-body,
    .text-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: clamp(1rem, 5vw, 1.5rem) !important;
        padding-right: clamp(1rem, 5vw, 1.5rem) !important;
        box-sizing: border-box !important;
    }

    .nav-container,
    .nav-links {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-links {
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
        overscroll-behavior-inline: contain;
    }

    .hero-overlap-cards,
    .hero-overlap-cards.theme-cristianismo,
    .hero-overlap-cards.theme-islam,
    .hero-overlap-cards.theme-judaismo,
    .hero-overlap-cards.theme-budismo,
    .hero-overlap-cards.theme-newage,
    .hero-overlap-cards.theme-ciencia,
    .hero-overlap-cards.theme-galicia {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: -48px auto 3rem auto !important;
        padding-left: clamp(1rem, 5vw, 1.5rem) !important;
        padding-right: clamp(1rem, 5vw, 1.5rem) !important;
        box-sizing: border-box !important;
    }

    .overlap-card,
    .overlap-card.accordion-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: clamp(1.4rem, 5vw, 2rem) !important;
        box-sizing: border-box !important;
    }

    .ficha-accordions,
    .ficha-item,
    .ficha-body,
    .overlap-card h4,
    .overlap-card summary,
    .overlap-card p {
        max-width: 100% !important;
        overflow-wrap: anywhere;
    }

    .interview-card {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .interview-card > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .interview-card .video-wrapper,
    .interview-editorial .video-wrapper {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        justify-self: stretch !important;
        box-sizing: border-box !important;
    }

    .interview-card .video-wrapper video,
    .interview-editorial .video-wrapper video {
        max-width: 100% !important;
    }
}

/* Final mobile hardening: keep navigation and video players fully visible. */
@media (max-width: 768px) {
    :root {
        --nav-height: 132px;
    }

    #navbar {
        overflow: visible !important;
    }

    .nav-container {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.45rem !important;
        padding: 0.55rem 0.75rem !important;
    }

    .nav-links {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.32rem !important;
        width: 100% !important;
        max-width: 31rem !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .nav-links li {
        width: 100% !important;
        min-width: 0 !important;
    }

    .nav-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 1.8rem !important;
        padding: 0.36rem 0.28rem !important;
        font-size: clamp(0.58rem, 2.25vw, 0.68rem) !important;
        letter-spacing: 0.035em !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .dropdown-content-religiones {
        top: calc(var(--nav-height) - 0.25rem) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        max-height: min(60vh, 18rem) !important;
        overflow-y: auto !important;
        z-index: 1002 !important;
    }
}

@media (max-width: 760px) {
    .entrevista-bloque,
    .text-content .entrevista-bloque {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .interview-card,
    .interview-card.interview-editorial {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        padding: clamp(1rem, 4vw, 1.4rem) !important;
        gap: 1rem !important;
        overflow: visible !important;
    }

    .interview-card .video-wrapper,
    .interview-editorial .video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .interview-card .video-wrapper video,
    .interview-editorial .video-wrapper video,
    .interview-card video {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 360px) {
    :root {
        --nav-height: 136px;
    }

    .nav-title {
        font-size: 0.96rem !important;
    }

    .nav-links a {
        font-size: 0.57rem !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }
}

.interview-card .video-wrapper video,
.interview-editorial .video-wrapper video,
.interview-card video {
    min-height: 0 !important;
    max-height: 100% !important;
}

@media (max-width: 760px) {
    .entrevista-bloque,
    .text-content .entrevista-bloque {
        position: relative !important;
        left: 50% !important;
        width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin-left: calc(-50vw + 1rem) !important;
        margin-right: 0 !important;
        transform: none !important;
    }
}

.dropdown-religiones.is-open .dropdown-content-religiones,
.dropdown-religiones:hover .dropdown-content-religiones,
.dropdown-religiones:focus-within .dropdown-content-religiones {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.dropdown-card.is-open .dropdown-menu,
.dropdown-card:hover .dropdown-menu,
.dropdown-card:focus-within .dropdown-menu,
.dropdown-menu.show-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.dropdown-religiones::after,
.dropdown-card::after {
    content: "";
    display: none;
    position: absolute;
    left: -0.75rem;
    right: -0.75rem;
    top: 100%;
    height: 1.25rem;
    z-index: 1001;
}

.dropdown-religiones:hover::after,
.dropdown-religiones:focus-within::after,
.dropdown-religiones.is-open::after,
.dropdown-card:hover::after,
.dropdown-card:focus-within::after,
.dropdown-card.is-open::after {
    display: block;
}

