/* ================================================================
   CONFIGURACIÓN MAESTRA DE VARIABLES
   ================================================================ */
:root {
  --nhm-blue: #1e73be;
  --nhm-blue-dark: #145a96;
  --bible-font-size: 18px; /* Base modificable por JS */
}

/* REGLA MAESTRA: Solo esta regla debe controlar el tamaño del Interlineal */
.interlinear-content {
    font-size: var(--bible-font-size) !important;
}

/* PROTECCIÓN PARA EL PACIENTE HEBREO (DISEÑO ESTÁTICO) */
#paciente-hebrew .hebrew-script {
    font-size: 1.5rem !important; 
    /* El uso de REM garantiza que este paciente ignore el zoom del JS */
}

/* ================================================================
   TIPOGRAFÍAS Y ESTRUCTURA BASE
   ================================================================ */
@font-face {
  font-family: 'AcademyEngraved';
  src: url('../fonts/AcademyEngravedLetPlain.woff') format('woff'),
       url('../fonts/AcademyEngravedLetPlain.ttf') format('truetype');
}
@font-face {
    font-family: 'Ezra SIL';
    src: url('../font/SILEOTSR.ttf') format('truetype');
}

html { scroll-behavior: smooth; }
body { background-color: rgb(251, 251, 250); }
/* =============================
   HEADER (limpio y unificado)
   ============================= */
.custom-header {
  /* Paleta del header */
  --nhm-bg: #006ba0;
  --nhm-link: #ffffff;        /* link normal sobre fondo oscuro */
  --nhm-link-hover: #ffffff;  /* link hover/activo */
  --nhm-accent: #1e73be;      /* acento para badges/active */
  --nhm-accent-dark: #145a96; /* acento hover */

  background-color: var(--nhm-bg);
  color: #fff;
}

/* Container del header: afina borde izquierdo/derecho */
.custom-header .container {
  padding-left: 0.75rem;  /* ajusta 0 ~ 1rem */
  padding-right: 1rem;
}

/* Logo y texto */
.logo-text {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 0;           /* base sin forzar */
  text-decoration: none;
  color: #fff;
}
.logo-text img { margin-right: 0.5rem; } /* similar a .me-2 */

/* Empuje fino a la izquierda solo en md+ */
@media (min-width: 768px) {
  .logo-text { margin-left: -12px; }     /* ajusta: -8, -12, -16px */
}

