
body {
            background-color: #f5f5f5;
            font-family: 'Roboto', sans-serif;
        }

        .bible-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            padding-top: 120px; /* Aumentado para evitar superposición con la barra principal */
        }
        .bible-container-header {
            position: fixed;
            width: 100%;
           /*   z-index: 1000; /* Asegura que esté por encima de otros elementos */
            margin: 0 auto;
            padding: 20px;
        }

        .bible-header {
            background: white;
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .current-book {
            background: #880e4f;
            color: white;
            padding: 8px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 17px;
        }

        .current-book:hover {
            background: #ad1457;
            transform: translateY(-1px);
        }

        .search-container {
            flex: 1;
            min-width: 300px;
        }

        .search-input {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s ease;
        }

        .search-input:focus {
            border-color: #880e4f;
        }

        .search-icon {
            background: none;
            border: none;
            color: #880e4f;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bible-content {
            background: white;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            min-height: 600px;
            line-height: 1.8;
        }

        .chapter-title {
            font-size: 2.5em;
            color: #880e4f;
            margin-bottom: 30px;
            text-align: center;
            font-weight: 300;
        }

        .verse {
            margin-bottom: 0;
            padding: 2px 0;
            cursor: pointer;
            transition: background-color 0.2s;
            display: inline;
        }

        .verse:hover {
            background-color: #f5f5f5;
        }

        .verse.selected {
            background-color: #e3f2fd;
        }

        .verse-number {
            font-weight: bold;
            color: #880e4f;
            margin-right: 8px;
            font-size: 0.9em;
            vertical-align: super;
        }

        .verse-text {
            font-size: 16px;
            color: #333;
        }

        .verse.highlighted {
            background-color: #fff3e0;
            border-left: 4px solid #ff9800;
        }

        .verse.highlighted-yellow {
            background-color: #fffde7;
            border-left: 4px solid #ffeb3b;
        }

        .verse.highlighted-green {
            background-color: #f1f8e9;
            border-left: 4px solid #4caf50;
        }

        .verse.highlighted-blue {
            background-color: #e3f2fd;
            border-left: 4px solid #2196f3;
        }

        .verse.highlighted-red {
            background-color: #ffebee;
            border-left: 4px solid #f44336;
        }

        .navigation-arrows {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            display: flex;
            justify-content: space-between;
        }


        .nav-arrow {
            background: #880e4f;
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            pointer-events: all;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-arrow:hover {
            background: #ad1457;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        .nav-arrow:focus {
            background-color: #880e4f;
        }

        .nav-arrow:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .sidebar {
            width: 100%;
            max-height: 50%;
            background: white;
            border-radius: 15px 15px 0 0;
            animation: slideUp 0.6s ease-out;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .sidebar-header {
            background: linear-gradient(30deg, #454343 0%, #880e4f 100%);
            color: white;
            padding: 15px;
            font-size: 18px;
            font-weight: bold;
            border-bottom: 1px solid #34495e;
            display: flex;
            justify-content: center;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 10;
            text-align: center;
        }

        .sidebar-header h5 {
            margin: 0;
            font-size: 18px;
            font-weight: 500;
            flex: 1;
            text-align: center;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: absolute;
            top: 10px;
            right: 15px;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: scale(1.1);
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
        }

        #booksContainer {
            padding: 15px;
        }

        .book-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            margin: 5px 0;
            background: #f8f9fa;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .book-item:hover {
            background: #880e4f;
            color: white;
            transform: translateX(3px);
            box-shadow: 0 2px 8px rgba(136, 14, 79, 0.2);
        }

        .book-name {
            font-weight: 500;
            font-size: 14px;
        }

        .book-arrow {
            font-size: 12px;
            transition: transform 0.2s ease;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .book-arrow.rotated {
            transform: rotate(180deg);
        }

        .chapters-dropdown {
            margin-left: 15px;
            margin-bottom: 10px;
            border-left: 2px solid #880e4f;
            padding-left: 15px;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                max-height: 0;
            }

            to {
                opacity: 1;
                max-height: 300px;
            }
        }

        .chapters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
            gap: 6px;
            margin-top: 10px;
        }

        .chapter-btn {
            padding: 8px 4px;
            background: #e9ecef;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            color: #495057;
        }

        .chapter-btn:hover {
            background: #880e4f;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(136, 14, 79, 0.3);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .sidebar {
                width: 85vw;
                right: -85vw;
            }

            .sidebar.open {
                right: 0;
            }

            .sidebar-header {
                padding: 15px;
            }

            .close-btn {
                width: 30px;
                height: 20px;
                font-size: 30px;
                right: 10px;
            }

            #booksContainer {
                padding: 10px;
            }

            .book-item {
                padding: 10px 12px;
                margin: 3px 0;
            }

            .chapters-grid {
                grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
                gap: 4px;
            }

            .chapter-btn {
                padding: 6px 2px;
                font-size: 11px;
            }
        }

        @media (max-width: 480px) {
            .sidebar {
                width: 90vw;
                right: -90vw;
            }

            .chapters-grid {
                grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
            }
        }

        .books-list {
            padding: 20px;
        }

        .testament-section {
            margin-bottom: 30px;
        }

        .testament-title {
            font-size: 18px;
            font-weight: bold;
            color: #880e4f;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 2px solid #880e4f;
        }

        .book-item {
            display: block;
            padding: 10px 15px;
            margin: 5px 0;
            background: #f5f5f5;
            border-radius: 5px;
            text-decoration: none;
            color: #333;
            transition: all 0.2s ease;
        }

        .book-item:hover {
            background: #880e4f;
            color: white !important;
            transform: translateX(5px);
        }

        .chapters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
            gap: 5px;
            margin-top: 10px;
        }

        .chapter-btn {
            padding: 8px;
            background: #e0e0e0;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
        }

        .chapter-btn:hover {
            background: #880e4f;
            color: white;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 999;
            display: none;
            align-items: flex-end;
        }

        .overlay.show {
            display: flex;
        }

        .audio-player {
            position: static;
            bottom: 90px;
            right: 20px;
            background: #880e4f;
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .audio-player:focus {
            background: #ad1457;
        }

        .audio-player:hover {
            background: #ad1457;
            transform: scale(1.1);
        }

        .verse-menu {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 15px 15px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            min-width: 200px;
        }

        .verse-menu.show {
            transform: translateY(0);
        }

        .opciones-menu {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 15px 15px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            min-width: 200px;
        }

        .opciones-menu.show {
            transform: translateY(0);
        }

        /* Animación para empujar navigation-arrows hacia arriba */
        .navigation-arrows {
            transition: transform 0.3s ease;
        }

        .navigation-arrows.pushed-up {
            transform: translateY(-200px);
        }

        .navigation-arrows.empujar {
            transform: translateY(-100px);
        }

        .color-options {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .selected-color-indicator {
            width: 30px;
            height: 30px;
            border: 2px solid #ddd;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s ease;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
        }

        .selected-color-indicator:hover {
            transform: scale(1.1);
        }

        .remove-highlight {
            color: black;
            font-size: 16px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
            cursor: pointer;
            user-select: none;
        }

        .color-btn {
            width: 30px;
            height: 30px;
            border: 2px solid #ddd;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .color-btn:hover {
            transform: scale(1.1);
        }

        .color-yellow {
            background: #ffeb3b;
        }

        .color-green {
            background: #4caf50;
        }

        .color-blue {
            background: #2196f3;
        }

        .color-red {
            background: #f44336;
        }

        .color-orange {
            background: #ff9800;
        }

        .comment-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-top: 10px;
            resize: vertical;
            min-height: 60px;
        }

        .comment-btn {
            background: #880e4f;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 8px;
        }

        .loading {
            text-align: center;
            padding: 50px;
            color: #666;
        }

        /* Búsqueda global repetido
        .search-overlay {
            position: relative;
            left: 0;
            right: 0;
            top: 5vh;
            bottom: 0;
            background: white;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            transition: bottom 0.3s ease;
            bottom: -100vh;
            overflow-y: auto;
        }

        .search-overlay.open {
            bottom: 0;
        } */

        .search-overlay-header {
            padding: 20px;
            border-bottom: 1px solid #880e4f;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .search-overlay-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #880e4f;
            border-radius: 25px;
            font-size: 16px;
            outline: none;
        }

        .search-overlay-input:hover {
            border-color: #880e4f;
        }

        .search-overlay-input:focus {
            border-color: #880e4f;
        }

        .search-results {
            padding: 20px;
        }

        .search-result-item {
            padding: 15px;
            border-bottom: 1px solid #880e4f;
            cursor: pointer;
            transition: backgroundx 0.2s ease;
        }

        .search-result-item:hover {
            background: #f5f5f5;
        }

        .search-result-reference {
            font-weight: bold;
            color: #880e4f;
            margin-bottom: 5px;
        }

        .search-result-text {
            color: #333;
            line-height: 1.5;
        }

        .search-highlight {
            background: #ffeb3b;
            padding: 2px 4px;
            border-radius: 2px;
        }

        /* Estilos para búsqueda global */
        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 999;
            display: none;
            align-items: flex-end;
        }

        .search-overlay.show {
            display: flex;
        }

        .search-panel {
            position: absolute; 
            bottom: 0; 
            left: 0; 
            width: 100%;
            max-height: 50%;
            overflow-y: auto;
            background: white;
            border-radius: 15px 15px 0 0;
            animation: slideUp 0.6s ease-out;
            display: flex;
            flex-direction: column;
        }

        @keyframes slideUp {
            from {
                transform: translateY(60%);
            }

            to {
                transform: translateY(0);
            }
        }

        .search-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-header input {
            flex: 1;
            padding: 12px;
            border: 1px solid #880e4f;
            border-radius: 8px;
            font-size: 16px;
            margin-right: 10px;
        }

        .search-header input:focus {
            border-bottom: 1px solid #880e4f !important;
            box-shadow: 0 1px 0 0 #880e4f !important;
            outline: none !important;
        }

        .search-header input:focus:not([readonly]) {
            border-bottom: 1px solid #880e4f !important;
            box-shadow: 0 1px 0 0 #880e4f !important;
        }

        .search-btn {
            background: #880e4f;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }

        .search-btn:hover {
            background: #880e4f !important;
        }


        .search-close-btn {
            background: #880e4f;
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
        }

        .search-close-btn:hover {
            background: #880e4f !important;
        }

        .search-results {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }

        .search-result-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .search-result-item:hover {
            background-color: #f5f5f5;
        }

        .search-result-reference {
            font-weight: bold;
            color: #1976d2;
            margin-bottom: 5px;
        }

        .search-result-text {
            color: #333;
            line-height: 1.4;
        }

        .search-result-text mark {
            background-color: #ffeb3b;
            padding: 2px 4px;
            border-radius: 3px;
        }

        /* Estilos para navegación rediseñada */
        .book-item {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.2s;
        }

        .book-name {
            font-weight: 500;
        }

        .book-arrow {
            font-size: 18px;
            color: #7f8c8d;
            transition: all 0.3s ease;
            transform: rotate(0deg);
            margin-left: auto;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }


        

        
        .book-arrow.rotated {
            transform: rotate(90deg);
            color: white !important;
        }

        .chapters-dropdown {
            background-color: #f9f9f9;
            border-bottom: 1px solid #ddd;
        }

        .chapters-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 8px;
            padding: 15px;
        }

        .chapter-btn {
            background: white;
            border: 1px solid #ddd;
            padding: 8px;
            border-radius: 4px;
            cursor: pointer;
            text-align: center;
            transition: all 0.2s;
        }

        .chapter-btn:hover {
            color: white;
        }
        
