/* Añadir al principio del archivo */
[x-cloak] {
    display: none !important;
}


:root {
    /* Paleta de colores principal - más vibrante */
    --primary-blue: #0066ff;
    --hover-blue: #0055d4;
    --dark-blue: #004bb3;
    --light-blue: #e6f0ff;
    --primary-orange: #ff7700;
    --hover-orange: #e56b00;
    --dark-orange: #cc5f00;
    --light-orange: #fff0e6;

    /* Colores de acento */
    --accent-teal: #00c2c7;
    --accent-purple: #6b4ce6;

    /* Colores neutros */
    --neutral-dark: #2a2a3a;
    --neutral-text: #404050;
    --neutral-text-light: #6c6c7c;
    --neutral-border: #dedfe2;
    --neutral-bg-light: #f8f9fa;
}

body {
    background: linear-gradient(140deg, rgba(0, 102, 255, 0.08) 0%, rgba(255, 119, 0, 0.08) 100%),
                url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--neutral-text);
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.92), rgba(0, 74, 186, 0.92));
    padding: 0.85rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 50;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: white;
    font-weight: 500;
    margin-left: 1.2rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
    transform: skewX(-25deg);
}

.nav-link:hover::before {
    transform: skewX(-25deg) translateX(200%);
}

.nav-btn {
    background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
    color: white;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.4);
}

.nav-btn:hover::after {
    animation: shine 1.5s infinite;
}

