/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2c3e50 100%);
    color: #e8f4f8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Personalización de la barra de scroll */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.8) 0%, rgba(25, 35, 55, 0.8) 100%);
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.6) 0%, rgba(41, 128, 185, 0.8) 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 25, 45, 0.3);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 1) 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(30, 100, 150, 1) 100%);
}

/* Scrollbar para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.6) rgba(15, 25, 45, 0.8);
}

/* Barra superior */
.top-bar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
}

.top-bar-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}


.top-bar-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b8c5d1;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: default;
    font-size: 14px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.login-btn, .register-btn, .logout-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.top-bar-language {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    gap: 10px;
}


.top-bar-language .top-bar-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    padding: 8px 16px;
    height: auto;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    letter-spacing: 0.3px;
    font-weight: 600;
    min-width: auto;
    max-width: auto;
    width: auto;
}

.top-bar-language .top-bar-btn:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.top-bar-language .top-bar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.top-bar-language .top-bar-btn:hover::before {
    opacity: 1;
}

.top-bar-language .top-bar-btn span,
.top-bar-language .top-bar-btn i {
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.top-bar-language .top-bar-btn:hover span,
.top-bar-language .top-bar-btn:hover i {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

/* Estilos específicos para botones cuando muestran información del usuario */
.top-bar-btn.user-info {
    cursor: default !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.top-bar-btn.user-info:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

.top-bar-btn.points-info {
    cursor: default !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2) 0%, rgba(230, 126, 34, 0.1) 100%);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
}

.top-bar-btn.points-info:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(241, 196, 15, 0.3) !important;
}

/* Estilos específicos para el botón de logout */
.logout-btn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.05) 100%) !important;
    border: 1px solid rgba(231, 76, 60, 0.2) !important;
    gap: 8px;
}

.logout-btn::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.15) 100%) !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.15) 100%) !important;
    border-color: rgba(231, 76, 60, 0.4) !important;
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4) !important;
    transform: translateY(-3px) scale(1.02);
}

.logout-btn:hover::before {
    opacity: 1;
}

.logout-btn::after {
    background: linear-gradient(45deg, #e74c3c, #c0392b) !important;
}

.logout-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0.9);
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.logout-btn:hover .logout-icon {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(231, 76, 60, 0.8));
    transform: scale(1.1);
}

