/* ============================================================
   01. HEADER + NAVBAR
   Fondo: Azul oscuro (#0b2545) con efecto glass en móvil
   ============================================================ */

.site-header {
    background-color: #0b2545;
    color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: visible;
    position: relative;
    height: 76px;
}

.site-header a {
    color: #ffffff;
    text-decoration: none;
}

/* ===== LOGO ===== */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-top: -10px;
    margin-bottom: -10px;
}

/* ============================================================
   NAVBAR (PC)
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #02c39a;
    background: rgba(2, 195, 154, 0.12);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, #02c39a, #00a896);
    border-radius: 2px;
}

/* ============================================================
   BOTÓN DE INSTAGRAM (SOLO PC)
   ============================================================ */
.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.instagram-link i {
    font-size: 1.2rem;
    color: #E4405F;
    transition: 0.3s;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #E4405F;
    color: #ffffff;
}

.instagram-link:hover i {
    transform: scale(1.15);
    color: #E4405F;
}

/* ============================================================
   INSTAGRAM EN MÓVIL (dentro del menú desplegable)
   ============================================================ */
.instagram-mobile {
    display: none !important;
}

.instagram-mobile i {
    color: #E4405F;
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ============================================================
   BOTÓN HAMBURGUESA (animado)
   ============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 2;
    flex-shrink: 0;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1),
                opacity 0.3s cubic-bezier(0.16, 0.84, 0.44, 1);
    display: block;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   SOLO PC: Menú a la derecha, IG a la derecha
   ============================================================ */
@media (min-width: 769px) {
    .navbar {
        flex: 1;
        justify-content: flex-start;
        gap: 12px;
    }

    .nav-menu {
        gap: 4px;
        margin-left: 60px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .instagram-link {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .menu-toggle {
        display: none !important;
    }

    /* Ocultar Instagram móvil en PC */
    .instagram-mobile {
        display: none !important;
    }
}

/* ============================================================
   RESPONSIVE (tablets)
   ============================================================ */
@media (max-width: 992px) and (min-width: 769px) {
    .logo-img {
        height: 96px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
    .nav-link {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .instagram-link {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .instagram-link i {
        font-size: 1rem;
    }
    .nav-menu {
        margin-left: 30px;
    }
}

/* ============================================================
   MÓVIL: Estilo tipo demo (glassmorphism + menú vertical)
   ============================================================ */
@media (max-width: 768px) {
    .site-header {
        background: #0b2545;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header .container {
        height: 68px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .logo-img {
        height: 84px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    /* Ocultar Instagram de PC en móvil */
    .instagram-link {
        display: none !important;
    }

    /* Mostrar Instagram en móvil dentro del menú */
    .instagram-mobile {
        display: flex !important;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 500;
    }

    .instagram-mobile i {
        color: #E4405F;
        font-size: 1.2rem;
    }

    /* Botón hamburguesa visible */
    .menu-toggle {
        display: flex;
    }

    /* Reset del navbar en móvil */
    .navbar {
        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 0;
        width: auto;
        position: static;
    }

    /* Menú desplegable vertical - estilo demo */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        inset: 68px 0 auto 0;
        background: #0b2545;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 16px 20px 20px;
        gap: 0;
        margin: 0;
        width: 100%;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1),
                    opacity 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        order: 10;
        border-radius: 0 0 20px 20px;
        overflow: hidden;
        list-style: none;
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 12px 0;
        width: 100%;
        text-align: left;
        border-radius: 0;
        font-size: 0.85rem;
        white-space: normal;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
    }

    .nav-link:hover {
        background: transparent;
        color: #ffffff;
    }

    .nav-link.active {
        color: #02c39a;
        background: transparent;
    }

    .nav-link.active::after {
        left: 0;
        right: auto;
        width: 30px;
        bottom: 8px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-item-mobile:last-child .nav-link {
        border-bottom: none;
    }
}

/* ============================================================
   MÓVILES PEQUEÑOS
   ============================================================ */
@media (max-width: 480px) {
    .site-header .container {
        height: 60px;
    }
    .logo-img {
        height: 66px;
        margin-top: -3px;
        margin-bottom: -3px;
    }
    .nav-menu {
        inset: 60px 0 auto 0;
        padding: 12px 16px 16px;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}