/* ===== CONTENEDORES PRINCIPALES ===== */
.main-container {
    display: flex;
    flex: 1;
    padding: 3rem 2rem;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-container {
    display: flex;
    max-width: 1100px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== SECCIÓN HERO ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 48%;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    background: linear-gradient(90deg, #ffffff, #f3f3f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out forwards, pulse 4s ease-in-out infinite;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.benefit-item:nth-child(1) {
    animation: fadeInLeft 0.6s 0.4s forwards;
}

.benefit-item:nth-child(2) {
    animation: fadeInLeft 0.6s 0.6s forwards;
}

.benefit-item:nth-child(3) {
    animation: fadeInLeft 0.6s 0.8s forwards;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Mejora para los iconos de los beneficios */
.benefit-icon {
    margin-right: 1rem;
    font-size: 1.4rem;
    color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== SECCIONES DE FORMULARIO ===== */
.login-section, .register-section {
    padding: 3.5rem 3rem;
    width: 52%;
    position: relative;
    overflow: hidden;
}

.login-section::before, .register-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-section::after, .register-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 119, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-header, .register-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.login-title, .register-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.login-title::after, .register-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 3px;
}

.login-subtitle, .register-subtitle {
    color: var(--neutral-text-light);
    font-size: 1rem;
    max-width: 85%;
    margin: 1rem auto 0;
    line-height: 1.5;
}

/* ===== FORMULARIOS ===== */
.form-label {
    font-weight: 600;
    color: var(--neutral-text);
    margin-bottom: 0.6rem;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--neutral-border);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: var(--neutral-bg-light);
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
    outline: none;
    background-color: white;
}

.form-input:focus + .form-label {
    color: var(--primary-blue);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-icon {
    position: absolute;
    right: 0.75rem;
    left: auto;
    top: 37%;
    transform: translateY(-50%);
    color: var(--neutral-text-light);

    transition: all 0.3s ease;
}

.form-input:focus + .form-icon {
    color: var(--primary-blue);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover::after {
    animation: shine 1.5s infinite;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.link-secondary {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.link-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.link-secondary:hover {
    color: var(--primary-orange);
}

.link-secondary:hover::after {
    width: 100%;
}

/* ===== DIVISORES Y SEPARADORES ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--neutral-text-light);
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--neutral-border);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(90deg, var(--neutral-dark), #242432);
    padding: 1.8rem;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    width: 100%;
}

.copyright {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ALERTAS Y NOTIFICACIONES ===== */
.error-alert, .success-alert {
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.8rem;
    position: relative;
    animation: fadeIn 0.5s ease-out forwards;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.error-alert {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
}

.success-alert {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
    color: #2f855a;
}

.alert-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.alert-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== MENÚ MÓVIL ===== */
/* Mejoras para el menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.98), rgba(0, 74, 186, 0.98));
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-close {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.mobile-menu-close::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.mobile-menu-close:hover::before {
    transform: scale(2);
    opacity: 1;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem;
    color: white;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transition: width 0.4s ease;
    z-index: -1;
}

.mobile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.mobile-menu-item:hover::before {
    width: 100%;
}

.mobile-menu-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.mobile-menu-item:hover .mobile-menu-icon {
    transform: scale(1.3) rotate(5deg);
    color: var(--accent-teal);
}

.mobile-menu-btn {
    background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.mobile-menu-btn:hover {
    background: linear-gradient(90deg, var(--hover-orange), var(--dark-orange));
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 119, 0, 0.4);
}

.mobile-menu-btn:hover::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Animación para entrada deslizante de elementos del menú */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Corregir la clase animate-fade-in */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

/* Asegurarse que los elementos del hero sean visibles incluso si la animación falla */
.hero-section .hero-title,
.hero-section .hero-text,
.hero-section .benefit-item {
    animation-fill-mode: both;
}

/* Fallback para navegadores sin soporte de animaciones */
.no-js .animate-fade-in,
.no-js .animate-slide-in,
.no-js .benefit-item {
    opacity: 1 !important;
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .hero-section, .login-section, .register-section {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .benefit-icon {
        min-width: 40px;
        min-height: 40px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .benefit-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .benefit-item span {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .content-container {
        flex-direction: column;
        max-width: 500px;
    }

    .hero-section, .login-section, .register-section {
        width: 100%;
        padding: 2.5rem 2rem;
    }

    .hero-section {
        border-radius: 20px 20px 0 0;
    }

    .navbar-items {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        margin: 0.5rem 0;
    }




}


/* Mejora para el enlace de contraseña olvidada */
@media (max-width: 640px) {
    .link-secondary {
        display: inline-block;
        margin-top: 0.5rem;
    }

    /* Aumentar espacio entre elementos en el formulario para mejor touch */
    .mb-4 {
        margin-bottom: 1.5rem;
    }

    /* Asegurar que el contenedor principal tenga padding suficiente */
    .login-section, .register-section {
        padding: 2rem 1.5rem;
    }

    /* Mejorar la legibilidad del texto en dispositivos pequeños */
    .hero-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }





}

@media (max-width: 480px) {
    .hero-section, .login-section, .register-section {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .main-container {
        padding: 1.5rem 1rem;
    }
}

/* Estilos para cuando el menú está activo */
.show-menu .mobile-menu {
    transform: translateX(0);
}

.show-menu .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}


/* Reemplazar la sección de transiciones actual con esta versión mejorada */

/* ===== TRANSICIONES ÉPICAS ENTRE PÁGINAS ===== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.page-transition-overlay.active {
    visibility: visible;
}

/* Elementos de la transición */
.transition-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
}

.transition-layer-1 {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.transition-layer-2 {
    background: linear-gradient(135deg, var(--dark-orange), var(--dark-blue));
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.05s;
}

.transition-layer-3 {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.1s;
}

.page-transition-overlay.active .transition-layer {
    transform: translateX(0);
}

/* Partículas de la transición */
.transition-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.active .transition-particles {
    opacity: 1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* Logo central para la transición */
.transition-logo {
    display: none;
}

.transition-logo img {
    display: none;
}

.page-transition-overlay.active .transition-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Estado final */
.page-transition-out .transition-layer-1 {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.1s;
}

.page-transition-out .transition-layer-2 {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.05s;
}

.page-transition-out .transition-layer-3 {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition-out .transition-logo {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

/* Añadir al final del archivo */

/* Mejoras para transiciones entre páginas */
html.loading-transition {
    background-color: #f8f9fa; /* Color similar al fondo de tu app */
}

body.page-transitioning {
    opacity: 0 !important;
}

body {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    will-change: visibility;
    transition: visibility 0s 0.7s;
}


/* Mejorar el rendimiento de las animaciones */
.transition-layer {
    will-change: transform;
}


.page-transition-overlay.active {
    visibility: visible !important;
    transition: visibility 0s;
}

/* Asegurar que el overlay permanezca visible durante el estado page-transition-out */
.page-transition-overlay.page-transition-out {
    visibility: visible !important;
}
.transition-layer-1 {
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.transition-layer-2 {
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.05s;
}

.transition-layer-3 {
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1) 0.1s;
}

/* Añadir al final para optimizar rendimiento */

/* Optimizar animaciones con will-change */
.transition-layer,
.transition-logo,
.particle {
    will-change: transform, opacity;
}

/* Reducir complejidad visual en dispositivos de gama baja */
@media (prefers-reduced-motion: reduce) {
    .particle {
        display: none;
    }

    .transition-layer-1 {
        transition-duration: 0.3s !important;
    }

    .transition-layer-2,
    .transition-layer-3 {
        display: none;
    }

    .animate-fade-in,
    .animate-slide-in {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Optimizar carga inicial */
html.loading-transition {
    background-color: #f8f9fa;
    content-visibility: auto;
}

/* Agregar content-visibility para mejorar rendimiento de pintado */
.hero-section,
.login-section,
.register-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Evitar reajustes de layout durante la carga */
.benefit-item,
.form-input,
.btn-primary {
    contain: layout style paint;
}

.logo-container {
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0; /* Evita que el contenedor se comprima */
}

.logo-container img {
    width: 40px;
    height: 40px;
    object-fit: contain; /* Mantiene la proporción de la imagen */
    margin: 0; /* Elimina cualquier margen que pueda causar desplazamiento */
}

/* Añadir estos estilos para mejorar toda la barra de navegación */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    height: 60px; /* Altura fija para la navbar */
}

.navbar-brand span {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* ===== ESTILOS PARA CONFIRMACIÓN DE SESIÓN ===== */
.session-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.option-card {
    background: white;
    padding: 2rem;
    border: 2px solid var(--neutral-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
    transform: translateY(-4px);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card > i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.option-card .text-danger {
    color: #dc3545 !important;
}

.option-card .text-secondary {
    color: #6c757d !important;
}

.option-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

.option-card p {
    margin: 0 0 1.5rem 0;
    color: var(--neutral-text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.option-card .btn {
    margin-top: auto;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.option-card .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.4);
}

.option-card .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.option-card .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 117, 125, 0.4);
}

.option-card .btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Estilos para la alerta de sesión */
.alert.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.alert.alert-warning i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #ffc107;
    flex-shrink: 0;
}

/* Mejoras para el título con icono */
.login-title i {
    margin-right: 0.75rem;
    font-size: 1.75rem;
    vertical-align: middle;
}

.login-title i.text-warning {
    color: #ffc107 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .session-options {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .option-card {
        padding: 1.5rem;
    }
    
    .option-card > i {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .option-card h4 {
        font-size: 1.1rem;
    }
    
    .option-card p {
        font-size: 0.9rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-title i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 2rem 1.5rem;
    }
    
    .option-card {
        padding: 1.25rem;
    }
    
    .option-card > i {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .option-card h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .option-card p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .option-card .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .alert.alert-warning {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .alert.alert-warning i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .session-options {
        gap: 1rem;
    }
    
    .option-card {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Animaciones adicionales */
@keyframes sessionCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.option-card {
    animation: sessionCardIn 0.4s ease-out forwards;
}

.option-card:nth-child(1) {
    animation-delay: 0.1s;
}

.option-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Efecto hover mejorado */
@media (hover: hover) {
    .option-card:hover {
        animation: none;
    }
    
    .option-card:hover > i {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .option-card,
    .option-card:hover,
    .option-card > i,
    .option-card .btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Focus states para accesibilidad */
.option-card .btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.option-card .btn-danger:focus {
    outline-color: #dc3545;
}

.option-card .btn-secondary:focus {
    outline-color: #6c757d;
}

/* ===== LISTA DE SESIONES ACTIVAS ===== */
.active-sessions-list {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.active-sessions-list h4 {
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-sessions-list h4 i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.session-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-device {
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-details small {
    color: var(--neutral-text-light);
    line-height: 1.4;
    font-size: 0.85rem;
}

.session-action {
    flex-shrink: 0;
    margin-left: 1rem;
}

.session-action .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.session-action .btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.session-action .btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== RESPONSIVE DESIGN PARA LISTA DE SESIONES ===== */
@media (max-width: 768px) {
    .active-sessions-list {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .session-action {
        align-self: stretch;
        margin-left: 0;
    }
    
    .session-action .btn {
        width: 100%;
        justify-content: center;
    }
    
    .session-details {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .active-sessions-list {
        padding: 1rem;
    }
    
    .active-sessions-list h4 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .session-item {
        padding: 0.875rem;
    }
    
    .session-device {
        font-size: 0.95rem;
    }
    
    .session-details small {
        font-size: 0.8rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes sessionItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-item {
    animation: sessionItemIn 0.3s ease-out forwards;
}

.session-item:nth-child(1) { animation-delay: 0.1s; }
.session-item:nth-child(2) { animation-delay: 0.2s; }
.session-item:nth-child(3) { animation-delay: 0.3s; }

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .session-item,
    .session-item:hover,
    .session-action .btn-outline-danger {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.session-action .btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