.logout-btn .btn-text {
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.logout-btn:hover .btn-text {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
    transform: translateX(2px);
}

/* Estilos del span eliminados ya que solo usamos la imagen */

/* Modal de Recuperar Contraseña - Ahora usa las mismas clases que login */

/* Botón de menú móvil */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    pointer-events: auto;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    height: auto;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.hamburger-menu span {
    width: 18px;
    height: 2px;
    background-color: #b8c5d1;
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-btn:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.mobile-menu-btn:hover .hamburger-menu span {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

/* Modal de Login */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 400px;
    max-width: 90vw;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.login-header h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-close {
    background: none;
    border: none;
    color: #b8c5d1;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-close:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #b8c5d1;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    color: #ffffff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Forzar minúsculas en campos de email */
input[type="email"] {
    text-transform: lowercase !important;
}

/* Contenedor del campo de email con botón de limpiar */
.email-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-container input {
    padding-right: 40px;
}

.clear-email-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-email-btn:hover {
    color: rgba(231, 76, 60, 0.8);
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.clear-email-btn i {
    font-size: 12px;
}

/* Contenedor del campo de contraseña con botón de limpiar */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 80px; /* Espacio para ambos botones */
}

/* Botón de toggle para mostrar/ocultar contraseña en login */
#toggleLoginPassword {
    position: absolute;
    right: 40px; /* Posición a la izquierda del botón clear */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #b8c5d1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

#toggleLoginPassword:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-50%) scale(1.1);
}

#toggleLoginPassword i {
    font-size: 12px;
}

.clear-password-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-password-btn:hover {
    color: rgba(231, 76, 60, 0.8);
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.clear-password-btn i {
    font-size: 12px;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(52, 152, 219, 0.15);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.form-group input::placeholder {
    color: rgba(184, 197, 209, 0.6);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #b8c5d1;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

.remember-me input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remember-me:hover .checkmark {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.remember-me input:checked ~ .checkmark {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.7) 100%);
    border-color: rgba(52, 152, 219, 0.6);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

.forgot-password-info {
    color: #b8c5d1;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    line-height: 1.4;
}

.login-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    color: #b8c5d1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.login-submit:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

/* Modal de Registro */
.register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.register-overlay.active {
    opacity: 1;
    visibility: visible;
}

.register-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 400px;
    max-width: 90vw;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.register-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.register-header h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.register-close {
    background: none;
    border: none;
    color: #b8c5d1;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.register-close:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.register-form {
    padding: 30px;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #b8c5d1;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.2);
}

.toggle-password i {
    font-size: 14px;
}

.password-help {
    display: block;
    color: rgba(184, 197, 209, 0.7);
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.register-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    color: #b8c5d1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.register-submit:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

/* Barra de idiomas */
.language-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}


/* Header y Navegación */
.header {
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(52, 152, 219, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .nav-container {
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        justify-content: flex-start;
        flex: 1;
        position: relative;
    }

/* Botón hamburguesa dentro del menú */
.hamburger-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1002;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.hamburger-menu:hover::before {
    opacity: 1;
}

.hamburger-menu span {
    width: 18px;
    height: 2px;
    background: #b8c5d1;
    border-radius: 2px;
    transition: all 0.4s ease;
    display: block;
    margin: 2px 0;
    z-index: 2;
    position: relative;
}

.hamburger-menu:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.hamburger-menu:hover span {
    background: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    }

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    margin-top: 20px; /* Margen superior para separar del borde superior */
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(52, 152, 219, 0.5));
}

    .nav-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 8px;
        align-items: center;
        width: 100%;
        margin-top: 20px;
        padding: 0 10px;
        flex: 1;
        justify-content: flex-start;
    }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #b8c5d1;
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 200px;
    max-width: 200px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.nav-link span {
    margin-left: 0;
    margin-right: auto;
}

.nav-link .nav-icon {
    margin-left: auto;
    margin-right: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.nav-link i {
    font-size: 18px;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.nav-link:hover i {
    transform: scale(1.3) rotate(5deg);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.nav-icon {
    width: 24px;
    height: 24px;
    transition: all 0.4s ease;
    filter: brightness(0.9);
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    z-index: 2;
    position: relative;
}

.nav-link:hover .nav-icon {
    transform: scale(1.3) rotate(-5deg);
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8));
}

.nav-link img[src*="logo_transp.png"] {
    width: 32px;
    height: 32px;
}

.nav-link img[src*="instagram.png"] {
    width: 28px;
    height: 28px;
}

.nav-link span {
    z-index: 2;
    position: relative;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.nav-link:hover span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

/* Estado activo - mantiene el efecto hover */
.nav-link.active {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.nav-link.active::before {
    opacity: 1;
}

.nav-link.active i {
    transform: scale(1.3) rotate(5deg);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.nav-link.active .nav-icon {
    transform: scale(1.3) rotate(-5deg);
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8));
}

.nav-link.active span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

.nav-link.active::after {
    width: 80%;
}

/* Botón de idioma en el menú lateral */
.language-menu-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%) !important;
    border: 1px solid rgba(52, 152, 219, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: #b8c5d1 !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    display: none; /* Oculto por defecto en escritorio */
}

/* Altura uniforme para todos los botones en vista de escritorio */
@media (min-width: 769px) {
    /* Header adaptativo al contenido en escritorio */
    .header {
        width: auto !important;
        min-width: 200px !important;
        max-width: 400px !important;
    }
    
    /* Main content adaptativo en escritorio */
    .main-content {
        margin-left: var(--menu-width, 250px) !important;
        transition: margin-left 0.3s ease !important;
    }
    
    /* Top bar adaptativo al ancho del menú en escritorio */
    .top-bar {
        left: var(--menu-width, 250px) !important;
        transition: left 0.3s ease !important;
    }
    
    /* Nav links adaptativos al contenido en escritorio */
    .nav-link {
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        white-space: nowrap !important;
        justify-content: flex-start !important;
    }
    .top-bar-btn,
    .user-btn,
    .hamburger,
    .top-bar-language .top-bar-btn {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    
    .hamburger {
        width: 44px !important;
        padding: 0 !important;
    }
    
    .top-bar-language .top-bar-btn {
        padding: 0 16px !important;
    }
    
    /* Controlar el contenido interno de los botones */
    .top-bar-btn *,
    .user-btn *,
    .hamburger *,
    .top-bar-language .top-bar-btn * {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }
    
    /* Espaciado específico para elementos con texto */
    .top-bar-btn .btn-text,
    .user-btn .btn-text {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Iconos dentro de botones */
    .top-bar-btn i,
    .user-btn i,
    .top-bar-language .top-bar-btn i {
        font-size: 14px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Imágenes dentro de botones */
    .logout-icon {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Spans dentro de botones de idioma */
    .top-bar-language .top-bar-btn span {
        font-size: 16px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Contenedores de botones con altura uniforme */
    .user-buttons-container,
    .top-bar-language {
        display: flex !important;
        align-items: center !important;
        height: 44px !important;
    }
    
    /* Gap uniforme entre botones */
    .user-buttons-container {
        gap: 8px !important;
    }
    
    /* Forzar que todos los elementos hijos respeten la altura */
    .top-bar-container > * {
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    
    /* Ocultar botón hamburguesa en escritorio */
    .hamburger {
        display: none !important;
    }
    
    /* Control de botones logout en escritorio */
    .logout-mobile {
        display: none !important; /* Ocultar logout móvil en escritorio */
    }
    
    /* Control de botones usuario en escritorio */
    .mobile-user-btn {
        display: none !important; /* Ocultar botón usuario móvil en escritorio */
    }
    
    /* Control de botones registro en escritorio */
    .mobile-register-btn {
        display: none !important; /* Ocultar botón registro móvil en escritorio */
    }
    
    .desktop-register-btn {
        display: flex !important; /* Mostrar botón registro escritorio */
    }
    
    .logout-desktop {
        display: none !important; /* Oculto por defecto */
    }
    
    .logout-desktop.session-active {
        display: flex !important; /* Mostrar cuando hay sesión activa */
    }
    
    /* Organizar botones en top-bar-language */
    .top-bar-language {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* Posicionamiento específico para escritorio */
    .user-button-left {
        order: 1; /* Primera posición a la izquierda */
        display: flex;
        align-items: center;
        gap: 8px; /* Espacio entre botones iniciar sesión y registrarse */
    }
    
    /* Mantener tamaño original del botón usuario */
    .user-button-left .user-btn {
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        min-width: auto !important;
        max-width: none !important;
    }
    
    .user-buttons-container {
        order: 2; /* Posición central */
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px !important;
    }
    
    .top-bar-language {
        order: 3; /* Última posición a la derecha */
        margin-left: auto;
    }
    
    /* Contenedor de navegación - ocupar toda la altura en escritorio */
    .nav-container {
        height: 100vh !important; /* Altura completa de la ventana */
        padding: 0 !important; /* Sin padding para maximizar espacio */
        justify-content: stretch !important; /* Distribuir contenido */
        display: flex !important; /* Asegurar flexbox */
        flex-direction: column !important; /* Dirección vertical */
    }
    
    /* Menú de navegación - ocupar todo el espacio disponible en escritorio */
    .nav-menu {
        gap: 8px !important; /* Espacio entre botones */
        justify-content: stretch !important; /* Distribuir uniformemente */
        margin-top: 0 !important; /* Sin margen superior */
        padding: 10px 10px 0 10px !important; /* Padding sin bottom para llegar al fondo */
        flex: 1 !important; /* Ocupar todo el espacio disponible */
        min-height: 0 !important; /* Permite que flexbox calcule la altura */
    }
    
    /* Elementos li del menú - distribuir uniformemente en escritorio */
    .nav-item {
        flex: 1 !important; /* Cada elemento ocupa la misma proporción del espacio disponible */
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important; /* Permite redimensionamiento automático */
    }
    
    .nav-link {
        flex: 1 !important; /* El enlace ocupa todo el espacio del li */
        min-height: 0 !important; /* Permite que se ajuste a la altura del contenedor */
        height: auto !important; /* Altura automática para distribuirse uniformemente */
        display: flex !important; /* Asegurar flexbox */
        align-items: center !important; /* Centrar contenido verticalmente */
    }
    
    
    /* Ocultar botón de idioma y su contenedor en el menú lateral en escritorio */
    .language-menu-btn {
        display: none !important;
    }
    
    /* Ocultar completamente el nav-item que contiene el botón language */
    .nav-item:has(.language-menu-btn) {
        display: none !important;
    }
    
    /* Fallback para navegadores que no soportan :has() */
    .nav-item:last-child {
        display: none !important;
    }
    
    /* Asegurar que el último botón visible llegue hasta el fondo */
    .nav-item:nth-last-child(2) {
        margin-bottom: 0 !important;
        padding-bottom: 10px !important; /* Padding para llegar al fondo */
    }
    
    /* Reducir padding y tamaño del logo específicamente para el botón proyecto en escritorio */
    .nav-link[href="#project"] {
        padding: 12px 25px 12px 18px !important; /* Reducir padding izquierdo de 25px a 18px */
    }
    
    .nav-link[href="#project"] img[src*="logo_transp.png"] {
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
    }
    
    /* Reducir padding y tamaño del logo Instagram específicamente para el botón contacto en escritorio */
    .nav-link[href="#contact"] {
        padding: 1px 25px !important;
        min-height: auto !important;
        height: auto !important;
        line-height: 0.8 !important;
        gap: 6px !important;
    }
    
    .nav-link[href="#contact"] span {
        font-size: 10px !important;
        line-height: 0.8 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    .nav-link[href="#contact"] img[src*="instagram.png"] {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        vertical-align: middle !important;
    }
}

/* Mostrar botón de idioma solo en móvil */
@media (max-width: 768px) {
    .language-menu-btn {
        display: flex !important;
    }
}

/* Estilos específicos para navegación activa en móvil */
@media (max-width: 768px) {
    .nav-link.active {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.2) 100%);
        border: 1px solid rgba(52, 152, 219, 0.6);
        box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    }
    
    .nav-link.active i {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(52, 152, 219, 0.9);
        transform: scale(1.2) rotate(3deg);
    }
    
    .nav-link.active .nav-icon {
        filter: brightness(1.4) drop-shadow(0 0 10px rgba(52, 152, 219, 0.9));
        transform: scale(1.2) rotate(-3deg);
    }
    
    .nav-link.active span {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
        font-weight: 700;
    }
    
    /* Indicador visual adicional para móvil */
    .nav-link.active::before {
        content: '●';
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #3498db;
        font-size: 12px;
        z-index: 3;
    }
    
    /* Estilos específicos para botones de usuario en móvil */
    .top-bar-btn.user-info {
        background: linear-gradient(135deg, rgba(46, 204, 113, 0.3) 0%, rgba(39, 174, 96, 0.2) 100%) !important;
        border: 1px solid rgba(46, 204, 113, 0.5) !important;
        color: #2ecc71 !important;
        font-weight: 600 !important;
        text-shadow: 0 0 8px rgba(46, 204, 113, 0.6) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .top-bar-btn.points-info {
        background: linear-gradient(135deg, rgba(241, 196, 15, 0.3) 0%, rgba(230, 126, 34, 0.2) 100%) !important;
        border: 1px solid rgba(241, 196, 15, 0.5) !important;
        color: #f1c40f !important;
        font-weight: 600 !important;
        text-shadow: 0 0 8px rgba(241, 196, 15, 0.6) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .nav-link.active {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.4) 0%, rgba(41, 128, 185, 0.3) 100%);
        border: 2px solid rgba(52, 152, 219, 0.7);
        box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    }
    
    .nav-link.active i {
        transform: scale(1.15) rotate(2deg);
    }
    
    .nav-link.active .nav-icon {
        transform: scale(1.15) rotate(-2deg);
    }
    
    .nav-link.active::before {
        left: 6px;
        font-size: 10px;
    }
    
    /* Estilos específicos para botones de usuario en pantallas muy pequeñas */
    .top-bar-btn.user-info {
        background: linear-gradient(135deg, rgba(46, 204, 113, 0.4) 0%, rgba(39, 174, 96, 0.3) 100%) !important;
        border: 2px solid rgba(46, 204, 113, 0.6) !important;
        color: #2ecc71 !important;
        font-weight: 700 !important;
        text-shadow: 0 0 10px rgba(46, 204, 113, 0.8) !important;
        font-size: 11px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .top-bar-btn.points-info {
        background: linear-gradient(135deg, rgba(241, 196, 15, 0.4) 0%, rgba(230, 126, 34, 0.3) 100%) !important;
        border: 2px solid rgba(241, 196, 15, 0.6) !important;
        color: #f1c40f !important;
        font-weight: 700 !important;
        text-shadow: 0 0 10px rgba(241, 196, 15, 0.8) !important;
        font-size: 11px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* Botón hamburguesa en barra superior */
.hamburger {
    display: none; /* Oculto por defecto en vista normal */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Indicador de sección activa en botón hamburguesa */
.hamburger.has-active-section {
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.hamburger.has-active-section::before {
    content: '●';
    position: absolute;
    top: 2px;
    right: 2px;
    color: #3498db;
    font-size: 8px;
    z-index: 1002;
}

.hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.hamburger:hover::before {
    opacity: 1;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #b8c5d1;
    border-radius: 2px;
    transition: all 0.4s ease;
    display: block;
    margin: 2px 0;
    z-index: 2;
    position: relative;
}

.hamburger:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.hamburger:hover span {
    background: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

/* Contenido principal */
.main-content {
    margin-left: 250px;
    margin-top: 50px;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    /* Sección de inicio ahora es solo un contenedor vacío */
    display: none; /* Oculto por defecto ya que el título es externo */
}

.titulo-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    filter: drop-shadow(0 10px 30px rgba(52, 152, 219, 0.3));
    transition: all 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 20px;
}

.titulo-img:hover {
    transform: none;
    filter: drop-shadow(0 10px 30px rgba(52, 152, 219, 0.3));
}

/* Estilos específicos para títulos externos */
img[id^="titulo-"] {
    max-width: 1200px; /* Mismo ancho máximo que el container */
    margin: 20px auto 30px auto; /* Espacio arriba y abajo, centrado */
    padding: 0; /* Sin padding interno - imagen ocupa todo el borde */
    box-sizing: border-box;
    transition: all 0.3s ease;
    
    /* Mismo borde que hero-section */
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    filter: drop-shadow(0 10px 30px rgba(52, 152, 219, 0.3));
}

img[id^="titulo-"]:hover {
    transform: none;
    filter: drop-shadow(0 10px 30px rgba(52, 152, 219, 0.3));
    border-color: rgba(52, 152, 219, 0.2);
}

/* Efecto hover del título eliminado */

.content-area {
    background: rgba(15, 25, 45, 0.6);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(52, 152, 219, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    filter: drop-shadow(0 15px 40px rgba(52, 152, 219, 0.5));
    transform: translateY(-5px) scale(1.02);
}

.content-area:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 15px 40px rgba(52, 152, 219, 0.5));
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Textos dentro de content-area con efecto hover permanente */
.content-area h1,
.content-area h2,
.content-area h3:not(.account-section h3),
.content-area h4:not(.account-section h4),
.content-area h5,
.content-area h6,
.content-area p:not(.account-section p),
.content-area span:not(.account-section span),
.content-area div:not(.account-section):not(.account-section div) {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.2));
    transition: all 0.3s ease;
    margin-top: 10px !important; /* ✅ Reducir margen superior */
}


.content-area h1:hover,
.content-area h2:hover,
.content-area h3:not(.account-section h3):hover,
.content-area h4:not(.account-section h4):hover,
.content-area h5:hover,
.content-area h6:hover,
.content-area p:not(.account-section p):hover,
.content-area span:not(.account-section span):hover,
.content-area div:not(.account-section):not(.account-section div):hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.2));
}

.placeholder {
    text-align: center;
    color: #b8c5d1;
}

.placeholder h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 20px;
}

.placeholder p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Efectos de partículas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(41, 128, 185, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(93, 173, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        width: 35px;
        height: 35px;
        padding: 6px;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
    }
    
    .header {
        left: -160px;
        width: 160px;
        transition: left 0.3s ease;
    }
    
    .header.active {
        left: 0;
    }
    
    /* Mostrar botón hamburguesa dentro del menú cuando está abierto */
    .header.active .hamburger-menu {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 45px;
        padding: 20px 15px;
    }
    
    .nav-link {
        padding: 10px 12px;
        width: 100%;
        min-width: 120px;
        max-width: 120px;
        margin: 0 6px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-link img[src*="logo_transp.png"] {
        width: 34px;
        height: 34px;
    }
    
    .nav-link img[src*="instagram.png"] {
        width: 30px;
        height: 30px;
    }
    
    .top-bar {
        left: 0;
    }
    
    .top-bar-container {
        padding: 0 5px 0 5px;
        height: 45px;
        justify-content: space-between;
    }
    
    .top-bar-language {
        display: none !important;
    }
    
    /* Los contenedores móviles se mostrarán dinámicamente desde JavaScript */
    
    /* Ocultar contenedores originales en móvil */
    #cuenta.content-area,
    #panel.content-area {
        display: none !important;
    }
    
    /* Eliminar márgenes del título en los contenedores móviles */
    .mobile-account-container #titulo-cuenta,
    .mobile-panel-container #titulo-panel {
        margin-top: 0 !important;    /* ✅ Sin margen superior */
        margin-bottom: 0 !important;
        padding-top: 0 !important;   /* ✅ Sin padding superior */
        padding-bottom: 0 !important;
    }
    
    .top-bar-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .top-bar-language .top-bar-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: auto;
        max-width: auto;
        width: auto;
    }
    
    .logout-btn {
        padding: 10px;
        gap: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
    }
    
    .logout-btn {
        margin-left: auto;
    }
    
    .logout-btn .btn-text {
        display: none;
    }
    
    .logout-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-menu-btn {
        display: flex;
        padding: 10px 15px;
    }
    
    .hamburger {
        width: 32px;
        height: 32px;
        padding: 5px;
    }
    
    .hamburger span {
        width: 16px;
        height: 2px;
    }
    
    .language-bar {
        top: 10px;
        right: 10px;
    }
    
    .login-modal {
        width: 350px;
    }
    
    .login-header {
        padding: 20px 25px 15px;
    }
    
    .login-header h3 {
        font-size: 20px;
    }
    
    .login-form {
        padding: 25px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .login-submit {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .forgot-password-modal {
        width: 350px;
    }
    
    .email-verification-modal {
        width: 350px;
    }
    
    .email-verification-content {
        padding: 25px;
    }
    
    .verification-icon {
        font-size: 40px;
    }
    
    .verification-message {
        font-size: 15px;
    }
    
    .register-modal {
        width: 350px;
    }
    
    .register-header {
        padding: 20px 25px 15px;
    }
    
    .register-header h3 {
        font-size: 20px;
    }
    
    .register-form {
        padding: 25px;
    }
    
    .register-submit {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    
    
    .hero-section {
        display: none; /* Oculto en móvil también */
    }
    
    .content-area {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
        padding: 20px 15px !important;
        transition: none !important;
    }
    
    .content-area:hover {
        transform: none !important;
        filter: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    
    /* Desactivar efectos de texto en móvil */
    .content-area h1,
    .content-area h2,
    .content-area h3:not(.account-section h3),
    .content-area h4:not(.account-section h4),
    .content-area h5,
    .content-area h6,
    .content-area p:not(.account-section p),
    .content-area span:not(.account-section span),
    .content-area div:not(.account-section):not(.account-section div) {
        transform: none !important;
        filter: none !important;
        transition: none !important;
        margin-top: revert !important; /* ✅ Restaurar margen normal en móvil */
    }
    
    .content-area h1:hover,
    .content-area h2:hover,
    .content-area h3:not(.account-section h3):hover,
    .content-area h4:not(.account-section h4):hover,
    .content-area h5:hover,
    .content-area h6:hover,
    .content-area p:not(.account-section p):hover,
    .content-area span:not(.account-section span):hover,
    .content-area div:not(.account-section):not(.account-section div):hover {
        transform: none !important;
        filter: none !important;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        display: none; /* Oculto en todas las resoluciones */
    }
    
    .content-area {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        filter: none !important;
        transform: none !important;
        padding: 15px 10px !important;
        transition: none !important;
    }
    
    .content-area:hover {
        transform: none !important;
        filter: none !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    
    /* Desactivar efectos de texto en móvil pequeño */
    .content-area h1,
    .content-area h2,
    .content-area h3:not(.account-section h3),
    .content-area h4:not(.account-section h4),
    .content-area h5,
    .content-area h6,
    .content-area p:not(.account-section p),
    .content-area span:not(.account-section span),
    .content-area div:not(.account-section):not(.account-section div) {
        transform: none !important;
        filter: none !important;
        transition: none !important;
        margin-top: revert !important; /* ✅ Restaurar margen normal en móvil pequeño */
    }
    
    .content-area h1:hover,
    .content-area h2:hover,
    .content-area h3:not(.account-section h3):hover,
    .content-area h4:not(.account-section h4):hover,
    .content-area h5:hover,
    .content-area h6:hover,
    .content-area p:not(.account-section p):hover,
    .content-area span:not(.account-section span):hover,
    .content-area div:not(.account-section):not(.account-section div):hover {
        transform: none !important;
        filter: none !important;
    }
    
    .logo-img {
        height: 50px;
        max-width: 160px;
        margin-top: 15px; /* Margen superior menor para móvil */
    }
    
    .nav-link {
        padding: 8px 12px;
        width: 100%;
        min-width: 140px;
        max-width: 140px;
        margin: 0 5px;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-link img[src*="logo_transp.png"] {
        width: 30px;
        height: 30px;
    }
    
    .nav-link img[src*="instagram.png"] {
        width: 26px;
        height: 26px;
    }
    
    
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .top-bar {
        left: 0;
    }
    
    .top-bar-container {
        padding: 0 3px 0 3px;
        height: 40px;
        justify-content: space-between;
    }
    
    .top-bar-buttons {
        gap: 3px;
    }
    
    .top-bar-language {
        display: none !important;
    }
    
    .top-bar-btn {
        padding: 6px 8px;
        font-size: 10px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .top-bar-language .top-bar-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: auto;
        max-width: auto;
        width: auto;
    }
    
    .logout-btn {
        padding: 8px;
        gap: 0;
        min-width: 35px;
        width: 35px;
        height: 35px;
    }
    
    .logout-btn {
        margin-left: auto;
    }
    
    .logout-btn .btn-text {
        display: none;
    }
    
    .logout-icon {
        width: 16px;
        height: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
        padding: 6px 8px;
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
        width: 30px;
        height: 30px;
        padding: 4px;
    }
    
    .hamburger span {
        width: 14px;
        height: 2px;
    }
    
    .language-bar {
        top: 5px;
        right: 5px;
    }
    
    .login-modal {
        width: 320px;
    }
    
    .login-header {
        padding: 18px 20px 12px;
    }
    
    .login-header h3 {
        font-size: 18px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    .form-group input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .login-submit {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .forgot-password-modal {
        width: 320px;
    }
    
    .email-verification-modal {
        width: 320px;
    }
    
    .email-verification-content {
        padding: 20px;
    }
    
    .verification-icon {
        font-size: 36px;
    }
    
    .verification-message {
        font-size: 14px;
    }
    
    .register-modal {
        width: 320px;
    }
    
    .register-header {
        padding: 18px 20px 12px;
    }
    
    .register-header h3 {
        font-size: 18px;
    }
    
    .register-form {
        padding: 20px;
    }
    
    .register-submit {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .language-btn-main {
        padding: 6px 8px;
        min-width: 35px;
        font-size: 11px;
    }
    
    .language-dropdown-content {
        position: fixed;
        top: 45px;
        right: 3px;
        left: 3px;
        min-width: auto;
        max-height: 80vh;
        border-radius: 30px;
        box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
        transform: translateY(-40px) scale(0.85);
        z-index: 1002;
    }
    
    .language-dropdown.active .language-dropdown-content {
        transform: translateY(0) scale(1);
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .flag-icon {
        font-size: 14px;
    }
}

/* Mejoras táctiles para móviles */
@media (hover: none) and (pointer: coarse) {
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeInUp 1s ease-out;
}

.content-area {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de hover mejorados */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3498db, #5dade2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Estilos duplicados de recuperar contraseña eliminados - usa los de login */

/* Modal de Recuperar Contraseña - Con z-index más alto para difuminar login */
.forgot-password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001; /* Más alto que login (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-password-overlay.active {
    opacity: 1;
    visibility: visible;
}

.forgot-password-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1002; /* Más alto que overlay (1001) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-password-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal de Verificación de Email */
.email-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-verification-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-verification-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 450px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.email-verification-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.email-verification-content {
    padding: 30px;
    text-align: center;
}

.verification-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
}

.verification-message {
    font-size: 16px;
    color: #ecf0f1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.verification-email {
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.verification-cancel {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid rgba(189, 195, 199, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.verification-cancel:hover {
    background: rgba(189, 195, 199, 0.1);
    border-color: rgba(189, 195, 199, 0.5);
}

.verification-status {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.verification-status.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.verification-status.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Estilos para el estado del cambio de email */
.change-email-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.change-email-status.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.change-email-status.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Modal de cambio de email usa los mismos estilos que forgot-password-modal */

/* ===== NUEVA ESTRUCTURA PARA MÓVIL ===== */


/* Contenedor de botones de usuario */
.user-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

/* Botones de usuario - Estilos del menú */
.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b8c5d1;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-height: auto;
}

.user-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.user-btn:hover::before {
    opacity: 1;
}

.user-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.user-btn .btn-text,
.user-btn i {
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.user-btn:hover .btn-text,
.user-btn:hover i {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

.user-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3498db, #5dade2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.user-btn:hover::after {
    width: 80%;
}

/* Estilos específicos para botones cuando muestran información del usuario */
.user-btn.user-info {
    cursor: default !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71 !important;
    max-width: 35%;
}

.user-btn.user-info:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

.user-btn.user-info .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.user-btn.points-info {
    cursor: default !important;
    pointer-events: none !important;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2) 0%, rgba(230, 126, 34, 0.1) 100%) !important;
    border: 1px solid rgba(241, 196, 15, 0.3) !important;
    color: #f1c40f !important;
    max-width: 35%;
}

.user-btn.points-info:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(241, 196, 15, 0.3) !important;
}

.user-btn.points-info .btn-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}


/* Media queries para la nueva estructura móvil */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        width: 35px;
        height: 35px;
        padding: 6px;
        margin-right: 15px;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
    }
    
    
    /* Control de botones logout en móvil */
    .logout-desktop {
        display: none !important; /* Ocultar logout escritorio en móvil */
    }
    
    .logout-mobile {
        display: none !important; /* Ocultar logout móvil por defecto */
    }
    
    .logout-mobile.session-active {
        display: flex !important; /* Mostrar logout móvil solo con sesión activa */
    }
    
    /* Control de botones usuario en móvil */
    .user-button-left {
        display: none !important; /* Ocultar contenedor usuario escritorio en móvil */
    }
    
    .mobile-user-btn {
        display: flex !important; /* Mostrar botón usuario móvil */
    }
    
    /* Control de botones registro en móvil */
    .desktop-register-btn {
        display: none !important; /* Ocultar botón registro escritorio en móvil */
    }
    
    .mobile-register-btn {
        display: flex !important; /* Mostrar botón registro móvil */
    }
    
    /* Reorganizar para comportamiento móvil original */
    
    .user-buttons-container {
        order: 2; /* Posición después del hamburger */
        flex: 1;
        justify-content: flex-start !important; /* Por defecto alinear botones a la izquierda */
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Cuando hay sesión activa (3 botones), distribuir con space-between */
    .user-buttons-container.session-active {
        justify-content: space-between !important;
    }
    
    .top-bar-language {
        display: none !important; /* Ocultar idioma en móvil */
        order: 3;
        margin-left: 0;
    }
    
    .user-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-height: auto;
    }
    
}

@media (max-width: 480px) {
    .hamburger {
        margin-right: 12px;
    }
    
    .user-buttons-container {
        gap: 4px;
        justify-content: space-between;
        padding-right: 0;
    }
    
    .user-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: auto;
    }
    
    .user-btn .btn-text {
        font-size: 12px;
    }
    
    /* Contenedor de navegación - ocupar toda la altura en móvil */
    .nav-container {
        height: 100vh !important; /* Altura completa de la ventana */
        padding: 0 !important; /* Sin padding para maximizar espacio */
        justify-content: stretch !important; /* Distribuir contenido */
    }
    
    /* Menú de navegación - ocupar todo el espacio disponible en móvil */
    .nav-menu {
        gap: 6px !important; /* Espacio entre botones (menor que escritorio) */
        justify-content: stretch !important; /* Distribuir uniformemente */
        align-items: center !important; /* Centrar horizontalmente en móvil */
        height: calc(100vh - 80px) !important; /* Altura total menos espacio mínimo para logo */
        margin-top: 0 !important; /* Sin margen superior */
        padding: 10px !important; /* Padding mínimo */
        flex: 1 !important; /* Ocupar todo el espacio disponible */
    }
    
    /* Elementos li del menú - distribuir uniformemente en móvil */
    .nav-item {
        flex: 1 !important; /* Cada elemento ocupa la misma proporción del espacio disponible */
        display: flex !important;
        justify-content: center !important; /* Centrar el contenido horizontalmente */
        width: 100% !important;
        min-height: 0 !important; /* Permite redimensionamiento automático */
    }
    
    .nav-link {
        flex: 1 !important; /* El enlace ocupa todo el espacio del li */
        min-height: 0 !important; /* Permite que se ajuste a la altura del contenedor */
        height: auto !important; /* Altura automática para distribuirse uniformemente */
        display: flex !important; /* Asegurar flexbox */
        align-items: center !important; /* Centrar contenido verticalmente */
    }
    
}

/* ===== SELECTOR DE IDIOMA MÓVIL (SOLO EN MÓVIL) ===== */
.language-mobile-item {
    display: none; /* Oculto por defecto */
    position: relative;
}

.language-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #b8c5d1;
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 200px;
    max-width: 200px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.language-mobile-btn span {
    margin-left: 0;
    margin-right: auto;
    z-index: 2;
    position: relative;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.language-mobile-btn .flag-icon {
    margin-left: auto;
    margin-right: 0;
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.language-mobile-btn .language-chevron {
    margin-left: auto;
    margin-right: 0;
    font-size: 18px;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
    color: #7f8c8d;
}

.language-mobile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.15) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}

.language-mobile-btn:hover::before {
    opacity: 1;
}

.language-mobile-btn:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.language-mobile-btn:hover .language-chevron {
    transform: scale(1.3) rotate(5deg);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.language-mobile-btn:hover .flag-icon {
    transform: scale(1.3) rotate(-5deg);
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8));
}

.language-mobile-btn:hover span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

.language-mobile-btn.active {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.4);
}

.language-mobile-btn.active::before {
    opacity: 1;
}

.language-mobile-btn.active .language-chevron {
    transform: scale(1.3) rotate(5deg);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.8);
}

.language-mobile-btn.active .flag-icon {
    transform: scale(1.3) rotate(-5deg);
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(52, 152, 219, 0.8));
}

.language-mobile-btn.active span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    transform: translateX(2px);
}

.language-mobile-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3498db, #5dade2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.language-mobile-btn:hover::after {
    width: 80%;
}

/* Modal de Idiomas para Móvil */
.language-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.language-mobile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.98), rgba(25, 35, 55, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-mobile-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.language-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    background: rgba(52, 152, 219, 0.1);
}

.language-mobile-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.language-mobile-close {
    background: none;
    border: none;
    color: #b8c5d1;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.language-mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

.language-mobile-content {
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.language-mobile-option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    background: transparent;
    border: none;
    color: #b8c5d1;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-mobile-option:last-child {
    border-bottom: none;
}

.language-mobile-option:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #ffffff;
    transform: translateX(10px);
}

.language-mobile-option .flag-icon {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.language-mobile-option .lang-text {
    font-size: 14px;
    font-weight: 500;
}

/* Estilos especiales para la opción de volver */
.language-mobile-option.back-option {
    background: rgba(52, 152, 219, 0.15);
    border-bottom: 2px solid rgba(52, 152, 219, 0.4);
    font-weight: 600;
    margin-bottom: 10px;
}

.language-mobile-option.back-option:hover {
    background: rgba(52, 152, 219, 0.25);
    color: #ffffff;
}

.language-mobile-option.back-option i {
    font-size: 16px;
    color: #3498db;
    margin-right: 10px;
}

.language-mobile-option.back-option .lang-text {
    color: #3498db;
    font-weight: 600;
}

/* ===== MODAL DE IDIOMAS PARA ESCRITORIO ===== */
.language-desktop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-desktop-overlay.active {
    opacity: 1;
    visibility: visible;
}

.language-desktop-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.98), rgba(25, 35, 55, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-desktop-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.language-desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
}

.language-desktop-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.language-desktop-close {
    background: none;
    border: none;
    color: #b8c5d1;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-desktop-close:hover {
    color: #ffffff;
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.language-desktop-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.language-desktop-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    color: #b8c5d1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.language-desktop-option:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.15));
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.language-desktop-option .flag-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.language-desktop-option .lang-text {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

/* Estilos del modal de idiomas para móvil */
@media (max-width: 768px) {
    .language-desktop-modal {
        width: 85vw;
        max-width: 300px;
        max-height: 60vh;
        border-radius: 12px;
    }
    
    .language-desktop-header {
        padding: 15px 20px;
    }
    
    .language-desktop-header h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .language-desktop-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .language-desktop-content {
        padding: 0 20px 20px;
        max-height: 40vh;
    }
    
    .language-desktop-option {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .language-desktop-option .flag-icon {
        font-size: 18px;
    }
}

/* ===== ESTILOS DE LA PÁGINA DE CUENTA ===== */
.account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.account-container h2 {
    color: #3498db;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.account-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.account-section {
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(52, 152, 219, 0.3));
}

.account-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    filter: drop-shadow(0 8px 20px rgba(52, 152, 219, 0.3));
}

.account-section h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #3498db, #5dade2);
    border-radius: 2px;
}

/* Información personal */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #b8c5d1;
    font-weight: 600;
    font-size: 14px;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

/* Botones de acción */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 10px;
    color: #b8c5d1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.account-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.account-btn:hover::before {
    opacity: 1;
}

.account-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.4);
}

.account-btn i {
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.account-btn span {
    z-index: 2;
    position: relative;
}

.account-btn#deleteAccountBtn {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.05) 100%);
    border-color: rgba(231, 76, 60, 0.2);
}

.account-btn#deleteAccountBtn::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.1) 100%);
}

.account-btn#deleteAccountBtn:hover {
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.4);
}

/* Estadísticas */
.account-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.stat-label {
    color: #b8c5d1;
    font-weight: 500;
    font-size: 14px;
}

.stat-value {
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
}


/* ===== CONTENEDOR FLEXBOX MÓVIL - PÁGINA CUENTA ===== */
.mobile-account-container {
    display: none; /* Oculto por defecto, se mostrará solo en móvil */
    flex-direction: column;
    justify-content: flex-start; /* ✅ Cambiar a flex-start para eliminar espaciado automático */
    align-items: center;
    min-height: calc(100vh - 80px); /* Altura completa menos el top bar */
    padding: 2px 15px 5px 15px; /* ✅ Padding inferior aún más reducido */
    gap: 0; /* Sin gap */
}

.mobile-account-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0px; /* ✅ Sin margen negativo para separar un poco más del título */
    margin-bottom: 3px; /* ✅ Espacio aún más reducido después de "Mi Cuenta" */
}

.mobile-account-title h2 {
    color: #3498db;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    margin: 0 !important; /* ✅ Sin márgenes con !important */
    padding: 0 !important; /* ✅ Sin padding */
}

.mobile-account-section-1 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px; /* ✅ Espacio ligeramente más reducido desde "Mi Cuenta" */
}

