/* Cabecera y pie compartidos por las páginas institucionales. */
.scl-masthead,
.scl-foot {
    font-family: Poppins, Arial, sans-serif;
    line-height: 1.5;
}
.scl-frame-inner {
    width: min(89%, 1320px);
    margin-inline: auto;
}
.scl-masthead {
    position: relative;
    z-index: 10;
    background: #174936;
    color: #fffaf1;
}
.scl-masthead .scl-frame-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.scl-masthead a, .scl-foot a { text-decoration: none; }
.scl-foot-contact a:hover { text-decoration: underline; }
.scl-brand-strip { border-bottom: 1px solid rgb(220 228 211 / 20%); }
.scl-brand-strip .scl-frame-inner { min-height: 86px; }
.scl-shield {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 1;
    gap: 12px;
    color: inherit;
}
.scl-firma { display: grid; gap: 3px; }
.scl-firma small { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.scl-firma strong { font: 600 clamp(20px,1.9vw,29px)/1.08 Poppins,Arial,sans-serif; letter-spacing: -.035em; }
.scl-shield img { display: block; width: auto; height: 57px; }
.scl-frame-nav { min-width: 0; }
.scl-menu-list {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.1vw, 32px);
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}
.scl-menu-list li { margin: 0; padding: 0; list-style: none; }
.scl-menu-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fffaf1;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
}
.scl-menu-list a:is(:hover, :focus-visible, [aria-current="page"]),
.scl-menu-list .current-menu-item > a {
    color: #fffaf1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .45em;
}
.scl-menu-list .scl-menu-inicio { display: none; }
.scl-nav-corto { display: none; }
.scl-frame-skip {
    position: fixed;
    z-index: 100000;
    top: 8px;
    left: 8px;
    padding: 9px 16px;
    color: #132c21 !important;
    background: white;
    transform: translateY(-160%);
}
.scl-frame-skip:focus { transform: translateY(0); }
.scl-menu-list :is(.menu-item-contacto > a, a[href$="/contacto/"]):focus-visible { outline-color: white; }
.scl-masthead :is(a, summary):focus-visible, .scl-foot :is(a, button):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.scl-foot { color: #f5f5e9; clear: both; }
.scl-foot-main {
    background: #163d2f;
    padding-block: clamp(40px, 5vw, 86px);
}
.scl-foot-main .scl-frame-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(22px, 6vw, 100px);
}
.scl-foot-contact h2 {
    color: #f7f4e5;
    font: 600 clamp(18px, 1.7vw, 26px)/1.25 Poppins, Arial, sans-serif;
    margin: 0 0 16px;
}
.scl-foot-contact address {
    display: grid;
    gap: 3px;
    justify-items: start;
    margin: 0;
    color: #e3e9dd;
    font-size: 15px;
    font-style: normal;
}
.scl-foot-contact address a, .scl-foot-contact address p { margin: 0; overflow-wrap: anywhere; }
.scl-foot-social { display: flex; align-items: center; margin-top: 9px; gap: 2px; }
.scl-foot-social a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #e3e9dd;
}
.scl-foot-social svg { display: block; width: 21px; height: 21px; }
.scl-school-map {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    margin: 0;
    background: #e6e9df;
}
.scl-map-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
    padding: 5px 14px;
    background: #f6f5ed;
    color: #203e32;
    font: 500 14px/1.4 Poppins, Arial, sans-serif;
}
.scl-map-address a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #174936;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .17em;
}
.scl-map-address a:focus-visible { outline: 2px solid #174936; outline-offset: 2px; }
.scl-school-map iframe { display: block; width: 100%; height: 100%; min-height: 215px; border: 0; }
.scl-copyright {
    padding: 16px 5%;
    margin: 0;
    text-align: center;
    background: #123526;
    color: #e0e8d9;
    font-size: 13px;
}
@media (max-width: 1024px) {
    .scl-frame-inner { width: 90%; }
    .scl-menu-list { gap: 15px; }
    .scl-menu-list a { font-size: 14px; }
}
@media (max-width: 767px) {
    .scl-frame-inner { width: 90%; }
    .scl-brand-strip .scl-frame-inner { min-height: 70px; gap: 8px; }
    .scl-shield img { height: 45px; }
    .scl-firma small { font-size: 9px; }
    .scl-shield { gap: 8px; }
    .scl-foot-main { padding-block: 36px; }
    .scl-foot-main .scl-frame-inner { grid-template-columns: 1fr; gap: 22px; }
    .scl-foot-contact h2 { margin-bottom: 12px; }
    .scl-copyright { font-size: 12px; }
}

/* El menú toma el color sólido de las páginas internas al salir de la foto. */
.school-inicio { --scl-cabecera: 80px; }
.school-inicio:has(#contenido > .scl-portada:first-child) .scl-masthead {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    margin-bottom: calc(0px - var(--scl-cabecera));
    background-color: #174936;
}
.school-inicio:has(#contenido > .scl-portada:first-child) .scl-masthead.scl-sobre-foto {
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgb(11 26 19 / 60%), rgb(11 26 19 / 12%));
}
.scl-inicio-foto { position: absolute; top: 28px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.school-inicio .scl-brand-strip { box-shadow: none; }
.school-inicio .scl-brand-strip .scl-frame-inner { min-height: var(--scl-cabecera); }
@media (max-width: 767px) {
    .school-inicio { --scl-cabecera: 96px; }
    .scl-brand-strip .scl-frame-inner {
        position: relative; width: 88%; display: flex; flex-direction: column; align-items: stretch;
        justify-content: center; gap: 0; min-height: 96px;
    }
    .scl-brand-strip .scl-shield { align-self: center; gap: 8px; margin: 7px 0 2px; }
    .scl-brand-strip .scl-shield img { height: 37px; }
    .scl-brand-strip .scl-firma { gap: 2px; }
    .scl-brand-strip .scl-firma small { font-size: 8px; }
    .scl-brand-strip .scl-firma strong { font-size: 20px; }
    .scl-frame-nav .scl-menu-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; }
    .scl-frame-nav .scl-menu-list a { font-size: clamp(12px,3.35vw,14px); min-height: 41px; }
    .scl-nav-completo { display: none; }
    .scl-nav-corto { display: inline; }
    .school-inicio:has(#contenido > .scl-portada:first-child) .scl-masthead.scl-sobre-foto {
        background-color: rgb(13 37 27 / 66%); background-image: none;
    }
}
@media (hover: hover) {
    .scl-foot a:hover { text-decoration: underline; text-underline-offset: .22em; }
}