.fa-comment {
    color: gray;
}

        @media (max-width: 768px) {
            .bible-container {
                padding: 80px 10px 10px 10px;
            }
            .bible-container-header {
                padding: 10px 10px 0 10px;
                transition: padding 0.3s ease-in-out;
            }
            .bible-container-header.scrolled {
                padding: 0px 10px 0 10px;;
            }
            .bible-header {
                flex-direction: row;
                align-items: center;
                gap: 8px;
                padding: 10px 15px;
                margin-bottom: 0;
            }

            .current-book {
                padding: 6px 12px;
                white-space: nowrap;
                min-width: auto;
            }

            .search-container {
                flex: 1;
                min-width: auto;
            }

            .search-input {
                padding: 8px 12px;
                font-size: 12px;
                display: none;
            }




            .sidebar {
                width: 100%;
                right: -100%;
            }

            .bible-content {
                padding: 15px;
                padding-bottom: 60px;
                /* Espacio extra para los botones fijos */
            }

            .navigation-arrows {
                bottom: 10px;
                left: 20px;
                right: 20px;
                gap: 20px;
            }

            .audio-player {
                position: static;
                font-size: 30px;
            }

            /* Estilos específicos para móvil - Grid de capítulos más grandes */
            .chapters-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 12px;
            }

            .chapter-btn {
                padding: 16px 8px;
                border-radius: 8px;
                font-size: 16px;
                font-weight: 600;
                min-height: 48px;
            }
            
        }
    