:root {
    --verde-pukaray: #41b359;
    --verde-pukaray-hover: #34954a;
    --rojo-pukaray: #7c180d;
    --blanco: #ffffff;
    --texto: #1f1f1f;
    --gris-borde: #d9d9d9;
    --sombra-suave: 0 8px 22px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: min(92%, 1440px);
    margin: 0 auto;
}

/* HEADER */
.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* TOPBAR */
.topbar {
    background: var(--rojo-pukaray);
    color: var(--blanco);
}

.topbar-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-email {
    color: var(--blanco);
    font-size: 1.05rem;
    font-weight: 600;
    transition: opacity 0.25s ease;
}

.topbar-email:hover {
    opacity: 0.85;
}

.topbar-right {
    gap: 18px;
}

.topbar-right a {
    color: var(--blanco);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.topbar-right a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.topbar-right i {
    font-size: 2rem;
    line-height: 1;
}

.edufacil-link {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blanco);
    white-space: nowrap;
}

/* MAINBAR */
.mainbar {
    background: var(--verde-pukaray);
    border-bottom: none;
    box-shadow: none;
}

.mainbar-content {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 86px;
    width: auto;
    object-fit: contain;
}

/* NAV */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--blanco);
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding: 10px 0;
    transition: opacity 0.25s ease;
    display: inline-block;
    line-height: 1.2;
}

.main-nav a:hover {
    opacity: 0.88;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--blanco);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    opacity: 1;
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--blanco);
    border-radius: 999px;
    display: block;
    transition: 0.25s ease;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 18px;
    }

    .main-nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .topbar-content {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        justify-content: center;
    }

    .mainbar-content {
        min-height: 100px;
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--verde-pukaray);
        border-radius: 16px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
        padding: 18px;
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 4px;
    }

    .site-logo img {
        height: 72px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 94%;
    }

    .topbar-email {
        font-size: 0.95rem;
        text-align: center;
        word-break: break-word;
    }

    .topbar-right {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .topbar-right i {
        font-size: 1.8rem;
    }

    .edufacil-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .site-logo img {
        height: 62px;
    }

    .mainbar-content {
        min-height: 90px;
    }
}