:root {
    /* Nueva Paleta de Bekarov */
    --palette-orange: #F8961E;
    --palette-apricot: #F9C074;
    --palette-terra: #C29F84;
    --palette-cream: #FDF1E3;

    --primary: #ffffff;
    --secondary: var(--palette-terra);
    --accent: var(--palette-orange);
    --background: #121212;
    --surface: #1e1e1e;
    --navbar-bg: #121212;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --header-height: env(safe-area-inset-top, 20px);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Erradicación absoluta de sensación web */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    /* Desactiva el menú nativo "Guardar imagen" de móviles al dejar presionado */
    -webkit-user-select: none !important;
    /* Múltiples selecciones de texto deshabilitadas */
    user-select: none !important;
    outline: none !important;
}

/* Permitir selección natural en inputs cuando se desarrolle backend */
input,
textarea,
[contenteditable] {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

html {
    height: 100%;
    /* Garantiza altura base para WebView */
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE e Edge antiguo */
}

/* Chrome, Safari, Edge moderno */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

body {
    height: 100%;
    /* Garantiza altura base para WebView */
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* overflow-x removido para prevenir doble atrapamiento de scroll */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center logo in mobile app */
    padding: 0 5%;
    z-index: 1000;
    background-color: var(--background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-family: 'Rubik', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: normal;
    color: #ffffff;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    /* Hitbox ajustada */
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Separación de lineas reducida */
    z-index: 1001;
}

.menu-button span {
    display: block;
    width: 20px;
    /* Tamaño reducido */
    height: 2px;
    background: #ffffff;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Dynamic Modes */
header.theme-light .logo span {
    color: #1F180B;
    /* Mismo color del texto de la mision */
}

header.theme-light .menu-button span {
    background-color: #1F180B;
}

/* Menu Button X Transformation */
.menu-button.active span {
    background: #ffffff !important;
    /* Si la abrimos sobre zona clara, forzamos volver a blanco */
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen Menu Cortina */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* Fix para WebView */
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999;
    /* Permite que el Header (1000) sea siempre visible por encima de la cortina */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-list {
    list-style: none;
    text-align: center;
}

.menu-item {
    margin: 2.5rem 0;
    overflow: hidden;
    /* Oculta el texto antes del delay de revelación */
}

.menu-item a {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -2px;
    color: var(--primary);
    text-decoration: none;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s, color 0.3s;
    transition-delay: calc(var(--i) * 0.1s);
    /* Animación en cascada escalonada */
}

.menu-overlay.active .menu-item a {
    transform: translateY(0);
    opacity: 1;
}

.menu-item a:hover {
    color: var(--palette-orange);
    transform: scale(1.05);
    /* Modern UI hover expansivo en lugar de letras itálicas */
}

/* Hero Section */
.home-view-pad {
    padding: calc(var(--header-height) + 20px) 5% 90px 5%;
}

.home-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 0 auto 1.5rem auto; /* Centrado automático */
    max-width: 850px; /* Capper de ancho para Desktop */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-card.verse-card {
    background: transparent;
    border: none;
    padding: 2rem 1rem;
    -webkit-animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.1s;
    animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.1s;
}

.home-card.video-card {
    -webkit-animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.2s;
    animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.2s;
    text-align: left;
    padding: 2rem;
}

.video-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.video-card-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
}

.video-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Se eliminó opacity:0 base en textos para evitar que queden invisibles si el WebView bloquea animaciones */
.verse-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    -webkit-animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.1s;
    animation: gloriousReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.1s;
}

.verse-text {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem; /* Ajustado explícitamente a 1.5rem */
    line-height: 1.35; /* Un poco de respiro al estar tan pequeño */
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: normal;
    -webkit-animation: gloriousReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.3s;
    animation: gloriousReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.3s;
}

.verse-reference {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    /* Forma de pastilla */
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--palette-cream);
    margin-bottom: 0;
    /* Removido margen para encajar bien en la tarjeta */
    -webkit-animation: gloriousReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.45s;
    animation: gloriousReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.45s;
}

.home-card-actions {
    display: flex;
    justify-content: flex-start;
    /* Alineado a la izquierda como material design standard layout */
}

.btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100vw;
    transition: var(--transition);
    cursor: pointer;
    width: fit-content;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    /* Faint translucent circle */
    color: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    font-size: 18px;
}

