            * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            padding-top: 80px;
        }

        header {
            background-color: #ffffff;
            padding: 1rem 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: all 0.3s;
        }

        .logo-container {
          display: flex;
          justify-content: space-between; /* separa logo a la izq y botones a la der */
          align-items: center;
        }
        
        .logo-container .header-right {
          display: flex;
          gap: 0.5rem;   /* espacio entre botones */
        }

        .logo {
            height: 50px;
            width: auto;
            margin-right: 50px;
            margin-left: -10px;
        }

        .nav-container {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .search-form {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: #3498db;
            padding: 5px;
            background: none;
            border: none;
        }

        .mobile-search-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: #3498db;
            padding: 5px;
            background: none;
            border: none;
        }

        .header-right {
            display: flex;
            align-items: center;
        }
        
    .nav-menu {
        display: flex;
        gap: 20px;
    }

        header.scrolled {
            padding: 0.5rem 2rem;
            background-color: rgba(255,255,255,0.98);
            box-shadow: 0 2px 15px rgba(0,0,0,0.15);
        }

        .dropdown-menu {
            max-height: 300px;
            overflow-y: auto;
        }

        .btn.rounded-circle {
            width: 40px;
            height: 40px;
            text-align: center;
            padding: 0;
            font-size: 1.5rem;
            line-height: 38px;
        }

        .highlight {
            background-color: #ffffbd;
            transition: background-color 0.5s ease;
        }


        .nav-arrows {
            position: fixed;
            top: 60%;
            width: 100%;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            pointer-events: none; /* Evita que el contenedor interfiera con clics */
        }
        
        .nav-prev, .nav-next {
            pointer-events: auto; /* Permite clics en los botones */
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
        }
        
        .nav-prev {
            left: 10px;
        }
        
        .nav-next {
            right: 10px;
        }        

        .verse-container {
            position: relative;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .verse-container:hover {
            background-color: rgba(0,0,0,0.05);
        }

        .verse-container.selected {
            background-color: #e9ecef;
            border-left: 3px solid #0d6efd;
        }

        .verse-container.active {
            background-color: rgba(0,123,255,0.1);
        }
        
        .verse-container.active, .verse-container.verse-reading {
            background-color: #ffffbd;
        }
                    
        .verse-actions {
            position: absolute;
            right: 0;
            top: 0;
            display: none;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            border-radius: 4px;
            z-index: 10;
            padding: 2px;
            gap: 2px;
        }

        .verse-container.active .verse-actions {
            display: flex;
        }

        .verse-actions button,
        .verse-actions a.btn-action {
            padding: 3px 6px;
            font-size: 0.85rem;
            border-radius: 4px;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            border: 1px solid #dee2e6;
            background-color: white;
            color: #212529;
            text-decoration: none;
            cursor: pointer;
        }

        .verse-actions button:hover,
        .verse-actions a.btn-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            background-color: #f8f9fa;
        }

        .verse-actions button i,
        .verse-actions a.btn-action i {
            font-size: 0.9rem;
        }

        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1100;
        }

        .verse-highlight {
            background-color: rgba(255,255,0,0.3);
            animation: highlight 2s ease-out;
        }

        @keyframes highlight {
            from { background-color: rgba(255,255,0,0.6); }
            to { background-color: rgba(255,255,0,0.3); }
        }

        @media (max-width: 992px) {
            .nav-container {
                gap: 15px;
            }
        }



        @media (max-width: 768px) {
            
        .logo-container {
          display: flex;
          justify-content: space-between;
          align-items: center;
          position: relative; /* necesario para centrar el logo con absolute */
          width: 100%;
        }
        
        .logo-container a {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
        }
        
          .logo {
            margin-right: 10px;
            margin-left: 0;
        }
  
        .nav-menu {
            flex-direction: column;
            width: 100%;
            gap: 10px;
        }
        
        .nav-menu li {
            width: 100%;
            padding: 0.5rem 0;
        }
        
        .nav-menu a {
            display: block;
            width: 100%;
            padding: 0px;
            text-align: left;
        } 
        
        
            body {
                padding-top: 70px;
            }

            .menu-toggle, .mobile-search-toggle {
                display: block;
            }

            .nav-container {
                width: 100%;
                order: 3;
                flex-direction: column;
                align-items: flex-start;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease-out;
                gap: 10px;
                padding-left: 0;
                margin-top: 0;
            }

            .nav-container.active {
                max-height: 500px;
                padding: 1rem 0;
            }

            .search-form {
                width: 100%;
            }

            .search-form input {
                flex-grow: 1;
            }

            .nav-arrows a {
                width: 35px;
                height: 35px;
                line-height: 35px;
                font-size: 1.2rem;
            }
            
            
            
            .nav-arrows {
                position: fixed;
                top: 60%;
                width: 100%;
                z-index: 1000;
                display: flex;
                justify-content: space-between;
                pointer-events: none; /* Evita que el contenedor interfiera con clics */
            }
            
            .nav-prev, .nav-next {
                pointer-events: auto; /* Permite clics en los botones */
                font-size: 1.5rem;
                width: 40px;
                height: 40px;
                line-height: 40px;
                text-align: center;
            }


            .nav-prev {
                left: 10px;
            }

            .nav-next {
                right: 10px;
            }
        
            .verse-container.active, .verse-container.verse-reading {
            background-color: #ffffbd;
        }
        
        }

        .capitulos-btn {
            min-width: 42px;
        }

        .verse-container.selectable.selected {
            background-color: #fff9c4;
        }

        .font-small {
            font-size: 14px;
        }

        .font-medium {
            font-size: 16px;
        }

        .font-large {
            font-size: 18px;
        }

        .font-xlarge {
            font-size: 20px;
        }

        .font-xxlarge {
            font-size: 22px;
        }
        
        
/* --- Fix: alinear los botones a la derecha --- */
.logo-container {
  display: flex;
  align-items: center;
  flex: 1 1 auto; /* reemplaza flex-grow / flex-shrink separados */
}

/* Empuja el contenedor de botones hacia la derecha */
.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;   /* clave para llevarlos a la derecha */
  gap: 0.5rem;         /* espacio entre los dos botones */
}


