:root {
    --color-kids: #FF4757;
    --color-teens: #2ED573;
    --color-youth: #1E90FF;
    --color-adults: #747D8C;
    --bg-dark: #0F172A;
    --font-main: 'Outfit', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: white;
    overflow-x: hidden;
    overflow-y: auto;
    /* Forzar scroll vertical si es necesario */
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
}

.welcome-text {
    text-align: center;
    margin-bottom: 16px;
    animation: fadeInDown 1s ease-out;
}

.welcome-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #FFF, #94A3B8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-text p {
    font-size: 1.2rem;
    color: #94A3B8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 24px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 2;
}

.category-card h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.category-card p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Colores Específicos */
.card-kids {
    border-bottom: 6px solid var(--color-kids);
}

.card-kids:hover {
    background: rgba(255, 71, 87, 0.1);
}

.card-kids h2 {
    color: var(--color-kids);
}

.card-teens {
    border-bottom: 6px solid var(--color-teens);
}

.card-teens:hover {
    background: rgba(46, 213, 115, 0.1);
}

.card-teens h2 {
    color: var(--color-teens);
}

.card-youth {
    border-bottom: 6px solid var(--color-youth);
}

.card-youth:hover {
    background: rgba(30, 144, 255, 0.1);
}

.card-youth h2 {
    color: var(--color-youth);
}

.card-adults {
    border-bottom: 6px solid var(--color-adults);
}

.card-adults:hover {
    background: rgba(116, 125, 140, 0.1);
}

.card-adults h2 {
    color: var(--color-adults);
}

/* Decoración de fondo de tarjeta */
.card-bg-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    opacity: 0.05;
    transform: rotate(15deg);
    transition: all 0.4s;
}

