/*
============================================================
ARTES ESCÉNICAS EN LA ESCUELA — FRONT 2026
Archivo de corrección y nueva identidad gráfica.

Se carga DESPUÉS de:
- Bootstrap
- sed.css
- estilo.css
- accesibilidad_inba.css

Por eso este archivo puede corregir conflictos sin borrar todavía
los estilos que utilizan otras vistas del sitio.
============================================================
*/

:root {
    --aee-yellow: #FFB000;
    --aee-magenta: #D6007E;
    --aee-green: #00A790;
    --aee-white: #FFFFFF;

    --aee-cream: #F9F5E2;
    --aee-text: #242424;
    --aee-muted: #676767;
    --aee-border: rgba(0, 0, 0, .10);

    --aee-nav-height: 72px;
    --aee-radius: 14px;
    --aee-font: "Outfit", Arial, sans-serif;
}

/* ==========================================================
   CORRECCIONES GLOBALES
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: var(--aee-nav-height) 0 0 !important;
    background: var(--aee-white) !important;
    color: var(--aee-text);
    font-family: var(--aee-font);
}

body,
button,
input,
select,
textarea {
    font-family: var(--aee-font);
}

/*
estilo.css aplica padding a todos los <header>.
El header contiene una navbar fixed-top, por lo que ese padding
generaba espacio inútil entre el menú y el banner.
*/
header.site-header {
    margin: 0 !important;
    padding: 0 !important;
    height: 0;
}

/* ==========================================================
   MENÚ PRINCIPAL
   ========================================================== */

#aeeMainNav.navbar {
    min-height: var(--aee-nav-height);
    margin: 0 !important;
    padding: .45rem 0 !important;

    background: rgba(255, 255, 255, .98) !important;
    border: 0;
    border-bottom: 1px solid var(--aee-border);
    box-shadow: 0 3px 15px rgba(0, 0, 0, .06);

    z-index: 1030;
}

#aeeMainNav .container {
    max-width: 1320px;
}

#aeeMainNav .aee-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;

    margin: 0 1.25rem 0 0;
    padding: 0;

    color: var(--aee-magenta) !important;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.02;
    text-decoration: none;
}

#aeeMainNav .aee-brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

#aeeMainNav .navbar-nav {
    gap: .15rem;
}

#aeeMainNav .nav-link {
    position: relative;
    margin: 0;
    padding: .7rem .68rem !important;

    color: var(--aee-text) !important;
    font-size: .96rem;
    font-weight: 500;
    line-height: 1.2;

    background: transparent !important;
}

#aeeMainNav .nav-link:hover,
#aeeMainNav .nav-link:focus,
#aeeMainNav .nav-link.active {
    color: var(--aee-magenta) !important;
}

#aeeMainNav .nav-link::after {
    content: "";
    position: absolute;
    left: .68rem;
    right: .68rem;
    bottom: .28rem;

    height: 4px;
    border: 0;
    border-radius: 999px;

    background: var(--aee-yellow);
    transform: scaleX(0);
    transform-origin: left center;

    transition: transform .2s ease;
}

/* Bootstrap usa ::after para la flecha del dropdown.
   Aquí restauramos su flecha por separado. */
#aeeMainNav .dropdown-toggle::after {
    position: static;
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .35em;
    vertical-align: .16em;

    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;

    background: transparent;
    transform: none;
}

#aeeMainNav .nav-item:not(.dropdown) > .nav-link:hover::after,
#aeeMainNav .nav-item:not(.dropdown) > .nav-link:focus::after,
#aeeMainNav .nav-item:not(.dropdown) > .nav-link.active::after {
    transform: scaleX(1);
}

#aeeMainNav .dropdown-menu {
    padding: .45rem;
    border: 1px solid var(--aee-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

#aeeMainNav .dropdown-item {
    border-radius: 7px;
    color: var(--aee-text);
    font-weight: 500;
}

#aeeMainNav .dropdown-item:hover,
#aeeMainNav .dropdown-item:focus {
    color: var(--aee-magenta);
    background: rgba(214, 0, 126, .07);
}

