/* ========================================
   BIBLE REFERENCE SEARCH STYLES - PREMIUM STUDIO v5.0
   Rediseño total para máxima compatibilidad Web y Móvil
   ======================================== */

.bible-nav-hub {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Tabs: Más compactas y profesionales */
.nav-hub-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hub-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 15px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-tab.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ========================================
   WEB SEARCH GRID - ROBUST & NON-OVERLAPPING
   ======================================== */

.bible-search-form {
    display: flex;
    flex-wrap: wrap;
    /* Permitir que caiga a otra línea si el espacio es crítico */
    gap: 1.25rem;
    align-items: flex-end;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

/* Anchos proporcionales en Web */
.testament-group {
    flex: 2;
    min-width: 180px;
}

.book-group {
    flex: 2.5;
    min-width: 200px;
}

.chapter-group {
    flex: 1;
    min-width: 100px;
}

/* Más ancho para que no se pierda */
.verse-group {
    flex: 1.2;
    min-width: 120px;
}

.button-group {
    flex: 2.2;
    min-width: 220px;
}

/* Suficiente para "ABRIR ESCRITURA" */

/* Labels Estilo Studio */
.form-group label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

/* Inputs y Selects */
.bible-search-form select,
.bible-search-form input {
    width: 100%;
    height: 60px;
    padding: 0 1.25rem;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s;
    outline: none !important;
}

.bible-search-form select:focus,
.bible-search-form input:focus {
    border-color: #6366f1 !important;
    background: rgba(15, 23, 42, 1) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
}

/* Cap y Vers centrado para mejor UI */
.chapter-group input,
.verse-group input {
    text-align: center;
    font-size: 1.2rem !important;
}

.bible-search-form select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 18px !important;
    padding-right: 3rem !important;
}

/* ========================================
   BOTÓN PREMIUM - MEJORADO v5.0
   ======================================== */

.btn-read-bible {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #6366f1 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    white-space: nowrap;
    /* Evitar que el texto se rompa */
    position: relative;
    overflow: hidden;
    animation: shine-glow 3s infinite;
}

@keyframes shine-glow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 15px 35px rgba(168, 85, 247, 0.6);
    }

    100% {
        background-position: 0% 50%;
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    }
}

.btn-read-bible:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.15);
}

.btn-read-bible:active {
    transform: translateY(0) scale(0.98);
}

.btn-read-bible i {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

/* ========================================
   RESPONSIVE - OPTIMIZADO
   ======================================== */

@media (max-width: 1024px) {
    .bible-search-form {
        gap: 1rem;
    }

    .testament-group,
    .book-group {
        flex: 1 1 calc(50% - 1rem);
    }

    .chapter-group,
    .verse-group {
        flex: 1 1 calc(25% - 1rem);
    }

    .button-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .bible-nav-hub {
        padding: 1.5rem;
    }

    .nav-hub-tabs {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }

    .hub-tab span {
        display: none;
    }

    .hub-tab i {
        font-size: 1.4rem;
    }

    .testament-group,
    .book-group {
        flex: 1 1 100%;
    }

    .chapter-group,
    .verse-group {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .button-group {
        flex: 1 1 100%;
        margin-top: 0.5rem;
    }
}