/* Menú: centrado en escritorio, fluido en móvil */
.menu-tabs {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: .15rem;
  font-size: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nav links: UNA SOLA REGLA base + estados */
.custom-header .nav .nav-link {
  display: flex;
  align-items: center;
  height: 47px;              /* igual al alto del logo */
  padding-top: 0;
  padding-bottom: 0;
  color: var(--nhm-link);
  transition: color .25s ease, text-shadow .25s ease, background-color .25s ease;
  text-shadow: 1px 1px 2px rgba(0,0,0,.25);
}
.custom-header .nav .nav-link:hover,
.custom-header .nav .nav-link:focus {
  color: var(--nhm-link-hover);
  text-shadow: 1px 1px 3px rgba(0,0,0,.35);
}

/* Tab activo */
.custom-header .menu-tabs .nav-link.active-tab {
  background-color: rgba(183, 220, 252, 0.486);  /* usa --nhm-accent */
  border-radius: 6px;
  padding: 2px 7px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  color: var(--nhm-link-hover);
}
.custom-header .menu-tabs .nav-link.active-tab:hover {
  background-color: rgba(20,90,150,0.25);
}

/* Dropdown (menú abre sobre fondo claro por defecto) */
.custom-header .dropdown-menu {
  border-radius: .5rem;
  overflow: hidden;
}
.custom-header .dropdown-menu .dropdown-item:hover,
.custom-header .dropdown-menu .dropdown-item:focus {
  background-color: rgba(30,115,190,.08);
}

/* ===== RESPONSIVE ===== */
/* Menú pasa a ocupar la fila si no cabe */
@media (max-width: 991.98px) {
  .custom-header .container { flex-wrap: wrap; }
  .menu-tabs {
    justify-content: flex-start;
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .menu-tabs {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==== TÍTULO PRINCIPAL ==== */
h1.titulo-azul {
  font-size: 45px;
  font-weight: bold;
  color: var(--nhm-blue); /* azul de la paleta */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Hover opcional */
h1.titulo-azul:hover {
  color: var(--nhm-blue-dark);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* Ajustes para pantallas medianas */
@media (max-width: 991.98px) {
  h1.titulo-azul {
    font-size: 30px;
  }
}
/* Ajustes para móviles */
@media (max-width: 575.98px) {
  h1.titulo-azul {
    font-size: 24px;
  }
}
/* ==== P FONT SIZE GENERAL EN TODA LA PAGINA ==== */
p {
  margin: 0;
  font-size: inherit;
  font-size: 16px;
}
.menu-item:not(:last-child) {
  border-right: 1px solid #ccc; /* línea vertical */
  padding-right: 10px; /* espacio entre texto y línea */
  margin-right: 10px; /* espacio entre línea y siguiente ítem */
}
/* === LIMPIEZA Y AJUSTES PARA LIST-GROUP EN PHP === */
ul.list-group {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (max-width: 540px) {
  ul.list-group {
    justify-content: center;
    gap: 0.75rem;
  }
}
@media (min-width: 541px) and (max-width: 720px) {
  ul.list-group {
    justify-content: center;
    gap: 0.85rem;
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  ul.list-group {
    justify-content: space-around;
    gap: 1rem;
  }
}
@media (min-width: 961px) {
  ul.list-group {
    justify-content: space-between;
    gap: 1.25rem;
  }
}
ul.list-group>li.list-group-item {
  flex: 1 1 auto;
  max-width: 450px;
  min-width: 300px;
  box-sizing: border-box;
  margin-left: 7px;
  margin-bottom: 7px;
}
@media (max-width: 540px) {
  ul.list-group>li.list-group-item {
    flex: 1 1 100%;
    /* una columna */
    margin-left: 7px;
    margin-bottom: 7px;
  }
}
@media (min-width: 541px) and (max-width: 720px) {
  ul.list-group>li.list-group-item {
    flex: 1 1 calc(50% - 1rem);
    /* dos columnas */
    margin-left: 7px;
    margin-bottom: 7px;
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  ul.list-group>li.list-group-item {
    flex: 1 1 calc(33.333% - 1rem);
    /* tres columnas */
    margin-left: 7px;
    margin-bottom: 7px;
  }
}
/* Separa visualmente cada enlace de libro con más espacio vertical */
#bibleSidebar .nav-item {
  border-bottom: 1px solid #ccc;    /* Línea divisoria gris clara */
  padding-top: 6px;                 /* Espacio arriba */
  padding-bottom: 6px;              /* Espacio abajo */
  margin-bottom: 4px; 
}
/* Quita la línea del último <li> de cada lista */
#bibleSidebar ul.nav li.nav-item:last-child {
  border-bottom: none;
}
/* Agrega marcador de lista tipo disc y sangría a la izquierda */
#bibleSidebar ul.nav {
  list-style-type: disc;            /* Punto redondo clásico */
  padding-left: 2rem;             /* Sangría para separar el punto del borde */
  margin-left: 0;                   /* Elimina margen predeterminado */
}
/* Asegura que los enlaces respeten el disc sin desplazarlo */
#bibleSidebar .nav-link {
  display: inline;                  /* Mantiene el disc visible */
  padding-left: 0;                  /* Evita sangría interna duplicada */
}
/* Efecto hover de los enlaces */
#bibleSidebar .nav-link:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
}
/* Títulos de sección del sidebar */
#bibleSidebar h4 {
  font-weight: bold;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #999;       /* Línea superior para separar secciones */
}
#bibleSidebar h4:first-of-type {
  border-top: none;                 /* Quita línea del primer título */
  margin-top: 0;
  padding-top: 0;
}
/* CLASE QUE SE UTILIZA PARA LAS IMAGES Y SU RENDIRIZACION - RESPONSIVE */
.hero {
  position: relative;
  width: 100%;
  max-width: 450px;    /* ancho máximo */
  margin: 0 auto;      /* centra horizontal */
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-title {
  position: absolute;    /* coloca texto encima de la imagen */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra exactamente */
  color: #fff;
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* mejora contraste */
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 20px;  /* un poco más pequeño en tablets */
  }
}
@media (max-width: 568px) {
  .hero-title {
    font-size: 18px; /* Tamaño intermedio entre 18px y 14px */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 16px;  /* más pequeño en móviles */
  }
}

/* HERO IMAGE-2 Imagen base */
.hero-img-wrapper {
  width: 100%;
  background-color: #f5f5f5; /* tu color preferido */
}
.hero-img-container {
  max-width: 1000px; /* o lo que prefieras */
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.hero-img-2 {
  border-radius: 10px;
  display: block;
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  transition: max-width 0.3s ease;
}
.hero-img-2.expanded {
  max-width: 900px;
  cursor: zoom-out;
}
/* Responsive */
@media (max-width: 992px) {
  .hero-img-2 { max-width: 650px; }
}
@media (max-width: 768px) {
  .hero-img-2 { max-width: 575px; }
}
@media (max-width: 568px) {
  .hero-img-2 { max-width: 350px; }
}
@media (max-width: 480px) {
  .hero-img-2 { max-width: 300px; }
}
/* FINAL DE HERO IMAGE-2 Imagen base */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: #99f7f7;
  background: linear-gradient(177deg,rgb(140, 242, 249) 0%, rgba(100, 201, 217, 1) 38%, rgba(85, 189, 216, 1) 70%, rgba(83, 196, 237, 1) 100%);
}
th, td {
  border: 1px solid #ddd;
  text-align: center;
}
/* Header de tabla */
table thead {
  background: #99f7f7;
  background: linear-gradient(177deg,rgb(140, 242, 249) 0%, rgba(100, 201, 217, 1) 38%, rgba(85, 189, 216, 1) 70%, rgba(83, 196, 237, 1) 100%);
}
/* Fila destacada */
tr.highlight-0 {
  background-color: #f9f9ec !important; /* Amarillo claro */
}
tr.highlight-1 {
  background-color: #f0f9ff !important; /* Amarillo claro */
}
tr.highlight-2 {
  background-color: #f0fffa !important; /* Amarillo claro */
}
tr.highlight-3 {
  background-color: #fff0f9 !important; /* Amarillo claro */
}
tr.highlight-4 {
  background-color: #f2f0ff !important; /* Amarillo claro */
}
tr.highlight-5 {
  background-color: #f6f3f3 !important; /* Amarillo claro */
}

/* Tabla dentro del list-group */
.list-group-item table {
  width: 100%;
  table-layout: fixed;
}
.list-group-item tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
/* Celda de título */
.list-group-item .title-cell {
  flex: 1 1 auto;
  padding-right: 0.5rem;
}
.list-group-item .title {
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  word-break: break-word;
  white-space: normal;
}
/* Celda de versículo */
.list-group-item .verse-cell {
  flex: 0 1 auto;
  text-align: center;
  padding: 0.5rem;
  align-self: center;
}
/* Versículo como bloque */
.list-group-item .verse-ref {
  display: block;
  font-size: 0.9rem;
  color: #555;
  white-space: normal;
}
/* Imágenes dentro del list-group */
.list-group-item img.mx-auto {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 300px;
  min-width: 200px;
}
.card-custom {
  margin-bottom: 7px;
}
/* Si prefieres una clase aún más específica */
.card-limit {
  max-width: 400px;   /* O el valor que elijas */
  margin-left: auto;
  margin-right: auto;
}
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.responsive-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
 .clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .clickable-image:hover {
    transform: scale(1.05);
  }
 /* MODAL BOX mantiene proporción y centra la imagen */
.modal-custom-size {
  max-width: 900px;
}
.modal-custom-size .modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

 /* Limita altura, mantiene proporción y centra la imagen */
#modalImage {
  max-height: 650px; /* Cambia si quieres otro valor */
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Altura máxima adaptada en pantallas pequeñas */
@media (max-width: 576px) {
  #modalImage {
    max-height: 400px;
  }
}

/* Padding exacto de 7px arriba y abajo */
.custom-padding {
  padding-top: 7px;
  padding-bottom: 7px;
}

.btn-custom-close {
  background-color: #123456;  /* Tu color */
  color: #ffffff;
  border: none;
  width: 150px;               
}

.btn-custom-close:hover {
  background-color: #0f2a45;
}
.centered-text-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* BREAKPOINTS */

/* >=576px */
@media (min-width: 576px) {
  .list-group-item .title {
    max-width: calc(100% - 120px);
  }
}

/* >=768px */
@media (min-width: 768px) {
  .list-group-item .title {
    max-width: calc(100% - 140px);
  }
}

/* <=767.98px */
@media (max-width: 767.98px) {
  .list-group-item {
    flex-wrap: wrap;
    padding: 0.5rem;
  }

  .list-group-item img.mx-auto {
    max-width: 100%;
    min-width: auto;
  }
}

/* <=575.98px */
@media (max-width: 575.98px) {
  .list-group-item img.mx-auto {
    max-width: 100%;
    min-width: auto;
  }
}

/* === Centralización completa === */

ul.list-group,
ul.list-group>li.list-group-item {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
}

.image-item-inside {
  height: 300px;
  position: relative;
  overflow: hidden;
    border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgb(239, 235, 226);
}

.image-item-inside img{
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.card-text {
  text-align: center;
}
.card-text-2 {
  text-align: center;
}
.c-text-white {
  color: #fafbc3;
}
.align-items-center {
  font-size: 18px;
  text-align: center;
  font-weight: 600;
   color: rgb(52, 117, 130);
}

.p_titulos {
  text-align: center;
  font-size: 22px;
  margin-top: 7px;
  margin-bottom: 7px;
  font-weight: 500;
  color: rgb(52, 117, 130);
}
.p_titulos-2 {
  font-size: 24px;
}
.p_titulos-3 {
  font-size: 20px;
}

/* Sidebar con ancho fijo */
#bibleSidebar {
  flex: 0 0 260px;     /* ancho fijo */
  max-width: 260px;    /* previene que crezca */
  border-right: #007a99 solid 1px;
}

/* Columna de contenido ajustada */
.row.min-vh-100 > .col-md-9.col-lg-10 {
  flex: 1 1 auto;                      /* ocupa el resto */
  max-width: calc(100% - 260px);        /* resta el ancho del sidebar */
}

/* Para móviles, que el sidebar ocupe todo el ancho cuando se abra */
@media (max-width: 767.98px) {
  #bibleSidebar {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .row.min-vh-100 > .col-md-9.col-lg-10 {
    max-width: 100%;
  }
}

