@font-face {
    font-family: 'Quicksand_Bold';
    src: url('../fonts/Quicksand_Bold/Quicksand_Bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand_Book';
    src: url('../fonts/Quicksand_Book/Quicksand_Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quicksand_Light';
    src: url('../fonts/Quicksand_Light/Quicksand_Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --sa-font-book: 'Quicksand_Book';
    /* font-family: var(--sa-font-book); */
    --sa-font-bold: 'Quicksand_Bold';
    /* font-family: var(--sa-font-bold); */
    --sa-font-light: 'Quicksand_Light';
    /* font-family: var(--sa-font-light); */
}

/* ======================================
   FORZAR FULL WIDTH SOLO PARA EL PLUGIN
   ====================================== */



/* =============================== 
   LAYOUT GENERAL AMPA
   =============================== */

.sa-layout {
    display: flex;
    min-height: 100vh;
    background: #e9edf3;
}

/* Cuando usamos cabecera superior: header arriba y contenido debajo */
.sa-layout--topbar {
    flex-direction: column;
}

/* ================================
   TIPOGRAFÍA GLOBAL (DENTRO DEL PLUGIN)
   ================================ */

.sa-layout h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    color: #000000 !important;
    margin: 0 0 0.35rem !important;
    font-family: var(--sa-font-bold) !important;
}

.sa-layout h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: #000000 !important;
    margin: 0 0 0.3rem !important;
    font-family: var(--sa-font-bold) !important;
}

.sa-layout h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 0 0 0.2rem !important;
    font-family: var(--sa-font-bold) !important;
}

.sa-layout p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 0.5rem !important;
    font-family: var(--sa-font-book) !important;
}

.sa-layout li {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 0 0.5rem !important;
    font-family: 'Quicksand_Book' !important;
}

.sa-layout a {
    line-height: 1.6 !important;
    color: #666;
    margin: 0 0 0.5rem !important;
    font-family: var(--sa-font-bold) !important;
    text-decoration: none;
}

@media (max-width: 600px) {
    .sa-layout h1 {
        font-size: 22px;
    }

    .sa-layout h2 {
        font-size: 18px;
    }
}

/* ============================
   SIDEBAR LATERAL
   ============================ */

.sa-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e4e7ef;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sa-sidebar__header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #eef1f6;
}

.sa-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-logo__img {
    max-width: 180px;
    height: auto;
}