.btn-primary {
    background: var(--accent);
    /* Vibrant Orange */
    color: #ffffff;
    /* White text */
    border: none;
}

.btn-primary:hover {
    background: var(--palette-apricot);
    /* Second color of palette on hover */
    transform: scale(1.02);
}

.btn-primary:hover .icon-circle {
    background: rgba(255, 255, 255, 0.35);
    /* Enhance icon circle slightly on hover */
}

/* Mission Section */
.mission {
    background-color: var(--palette-cream);
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mission-container {
    max-width: 900px;
    text-align: center;
}

.mission-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--palette-terra);
    margin-bottom: 2.5rem;
}

.mission-title {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 400;
    color: #2F2411;
    /* Deep charcoal brown */
}

.mission-title span {
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    /* Pop of orange vibrancy */
}

.mission-mountain {
    background-color: var(--palette-cream);
    display: block;
    width: 100%;
    height: 25vw;
    min-height: 150px;
    pointer-events: none;
    margin-bottom: -1px;
}

/* Networks / Plataformas Section */
.networks {
    background-color: #1F180B;
    /* Mismo color exacto de las montañas para transición invisible */
    padding: 2rem 5% 10rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.networks-header {
    text-align: center;
    margin-bottom: 5rem;
}

.networks-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -1px;
}

.networks-header p {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 400;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* Difuminado aéreo hacia los bordes de la pantalla */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    cursor: grab;
    will-change: transform;
}

.marquee-track:active {
    cursor: grabbing;
}

.network-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    /* Estilo píldora o burbuja, muy dinámico */
    text-decoration: none;
    transition: var(--transition);
}

.network-brand i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.network-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.network-brand:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
    /* Expansión flotante */
    border-color: var(--palette-apricot);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.network-brand:hover i {
    color: var(--palette-orange);
}

.network-brand:hover span {
    color: var(--palette-cream);
}

/* Reproductor de Video Interactivo (Modo Nativo) */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* width/height reemplazados por top/left/right/bottom absolutos a petición del usuario para mejor soporte WebView */
    background-color: rgba(5, 5, 5, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Sistema Auto-Fade inactividad (UI cinemática) */
.video-ui,
.video-close-btn,
.video-bottom-gradient {
    transition: opacity 0.4s ease-out, transform 0.3s;
}

.video-overlay.dimmed .video-ui,
.video-overlay.dimmed .video-close-btn,
.video-overlay.dimmed .video-bottom-gradient {
    opacity: 0;
    pointer-events: none;
}

.video-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-close-btn {
    position: absolute;
    top: 25px;
    /* Misma altura vertical apróx que el menú nativo */
    right: 5%;
    /* Atracada al extremo derecho como el menú */
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 3002;
    transition: transform 0.3s, color 0.3s;
}

.video-close-btn:hover {
    transform: scale(1.1);
    color: var(--palette-orange);
}

.video-close-btn span {
    font-size: 1.8rem;
    /* Reducción de X por petición */
}

.video-container {
    position: relative;
    height: 100%;
    height: 100vh;
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-video {
    height: 100%;
    width: 100%;
    object-fit: contain;
    cursor: pointer;
    /* Bordes y sombras redondeadas retiradas */
}

.video-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Permite que el click atraviese y detenga el video base */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-replay-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-replay-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.video-replay-btn:hover {
    background: var(--palette-orange);
    transform: scale(1.1);
    border-color: var(--palette-orange);
}

.video-replay-btn span {
    font-size: 3rem;
}

/* Fila inferior de Controles de Video */
.video-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.video-controls-row {
    position: absolute;
    bottom: 25px;
    left: 5%;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    z-index: 10;
}

.video-play-pause-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    padding: 0;
}

.video-play-pause-btn span {
    font-size: 2rem;
}

/* Hovers activos SOLO para mouses reales (Evita el "efecto pegajoso" web en celulares) */
@media (hover: hover) and (pointer: fine) {
    .video-play-pause-btn:hover {
        color: var(--palette-orange);
    }

    .video-close-btn:hover {
        transform: scale(1.1);
        color: var(--palette-orange);
    }
}

.video-progress-container {
    flex-grow: 1;
    height: 30px;
    /* Área táctil ampliada */
    display: flex;
    align-items: center;
    cursor: pointer;
}

.video-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    pointer-events: none;
}