/* Banda de color full-width debajo */
.full-width-bg {
  width: 100%;                 /* ← en vez de 100vw */
  position: relative;
  background-image: linear-gradient(-20deg, #b721ff 0%, #0092be 100%);
  background-position: center;
  background-size: cover;
}


h1 {
  margin: 0;
  padding: 20px 0;
  color: white;
}
.text-Engraved {
  font-family: 'AcademyEngraved', serif;
}
.p-text-Engraved {
  font-size: 28px;
}
.text-centralizado {
  text-align: center; 
}
.text-color-white {
  color: #ffffff;
}
.text-color-blue-1 {
  color: #0000ff;
}
.text-color-blue-2 {
  color: #034767;
}
.bg-blue-1 {
  background: #0101b0 !important;
}
.bg-grad-subt {
  background: #833AB4;
background: linear-gradient(164deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
}
.blue-grad-bg-suave-1 {
background: #d4fcfc;
background: linear-gradient(177deg,rgb(140, 242, 249) 0%, rgba(100, 201, 217, 1) 38%, rgba(85, 189, 216, 1) 70%, rgba(83, 196, 237, 1) 100%);
}
.blue-grad-bg-1-2 {
  background: linear-gradient(135deg, #0df8f8 5%, #00c3d8);
}
.blue-grad-bg-1-2-3 {
  background: #020024;
background: linear-gradient(174deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
}
.blue-grad-bg-1 {
  background: linear-gradient(135deg, #0df8f8 5%, #00249b);
}
.blue-grad-bg-2 {
  background: linear-gradient(180deg, #0df8f8 25%, #00729b 75%);
}
.green-grad-bg {
  background: linear-gradient(135deg, #60d20d 5%, #009b7f);
}
.pink-grad-bg {
  background: linear-gradient(135deg, #ed26d3 5%, #ff1433);
}
.pink-grad-bg-suave-1 {
background: #fab4f8;
background: linear-gradient(177deg, rgba(250, 180, 248, 1) 0%, rgba(190, 100, 217, 1) 38%, rgba(197, 63, 235, 1) 75%, rgba(237, 83, 183, 1) 100%);
}
.black-grad-bg {
  background: linear-gradient(135deg, #4e6b77 5%, #0f2230);
}
.black-Yellow-S-bg {
  background-color: rgb(209 255 25 / var(--tw-bg-opacity, 1));
}
.custom-bg {
  background-color: #f9f6f6; /* tu color */
  padding: 10px 5px 10px 7px;             /* opcional */
  border-radius: 0px;        /* opcional */
}
/* Base para pantallas mayores a 1200px */
.svg-container {
  width: 100%;
  max-width: 1250px;  /* Tamaño base máximo */
  margin: 0 auto;     /* Centra horizontalmente */
  padding: 0 15px;    /* Espacio lateral opcional */
}
.svg-container svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Breakpoints responsive */
@media (max-width: 1200px) {
  .svg-container {
    max-width: 1100px;
  }
}
@media (max-width: 900px) {
  .svg-container {
    max-width: 800px;
  }
}
@media (max-width: 700px) {
  .svg-container {
    max-width: 600px;
  }
}
@media (max-width: 500px) {
  .svg-container {
    max-width: 100%;
    padding: 0 10px;  /* Reduce padding lateral en móviles */
  }
}
/* PARALLAX IMAGES CODE */
.angelic-box {
  background-color: #f9f5ff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 300px; /* flexible base */
  max-width: 325px; /* no exceda este valor */
  margin: 5px 2px 15px 2px;
  border: #e2e2e2 1px solid;
}

.angelic-box:hover {
  transform: scale(1.02);
}

.angelic-content {
  display: flex;
  align-items: center;
  gap: 4px;
}

.angelic-img img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
}

.angelic-text {
  flex: 1;
}

.angelic-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.angelic-summary {
  font-size: 0.95rem;
  color: #444;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #e0e0e0;
}

.angelic-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* Responsive: Columnas apiladas en pantallas pequeñas */
@media (max-width: 576px) {
  .angelic-summary.d-flex {
    flex-direction: column;
    gap: 10px;
  }
}

/* Imagen responsiva para todos los dispositivos */
.img-angelica {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Celulares */
@media (max-width: 576px) {
  .img-angelica {
    max-width: 350px;
  }
}

/* Tablets */
@media (min-width: 577px) and (max-width: 991.98px) {
  .img-angelica {
    max-width: 475px;
  }
}

/* ✅ Escenario solo del carrusel */

.celestial-box {
  background-color: #e8faff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 350px;
  min-width: 350px;
  max-width: 100%;
  margin: 5px 2px 15px 2px; /* separa las cajas si usas flex-wrap */
  border: #e9e9e9 1px solid;
}
.celestial-box:hover {
  transform: scale(1.02);
}
.celestial-box .span-box {
  font-size: 16px;
}
.celestial-content {
  display: flex;
  align-items: center;
  gap: 4px;
}
.celestial-img img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background-color: white;
}
.celestial-text {
  flex: 1;
}
.celestial-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}
.celestial-title-1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
}
.celestial-summary {
  font-size: 0.95rem;
  color: #444;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #e0e0e0;
}
.celestial-summary ul {
  padding-left: 0;
  margin-bottom: 0;
  line-height: 1.6;
}
.list-unstyled {
  padding-left: 0;
  list-style: none !important;
}
.celestial-summary li {
  list-style: none !important;
  position: relative;
  padding-left: 8px;
  padding-right: 5px;
}
.celestial-summary li::before {
  content: none;
}
.celestial-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  font-style: italic;
}
/* Responsive: Columnas apiladas en pantallas pequeñas */
@media (max-width: 576px) {
  .celestial-summary.d-flex {
    flex-direction: column;
    gap: 10px;
  }
}
.img-responsiva {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Para celulares: máximo 350px */
@media (max-width: 576px) {
  .img-responsiva {
    max-width: 350px;
  }
}
/* Para tablets: máximo 450px */
@media (min-width: 577px) and (max-width: 991.98px) {
  .img-responsiva {
    max-width: 475px;
  }
}

/* Grid responsivo: columnas automáticas */
/* Fondo general */
.contenedor {
  padding: 0px 5px 5px 5px;
}
@media (prefers-color-scheme: dark) {
  .contenedor {
    background-color: #1f2937;
  }
}
/* Grid responsive */
.grid-textos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 1400px;
  margin: 0 auto;
  padding: 3px 3px 3px 3px;
}
/* Cada cuadro con imagen y texto */
.item {
  color: #ca8a04;
  text-align: center;
  padding: 0px 5px 0px 5px;
  transition: color 0.2s ease-in-out;
  border: none;
}
.item:hover {
  color: #3b96d2;
}
/* Tamaño base por defecto (>= 1200px) */
.item p {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 24px;
}
/* Pantallas entre 992px y 1199px */
@media (max-width: 1199.98px) {
  .item p {
    font-size: 20px;
  }
}
/* Pantallas entre 768px y 991px */
@media (max-width: 991.98px) {
  .item p {
    font-size: 18px;
  }
}
/* Pantallas entre 568px y 767px */
@media (max-width: 767.98px) {
  .item p {
    font-size: 16px;
  }
}
/* Pantallas entre 480px y 567px */
@media (max-width: 567.98px) {
  .item p {
    font-size: 16px;
  }
}
/* Pantallas entre 320px y 479px */
@media (max-width: 479.98px) {
  .item p {
    font-size: 16px;
  }
}
/* Pantallas extremadamente pequeñas (<320px) */
@media (max-width: 319.98px) {
  .item p {
    font-size: 14px;
  }
}
h1.h1-intro-biblia {
  font-size: 36px;
  padding: 20px 40px;
  text-align: center;
}

/* Tablets (≈768px para abajo) */
@media (max-width: 767.98px) {
  h1.h1-intro-biblia {
    font-size: 24px;
    padding: 15px 25px;
  }
}

/* Celulares (≈480px para abajo) */
@media (max-width: 479.98px) {
  h1.h1-intro-biblia {
    font-size: 18px;
    padding: 10px 15px;
  }
}

h2.text-Playfair {
  font-size: 36px;
  text-align: center;
  font-style: italic;
  color: #be1751;
}
/* Tablets (≈768px para abajo) */
@media (max-width: 767.98px) {
  h2.text-Playfair {
    font-size: 26px;
    padding: 15px 25px;
  }
}

/* Celulares (≈480px para abajo) */
@media (max-width: 479.98px) {
  h2.text-Playfair{
    font-size: 18px;
    padding: 10px 15px;
  }
}

h2.text-Engraved {
  font-size: 65px;
  padding: 15px 20px;
  text-align: center;
}

/* Tablets (≈768px para abajo) */
@media (max-width: 767.98px) {
  h2.text-Engraved {
    font-size: 45px;
    padding: 15px 25px;
  }
}

/* Celulares (≈480px para abajo) */
@media (max-width: 479.98px) {
  h2.text-Engraved{
    font-size: 18px;
    padding: 10px 15px;
  }
}
.p-intro-biblia{
  margin-top: 0px;
  font-size: 22px;
  color: rgb(0, 90, 138);
  text-align: justify;
}
@media (max-width: 479.98px) {
  .p-intro-biblia p {
    font-size: 16px;
    text-align: justify;
  }
}

.p-at-intro{
  margin-top: 0px;
  font-size: 22px;
  color: rgb(0, 90, 138);
  text-align: justify;
}
@media (max-width: 479.98px) {
  .p-at-intro p {
    font-size: 16px;
    text-align: justify;
  }
}

.p-nt-intro{
  margin-top: 0px;
  font-size: 22px;
  color: rgb(0, 90, 138);
  text-align: justify;
}
@media (max-width: 479.98px) {
  .p-nt-intro p {
    font-size: 16px;
    text-align: justify;
  }
}
/* Contenedor de imagen: sin recorte */
.cuadro-img {
  width: 100%;
  max-height: 200px; /* límite opcional para altura */
  margin: 0 auto;
  border: 2px solid #ccc;
  background-color: #fff;
  border-radius: 7px; /* opcional */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Imagen contenida sin recorte */
.cuadro-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.text-justificado {
  text-align: justify;
}
/* UL LI sangria-izquierda */
.sangria-izquierda {
  padding-left: 60px; /* puedes ajustar el valor según lo necesites */
  margin-left: 0;
}
/* P y LI COLOR TEXT */
.pentateuco {
  color: #015e80;
}
.pentateuco_li {
  color: #065f01;
  font-weight: 500;
}
.pentateuco_span {
  color: #015e80;
  font-weight: 500;
}

/* FINALSECCION DE NT COLOR TEXT */
.contenedor-temas {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.titulo {
  font-size: 32px;
  text-align: center;
  font-weight: bold;
}

.subtitulo {
  text-align: center;
  color: gray;
  margin-bottom: 40px;
}

.botones {
  text-align: center;
  margin-bottom: 30px;
}

.botones button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  background-color: #4f6df5;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.botones button:hover {
  background-color: #374abe;
}

.tarjeta {
  display: flex;
  align-items: center;
  border-radius: 15px;
  border: 2px solid;
  padding: 5px 10px 5px 10px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.dark-mode .tarjeta {
  background: #2c2c2c;
  border-color: #444;
}
.numero {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  border: #cfb971 1px solid !important;
}
.contenido {
  flex-grow: 1;
}
.contenido h3 {
  margin-top: 0px;
  margin-bottom: 2px;
  font-size: 20px;
  letter-spacing: 0.3em;
  font-weight: bold;
  font-family: 'Georgia', serif; /* O una fuente tipo manuscrita */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.382); /* Sombra sutil */
}
.contenido span.span-box-nt {
  font-size: 15px !important;
  color: #9b1000;
  letter-spacing: normal !important; /* Ajusta el valor según cuánto espacio deseas */
}
.contenido p.mi-zona{
  margin-top: 0px;
  font-size: 16px;
  color: rgb(0, 90, 138);
}
.contenido p span.span-box-nt-2 {
  font-size: 15px !important;
  color: rgb(0, 90, 138);
}
.icono {
  font-size: 32px;
  margin-left: 20px;
}
.btn-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}
.imagen-wrapper {
  margin-left: 10px;
  margin-right: 5px;
}
/* Colores personalizados */
.amarillo {
  border-color: #efef0e;
}
.amarillo .numero {
  background: #efef0e;
  color: white;
}
.amarillo .numero:hover {
  background: #dee600;
}

.amarillo-oro {
  border-color: #d6ab00;
}
.amarillo-oro .numero {
  background: #d6ab00;
  color: white;
}
.amarillo-oro .numero:hover {
  background: #00bdd6;
}

.naranja {
  border-color: #ff9900;
}
.naranja .numero {
  background: #ff9900;
  color: white;
}
.naranja .numero:hover {
  background: #e68a00;
}

.naranja-rojo {
  border-color: #ff6600;
}
.naranja-rojo .numero {
  background: #ff6600;
  color: white;
}
.naranja-rojo .numero:hover {
  background: #e65c00;
}

.rojo {
  border-color: #ff0000;
}
.rojo .numero {
  background: #ff0000;
  color: white;
}
.rojo .numero:hover {
  background: #cc0000;
}

.rojo-purpura {
  border-color: #990033;
}
.rojo-purpura .numero {
  background: #990033;
  color: white;
}
.rojo-purpura .numero:hover {
  background: #7a002a;
}
.rosado-fuerte {
  border-color: #e6007e;
}
.rosado-fuerte .numero {
  background: #e6007e;
  color: white;
}
.rosado-fuerte .numero:hover {
  background: #cc006e;
}

.violeta {
  border-color: #9900cc;
}
.violeta .numero {
  background: #9900cc;
  color: white;
}
.violeta .numero:hover {
  background: #7a00a3;
}

.violeta-azul {
  border-color: #6633cc;
}
.violeta-azul .numero {
  background: #6633cc;
  color: white;
}
.violeta-azul .numero:hover {
  background: #4d26a3;
}

.azul {
  border-color: #0000ff;
}
.azul .numero {
  background: #0000ff;
  color: white;
}
.azul .numero:hover {
  background: #0000cc;
}

.azul-verde {
  border-color: #0099cc;
}
.azul-verde .numero {
  background: #0099cc;
  color: white;
}
.azul-verde .numero:hover {
  background: #007a99;
}

.verde {
  border-color: #00cc66;
}
.verde .numero {
  background: #00cc66;
  color: white;
}
.verde .numero:hover {
  background: #00a653;
}

.verde-lima {
  border-color: #51de49;
}
.verde-lima .numero {
  background: #51de49;
  color: white;
}
.verde-lima .numero:hover {
  background: #00fff2;
}
.verde-oscuro {
  border-color: #018101;
}
.verde-oscuro .numero {
  background: #018101;
  color: white;
}
.verde-oscuro .numero:hover {
  background: #65e6b5;
}
/* ====== Utilidades ====== */
.text-center {
  display: block;
  text-align: center;
}
/* ====== Utilidades ====== */
.oculto {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
/* ====== Layout Principal ====== */
.layout-temas {
  display: flex;
  align-items: flex-start;
  gap: 1px;
  /* border: #750269 1px solid; */
}
.columna-izquierda {
  max-width: 300px;
  min-width: 275px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  align-items: center;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  /* border: #ff0000 1px solid; */
}
.columna-derecha {
  flex: 3 1 100%;
  max-width: 100%;
}
.contenido-derecho {
  flex: 1;
  padding: 5px 5px; /* Ejemplo: top-bottom 40px, left-right 60px */
}

.imagen-apostol-2 {
  max-width: 70%;
  max-height: 70%;
  border-radius: 10px;
  border: 1px solid #0b7db2;
  cursor: pointer;
}
/* ====== Utilidades ====== */
.oculto {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ====== Responsive Layout ====== */
@media (max-width: 992px) {
  .layout-temas {
    flex-direction: column;
    align-items: center;
  }

  .columna-izquierda {
    max-width: 100%;
    min-width: unset;
    text-align: center;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .columna-izquierda {
    text-align: center;
  }

  .titulo {
    font-size: 24px;
    text-align: center;
  }
  .subtitulo {
    font-size: 14px;
  }
  .tarjeta {
    flex-direction: column;
    text-align: center;
  }

  .icono {
    margin: 10px 0 0 0;
  }
  .circulo-titulo {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }
  .circulo-titulo .titulo {
    font-size: 20px;
  }
  .circulo-titulo .subtitulo {
    font-size: 12px;
  }
}
@media (max-width: 568px) {
  .columna-izquierda {
    text-align: center;
  }
}
/* ====== EFECTO IMAGEN EN UNA MADERA ====== */
.wooden-title-container {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

/* Contenedor con sombra */
.wooden-shadow-wrapper {
  display: inline-block;
  position: relative;
  border-radius: 14px;
  background-color: transparent;
  overflow: visible;
  padding: 0;
}

/* Utilidades simples de rotación para el wrapper */
.wooden-rotate-left  { transform: rotate(-10deg); transform-origin: center; }
.wooden-rotate-none  { transform: rotate(0deg);   transform-origin: center; }
.wooden-rotate-right { transform: rotate(10deg);  transform-origin: center; }

/* (Opcional) menor inclinación en pantallas pequeñas */
@media (max-width: 576px) {
  .wooden-rotate-left  { transform: rotate(-6deg); }
  .wooden-rotate-right { transform: rotate(6deg);  }
}
@media (max-width: 576px) {
  .wooden-shadow-wrapper.wooden-height-lg { max-width: 225px; }
}

/* Tamaños */
.wooden-height-sm { width: 100%; max-width: 225px; }
.wooden-height-lg { width: 100%; max-width: 275px; }

/* Imagen */
.wooden-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background-color: transparent;
  z-index: 1;

  /* --- Sistema de transform compuesto con variables --- */
  --rot: 0deg;        /* rotación */
  --tx: 0;            /* translateX */
  --ty: 0;            /* translateY */
  --sc: 1;            /* escala */
  transform-origin: center center;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc));
  transition: transform 0.3s ease;
}

/* Texto encima */
.wooden-text {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: grid;
  place-items: center;
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #194a8d;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 2;
}

/* Utilidades de rotación: ahora solo cambian la variable */
.left-img, .rotate-left  { --rot: -10deg; }
.center-img, .rotate-none{ --rot: 0deg; }
.right-img, .rotate-right{ --rot: 10deg; }

/* (Opcional) hover sutil */
.wooden-shadow-wrapper:hover .wooden-img {
  --sc: 1.02;
}
/* LOS 4 EVANGELIOS Y MAS */

.imagen-apostol {
  max-width: 125px;
  border: 1px solid #0b7db2;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.overlay-expandida {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  z-index: 9998;
  /* Añadir transición para el fondo al aparecer y desaparecer */
  transition: opacity 0.3s ease;
  opacity: 0; /* Inicialmente transparente para una aparición suave */
}

/* La clase que se añade cuando el overlay se muestra para que aparezca */
.overlay-expandida.activo {
    opacity: 1;
}
.pre-expandida {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1); /* Cambiado a scale(1) para que no haya animación de tamaño al aparecer */
  opacity: 1; /* Cambiado a 1 para que aparezca sin fade-in */
  height: auto;
  width: auto;
  max-width: 95vw;
  max-height: 700px;
  z-index: 9999;
  background-color: white;
  border-radius: 7px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  /* ELIMINADA LA TRANSICIÓN AQUÍ, YA QUE AHORA LA IMAGEN APARECERÁ DIRECTAMENTE */
}

.imagen-apostol-clon {
  /* Mantenemos estas propiedades ya que son el estado final de la imagen expandida */
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  /* APLICAMOS LA TRANSICIÓN SOLO PARA EL ESTADO DE CIERRE */
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.imagen-apostol-clon.cerrando {
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
}

@media (max-width: 991px) {
  .imagen-apostol-clon {
    max-height: 500px;
  }
}
@media (max-width: 575px) {
  .imagen-apostol-clon {
    max-height: 350px;
  }
}
/* BOTON HERMOSO Y ELEGANTE = púrpura elegante */
.btn-hermoso {
  background-color: #609bc8;
  color: white;
  padding: 7px 15px;
  border-radius: 10px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: 1px solid #00ffff; /* borde aqua */
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3); /* sombra suave aqua */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-hermoso:hover {
  background-color: #8e24aa;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 255, 255, 0.5); /* sombra más intensa al pasar el mouse */
}
@media (max-width: 991px) {
  .btn-hermoso {
    margin-bottom: 10px;
  }
}

  ul.sin-viñetas {
    list-style-type: none;
    padding-left: 5px;
  }

  ul.sin-viñetas li {
    margin-bottom: 6px;
  }
/* BOTON HERMOSO Y ELEGANTE = púrpura elegante */
.title-main {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  margin-top: 20px;
  margin-bottom: 30px;
}
.card-1{
  background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  height: 100%;
}
.card-2 {
  background-image: linear-gradient(120deg, #c2e9fb 0%, #a1c4fd 100%);
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  height: 100%;
}
.card-3 {
  background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  height: 100%;
}
.card-1 h3, .card-2 h3, .card-3 h3 {
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  margin-bottom: 5px;
}
.subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}
.tree {
  font-family: monospace;
  white-space: pre-wrap;  /* ✅ Mantiene formato pero hace ajuste de línea */
  text-align: left;
  margin: 0;
  padding-left: 5px;
  word-break: break-word; /* ✅ Rompe palabras largas si es necesario */
}
/* BOTON HERMOSO Y ELEGANTE = púrpura elegante */
 .adam-title-main {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  margin-top: 20px;
  margin-bottom: 20px;
}
.adam-card-1, .adam-card-2, .adam-card-3 {
  background-image: linear-gradient(to top, #e8ecef 0%, #d4f0ff 100%);
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 20px;
  height: 100%;
}
.adam-tree {
  font-family: monospace;
  white-space: pre-wrap;
  text-align: left;
  margin: 0;
  padding-left: 5px;
  word-break: break-word;
}
.adam-tree strong {
  color: #2a4d7a;
}
.adam-tree .king {
  color: #b8860b; /* Dorado para reyes */
  font-weight: bold;
}
.adam-subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
}
/* BOTON HERMOSO Y ELEGANTE = púrpura elegante */
.david-title-main {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    margin-top: 20px;
    margin-bottom: 20px;
}
.david-card {
    background-image: linear-gradient(to top, #facdb0 0%, #d1fdff 100%);
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}
.david-tree {
    font-family: monospace;
    white-space: pre-wrap; /* permite salto de línea automático */
    word-break: break-word; /* rompe palabras largas si es necesario */
    text-align: left;
    margin: 0;
    padding-left: 5px;
}
.david-tree strong {
    color: #2a4d7a;
}
.david-tree .king {
    color: #b8860b;
    font-weight: bold;
}
/* IMAGEN DEL WORLD FLOODING RESET AND THE ARK OF NOAH */
.image-world-reset {
    background-image: linear-gradient(to top, #03598a 0%, #cfdee6 100%, #a6bff1 100%, #a8cde8 100%);
    padding: 0px;
    border-radius: 3px; /* esquinas redondeadas opcional */
}
.span-text-1 {
      font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 30px;
    color: #d02424;
    font-style: italic;
}
.image-world-reset img {
    max-width: 100%;
    height: auto;
    max-height: 700px; /* límite de altura */
    display: block;
    margin: 0 auto;
    object-fit: contain; /* asegura que no se deforme */
}
/* IMAGEN DEL WORLD FLOODING RESET AND THE ARK OF NOAH */
.image-gen-3-15 {
    background-image: linear-gradient(to top, #d10404 0%, #dcd12f 100%, #e7f20f 100%, #f7f7ed 100%);
    padding: 0px;
    border-radius: 3px; /* esquinas redondeadas opcional */
}
.image-gen-3-15 img {
    max-width: 100%;
    height: auto;
    max-height: 700px; /* límite de altura */
    display: block;
    margin: 0 auto;
    object-fit: contain; /* asegura que no se deforme */
}
.text-p-gen-3-15 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    color: #00729b;
}
/* IMAGEN DEL WORLD FLOODING RESET AND THE ARK OF NOAH */
.image-babel-tower {
    background-image: linear-gradient(to top, #906c02 0%, #cfdee6 100%, #a6bff1 100%, #a8cde8 100%);
    padding: 0px;
    border-radius: 3px; /* esquinas redondeadas opcional */
}

.image-babel-tower img {
    max-width: 100%;
    height: auto;
    max-height: 700px; /* límite de altura */
    display: block;
    margin: 0 auto;
    object-fit: contain; /* asegura que no se deforme */
}
/* IMAGEN DEL WORLD FLOODING RESET AND THE ARK OF NOAH */
.cam-jafet-sem-bg-1 {
    background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}
.cam-jafet-sem-bg-2 {
    background-image: linear-gradient(120deg, #c2e9fb 0%, #a1c4fd 100%);
}
.cam-jafet-sem-bg-3 {
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}
/* IMAGEN DEL WORLD FLOODING RESET AND THE ARK OF NOAH */
.titulo-azul {
    color: #1e5cb3; /* Azul bonito */
    text-shadow: 2px 2px 4px rgba(30, 92, 179, 0.4); /* Sombra azul suave */
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}
.text-color-azulejo {
  color: #1e5cb3; /* Azul bonito */
}
.text-color-rojo {
  color: rgb(229, 0, 0);
}
.text-background {
  background-color: #e1f5fd;
}
.title-background {
  background-image: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%);
}
/* CARD DE LA ORACION DEL PADRE NUESTRO */
.card {
  max-width: 980px; 
  margin: 0 auto; 
  background: #fff;
  border: 1px solid #e5e7eb; 
  border-radius: 16px; 
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
h1.oracion {
  color: #007a99;
  font-size: 1.5rem; 
  margin: 0 0 12px; 
  letter-spacing: .2px;
}
p.sub { 
  margin: 0 0 18px; 
  color: var(--muted); 
  font-size: .95rem; 
}
.tree-oracion {
  white-space: pre-wrap; /* respeta saltos/espacios y envuelve en móviles */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
}
.branch { 
  font-weight: 600; 
}
.muted { 
  color: var(--muted); 
  font-weight: 400; 
}

@media (max-width: 480px){
    .card { padding: 16px; 
      border-radius: 12px; 
    }
h1.oracion { font-size: 1.25rem; }
  .tree-oracion { 
    font-size: 14px; 
  }
}

.index-card {
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.06);
  }
  .index-title {
    color: #0a66c2;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.12);
    font-weight: 800;
    letter-spacing: .3px;
  }
  .section-title {
    color: #0a66c2;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.10);
    font-weight: 700;
  }
  .index-list {
    margin: 0;
    padding-left: 1.25rem;
  }
  .index-list > li {
    margin-bottom: .5rem;
    line-height: 1.45;
  }
  .column-box {
    background-color: #ffffff;
    border: 2px solid #ccc; /* Marco gris */
    border-radius: 12px;
    padding: 1.25rem;
  }
  .index-list strong {
    color: #0a66c2; /* Azul para los nombres */
    font-weight: 700;
  }
  @media (min-width: 992px) {
    .index-list > li { margin-bottom: .4rem; }
  }

/* Contenedor personalizado para los libros de la Biblia */
.biblia-container {
    max-width: 950px;
    margin: auto;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: #0000cc solid 1px;
}

/* Título del libro */
.biblia-titulo {
    color: #0a66c2;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.12);
}

/* Lista ordenada de acontecimientos */
.biblia-lista {
    padding-left: 20px;
}

.biblia-lista li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Botones de navegación */
.biblia-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.biblia-btn {
    background: #0a66c2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.biblia-btn:hover {
    background: #084b91;
}

/* ================================================================
   LA TARJETA INDIVIDUAL DE PALABRA (UNIFICADA SIN PÉRDIDAS)
   ================================================================ */
.word-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    min-width: fit-content !important; /* Evita recortes al agrandar */
    height: auto !important;           /* Permite crecimiento vertical */
    background: #ffffff;
    border: 1px solid #e0eef2;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}
.word-card:hover {
    transform: translateY(-4px);
    border-color: #004767;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
/* MODO ESTUDIO - Mantiene sus propiedades específicas */
.study-mode .word-card {
    background: #f0f7f9;
    border-color: #004767;
}
.word {
  cursor: pointer;
  position: relative;
}
/* Estilo esencial para el Tooltip */
#tooltip {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none; /* Evita que el mouse 'choque' con el tooltip */
}

/* ================================================================
   CONFIGURACIÓN DE IDIOMAS (USO DE EM PARA ESCALADO)
   ================================================================ */
/* Estilo específico para YAHWEH cuando aparece en la línea árabe */
.lang.ar.yahweh-style {
    /* CAMBIO: De 16px a 1em (o 0.9em si lo quieres un poco más pequeño que el resto) */
    font-size: 1em !important; 
    
    font-family: Georgia, 'Times New Roman', Times, serif !important;
    letter-spacing: 1px;
    direction: ltr; 
    /* Nota: Al ser 1em, ahora sí escuchará a la variable --bible-font-size */
}

/* Árabe */
.lang.ar {
    /* Este ya estaba bien porque usa 'em', por eso este sí debería haber estado creciendo */
    font-size: 1.8em !important; 
    color: #053460;
    line-height: 1.4;
    direction: rtl;
}

/* Otros idiomas */
.lang.es { font-size: 0.9em !important; font-weight: bold; }
.lang.en { font-size: 0.85em !important; color: #004767; }
.lang.tr { font-size: 0.85em !important; font-style: italic; }

/* Hebreo Transliterado */
.lang.he_tr {
    font-size: 0.85em !important;
}
/* ================================================================
   CONTROLES E INTERFAZ (TAMAÑO FIJO)
   ================================================================ */
.font-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 16px !important; /* Los botones no deben crecer */
}

.font-controls button {
    background-color: #e0e0e0;
    font-size: 16px !important; 
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}
.font-controls button:hover {
    background-color: #d0d0d0;
}

/* ... (Aquí iría el resto de tu CSS de Hero, Tablas y Paginación que integraste) ... */
/* Transliteración */

.lang.he.hebrew-script {
    font-family: 'SBL Hebrew', 'Tinos', serif;    
    font-size: 1.4em !important; 
    color: #b02a37;
    line-height: 1.2;
    font-weight: 600;
    direction: rtl;
    text-align: center;
    font-variant-ligatures: contextual;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 2px;
}


.play-verse-btn {
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
    opacity: 0.7;
}
.play-verse-btn:hover {
    transform: scale(1.2);
    color: #006699;
    opacity: 1;
}
.verse-header {
    margin-bottom: 15px;
}
/* ================================================================
   COMPONENTES DE NAVEGACIÓN Y CONTROL
   ================================================================ */
.bk-index-card {
    margin-bottom: 40px;
    display: block;
}
.bk-index-card:not(:last-child) {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.interlinear-controls, .chapter-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.top-nav {
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 12px;
}

.bottom-nav {
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  opacity: 0.8;
}

/* BOTONES DE NAVEGACIÓN PREMIUM */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #015d88; /* Color azul base */
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 10px !important; /* Estilo cápsula */
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(1, 93, 136, 0.2);
    cursor: pointer;
}
.nav-btn:hover {
    background-color: #014767; /* Azul más profundo al pasar el mouse */
    box-shadow: 0 6px 12px rgba(1, 71, 103, 0.3);
    transform: translateY(-1px); /* Pequeño levante */
    color: #ffffff !important;
}
/* Estado deshabilitado (Inicio/Fin) */
.nav-btn.disabled {
    background-color: #e0e0e0;
    color: #999999 !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
    border: 1px solid #ccc;
}
.nav-current {
  font-weight: bold;
  font-size: 18px;
  color: #0b4a6f;
}
/* GENEALOGÍA */
.genealogy-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    border-left: 4px solid #004767;
}

.gene-node {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.book-chapter-selector {
    align-items: center;
    justify-content: center;
}

.book-chapter-selector select {
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Botones pequeños para el control de size */
/* Botones de control de tamaño - Versión Expandida */
.btn-control-sm {
    background-color: #f8f9fa;
    border: 2px solid #004767; /* Borde un poco más grueso */
    color: #004767;
    padding: 6px 15px;         /* Más espacio interno */
    font-size: 1rem;         /* Letra más grande y legible */
    font-weight: 600;          /* Texto más marcado */
    border-radius: 8px;        /* Esquinas más suaves */
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Gentium Book Plus', serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Pequeña sombra para dar relieve */
}

.btn-control-sm:hover {
    background-color: #004767;
    color: white;
    transform: translateY(-2px); /* Efecto de elevación al pasar el mouse */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-control-sm:active {
    transform: translateY(0); /* Efecto de presión al hacer clic */
}

/* =========================
   TÍTULOS NT CON SOMBRA
========================= */

.contenedor-titulo {
            
    border-radius: 5px;
    margin: 0px auto;     /* Centra la placa horizontalmente respecto a su padre */
    width: fit-content;    /* Ajusta el ancho al tamaño del texto en vez de abarcar el 100% */
    text-align: center;    /* Centra el texto internamente */
}


/* Contenedor de la palabra en versión 2.9 */
.word-card-hebrew {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    margin: 5px;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-bottom: 2px solid #eee;
}

.word-card-hebrew:hover {
    background-color: #fcf9f2; /* Un tono crema suave al pasar el mouse */
    border-bottom: 2px solid #b2945d;
    transform: translateY(-2px);
}

/* ================================================================
   CONFIGURACIÓN DE IDIOMAS (USO DE EM PARA ESCALADO)
   ================================================================ */
/* Hebreo General */
.lang-he.hebrew-script,
.hebrew-script-standard {
    font-family: 'Ezra SIL', serif !important;
    font-size: 1.4em !important; /* Escala con el contenedor */
    line-height: 2.5rem;
    color: #005b85 !important;
    direction: rtl;
}
/* Nombre Sagrado (YAHWEH / YAHshua) */
.nombre-sagrado, 
.yahweh-style-gold,
span[data-name="YAHshua"] {
    font-family: 'Ezra SIL', serif !important;
    color: #b2945d !important;
    font-size: 1.6em !important; /* Resalta un poco más pero escala */
    text-shadow: 1px 1px 2px rgba(178, 148, 93, 0.3);
}

span:contains("יַהְשׁוּעַ") {
    color: #b2945d !important;
    font-family: 'Ezra SIL' !important;
}

/* 3. Contenedor de la Card (Para mantener el oxígeno) */
.word-card-hebrew {
    border-bottom: 2px solid #eee;
    padding: 10px 5px;
    min-width: 90px;
    text-align: center;
    display: inline-block; /* Para que se alineen como en tu foto */
    vertical-align: top;
}
.hebrew-version-card {
    border-left: 5px solid #b2945d !important; /* Marca dorada lateral */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    background: #fff;
    padding: 20px !important;
    border-radius: 12px !important;
}

.verse-interlinear {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Las palabras fluyen naturalmente */
    gap: 10px;
}
/* --- BLOQUE UNIFICADO DE INTERLINEAL --- */

/* Transliteración: El puente fonético (Elegante y claro) */
.lang-he-tr {
    font-family: 'Gentium Book Plus', serif; /* Fuente académica para manuscritos */
    font-style: italic;
    font-size: 1.3rem; /* Tamaño intermedio para que YAHshúa destaque sin romper la caja */
    color: #4a5568;    /* Un gris oscuro con más vida que el anterior */
    margin-bottom: 2px;
    display: block;
}

/* Inglés: Traducción primaria (Limpio y profesional) */
.lang-en {
    font-family: 'Inter', sans-serif; /* O una sans-serif limpia */
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 600;  /* Un poco más de peso para lectura rápida */
    margin-top: 4px;
}

/* Español: Referencia secundaria (Discreto pero distinguido) */
.lang-es {
    font-size: 0.85rem;
    color: #383838;
    font-variant: small-caps; /* Aporta un aire de comentario bíblico elegante */
    letter-spacing: 0.5px;
}
/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    background: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    color: #004767; /* El azul oscuro de tu tipografía */
    text-decoration: none;
}

.back-to-top i {
    font-size: 20px;       /* Tamaño del techito */
    color: #004767;       /* Color azul oscuro como el de tu ejemplo */
    line-height: 0;
    font-weight: 900;     /* Para que se vea fuertecito */
}
.back-to-top:hover {
    background: #4c8c2b; /* Tu verde característico al pasar el mouse */
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Estilo para el Botón de Impresión NT */
.btn-print-nt {
    text-decoration: none !important; /* Quita el subrayado del link */
    display: inline-block;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------- Estilos para Learn Basic Arabic --------------------------------------------------- */

/* Clase para los encabezados de las tablas de árabe */
/* Usamos selectores dobles para asegurar prioridad */
/* Color oficial para encabezados y acentos */
.lb-aarabic-th-header {
    background-color: #02192b !important;
    color: #ffffff;
}

/* Alineación específica para el árabe en filas de DIV */
[dir="rtl"] {
    font-family: 'Amiri', 'serif'; /* O tu fuente preferida */
    padding-right: 10px;
    letter-spacing: 0px;
}

/* Filas intercaladas para lectura fácil */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Mejora para el texto árabe dentro de las tablas */
[lang="ar"] {
    font-family: 'Amiri', serif; /* O la fuente árabe que prefieras */
    line-height: 1.8;
    text-align: right;
}

/* Estilo para las tarjetas (cards) de verbos */
.card-header.text-white {
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.verb-card h3 {
    color: #004767;
    border-bottom: 2px solid #004767;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Contenedor Principal */
.pagination-container {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* Estilo de los Números */
.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    color: #004767;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-num:hover {
    background-color: rgba(0, 71, 103, 0.1);
    color: #004767;
    transform: translateY(-2px);
}

/* Estado Activo */
.page-num.active {
    background-color: #004767;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 71, 103, 0.3);
}

/* Botones de Flechas (Anterior/Siguiente) */
.page-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #004767;
    text-decoration: none;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.page-nav-btn:hover {
    transform: scale(1.2);
    color: #002e42;
}

/* Texto informativo debajo */
.page-info {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #ececec;
    color: #005580;
    padding: 8px 24px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: #b2945d;
    border-color: #b2945d;
    background-color: #fff;
    font-weight: bold;
}

/* 1. Enforzar dirección RTL en el contenedor principal de los versículos */
.interlinear-content[dir="rtl"] {
    direction: rtl !important;
}

/* 2. Aplicar Flexbox RTL a la fila que contiene las palabras (Ajusta '.verse-row' a la clase real que genere tu PHP) */
.interlinear-content[dir="rtl"] .verse-row, 
.interlinear-content[dir="rtl"] div[style*="display: flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important; /* En un entorno RTL, 'row' fluye de derecha a izquierda automáticamente */
    justify-content: flex-start !important; /* En RTL, flex-start pega los elementos a la derecha */
}

/* 3. Proteger la alineación interna de cada palabra individual */
.interlinear-content[dir="rtl"] .word-block { /* Ajusta '.word-block' a la clase real de tus bloques de palabras */
    direction: ltr !important; /* Mantiene el inglés/español correctamente centrado bajo el hebreo */
    text-align: center !important;
    margin-left: 5px !important; /* El margen ahora debe ir a la izquierda de la palabra */
    margin-right: 0 !important;
}

/* 4. Asegurar que el texto hebreo en sí fluya RTL si es una frase */
.interlinear-content[dir="rtl"] .hebrew-text {
    direction: rtl !important;
}

/* ========================================================
   HEBREW RTL OVERRIDES 
======================================================== */

/* 1. Asegurar que la fila flex fluya correctamente desde la derecha */
.verse-interlinear[dir="rtl"] {
    justify-content: flex-start !important; 
}

/* 2. Blindar la tarjeta de la palabra (Protege el inglés/español) */
.verse-interlinear[dir="rtl"] .word-card-hebrew {
    direction: ltr !important; 
    text-align: center !important;
}

/* 3. Asegurar que la raíz hebrea fluya en su dirección natural */
.verse-interlinear[dir="rtl"] .lang-he {
    direction: rtl !important;
}

/* ============================================================
   NEW HEAVEN MINISTRY
   HEADER RESPONSIVE 2026
   Desktop original + Mobile Hamburger
   ============================================================ */


/* ------------------------------------------------------------
   ESTRUCTURA GENERAL DEL HEADER
   ------------------------------------------------------------ */

.custom-header .nhm-header-container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}


/* ------------------------------------------------------------
   LOGO
   ------------------------------------------------------------ */

.custom-header .logo-text {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
}

.custom-header .logo-text img {
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   CONTENEDOR DEL MENÚ
   ------------------------------------------------------------ */

.custom-header .nhm-menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.custom-header .menu-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: auto;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* ------------------------------------------------------------
   BOTÓN HAMBURGUESA
   Invisible en escritorio
   ------------------------------------------------------------ */

.nhm-mobile-toggle {
    display: none;

    width: 44px;
    height: 40px;

    margin-left: auto;

    padding: 7px 8px;

    background: transparent;

    border: 1px solid rgba(255,255,255,.65);
    border-radius: 6px;

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;
}

.nhm-mobile-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    background: #fff;

    border-radius: 3px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* ------------------------------------------------------------
   ANIMACIÓN X
   ------------------------------------------------------------ */

.nhm-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nhm-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nhm-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   TABLETS Y CELULARES
   ============================================================ */

@media (max-width: 991.98px) {

    .custom-header .nhm-header-container {
        flex-wrap: wrap !important;

        padding-top: 8px;
        padding-bottom: 8px;
    }


    /* Logo sigue arriba */
    .custom-header .logo-text {
        max-width: calc(100% - 60px);
    }


    /* Aparece hamburguesa */
    .nhm-mobile-toggle {
        display: flex;
    }


    /* Menú cerrado inicialmente */
    .custom-header .nhm-menu-wrapper {
        display: none;

        flex: 0 0 100%;

        width: 100%;

        margin-top: 8px;
    }


    /* Menú abierto */
    .custom-header .nhm-menu-wrapper.mobile-open {
        display: block;
    }


    /* Menú vertical */
    .custom-header .menu-tabs {
        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        justify-content: flex-start !important;

        width: 100% !important;

        gap: 0;
    }


    .custom-header .menu-item {
        width: 100%;

        border-right: 0 !important;

        margin-right: 0 !important;

        padding-right: 0 !important;

        border-top: 1px solid rgba(255,255,255,.20);
    }


    .custom-header .menu-item:last-child {
        border-bottom: 1px solid rgba(255,255,255,.20);
    }


    .custom-header .menu-tabs .nav-link {
        width: 100%;

        height: auto;

        min-height: 44px;

        display: flex;

        align-items: center;

        padding: 10px 8px !important;

        color: #fff;

        text-align: left;
    }


    /* Dropdown de Recursos */
    .custom-header .dropdown-menu {
        width: 100%;

        border-radius: 5px;

        margin-top: 0;
    }

}


/* ============================================================
   CELULARES
   ============================================================ */

@media (max-width: 575.98px) {

    .custom-header .nhm-header-container {
        padding-left: 10px;
        padding-right: 10px;
    }


    .custom-header .logo-text img {
        width: 44px;
        height: 44px;

        margin-right: 7px;
    }


    .custom-header .logo-text span {
        font-size: 17px !important;

        line-height: 1.25;
    }


    .nhm-mobile-toggle {
        width: 42px;
        height: 38px;

        padding-left: 7px;
        padding-right: 7px;
    }

}


/* ============================================================
   CELULARES MUY ANGOSTOS
   ============================================================ */

@media (max-width: 390px) {

    .custom-header .logo-text span {
        font-size: 15px !important;
    }


    .custom-header .logo-text img {
        width: 40px;
        height: 40px;
    }

    .nhm-mobile-toggle {
        width: 39px;
        height: 36px;
    }

}

/* ============================================================
   NT HEBREW - TÍTULOS + BOTÓN PRINT + RESPONSIVE
   ============================================================ */


/* ============================================================
   TÍTULO PRINCIPAL
   NT HEBREW INTERLINEAL
   ============================================================ */

#paciente-hebrew .titulo-grabado {
    font-size: clamp(2.4rem, 6vw, 60px);
    font-weight: bold;
    color: #a9b5c0;

    text-transform: uppercase;
    letter-spacing: 3px;

    margin: 0;

    line-height: 1.08;
    text-align: center;

    overflow-wrap: normal;
    word-break: normal;

    /* Efecto grabado / bevel */
    text-shadow:
        -1px -1px 1px rgba(255,255,255,0.4),
         1px  1px 1px rgba(0,0,0,0.8),
         0px  0px 5px rgba(0,0,0,0.2);
}


/* ============================================================
   TÍTULOS PRINCIPALES HEBREOS
   ============================================================ */

#paciente-hebrew .h2-modulo-titulo-heb {
    text-align: center;

    margin-top: 0;
    margin-bottom: 30px;

    line-height: 1.25;
}


/* ============================================================
   SUBTÍTULO / EDICIÓN
   ============================================================ */

#paciente-hebrew .h2-modulo-titulo-2 {
    font-size: clamp(1.15rem, 2.6vw, 2rem);

    line-height: 1.25;

    text-align: center;

    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   BOTÓN PRINT
   ============================================================ */

#paciente-hebrew .h2-modulo-titulo-3 {
    color: #032d59;

    font-family: 'Gentium Book Plus', serif;

    font-size: clamp(1.15rem, 2.3vw, 1.5rem);

    font-weight: 700;

    line-height: 1.2;

    text-align: center;

    padding: 12px 30px;

    border: 2px solid #032d59;
    border-radius: 8px;

    background-color: transparent;

    display: inline-block;

    margin: 20px 0;

    cursor: pointer;

    transition: all 0.3s ease;
}


/* ============================================================
   HOVER DEL BOTÓN PRINT
   ============================================================ */

#paciente-hebrew .btn-print-nt:hover .h2-modulo-titulo-3 {
    background-color: #032d59;

    color: #ffffff !important;

    box-shadow: 0 4px 12px rgba(3, 45, 89, 0.3);

    transform: translateY(-3px);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    #paciente-hebrew .titulo-grabado {
        font-size: clamp(2.2rem, 7vw, 4rem);

        letter-spacing: 2.5px;
    }


    #paciente-hebrew .h2-modulo-titulo-2 {
        font-size: clamp(1.1rem, 3vw, 1.7rem);
    }


    #paciente-hebrew .h2-modulo-titulo-3 {
        font-size: clamp(1.05rem, 2.8vw, 1.4rem);

        padding: 10px 24px;
    }


    #paciente-hebrew .h2-modulo-titulo-heb {
        margin-bottom: 24px;
    }

}


/* ============================================================
   CELULAR
   ============================================================ */

@media (max-width: 575.98px) {

    #paciente-hebrew .titulo-grabado {
        font-size: clamp(2rem, 11vw, 3.25rem);

        line-height: 1.05;

        letter-spacing: 1.5px;

        padding-left: 4px;
        padding-right: 4px;
    }


    #paciente-hebrew .h2-modulo-titulo-2 {
        font-size: clamp(1rem, 5.2vw, 1.45rem);

        line-height: 1.25;

        padding-left: 8px;
        padding-right: 8px;
    }


    #paciente-hebrew .h2-modulo-titulo-3 {
        font-size: clamp(1rem, 5vw, 1.25rem);

        line-height: 1.2;

        padding: 9px 20px;

        margin: 14px 0;
    }


    #paciente-hebrew .h2-modulo-titulo-heb {
        margin-bottom: 18px;
    }

}


/* ============================================================
   CELULAR MUY ANGOSTO
   ============================================================ */

@media (max-width: 390px) {

    #paciente-hebrew .titulo-grabado {
        font-size: 2rem;

        letter-spacing: 1px;
    }


    #paciente-hebrew .h2-modulo-titulo-2 {
        font-size: 1rem;

        padding-left: 6px;
        padding-right: 6px;
    }


    #paciente-hebrew .h2-modulo-titulo-3 {
        font-size: 1rem;

        padding: 8px 16px;
    }


    #paciente-hebrew .h2-modulo-titulo-heb {
        margin-bottom: 15px;
    }

}


/* ============================================================
   OCULTAR BOTÓN PRINT AL IMPRIMIR
   ============================================================ */

@media print {

    .btn-print-nt {
        display: none !important;
    }

}