.sa-sidebar__nav {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.sa-sidebar .sa-nav__item {
    padding: 12px 20px !important;
    text-decoration: none !important;
    color: #000000 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    font-family: 'Quicksand_Bold' !important;
    margin: 0 !important;
}

.sa-layout .sa-nav__item:hover {
    background: #eef3ff !important;
    color: #000000 !important;
}

.sa-layout .sa-nav__item--active {
    background: #4c6fff !important;
    color: #ffffff !important;
}

/* ============================
   CABECERA SUPERIOR (TOPBAR)
   ============================ */

.sa-topbar {
    background: #ffffff;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    margin-bottom: 1rem;
    padding: 1.5rem 2rem 1rem;
}

.sa-topbar__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.sa-topbar__logo-img {
    max-height: 140px;
    width: auto;
    display: block;
}

/* NAV: comportamiento por defecto en escritorio */
.sa-topbar__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.sa-topbar__link {
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    color: #c4122f !important;
    padding: 0.4rem 0;
    margin: 0 !important;
    font-family: 'Quicksand_Bold' !important;
}

/* Botón tipo píldora para "Área de socio" (se verá en desktop dentro del nav) */
.sa-topbar__link--cta {
    padding: 0.4rem 1.8rem;
    border-radius: 999px;
    background: #c4122f;
    color: #ffffff !important;
}

.sa-topbar__link:hover {
    border-bottom: 3px solid #c4122f !important;
    padding-bottom: 0.4rem;
}

/* Pestaña activa → solo un subrayado rojo */
.sa-topbar__link--active {
    border-bottom: 3px solid #c4122f !important;
    padding-bottom: 0.4rem;
}

/* Por defecto ocultamos el contenedor de controles (desktop) */
.sa-topbar__controls {
    display: none;
}

/* ============================
   COLUMNA DERECHA (MAIN + FOOTER)
   ============================ */

.sa-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* En topbar centramos el bloque de contenido */
.sa-layout--topbar .sa-main-wrapper {
    width: 100%;
    margin: 0;
}

/* ============================
   CONTENIDO PRINCIPAL
   ============================ */

.sa-main {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.sa-main__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sa-main__title {
    margin: 0;
}

.sa-main__subtitle {
    margin-top: 3px;
}

/* ============================
   FOOTER AMPA
   ============================ */

.sa-footer {
    width: 100%;
    margin-top: 5rem;
}

.sa-footer__card {
    width: 100%;
    background: #ffffff;
    border-radius: 40px 40px 0 0;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    margin: 0;
}

.sa-footer__logo img {
    max-width: 260px !important;
    height: auto !important;
}

.sa-footer__info {
    text-align: center;
}

.sa-footer .sa-footer__school {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #b42326 !important;
    margin-bottom: 0.25rem !important;
}

.sa-footer .sa-footer__address {
    font-size: 0.95rem !important;
    color: #b42326 !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
}

.sa-footer__social {
    display: flex !important;
    justify-content: center !important;
    gap: 0.9rem !important;
}

.sa-footer__social-item {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
}

.sa-footer__social-item svg {
    width: 25px;
    height: 25px;
    fill: #fff;
}

.sa-footer__social-item--mail {
    background: #e74c3c;
}

.sa-footer__social-item--fb {
    background: #e74c3c;
}

.sa-footer__social-item--ln {
    background: #e74c3c;
}

.sa-footer__social-item--ig {
    background: #e74c3c;
}

.sa-footer__social-item--wa {
    background: #25d366;
}

.sa-footer__social-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

/* Responsive footer */
@media (max-width: 768px) {
    .sa-footer__card {
        flex-direction: column;
        padding: 1.75rem 1.5rem 2rem;
        border-radius: 0 25px 0 0;
        gap: 2rem;
    }

    .sa-footer__logo img {
        max-width: 220px;
    }
}

/* ===========================
   MOBILE (≤1024px) — controles centrados
   =========================== */
@media (max-width: 1024px) {

    .sa-topbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    /* CONTROLES centrados bajo el logo */
    .sa-topbar__controls {
        display: flex !important;
        position: relative !important;
        /* relativo para mantener en flujo */
        width: auto !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        margin: 0.5rem 0 0.5rem 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        z-index: 60 !important;
        background: transparent !important;
        float: none !important;
    }

    .sa-topbar__hamburger {
        background: transparent !important;
        border: 1px solid #c4122f !important;
        color: #c4122f !important;
        font-size: 1.3rem !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    /* Homogeneizar tamaño/alto para que se alineen perfectamente */
    .sa-topbar__hamburger,
    .sa-topbar__controls .sa-topbar__link--cta {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        line-height: 1 !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
    }

    /* CTA móvil: estilo píldora pero contenido no se desborde */
    .sa-topbar__controls .sa-topbar__link--cta {
        min-width: 120px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        white-space: nowrap !important;
        border-radius: 999px !important;

    }

    /* Ocultamos CTA del nav */
    .sa-topbar__nav .sa-topbar__link--cta {
        display: none !important;
    }

    /* Menú mobile oculto por defecto */
    .sa-topbar__nav {
        display: none !important;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
        border-radius: 8px;
        padding: 1rem;
        z-index: 999;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0 1rem;
    }

    /* Cuando se abre */
    .sa-topbar__nav.open {
        display: flex !important;
    }

    .sa-topbar__nav .sa-topbar__link:hover {
        border-bottom: none !important;
        background-color: #E9EDF3;
    }

    .sa-topbar__logo,
    .sa-topbar__controls,
    .sa-topbar__nav {
        float: none !important;
    }
}



/* ===========================
   ESCRITORIO (≥1025px)
   =========================== */
@media (min-width: 1025px) {

    .sa-topbar__nav {
        display: flex;
        justify-content: center;
        gap: 2.5rem;
    }

    /* CTA vuelve al nav */
    .sa-topbar__nav .sa-topbar__link--cta {
        display: inline-block !important;
    }

    /* Se ocultan los controles móviles */
    .sa-topbar__controls,
    .sa-topbar__controls .sa-topbar__link--cta {
        display: none !important;
    }
}

/* ===========================
   AJUSTE GLOBAL PADDING MÓVIL
   =========================== */

@media (max-width: 480px) {

    .sa-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


.school-ampa-page,
.school-ampa-page #page,
.school-ampa-page #content,
.school-ampa-page .site,
.school-ampa-page .site-content,
.school-ampa-page .wp-site-blocks {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}