.category-card:hover .card-bg-icon {
    opacity: 0.2;
    transform: rotate(0deg) scale(1.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ESTILOS DE LA PANTALLA DE ESTUDIO --- */
.container-estudio {
    min-height: 100vh;
    padding: 40px 20px;
    background: #0f172a;
    display: none;
    /* Se activa con JS */
    animation: fadeIn 0.8s ease-out;
}

.is-active {
    display: block !important;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.estudio-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-volver {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.header-info h1 {
    margin: 5px 0 0;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
}

.badget-nivel {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--color-youth);
    font-weight: bold;
    letter-spacing: 1px;
}

.estudio-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .estudio-body {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
}

.texto-sagrado {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.v-num {
    color: var(--color-kids);
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9rem;
}

.seccion-ia {
    border-left: 6px solid var(--color-youth);
}

.seccion-accion {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

@media (max-width: 800px) {
    .seccion-accion {
        grid-column: span 1;
    }
}

/* TEMAS DINÁMICOS */
.theme-niños .badget-nivel {
    background: var(--color-kids);
}

.theme-niños .header-info h1 {
    color: var(--color-kids);
}

.theme-niños .seccion-ia {
    border-left-color: var(--color-kids);
}

.theme-jovenes .badget-nivel {
    background: var(--color-youth);
}

.theme-jovenes .header-info h1 {
    color: var(--color-youth);
}

.theme-jovenes .seccion-ia {
    border-left-color: var(--color-youth);
}

.theme-adultos .badget-nivel {
    background: var(--color-adults);
}

.theme-adultos .header-info h1 {
    color: #fff;
}

.theme-adultos .seccion-ia {
    border-left-color: var(--color-adults);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- ESTILOS NAVEGACIÓN TEEN --- */
.teen-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.teen-nav button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.teen-nav button:hover,
.teen-nav button.nav-active {
    background: #ffffff;
    color: #00b894;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(85, 239, 196, 0.3);
}

/* --- BUSCADOR DE BIBLIA --- */
.search-area {
    padding: 40px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.search-box button {
    background: #ffffff;
    color: #00b894;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.bible-card-result {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed #ffffff;
    animation: fadeIn 0.5s;
}

.bible-text-result {
    font-size: 1.4rem;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: #fff;
    margin: 15px 0;
}

/* --- GAME CENTER --- */
.game-container {
    padding: 40px;
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.question-card {
    max-width: 600px;
    margin: 0 auto;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.options-grid {
    display: grid;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.option-btn:hover {
    background: #ffffff;
    color: #00b894;
    transform: scale(1.02);
}

/* --- TEMA ADOLESCENTES (VIBE+ ANIMADO) --- */
.theme-adolescentes {
    background: linear-gradient(-45deg, #00b894, #00cec9, #0984e3, #6c5ce7) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    color: #ffffff;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.teen-header {
    margin-bottom: 50px;
}

.theme-adolescentes .header-info h1 {
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 3.5rem !important;
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 500;
}

.badget-teen {
    background: #ffffff;
    color: #00b894;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-adolescentes .glass-panel {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff;
}

.teen-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .teen-grid {
        grid-template-columns: 1fr;
    }
}

.theme-adolescentes .card-playlist h3,
.theme-adolescentes .card-reto h3 {
    color: #ffffff;
    font-weight: 800;
}

.theme-adolescentes .song strong {
    color: #ffffff;
}

.theme-adolescentes .song span {
    color: rgba(255, 255, 255, 0.7);
}

.theme-adolescentes .v-card-teen {
    padding: 35px;
    margin-bottom: 30px;
    border-left: 8px solid #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.theme-adolescentes .v-badge {
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 15px;
}

.theme-adolescentes .v-text {
    font-size: 1.6rem;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-adolescentes .v-analysis {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 18px;
    color: #ffffff;
}

.theme-adolescentes .hashtags {
    margin-top: 15px;
    color: #ffffff;
    font-weight: 900;
}

.theme-adolescentes .btn-check {
    width: 100%;
    margin-top: 15px;
    background: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #00b894;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-adolescentes .btn-check:hover {
    background: #f0f0f0;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* --- NUEVA ESTÉTICA SELECTOR DE LIBROS (PREMIUM) --- */
.bible-selector-container {
    padding: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.selector-header-modern {
    text-align: center;
    margin-bottom: 60px;
}

.selector-header-modern h2 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to right, #ffffff, #55efc4, #a29bfe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.selector-header-modern p {
    font-size: 1.2rem;
    opacity: 0.6;
    letter-spacing: 2px;
}

.testamento-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testamento-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #55efc4;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.testamento-title.nuevo {
    color: #a29bfe;
}

.testamento-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, currentColor, transparent);
    opacity: 0.3;
}

.libros-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.btn-libro-premium {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 25px 15px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-libro-premium:hover {
    background: #55efc4;
    color: #000;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(85, 239, 196, 0.4);
    border-color: #55efc4;
}

.btn-libro-premium.nuevo-t:hover {
    background: #a29bfe;
    box-shadow: 0 20px 40px rgba(162, 155, 254, 0.4);
    border-color: #a29bfe;
}

.libro-icono {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: 0.3s;
}

.btn-libro-premium:hover .libro-icono {
    transform: scale(1.2) rotate(-10deg);
}

/* Loader cinemático */
.loader-bible-modern {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(85, 239, 196, 0.1);
    border-top: 4px solid #55efc4;
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- BIBLIA INMERSIVA (TEENS) --- */
.immersive-reader-container {
    position: relative;
    border-radius: 28px;
    margin-top: 25px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    /* Jose - Eliminado overflow:hidden para permitir que la barra LIBROS/CAPS se pegue arriba */
}

.reader-hero {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    background-attachment: fixed;
    transition: 0.5s ease;
}

.reader-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* --- LECTURA INMERSIVA (ESTILOS PREMIUM) --- */
.immersive-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    transition: opacity 0.5s, transform 0.5s;
}

.immersive-focus-mode .immersive-controls,
.immersive-focus-mode .teen-nav,
.immersive-focus-mode .teen-header {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.btn-reader-tool {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-reader-tool:hover {
    background: #55efc4;
    color: #000;
    transform: scale(1.1);
}

.verses-container-dynamic {
    padding: 60px 10%;
    background: #000;
    position: relative;
}

.text-bible-flow {
    max-width: 800px;
    margin: 0 auto;
}

.verse-block {
    margin-bottom: 30px;
    position: relative;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

.verse-block:hover {
    background: rgba(255, 255, 255, 0.05);
}

.v-num-badge {
    position: absolute;
    left: -60px;
    top: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #55efc4;
    opacity: 0.4;
}

.v-text-dynamic {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #f1f2f6;
    margin: 0;
}

/* Punto brillante para versículos con Insight */
.insight-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #55efc4;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 10px #55efc4;
    animation: pulseInsight 2s infinite;
}

@keyframes pulseInsight {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tarjeta de Contexto */
.context-card {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 500px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}

.context-card.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.context-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.context-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: #55efc4;
    letter-spacing: 2px;
}

.context-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.5;
}

.context-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

/* Barra de Progreso */
.reading-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 3000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #55efc4, #a29bfe);
    width: 0%;
    transition: width 0.1s;
}

/* Modo Noche / Selección de Versión */
.reading-theme-sepia .verses-container-dynamic {
    background: #f4ecd8;
}

.reading-theme-sepia .v-text-dynamic {
    color: #5b4636;
}

.reading-theme-sepia .v-num-badge {
    color: #5b4636;
}

.reading-theme-night .verses-container-dynamic {
    background: #000;
}

.reading-theme-night .v-text-dynamic {
    color: #a4b0be;
}

/* Subrayado de Emociones */
.highlight-paz {
    border-bottom: 3px solid #55efc4;
}

.highlight-fuerza {
    border-bottom: 3px solid #ff4757;
}

.highlight-duda {
    border-bottom: 3px solid #ffa502;
}

/* Etiquetas Flotantes */
.tag-overlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.tag-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(85, 239, 196, 0.2);
    color: #55efc4;
    font-weight: bold;
}

.hero-content .subtitle-hero {
    font-size: 1.4rem;
    color: #55efc4;
    font-weight: 700;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.verses-container-dynamic {
    padding: 60px 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
}

.verse-block {
    margin-bottom: 60px;
    position: relative;
    padding-left: 25px;
    border-left: 5px solid #55efc4;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verse-block:hover {
    border-left-width: 10px;
    transform: translateX(15px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 15px 15px 0;
    padding: 20px 25px;
}

.v-num-badge {
    background: #55efc4;
    color: #000;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.v-text-dynamic {
    font-size: 2.2rem;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.v-text-dynamic strong {
    font-weight: 800;
    color: #55efc4;
}

.ia-analysis-card {
    background: rgba(85, 239, 196, 0.15);
    border: 1px solid rgba(85, 239, 196, 0.3);
    padding: 30px;
    border-radius: 20px;
    margin-top: 25px;
    font-size: 1.3rem;
    color: #f1f1f1;
    line-height: 1.6;
}

.ia-tag {
    display: inline-block;
    background: #55efc4;
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.reader-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- BÚSQUEDA Y CATEGORÍAS (TOP NAV) --- */
.bible-nav-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.search-bar-premium {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 8px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-bar-premium:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #55efc4;
    box-shadow: 0 15px 40px rgba(85, 239, 196, 0.2);
    transform: translateY(-5px);
}

.search-bar-premium input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    font-size: 1.3rem;
    outline: none;
    font-weight: 300;
}

.category-chips-container {
    display: flex;
    gap: 12px;
    width: 100%;
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
    /* Para que no se amontone */
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-chip:hover,
.category-chip.active {
    background: #55efc4;
    color: #000;
    border-color: #55efc4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(85, 239, 196, 0.3);
}

/* --- DISEÑO ZEN (SIMPLIFICADO Y AMIGABLE) --- */
#libros-dinamicos-root {
    display: block;
    /* Cambiamos de grid a block para que el hijo ocupe todo el ancho */
    width: 100%;
    gap: 0;
    padding: 0;
}

.testamento-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 80px;
    box-shadow: none;
}

.categoria-wrapper {
    background: rgba(255, 255, 255, 0.03);
    /* Ligeramente más visible */
    padding: 30px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Borde más nítido */
    margin-bottom: 40px !important;
    transition: 0.4s ease;
}

.categoria-wrapper:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.btn-libro-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.btn-libro-premium:hover {
    background: #55efc4;
    color: #000;
    transform: scale(1.08);
}

.container-estudio {
    background: #0f172a !important;
    /* Azul medianoche amigable, no negro puro */
    background-image: radial-gradient(circle at 50% 0%, rgba(85, 239, 196, 0.08), transparent) !important;
    min-height: 100vh;
}

@media (max-width: 1100px) {
    #libros-dinamicos-root {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* --- DUAL PANEL LANDING (MÁS COMPACTO) --- */
.dual-landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 320px;
    /* Altura reducida para diseño más horizontal */
}

.hero-panel {
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 1s ease;
    filter: brightness(0.6) grayscale(0.3);
}

.hero-panel.antiguo::before {
    background-image: url('biblia_paisaje_majestuoso_1772145938797.png');
}

.hero-panel.nuevo::before {
    background-image: url('vision_profetica_moderna_1772145951421.png');
}

.hero-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
}

.hero-panel:hover::before {
    transform: scale(1.1);
    filter: brightness(0.9) grayscale(0);
}

.hero-panel:hover {
    transform: translateY(-15px);
    border-color: #55efc4;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.hero-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 5;
    transition: 0.5s;
}

.hero-info h3 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-info p {
    color: #55efc4;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .dual-landing-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-panel {
        height: 300px;
    }
}