* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

header {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon img {
    width: 125px;
    height: 30px;
    display: block;  /* Elimina el espacio extra debajo de la imagen */
}



.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#vararriba {
    flex: 1;
    display: flex;
    justify-content: center;
}

#vararriba ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#vararriba ul::-webkit-scrollbar {
    display: none;
}

#vararriba ul li {
    display: flex;
    white-space: nowrap;
}

#vararriba ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#vararriba ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 165, 2, 0.2));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

#vararriba ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

#vararriba ul li a:hover::before {
    left: 0;
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* Estilo para el enlace activo */
#vararriba ul li a.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    #vararriba {
        width: 100%;
        overflow: hidden;
    }

    #vararriba ul {
        justify-content: flex-start;
        padding: 0.4rem;
        gap: 0.3rem;
        border-radius: 25px;
        margin: 0;
        width: 100%;
        min-width: fit-content;
    }

    #vararriba ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
        min-width: fit-content;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    .header-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    #vararriba {
        width: 100%;
        display: block;
    }

    #vararriba ul {
        padding: 0.4rem;
        gap: 0.3rem;
        border-radius: 20px;
        display: flex;
        justify-content: space-evenly;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #vararriba ul li {
        flex-shrink: 0;
        display: flex;
    }

    #vararriba ul li a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(5px);
        font-weight: 500;
    }

    #vararriba ul li a:hover {
        background: rgba(255, 107, 107, 0.3) !important;
        color: #ffffff !important;
    }

    #vararriba ul li a.active {
        background: linear-gradient(135deg, #ff6b6b, #ffa502) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
    }

    /* Ocultar iconos en móvil */
    .nav-icon {
        display: none !important;
    }

    /* Mostrar texto en móvil */
    #vararriba ul li a .nav-text {
        display: inline !important;
    }
}

@media screen and (max-width: 360px) {
    .header-container {
        padding: 0 0.5rem;
    }

    .logo h1 {
        display: none;
    }

    #vararriba ul {
        padding: 0.3rem;
        gap: 0.2rem;
    }

    #vararriba ul li a {
        padding: 0.4rem;
        min-width: 36px;
        min-height: 36px;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
    }
    .header-container .logo-icon img{
        justify-content: center;
        align-items: center;
    }
}

/* Animación de entrada */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: slideInDown 0.6s ease-out;
}

/* Efecto de pulso para botones importantes */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}