#aeeMainNav .dropdown-item.active {
    color: var(--aee-text);
    background: var(--aee-yellow);
}

#aeeMainNav .navbar-toggler {
    padding: .35rem .55rem;
    border: 1px solid rgba(0, 0, 0, .18);
    background: var(--aee-white) !important;
    box-shadow: none;
}

#aeeMainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(214, 0, 126, .18);
}

/* sed.css ponía fondo blanco al icono de hamburguesa */
#aeeMainNav .navbar-toggler-icon {
    background-color: transparent !important;
}

/* ==========================================================
   BANNER
   ========================================================== */

#banner.aee-banner {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--aee-cream);
    line-height: 0;
}

#banner.aee-banner #img-banner {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================
   CONTENIDO
   ========================================================== */

main.main.aee-page {
    width: min(1120px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: 1.75rem 0 4.5rem;
}

.aee-breadcrumb {
    margin-bottom: 1.75rem;
}

.aee-breadcrumb .breadcrumb {
    margin: 0;
}

.aee-breadcrumb a {
    color: var(--aee-muted) !important;
}

.aee-breadcrumb .breadcrumb-item.active {
    color: var(--aee-text);
}

.aee-breadcrumb .material-symbols-outlined {
    color: var(--aee-green);
    font-size: 1rem;
}

#aeeMainNav + * {
    margin-top: 0;
}

.aee-content {
    margin: 0 !important;
}

.aee-content p {
    max-width: 980px;
    margin-bottom: 1.15rem;

    color: var(--aee-text);
    font-size: clamp(1.05rem, 1.2vw, 1.22rem);
    line-height: 1.7;
}

.aee-title-block {
    margin-bottom: 1.45rem;
}

.aee-content h1,
.aee-content h2 {
    font-family: var(--aee-font) !important;
}

.aee-content h1 {
    position: relative;
    display: inline-block;

    margin: 0;
    padding-bottom: .35rem;

    color: var(--aee-magenta);
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.aee-content h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 72%;
    height: 8px;

    border-radius: 999px;
    background: var(--aee-yellow);
    z-index: 0;
}

.aee-content h2 {
    position: relative;
    display: inline-block;

    margin: 1.6rem 0 .8rem;

    color: var(--aee-text);
    font-size: clamp(1.5rem, 2.2vw, 2.05rem);
    font-weight: 700;
}

.aee-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.15rem;

    width: 42%;
    height: 5px;

    border-radius: 999px;
    background: var(--aee-green);
    z-index: 0;
}

/* ==========================================================
   TARJETAS DE CIFRAS
   ========================================================== */

.aee-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;

    margin: 2.4rem 0 1.1rem;
}