.video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--palette-apricot);
    border-radius: 4px;
    /* transition: width removida para matar el jittering web y dar sincronía nativa */
}

/* Bolita / Thumb del Tracker copiado del diseño enviado */
.video-progress-bar::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto de inflado nativo al manipular */
.video-progress-container:active .video-progress-bar::after {
    transform: translateY(-50%) scale(1.3);
}

.video-time {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 45px;
    text-align: right;
}

/* Animations Compatibles (Sin filtros problemáticos en WebView) */
@-webkit-keyframes bgEntranceFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes bgEntranceFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes gloriousReveal {
    0% {
        opacity: 0;
        -webkit-transform: translateY(60px) scale(0.95);
        transform: translateY(60px) scale(0.95);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
    }
}

@keyframes gloriousReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@-webkit-keyframes fadeInUp {
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes zoomOut {
    to {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes zoomOut {
    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Padding removido de hero para preservar el centro natural */

    .verse-text {
        font-size: 1.5rem; /* Forzado a 1.5rem en móviles también */
    }

    .logo span {
        font-size: 1.4rem;
    }

    .hero-content {
        max-width: 90%;
    }

    .mission {
        padding: 5rem 5%;
    }

    .mission-title {
        font-size: 2rem;
    }

    /* Escalamiento móvil para las plataformas */
    .network-brand {
        padding: 0.8rem 1.6rem;
        gap: 0.8rem;
    }

    .network-brand i {
        font-size: 1.4rem;
    }

    .network-brand span {
        font-size: 0.9rem;
    }

    .marquee-track {
        gap: 1.5rem;
    }
}

/* Desktop Centering */
@media (min-width: 1024px) {
    .hero {
        justify-content: center;
        padding-left: 0;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .verse-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================= */
/* BIBLIA LECTOR NATIVO PREMIUM UI */
/* ========================================= */
.reader-body {
    background-color: #1F180B;
    background-image: radial-gradient(circle at 50% 0%, rgba(248, 150, 30, 0.05) 0%, transparent 70%);
    color: var(--text, #ffffff);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100vw;
    font-family: 'Fraunces', serif;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(31, 24, 11, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.reader-icon-btn {
    background: transparent;
    border: none;
    color: var(--text, #ffffff);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    transition: background 0.3s ease;
}

.yv-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yv-version-pill {
    background: rgba(248, 150, 30, 0.15);
    /* orange 0.15 */
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--palette-cream);
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 5px;
    transition: background 0.2s;
}

.yv-version-pill:hover {
    background: rgba(248, 150, 30, 0.3);
}

.reader-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: block;
}

.reader-paper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 30px 100px 30px;
}

/* YV Canvas Header */
.yv-title-area {
    text-align: center;
    margin-bottom: 45px;
}

.yv-book-title {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    color: var(--palette-terra);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}

.yv-chapter-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 6rem;
    line-height: 1;
    color: var(--palette-apricot);
    font-weight: 400;
}

/* YV Inline Verses */
.yv-chapter-content {
    text-align: justify;
    line-height: 2.1;
    font-size: var(--reader-font-base, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    font-family: 'Fraunces', serif;
}

.yv-verse {
    display: inline;
}

.yv-verse-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6em;
    font-weight: 700;
    color: var(--palette-terra);
    opacity: 0.6;
    margin-right: 5px;
    vertical-align: super;
    user-select: none;
}

/* TTS Karaoke Styles */
.yv-chapter-content.tts-playing .yv-verse {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.4s ease;
}

.yv-chapter-content.tts-playing .yv-verse.tts-active {
    color: var(--palette-cream);
    text-shadow: 0 0 15px rgba(249, 192, 116, 0.25);
    /* apricot glow */
}

/* YV Bottom Nav Bar Gradient Override */
.yv-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(31, 24, 11, 1) 40%, rgba(31, 24, 11, 0.8) 75%, transparent);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.yv-bottom-bar.hidden {
    transform: translateY(100%);
}

.yv-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--palette-orange);
    border: none;
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.yv-play-btn:hover {
    transform: scale(1.05);
    background: var(--palette-apricot);
}

.yv-nav-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    transition: background 0.2s;
}

.yv-arrow {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    transition: background 0.2s;
}

.yv-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.yv-current-book {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    letter-spacing: 0.5px;
}

/* Modals Nativos - Estilo Full Screen Premium */
.reader-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* Fix para WebView */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.reader-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.reader-modal-content {
    background: #0d0d0d;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: clamp(20px, 5%, 50px);
    transform: translateY(30px) scale(0.98);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    display: flex;
    flex-direction: column;
    border: none;
    overflow-y: hidden;
}

.reader-modal-overlay.open .reader-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: var(--text, #ffffff);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.books-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding-bottom: 40px;
}

.chapters-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 12px;
    padding-bottom: 40px;
}

.grid-item {
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text, #ffffff);
    transition: all 0.2s ease;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.grid-item.active {
    background: var(--accent, #F8961E);
    color: #111;
    border-color: var(--accent, #F8961E);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent, #F8961E);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================== PROMO POPUP ================== */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.promo-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-bottom-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.promo-content-fullscreen {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 2rem 5% 5rem 5%;
    max-width: 1000px;
    width: 100%;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.promo-overlay.show .promo-content-fullscreen {
    transform: translateY(0);
}

.promo-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Fraunces', serif;
    color: #fff;
}

.promo-title span {
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
}

.promo-desc {
    font-size: 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 600px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ========================================================== */
/* BIBLIOTECA — CATÁLOGO UNIVERSAL DE LIBROS                  */
/* ========================================================== */
.biblioteca-body {
    background-color: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 150, 30, 0.04) 0%, transparent 50%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* LIBRERÍA MODERN MINIMALIST - FORZADO */
.biblioteca-body {
    background-color: #0a0a0a !important;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Header con Padding y sin Logo Derecho */
.bib-header-new {
    display: flex;
    align-items: center;
    padding: 30px 24px;
    /* Padding renovado */
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Botón de Atrás solo ICONO */
.bib-back-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
}

/* Sin efectos Hover en todo el sitio */
.bib-back-btn:hover,
.bib-card:hover,
.bib-tab:hover,
.bib-continue-card:hover,
.bib-search-box:focus-within {
    transform: none !important;
    background: inherit;
    border-color: inherit;
    box-shadow: none !important;
}

.bib-title-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    flex-grow: 1;
    text-align: center;
    padding-right: 24px;
    /* Equilibra el centrado por el botón de la izq */
}

/* Contenedor con Padding Lateral Fijo */
.bib-container-main {
    width: 100%;
    padding: 20px 24px 80px 24px;
    box-sizing: border-box;
    max-width: 100%;
}

.bib-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: normal !important;
    /* Letras juntas y naturales */
}

.bib-history-top {
    margin-bottom: 50px;
}

.bib-search-area {
    margin-bottom: 50px;
}

/* Buscador Estilo Pastilla Total (Pill) */
.bib-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 16px 28px !important;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.bib-search-icon {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 24px !important;
}

.bib-search-box input {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    width: 100%;
    outline: none;
    letter-spacing: normal !important;
}

/* Eliminación total de mayúsculas y espaciado de letras */
* {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.bib-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-left: -24px !important;
    /* Se expande al borde izquierdo */
    margin-right: -24px !important;
    /* Se expande al borde derecho */
    padding-left: 24px !important;
    /* Mantiene el inicio alineado con el texto */
    padding-right: 24px !important;
    /* Espacio extra al final del scroll */
    margin-bottom: 40px;
    scrollbar-width: none;
}

.bib-tabs::-webkit-scrollbar {
    display: none;
}

.bib-tab {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.bib-tab.active {
    background: #ffffff;
    color: #000000;
}

.bib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.bib-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.bib-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.bib-tab.active {
    background: #F8961E;
    color: #000;
    border-color: #F8961E;
}

.bib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.bib-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.bib-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: #F9C074;
}

.bib-card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: #F9C074;
    margin: 10px 0;
}

/* RESET de anchos en Header */
.header-left,
.header-right {
    display: flex;
    padding: 0;
    /* Limpiamos paddings de grid previos */
}

/* Carruseles Inmersivos: Fluyen hasta el borde de la pantalla */
.bib-continue-cards {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    width: auto;
    margin-left: -24px;
    /* Se expande al borde izquierdo */
    margin-right: -24px;
    /* Se expande al borde derecho */
    padding-left: 24px;
    /* Alinea el inicio del contenido con el eje central */
    padding-right: 24px;
    /* Espacio extra al final del scroll */
    padding-bottom: 20px;
    scrollbar-width: none;
}

/* Restauración de Estilos Premium: Botón y Buscador */
.bib-back-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bib-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.bib-search-area {
    margin: 10px 0 35px 0;
    width: 100%;
}

.bib-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px 22px;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.bib-search-box:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--palette-orange);
    box-shadow: 0 0 40px rgba(248, 150, 30, 0.08);
}

.bib-search-icon {
    color: var(--palette-orange);
    font-size: 26px;
    opacity: 0.9;
}

.bib-search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.bib-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}