/* Seis destinos a la vista. En teléfonos angostos, dos filas mantienen un blanco táctil cómodo. */
@media (max-width: 480px) {
    .school-inicio { --scl-cabecera: 132px; }
    .scl-brand-strip .scl-frame-inner { min-height: 132px; }
    .scl-frame-nav .scl-menu-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 5px; }
    .scl-frame-nav .scl-menu-list a { display: flex; justify-content: center; min-height: 39px; font-size: 13px; }
}

.scl-foot .scl-school-map {
    overflow: hidden;
    border-radius: 5px 5px 30px 5px;
}
.scl-foot .scl-map-address { background: #edf4eb; }
.scl-foot-compacto .scl-frame-inner { display: block; }
.scl-foot-compacto .scl-foot-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px clamp(24px, 4vw, 64px);
}
.scl-foot-compacto .scl-foot-main { padding-block: clamp(24px, 3.2vw, 48px); }
.scl-foot-compacto h2, .scl-foot-compacto .scl-foot-social { margin: 0; }
.scl-foot-compacto .scl-foot-social { margin-inline-start: auto; }
.scl-foot-secciones { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: .94rem; }
.scl-foot-secciones a { display: inline-flex; align-items: center; min-height: 44px; color: #f5f5e9; }
@media (max-width: 600px) {
    .scl-foot-compacto .scl-foot-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
    .scl-foot-compacto .scl-foot-social { margin-inline-start: 0; }
}