.aee-stat-card {
    position: relative;
    min-height: 190px;
    padding: 1.35rem;

    overflow: hidden;

    border: 1px solid var(--aee-border);
    border-radius: var(--aee-radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.aee-stat-card::before {
    content: "";
    position: absolute;
    top: -28px;
    right: -28px;

    width: 82px;
    height: 82px;
    border-radius: 50%;

    background: var(--aee-yellow);
    opacity: .9;
}

.aee-stat-card:nth-child(2)::before {
    background: var(--aee-green);
}

.aee-stat-card:nth-child(3)::before {
    background: var(--aee-magenta);
}

.aee-stat-label {
    position: relative;
    z-index: 1;

    margin: 0 0 .25rem !important;

    color: var(--aee-muted) !important;
    font-size: .96rem !important;
    font-weight: 500;
}

.aee-stat-number {
    position: relative;
    z-index: 1;

    margin: 0 0 .8rem !important;

    color: var(--aee-magenta) !important;
    font-size: clamp(2.2rem, 4vw, 3.35rem) !important;
    font-weight: 700;
    line-height: 1;
}

.aee-progress {
    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 999px;
    background: #ececec;
}

.aee-progress span {
    display: block;
    height: 100%;

    border-radius: inherit;
    background: var(--aee-green);
}

.aee-stat-note {
    margin: .7rem 0 0 !important;

    color: var(--aee-muted) !important;
    font-size: .9rem !important;
    line-height: 1.4 !important;
}

.aee-stat-accent {
    display: block;
    width: 70px;
    height: 8px;

    margin-top: 1rem;

    border-radius: 999px;
    background: var(--aee-green);
}

.aee-update-note {
    color: var(--aee-muted) !important;
    font-size: .95rem !important;
}

/* ==========================================================
   CARRUSEL
   ========================================================== */

.aee-carousel-section {
    margin-top: 3rem;
}

.aee-carousel-section .carrusel-wrapper {
    margin: 0 auto;
}

.aee-carousel-section .swiper {
    border-radius: var(--aee-radius);
    overflow: hidden;
}

.aee-carousel-section .swiper-slide {
    position: relative;
}

.aee-carousel-section .swiper-slide img {
    display: block;
    width: 100%;
}

.aee-carousel-section .slide-caption {
    font-family: var(--aee-font);
}

.aee-end-rule {
    width: 68%;
    height: 12px;

    margin: 2.4rem auto 0;

    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--aee-yellow) 0 33.33%,
            var(--aee-magenta) 33.33% 66.66%,
            var(--aee-green) 66.66% 100%
        );
}

/* ==========================================================
   FOOTER
   ========================================================== */

#footer.aee-footer {
    position: relative;

    width: 100%;
    margin: 0;
    padding: 2.6rem 0 !important;

    text-align: left;
    color: var(--aee-white);
    background: #111 !important;

    border-top: 9px solid var(--aee-green);
}

#footer.aee-footer::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 0;

    width: 35%;
    height: 9px;

    background: var(--aee-yellow);
}

#footer.aee-footer .aee-footer-logo {
    display: block;
    max-width: 310px;
}

#footer.aee-footer .titulo-footer {
    color: var(--aee-white);
    font-size: 1.05rem;
    font-weight: 700;
}

#footer.aee-footer .footer-inbal {
    margin: .75rem 0 0;

    color: rgba(255, 255, 255, .83);
    font-size: .9rem;
    line-height: 1.55;
}

/* ==========================================================
   ACCESIBILIDAD

   No se define #accessibility-container porque se eliminó del
   header. Se conserva el componente institucional existente:
   .menu-container / .menu-btn / .menu-slide
   definido en accesibilidad_inba.css.
   ========================================================== */

.menu-container .menu-btn {
    z-index: 11000 !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991.98px) {

    :root {
        --aee-nav-height: 68px;
    }

    #aeeMainNav.navbar {
        min-height: var(--aee-nav-height);
    }

    #aeeMainNav .aee-brand img {
        width: 38px;
        height: 38px;
    }

    #aeeMainNav .navbar-collapse {
        margin-top: .5rem;
        padding: .6rem 0 .8rem;

        border-top: 1px solid var(--aee-border);
        background: #fff;
    }

    #aeeMainNav .navbar-nav {
        align-items: stretch !important;
    }

    #aeeMainNav .nav-link {
        padding: .72rem .2rem !important;
    }

    #aeeMainNav .dropdown-menu {
        margin: 0 0 .35rem;
        border: 0;
        box-shadow: none;
        background: #fafafa;
    }

    .aee-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    main.main.aee-page {
        width: min(100% - 1.5rem, 1120px) !important;
        padding-top: 1.25rem;
    }

    .aee-stat-grid {
        grid-template-columns: 1fr;
    }

    .aee-stat-card {
        min-height: auto;
    }

    #footer.aee-footer {
        text-align: center;
    }

    #footer.aee-footer .aee-footer-logo {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {

    #aeeMainNav .aee-brand span {
        font-size: .85rem;
    }

    #aeeMainNav .aee-brand img {
        width: 34px;
        height: 34px;
    }

    .aee-content h1::after {
        width: 82%;
        height: 6px;
    }

    .aee-end-rule {
        width: 88%;
    }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