.bib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.bib-search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    width: 100%;
    outline: none;
}


.bib-search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.bib-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Sección Continuar Leyendo */
.bib-continue {
    padding: 0 5% 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bib-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bib-section-title .material-symbols-rounded {
    font-size: 20px;
    color: var(--palette-orange);
}

.bib-continue-cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.bib-continue-cards::-webkit-scrollbar {
    display: none;
}

.bib-continue-card {
    flex-shrink: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bib-continue-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--card-accent, var(--palette-orange));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.bib-cont-info {
    flex: 1;
}

.bib-cont-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 3px;
}

.bib-cont-pos {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.bib-cont-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.bib-cont-bar {
    height: 100%;
    background: var(--card-accent, var(--palette-orange));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bib-cont-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-accent, var(--palette-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111;
}

.bib-cont-play .material-symbols-rounded {
    font-size: 22px;
}

/* Alineación Final: Reset de contenedores secundarios */
.bib-categories,
.bib-grid-section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.bib-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.bib-tabs::-webkit-scrollbar {
    display: none;
}

.bib-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.bib-tab .material-symbols-rounded {
    font-size: 18px;
}

.bib-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bib-tab.active {
    background: var(--palette-orange);
    color: #111;
    border-color: var(--palette-orange);
}

.bib-tab.active .material-symbols-rounded {
    color: #111;
}

/* Grid de Libros */
.bib-grid-section {
    padding: 1.5rem 5% 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.bib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card de Libro */
.bib-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: bibCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    display: flex;
    flex-direction: column;
}

@keyframes bibCardIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bib-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--palette-orange));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 60px -15px var(--card-accent, rgba(248, 150, 30, 0.2));
}

