/* ====================
   WP Header Styles (Original)
   ==================== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1f2448;
    color: white;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1100;
}

/* Logo */
.header-left .logo img {
    height: auto;
    max-height: 80px;
    width: auto;
}

/* Right Section */
.header-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.header-right-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Menu Links */
#main-menu ul.main-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu li {
    display: inline-block;
}

.main-menu a {
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-menu a:hover {
    color: #CE466C !important;
}

/* ====================
   HAMBURGER MENU (Mobile Only) - Rediseño Premium
   ==================== */
.hamburger-menu {
    display: none;
    position: relative;
    z-index: 1300;
}

.hamburger-menu input[type="checkbox"] {
    display: none;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 1301;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Animación a X */
.hamburger-menu input:checked + .hamburger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-menu input:checked + .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu input:checked + .hamburger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Panel de Navegación Mobile */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(165deg, #1f2448 0%, #080d1f 100%);
    backdrop-filter: blur(10px);
    padding-top: 80px;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 1200;
}

.hamburger-menu input:checked ~ .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
}

.mobile-nav-logo {
    width: 35px;
    height: 35px;
    border-radius: 8px; /* Figma style */
    box-shadow: 0 0 15px rgba(206, 70, 108, 0.4);
}

.mobile-nav-header span {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.mobile-nav-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px; /* Figma style */
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-nav-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-title {
    color: #CE466C;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.mobile-nav-section label {
    display: block;
    cursor: pointer;
}

.mobile-nav-section a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-section a:hover {
    background: rgba(206, 70, 108, 0.1);
    border-left-color: #CE466C;
    padding-left: 1.75rem;
    color: #CE466C;
}

.mobile-nav-section a.mobile-cta {
    background: linear-gradient(180deg, #eb7a9a 0%, #ce466c 15%, #f82d98 100%); /* Gradiente vertical Figma */
    color: white !important;
    margin: 1rem 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px; /* Figma style */
    font-weight: 800;
    text-align: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 15px rgba(206, 70, 108, 0.3);
}

.mobile-nav-section a.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 70, 108, 0.45);
    filter: brightness(1.1);
    padding-left: 1.25rem; /* Mantener padding original para CTA */
}

.mobile-nav-dropdown {
    margin: 0.4rem 0;
}

.mobile-nav-dropdown__trigger {
    width: calc(100% - 2rem);
    margin: 0.25rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-nav-dropdown__menu {
    display: none;
    flex-direction: column;
    margin-top: 0.25rem;
}

.mobile-nav-dropdown.is-open .mobile-nav-dropdown__menu {
    display: flex;
}

.mobile-nav-dropdown__menu a {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
}

.mobile-nav-dropdown__menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #CE466C;
    color: white;
}

.mobile-auth-section {
    padding: 1rem 1.5rem;
}

.mobile-auth-section a {
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, #eb7a9a 0%, #ce466c 15%, #f82d98 100%); /* Gradiente vertical Figma */
    border: none;
    border-radius: 8px; /* Figma style */
    padding: 0.85rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(206, 70, 108, 0.3);
    transition: all 0.3s ease;
}

.mobile-auth-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 70, 108, 0.45);
    filter: brightness(1.1);
}

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

/* Mobile Only utility */
.mobile-only {
    display: none !important;
}

/* Desktop */
@media (min-width: 992px) {
    #main-menu {
        display: block;
    }
    
    .hamburger-menu {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .header-container {
        position: sticky;
        top: 0;
        z-index: 1500;
        background: #1f2448;
        padding: 0.6rem 1.25rem;
    }
    
    .header-left .logo img {
        max-height: 50px;
    }
    
    #main-menu {
        display: none;
    }
    
    .hamburger-menu.mobile-only {
        display: block !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-left .logo img {
        max-height: 40px;
    }
    
    .mobile-nav {
        width: 100%;
        max-width: 100vw;
    }
}