.mobile-account-section-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px; /* ✅ Espacio muy ligeramente reducido entre recuadros */
}

.mobile-account-section-1 .account-section,
.mobile-account-section-2 .account-section {
    width: 100%;
    max-width: 400px;
}

/* ===== CONTENEDOR FLEXBOX MÓVIL - PÁGINA PANEL ===== */
.mobile-panel-container {
    display: none; /* Oculto por defecto, se mostrará solo en móvil */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2px 15px 5px 15px;
    gap: 0;
}

.mobile-panel-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 3px;
}

.mobile-panel-title h2 {
    color: #3498db;
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-panel-section-1 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.mobile-panel-section-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.mobile-panel-section-1 .account-section,
.mobile-panel-section-2 .account-section {
    width: 100%;
    max-width: 400px;
}



/* Responsive para cuenta */
@media (max-width: 768px) {
    .account-container {
        padding: 15px;
    }
    
    .account-container h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .account-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .account-section {
        padding: 20px;
    }
    
    .account-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Media queries para el selector de idioma móvil - SOLO EN MÓVIL */
@media (max-width: 768px) {
    /* Mostrar selector de idioma móvil solo en móvil */
    .language-mobile-item {
        display: block !important;
    }
    
    .language-mobile-btn {
        padding: 10px 12px;
        width: 100%;
        min-width: 120px;
        max-width: 120px;
        margin: 0 6px;
    }
    
    .language-mobile-btn .flag-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .language-mobile-btn .language-chevron {
        font-size: 16px;
    }
    
    .language-mobile-btn span {
        font-size: 13px;
    }
    
    .language-mobile-modal {
        width: 95%;
        max-width: 320px;
    }
    
    .language-mobile-header {
        padding: 15px 20px;
    }
    
    .language-mobile-header h3 {
        font-size: 16px;
    }
    
    .language-mobile-option {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .language-mobile-btn {
        padding: 8px 12px;
        width: 100%;
        min-width: 140px;
        max-width: 140px;
        margin: 0 5px;
    }
    
    .language-mobile-btn .flag-icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .language-mobile-btn .language-chevron {
        font-size: 14px;
    }
    
    .language-mobile-btn span {
        font-size: 12px;
    }
    
    .language-mobile-modal {
        width: 98%;
        max-width: 300px;
    }
    
    .language-mobile-header {
        padding: 12px 15px;
    }
    
    .language-mobile-header h3 {
        font-size: 15px;
    }
    
    .language-mobile-option {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    /* Títulos externos en móvil */
    img[id^="titulo-"] {
        padding: 0; /* Sin padding - imagen ocupa todo el borde */
        margin: 15px auto 25px auto; /* Centrado como en desktop */
        max-width: calc(100% - 30px); /* Ancho total menos los márgenes del container (15px x 2) */
        box-sizing: border-box;
        
        /* Ajustar borde a la imagen */
        border-radius: 15px; /* Bordes más suaves para móvil */
        overflow: hidden; /* Asegurar que la imagen se recorte con el border-radius */
    }
}