.bib-card-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--card-accent, rgba(248, 150, 30, 0.08)) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bib-card:hover .bib-card-glow {
    opacity: 1;
}

.bib-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
}

.bib-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent, var(--palette-orange));
    flex-shrink: 0;
}

.bib-card-icon .material-symbols-rounded {
    font-size: 24px;
}

.bib-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 50px;
}

.bib-badge-cat {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.bib-badge-reading {
    background: rgba(248, 150, 30, 0.15);
    color: var(--palette-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.bib-card-title {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.2;
    color: #fff;
}

.bib-card-author {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
    font-weight: 500;
}

.bib-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 18px;
}

.bib-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bib-card-chaps {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bib-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.bib-card-arrow .material-symbols-rounded {
    font-size: 18px;
}

.bib-card:hover .bib-card-arrow {
    background: var(--card-accent, var(--palette-orange));
    color: #111;
}

/* Footer Biblioteca */
.bib-footer {
    text-align: center;
    padding: 2rem 5% 4rem 5%;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.25);
}

.bib-footer strong {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Biblioteca */
@media (max-width: 768px) {
    .bib-hero-title {
        font-size: 2.5rem;
    }

    .bib-grid {
        grid-template-columns: 1fr;
    }

    .bib-card {
        padding: 22px;
    }
}

@media (min-width: 1024px) {
    .bib-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === VERSE ACTIONS & IMAGE GENERATOR === */
.yv-verse {
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
    padding: 2px 0;
}

.yv-verse:active {
    background: rgba(248, 150, 30, 0.15);
}

.yv-verse.selected {
    background: rgba(248, 150, 30, 0.25);
}

.verse-actions-bar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    gap: 5px;
    z-index: 1500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    opacity: 0;
}

.verse-actions-bar.active {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    opacity: 1;
}

.action-item {
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50px;
    font-family: Plus Jakarta Sans;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-item span.material-symbols-rounded {
    font-size: 18px;
    color: var(--palette-apricot);
}

.action-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.bg-opt.active {
    border-color: #fff !important;
    transform: scale(1.1);
}

.font-opt.active {
    background: var(--palette-orange) !important;
    color: #fff !important;
    border-color: var(--palette-orange) !important;
}

.capture-card {
    transition: all 0.4s ease;
}

.pos-opt.active {
    background: var(--palette-orange) !important;
    color: #fff !important;
    border-color: var(--palette-orange) !important;
}

/* Footer Style */
.main-footer {
    background-color: #0a0a0a;
    padding: 6rem 5% 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo span {
    font-size: 2.2rem;
    color: var(--palette-orange);
}

.footer-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.4;
    user-select: none;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    user-select: none;
}

.footer-links h3,
.footer-social h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--palette-apricot);
    user-select: none;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-social .social-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social .social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background: var(--palette-orange);
    border-color: var(--palette-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(248, 150, 30, 0.3);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding: 4rem 5% 3rem 5%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

/* MODO APP (SPA VIEW SWITCHER) */
.app-view {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
    /* Espacio para el navbar */
}

.app-view.active {
    display: block;
    animation: fadeInView 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTTOM NAVBAR */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: var(--navbar-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    padding-bottom: env(safe-area-inset-bottom);
    /* iOS support */
}

.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.nav-btn .material-symbols-rounded {
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
    /* Remover fill x default y que se active al estar activo */
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: font-variation-settings 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
}

/* El Pill (Indicador de Activo) en MD3 se expande horizontalmente */
.nav-btn .material-symbols-rounded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 150, 30, 0.15);
    /* Píldora MD3 - Orange Theme */
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transform: scaleX(0.4);
    /* Escala cerrada por defecto */
    transition: transform 0.3s cubic-bezier(0.2, 0.0, 0, 1.0), opacity 0.2s ease;
}

.nav-btn.active .material-symbols-rounded::before {
    opacity: 1;
    transform: scaleX(1);
    /* Expansión a 64px width */
}

/* Efecto Rebote en el tap para imitar Ripple sutilmente si es táctil */
.nav-btn:active .material-symbols-rounded {
    transform: scale(0.9);
}

.nav-btn .nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    transition: font-weight 0.2s ease;
}

.nav-btn.active {
    color: var(--palette-orange);
}

.nav-btn.active .nav-label {
    font-weight: 700;
    /* MD3 vuelve bold al texto activo */
}

.nav-btn.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

/* RESPONSIVE TABLET / DESKTOP APP LAYOUT */
@media (min-width: 768px) {
    .app-view {
        padding-bottom: 0;
        padding-left: 100px;
        /* Espacio para el panel lateral de navegación */
    }

    .home-view-pad {
        padding-left: calc(100px + 5%);
        padding-bottom: 50px; 
    }

    .bottom-navbar {
        top: 0;
        bottom: auto;
        left: 0;
        width: 100px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        border-top: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0;
        padding-top: var(--header-height);
        /* Evita cubrir los elementos del header superior */
        gap: 2.5rem;
        /* Separación entre iconos */
    }

    .nav-btn {
        flex: 0 0 auto;
        padding: 1rem 0;
    }

    .nav-btn:hover {
        color: var(--palette-apricot);
    }

    header {
        justify-content: center;
        /* Asegura que el logo se mantenga en el centro */
    }
}