/* ============================================================
   Verdehora — header.css
   Cabecera fija, navegacion, menu movil
   ============================================================ */

/* ------------------------------------------------------------
   Barra superior
   ------------------------------------------------------------ */

.page-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.logotype {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.logotype__mark {
    width: 2.125rem;
    height: 2.125rem;
}

/* ------------------------------------------------------------
   Boton de menu movil
   ------------------------------------------------------------ */

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 1.375rem;
    height: 2px;
    background: var(--ink);
    transition: opacity 0.2s ease;
}

.menu-toggle__bars {
    position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle__bars::before {
    top: -7px;
}

.menu-toggle__bars::after {
    top: 7px;
}

/* ------------------------------------------------------------
   Navegacion — panel movil a pantalla completa
   ------------------------------------------------------------ */

.page-top__nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--paper);
}

.page-top__nav.is-open {
    display: flex;
}

.page-top__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.page-top__link {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.page-top__link:hover,
.page-top__link.is-here {
    color: var(--violet);
}

.page-top__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--ink);
    border: 0;
    cursor: pointer;
}

.page-top__cta {
    display: none;
}

/* ------------------------------------------------------------
   Escritorio
   ------------------------------------------------------------ */

@media (min-width: 64rem) {
    .menu-toggle,
    .page-top__close {
        display: none;
    }

    .page-top__nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 2rem;
        padding: 0;
        background: none;
    }

    .page-top__list {
        flex-direction: row;
        gap: 1.75rem;
        text-align: left;
    }

    .page-top__link {
        font-size: 1rem;
        font-weight: 400;
    }

    .page-top__cta {
        display: inline-block;
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}
