/* Header Section Styles */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid rgba(254, 63, 64, 0.2);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(254, 63, 64, 0.4);
    box-shadow: 0 2px 20px rgba(254, 63, 64, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Media queries para móvil */
@media (max-width: 768px) {
    .header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .header-content {
        padding: 0.5rem 1rem;
    }
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-list li a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #FE3F40;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FE3F40;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FE3F40;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-list li a {
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(254, 63, 64, 0.1);
    }
}

/* Agregar después de las reglas existentes */

@media (max-width: 1024px) {
    .header-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .nav-list li a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
}
/* ===== CORRECCIÓN PARA MÓVILES ===== */

/* Estilos base para desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FE3F40;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Media queries corregidas */
@media (max-width: 768px) {
    .header-content {
        padding-left: 1rem;
        padding-right: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Mostrar menú hamburguesa */
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    /* Ocultar navegación desktop */
    .nav {
        display: none;
    }
    
    /* Ocultar botones del header en móviles */
    .header-buttons {
        display: none !important;
    }
    
    /* Asegurar que el logo esté visible */
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .logo img {
        height: 35px;
        width: auto;
    }
    
    /* Navegación móvil cuando está activa */
    .nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        padding-top: 80px;
    }
    
    .nav.active .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav.active .nav-list li a {
        color: #fff;
        font-size: 1.5rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .nav.active .nav-list li a:hover {
        color: #FE3F40;
    }
    
    /* Animación del menú hamburguesa */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .nav.active .nav-list li a {
        font-size: 1.2rem;
    }
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}
/* Optimización para móvil - Reducir altura del header */
@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 1rem !important; /* Reducir padding vertical */
        min-height: auto;
    }
    
    .logo img {
        height: 28px; /* Reducir tamaño del logo */
    }
    
    .mobile-menu-toggle {
        padding: 4px; /* Reducir padding del botón hamburguesa */
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.3rem 0.8rem !important; /* Aún más compacto en pantallas muy pequeñas */
    }
    
    .logo img {
        height: 24px;
    }
}