:root {
  --brand-blue: #101070;
  --brand-red: #F61417;
  --text-dark: #333333;
  --bg-light: #F7F8FA;
  --link-blue: #4A6ED1;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 34px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: linear-gradient(135deg, #FF5F6D, #FFC371);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 30px;
    position: relative;
    list-style: none;
}

.nav-item .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.nav-item .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--brand-red), var(--brand-blue));
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-item .nav-link:hover {
    color: var(--brand-red);
}

.nav-item .nav-link:hover::before {
    width: 100%;
}

.nav-item .nav-link.active {
    color: #FF5F6D;
}

.nav-item .nav-link.active::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.menu-toggle .bar {
    width: 25px;
    height: 4px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ========================================
   DROPDOWN STYLES - COMPATIBLE CON BOOTSTRAP
======================================== */

/* Mayor especificidad para vencer Bootstrap */
.nav-item.dropdown {
    position: relative;
}

/* Área invisible para mantener el hover */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

/* Sobrescribir estilos de Bootstrap con !important donde sea necesario */
.nav-item.dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    background-color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    min-width: 220px !important;
    width: auto !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    border: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
    pointer-events: none;
    display: block !important; /* Forzar display block siempre */
    float: none !important;
}

/* Activar dropdown en hover - DESKTOP */
.nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Items del dropdown */
.nav-item.dropdown .dropdown-menu .dropdown-item {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    clear: both !important;
    font-weight: 400 !important;
    line-height: 1.42857143 !important;
    border: none !important;
    background: none !important;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:hover,
.nav-item.dropdown .dropdown-menu .dropdown-item:focus {
    background-color: #f5f5f5 !important;
    color: #FF5F6D !important;
    padding-left: 25px !important;
    text-decoration: none !important;
}

/* Navigation Indicator */
.nav-indicator {
    position: absolute;
    bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(to right, #FF5F6D, #FFC371);
    transition: all 0.3s ease;
}

/* ========================================
   MOBILE STYLES
======================================== */

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        margin-top: 52px;
    }
	
	/* HAMBURGUESA → X PERFECTAMENTE CENTRADA */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 5px 0;
    }

    .nav-item .nav-link {
        padding: 15px 0;
    }

    /* Dropdown en móvil */
    .nav-item.dropdown::after {
        display: none;
    }

    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin-top: 0 !important;
        transition: max-height 0.3s ease !important;
        pointer-events: auto !important;
    }

    .nav-item.dropdown.open .dropdown-menu {
        max-height: 300px !important;
        padding: 10px 0 !important;
    }

    .nav-item.dropdown .dropdown-menu .dropdown-item {
        padding: 10px 20px !important;
    }

    .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
        padding-left: 20px !important;
    }

    .nav-indicator {
        display: none;
    }
}

/* ========================================
   COLOR THEME BUTTONS
======================================== */

.theme-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 999;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.2);
}

/* Color Themes */
.theme-btn.default {
    background: linear-gradient(135deg, #FF5F6D, #FFC371);
}

.theme-btn.blue {
    background: linear-gradient(135deg, #12c2e9, #c471ed);
}

.theme-btn.green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.theme-btn.purple {
    background: linear-gradient(135deg, #834d9b, #d04ed6);
}

/* Content area */
.content {
    width: 90%;
    max-width: 1200px;
    margin-top: 30px;
    text-align: center;
}

.content h1 {
    margin-bottom: 20px;
    color: #333;
}

.content p {
    color: #666;
    line-height: 1.6;
}

/* Notification Badge */
.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, #FF5F6D, #FFC371);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.badge.show {
    transform: scale(1);
}

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