
/* ===== HEADER BASE ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

/* ===== COMPENSACIÓN PARA HEADER FIXED ===== */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ===== LOGO ===== */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover { transform: scale(1.05); }

.logo-img {
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
    /* Aplicamos el filtro naranja para que se vea sobre el fondo blanco */
    filter: brightness(0) saturate(100%) invert(75%) sepia(35%) saturate(3020%) hue-rotate(339deg) brightness(101%) contrast(104%);
}

.logo-img:hover { filter: brightness(0.9); }

/* ===== NAVEGACIÓN PRINCIPAL ===== */
.nav-menu { display: flex; align-items: center; }

.nav-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li { list-style: none; }

.nav-links a {
    color: #555555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 160, 70, 0.1);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffa046;
    border-radius: 1px;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: #ffa046; transform: translateY(-1px); }
.nav-links a:hover::before { opacity: 1; transform: scale(1); }
.nav-links a:hover::after { width: 60%; }

/* ===== BOTÓN CTA ===== */
.action_btn {
    font-family: Inter, sans-serif;
    cursor: pointer;
    background: #ffa046;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.5s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 160, 70, 0.35);
}

.action_btn:hover {
    scale: 1.1;
    background: #fe8a20;
    box-shadow: 0 6px 20px rgba(255, 160, 70, 0.5);
}

.action_btn:active { scale: 1; }

.action_btn:hover i {
    color: #ffffff;
    scale: 1.1;
    rotate: 360deg;
}

.action_btn .text { transition: all 1s ease; }

.action_btn i {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-top: -1px;
    transition: all 1s ease;
}

.action_btn:hover .text {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2))
            drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

/* ===== BOTÓN TOGGLE ===== */
.toggle_btn {
    color: #ffa046;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle_btn:hover { color: #ffa046; background: rgba(255, 160, 70, 0.1); }
.toggle_btn.active { color: #ffa046; background: rgba(255, 160, 70, 0.15); }
.toggle_btn i { transition: all 0.3s ease; transform-origin: center; }
.toggle_btn.active i { transform: rotate(180deg); }

/* ===== DROPDOWN MENU ===== */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(255, 160, 70, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dropdown_menu.open { height: 380px; }

/* ===== DROPDOWN HEADER ===== */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-logo {
    width: 40px;
    height: auto;
    /* La imagen edutick_naranja.svg ya es naranja, no necesita filtro */
}

.dropdown-title { color: #444; font-size: 1rem; font-weight: 600; }

/* ===== DROPDOWN LINKS ===== */
.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 1rem 1.5rem;
    list-style: none;
}

.dropdown-links li { list-style: none; }

.dropdown-links a {
    color: #555555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-links a i { font-size: 1.1rem; width: 20px; text-align: center; }

.dropdown-links a:hover {
    background: rgba(255, 160, 70, 0.1);
    color: #ffa046;
    transform: translateX(5px);
}

/* ===== DROPDOWN FOOTER ===== */
.dropdown-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-footer .action_btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .navbar { gap: 1.5rem; }
    .nav-links { gap: 0.25rem; }
    .nav-links a { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
    .action_btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 767px) {
    .header { padding: 0 1rem; }
    .navbar { gap: 1rem; }
    .logo-img { width: 100px; }
    .nav-menu { display: none; }
    .action_btn { display: none; }
    .toggle_btn { display: block; }
    .dropdown_menu { display: block; right: 1rem; left: 1rem; width: auto; }
    .dropdown-header { padding: 1rem 1rem 0.75rem 1rem; }
    .dropdown-links { padding: 0.75rem 1rem; }
    .dropdown-footer { padding: 0.75rem 1rem 1rem 1rem; }
}

@media (max-width: 480px) {
    .header { padding: 0 0.75rem; }
    .navbar { height: 50px; }
    .logo-img { width: 80px; }
    .dropdown_menu { right: 0.75rem; left: 0.75rem; }
    .dropdown-header { padding: 0.75rem 0.75rem 0.5rem 0.75rem; }
    .dropdown-logo { width: 35px; }
    .dropdown-title { font-size: 0.9rem; }
    .dropdown-links { padding: 0.5rem 0.75rem; }
    .dropdown-links a { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
    .dropdown-footer { padding: 0.5rem 0.75rem 0.75rem 0.75rem; }
    .dropdown-footer .action_btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
}

/* ===== ANIMACIÓN ENTRADA ===== */
@keyframes slideInFromTop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.header { animation: slideInFromTop 0.6s ease-out; }

/* ===== ESTADO SCROLLED — más transparente ===== */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== ACCESIBILIDAD ===== */
.nav-links a:focus,
.action_btn:focus,
.toggle_btn:focus,
.dropdown-links a:focus {
    outline: 2px solid #ffa046;
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .header, .nav-links a, .action_btn,
    .toggle_btn, .dropdown_menu, .dropdown-links a {
        transition: none;
        animation: none;
    }
}
