/* ============================================================
   TOP BAR SUPERIOR (NUEVO)
   ============================================================ */

.topbar {
    width: 100%;
    background: #000000;
    padding: 6px 0;
    border-bottom: 1px solid #1a1a1a;
    z-index: 120;
}

.topbar-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 25px;
    padding-left: 25px;
    align-items: center;
}

.topbar-link {
    font-size: 14px;
    color: #bbbbbb;
    text-decoration: none;
    padding-bottom: 3px;
}

.topbar-link.active {
    color: #fff100;
    font-weight: 600;
}


/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.containerpo2 {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}


/* ============================================================
   HERO / HEADER
   ============================================================ */

.hero {
    position: fixed;
    width: 100%;
    background-color: #000000;
    align-content: center;
    height: auto;
    color: rgb(0, 0, 0);
    box-shadow: 0 4px 25px -22px #fff100;
    z-index: 110;
    top: 0;
    display: flex;
    flex-direction: column;
}


/* ============================================================
   NAV PRINCIPAL
   ============================================================ */

.nav {
    --state-close: scale(0);
    --state-hamburguer: scale(1);
    --state-menu: translate(-100%);

    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: flex-start;
}

.nav:target {
    --state-menu: translate(0);
    --state-close: scale(1);
    --state-hamburguer: scale(0);
}

.nav__logo {
    width: 160px;
    cursor: pointer;
    z-index: 120;
}

.nav-containerpo2 {
    display: flex;
    align-items: center;
}


/* ============================================================
   MENU GENERAL (MÓVIL)
   ============================================================ */

.nav__links {
    color: #fff !important;
    width: 100%;
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 2em;
    transform: var(--state-menu);
    transition: .3s transform;
    z-index: 100;
    background: #151414;
}

.nav__item {
    list-style: none;
    font-size: 18px;
}

.nav__link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 30px;
    transition: color 300ms;
}

.nav__links a:hover {
    color: #fff100;
}


/* ============================================================
   ICONOS HAMBURGUESA + CERRAR
   ============================================================ */

.nav__hamburguer,
.nav__close {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 16px;
    background: #151414;
    border-radius: 100%;
    cursor: pointer;
    transition: .4s transform;
    z-index: 150;
    display: none;
}

.nav__hamburguer {
    transform: var(--state-hamburguer);
}

.nav__close {
    transform: var(--state-close);
}

.nav__icon {
    width: 40px;
}


/* ============================================================
   MODO ESCRITORIO
   ============================================================ */

@media (min-width: 768px) {

    /* MENÚ HORIZONTAL */
    .nav__links {
        position: static !important;
        width: auto !important;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;

        display: flex !important;
        flex-direction: row !important;

        gap: 2.5rem;
        align-items: center;
        justify-content: flex-start;

        transform: none !important;
    }

    .nav {
        justify-content: flex-start;
        gap: 50px;
        padding: 15px 40px;
    }

    .nav-containerpo2 {
        margin-left: 0 !important;
        display: flex;
        align-items: center;
    }

    .nav__link {
        font-size: 1rem !important;
        color: #ffffff !important;
        margin: 0;
    }

    .nav__hamburguer,
    .nav__close {
        display: none !important;
    }
}


/* ============================================================
   MODO MÓVIL
   ============================================================ */

@media (max-width: 767px) {

    .nav__hamburguer,
    .nav__close {
        display: block;
    }

    .nav__links {
        transform: translateX(-100%);
    }

    .nav:target .nav__links {
        transform: translateX(0);
        background: #151414;
        margin-top: 120px;
    }
}

/* ============================================
   ALINEAR TOPBAR + MENU PERFECTAMENTE
   ============================================ */

/* MISMO ANCHO & MISMA POSICIÓN */
.topbar-inner,
.nav {
    max-width: 1200px;      /* mismo ancho */
    margin: 0 auto !important;   /* centrar ambos */
    padding-left: 40px !important;   /* misma separación izquierda */
    padding-right: 40px !important;  /* misma separación derecha */
}

/* TOPBAR: quitar padding adicional para alinearlo mejor */
.topbar-inner {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* NAV: misma altura visual */
.nav {
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* LOGO + MENÚ perfectamente centrados verticalmente */
.nav__logo {
    display: flex;
    align-items: center;
}

/* MENÚ horizontal en desktop */
@media (min-width: 768px) {
    .nav__links {
        display: flex !important;
        align-items: center !important;
        gap: 2.2rem !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        position: static !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
    }
}
