/**
 * Propuesta E — rediseño visual completo
 * Sin gradiente pastel, sin card-glass, tipografía Poppins en titulares.
 */

/* ── Base ── */
.site-propuesta-e {
    background: var(--blanco);
}

.site-propuesta-e h1,
.site-propuesta-e h2,
.site-propuesta-e h3,
.site-propuesta-e h4,
.site-propuesta-e .section-title,
.site-propuesta-e .logo-text,
.site-propuesta-e .footer-brand-name,
.site-propuesta-e .footer-column h4,
.site-propuesta-e .btn-magenta,
.site-propuesta-e .btn-cta-inverse {
    font-family: 'Poppins', sans-serif;
}

.site-propuesta-e body,
.site-propuesta-e {
    font-family: 'Inter', sans-serif;
}

/* Desactivar patrones eliminados */
.site-propuesta-e .card-glass,
.site-propuesta-e .card-glass-static {
    background: var(--blanco) !important;
    border: 2px solid rgba(var(--azul-rgb), 0.1) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.site-propuesta-e .card-flat {
    background: var(--blanco);
    border: 2px solid rgba(var(--azul-rgb), 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
}

/* Manual — textos, badges y botones centrados */
.site-propuesta-e .manual-page .section-title,
.site-propuesta-e .manual-page .section-lead {
    text-align: center;
}

.site-propuesta-e .manual-page .manual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.site-propuesta-e .manual-page .manual-card h3 {
    min-height: 2.6em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.site-propuesta-e .manual-page .manual-card > p {
    flex: 1 1 auto;
    min-height: 3.2em;
    margin-bottom: 0;
}

.site-propuesta-e .manual-page .manual-card .doc-badge {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.site-propuesta-e .manual-page .manual-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.site-propuesta-e .manual-page .manual-card__cta,
.site-propuesta-e .manual-page .manual-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
}

.site-propuesta-e .manual-page .manual-card__cta {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

/* ── Header fijo transparente (home) ── */
.site-propuesta-e header {
    background: var(--azul-institucional) !important;
    border-bottom: 3px solid var(--celeste-escudo) !important;
    box-shadow: 0 4px 16px rgba(var(--azul-rgb), 0.28) !important;
}

/* Restos de menú legacy fuera del header (p. ej. manual.html con nav huérfano). */
.site-propuesta-e #header-placeholder + header,
.site-propuesta-e #header-placeholder + nav,
.site-propuesta-e #header-placeholder + ul.nav-links,
.site-propuesta-e #header-placeholder + ul#primary-menu,
.site-propuesta-e #header-placeholder + .navbar,
.site-propuesta-e #header-placeholder + .nav {
    display: none !important;
}

.site-propuesta-e #header-placeholder header {
    overflow: visible;
}

.site-propuesta-e.page-home .site-header--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-propuesta-e.page-home .site-header--overlay.scrolled {
    background: var(--azul-institucional) !important;
    border-bottom: 3px solid var(--celeste-escudo) !important;
    box-shadow: 0 4px 16px rgba(var(--azul-rgb), 0.28) !important;
}

.site-propuesta-e.page-home #main {
    padding-top: 0;
}

/* ── Hero pantalla completa ── */
.pe-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--azul-institucional);
}

.pe-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
}

.pe-hero__video,
.pe-hero__fallback-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.pe-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.62);
    z-index: 1;
}

.pe-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 980px;
}

.pe-hero__content h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    color: var(--blanco);
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Franja de cifras (oscuro + franja celeste) ── */
.pe-stats {
    background: var(--azul-institucional);
    padding: 32px var(--page-gutter);
    border-bottom: 6px solid var(--celeste-escudo);
}

.pe-stats__grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.pe-stats__number {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    line-height: 1.15;
    color: var(--celeste-escudo);
}

.pe-stats__number--word {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.pe-stats__label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.35;
}

.pe-stats__link {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;
    cursor: pointer;
    vertical-align: top;
}

.pe-stats__link .pe-stats__number,
.pe-stats__link .pe-stats__label {
    display: block;
}

.pe-stats__link .pe-stats__number {
    margin: 0 0 6px;
}

.pe-stats__link .pe-stats__label {
    margin: 0;
}

.pe-stats__link:hover,
.pe-stats__link:focus-visible,
.pe-stats__link:visited {
    text-decoration: none;
}

.site-propuesta-e a.pe-stats__link {
    color: inherit;
}

.site-propuesta-e a.pe-stats__link:hover,
.site-propuesta-e a.pe-stats__link:focus-visible,
.site-propuesta-e a.pe-stats__link:visited {
    color: inherit;
}

.site-propuesta-e .pe-stats__link:focus-visible {
    outline: 2px solid rgba(var(--celeste-escudo-rgb), 0.85);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Nuestras Etapas — pantalla completa 50/50 con título central ── */
.pe-etapas {
    padding: 0;
    background: var(--azul-institucional);
    border-bottom: 6px solid var(--celeste-escudo);
}

.pe-etapas__split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(520px, 78vh, 820px);
}

.pe-etapas__center {
    position: absolute;
    left: 50%;
    top: clamp(40px, 10vh, 88px);
    z-index: 5;
    transform: translateX(-50%);
    width: min(400px, 84vw);
    text-align: center;
    pointer-events: none;
    padding: 0 12px;
}

.pe-etapas__center-cta {
    pointer-events: auto;
    display: inline-block;
    margin-top: 18px;
    padding: 11px 24px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--blanco);
    border: 2px solid var(--celeste-escudo);
    background: rgba(var(--celeste-escudo-rgb), 0.15);
    transition: opacity 0.2s ease, background 0.2s ease;
}

.pe-etapas__center-cta:hover {
    opacity: 0.92;
    background: rgba(var(--celeste-escudo-rgb), 0.28);
}

.pe-etapas__center-title {
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(1.65rem, 3.8vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.pe-etapas__center-lead {
    margin: 0;
    font-size: clamp(0.82rem, 1.55vw, 0.95rem);
    line-height: 1.5;
    font-weight: 600;
    max-width: 36ch;
    margin-inline: auto;
}

.pe-etapas__w {
    display: inline;
}

.pe-etapas__w--a {
    color: var(--blanco);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.pe-etapas__w--b {
    color: var(--celeste-escudo);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.pe-stage {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(108px, 20vh, 168px) clamp(20px, 3.5vw, 36px) clamp(40px, 7vh, 64px);
}

.pe-stage__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: min(520px, 90%);
    margin: 0 auto;
    text-align: center;
}

.pe-stage--primaria .pe-stage__body {
    padding-right: clamp(0px, 4vw, 48px);
}

.pe-stage--bachillerato .pe-stage__body {
    padding-left: clamp(0px, 4vw, 48px);
}

.pe-stage__orbit {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pe-stage__orbit-icon {
    position: absolute;
    opacity: 0.22;
    color: var(--celeste-escudo);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

.pe-stage--primaria .pe-stage__orbit-icon--1 { top: 10%; left: 8%; font-size: 2.2rem; opacity: 0.28; }
.pe-stage--primaria .pe-stage__orbit-icon--2 { top: 22%; right: 14%; }
.pe-stage--primaria .pe-stage__orbit-icon--3 { top: 48%; left: 12%; }
.pe-stage--primaria .pe-stage__orbit-icon--4 { bottom: 28%; right: 10%; font-size: 1.75rem; }
.pe-stage--primaria .pe-stage__orbit-icon--5 { bottom: 12%; left: 22%; }

.pe-stage--bachillerato .pe-stage__orbit-icon--1 { top: 12%; right: 10%; font-size: 2.2rem; opacity: 0.28; }
.pe-stage--bachillerato .pe-stage__orbit-icon--2 { top: 26%; left: 12%; }
.pe-stage--bachillerato .pe-stage__orbit-icon--3 { top: 50%; right: 14%; }
.pe-stage--bachillerato .pe-stage__orbit-icon--4 { bottom: 30%; left: 8%; font-size: 1.75rem; }
.pe-stage--bachillerato .pe-stage__orbit-icon--5 { bottom: 14%; right: 20%; }

.pe-stage__decor {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    color: currentColor;
}

.pe-stage__decor--book {
    top: 6%;
    right: 5%;
    width: clamp(100px, 18vw, 180px);
    height: auto;
}

.pe-stage__decor--cap {
    bottom: 8%;
    left: 4%;
    width: clamp(90px, 16vw, 160px);
    height: auto;
}

.pe-stage__icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin: 0 auto 4px;
}

.pe-stage--primaria {
    background: var(--azul-institucional);
    color: var(--blanco);
}

.pe-stage--primaria .pe-stage__icon {
    background: rgba(var(--celeste-escudo-rgb), 0.2);
    color: var(--celeste-escudo);
}

.pe-stage--primaria h3,
.pe-stage--primaria .pe-stage__tagline,
.pe-stage--primaria p {
    color: var(--blanco);
}

.pe-stage--bachillerato {
    background: var(--azul-profundo);
    color: var(--blanco);
}

.pe-stage--bachillerato .pe-stage__icon {
    background: rgba(var(--celeste-escudo-rgb), 0.18);
    color: var(--celeste-escudo);
}

.pe-stage--bachillerato h3,
.pe-stage--bachillerato .pe-stage__tagline,
.pe-stage--bachillerato p {
    color: var(--blanco);
}

.pe-stage h3 {
    margin: 0;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    line-height: 1.2;
}

.pe-stage__tagline {
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    opacity: 0.95;
}

.pe-stage p {
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    font-size: clamp(0.92rem, 1.45vw, 1.02rem);
    max-width: 48ch;
}

.pe-stage__link {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 4px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border: 2px solid currentColor;
    transition: opacity 0.2s ease;
    align-self: center;
}

.pe-stage__link:hover {
    opacity: 0.88;
}

.pe-stage--primaria .pe-stage__link,
.pe-stage--bachillerato .pe-stage__link {
    color: var(--blanco);
}

.pe-section-title {
    text-align: center;
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--azul-institucional);
}

.pe-section-lead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--gris-texto);
    line-height: 1.55;
}

/* ── Nuestra Identidad ── */
.pe-identidad {
    position: relative;
    overflow: hidden;
    background: var(--celeste-escudo);
    padding: var(--section-pad-y) var(--page-gutter);
}

.pe-identidad__decor {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
    color: var(--azul-institucional);
}

.pe-identidad__decor--ribbon {
    top: 8%;
    left: 4%;
    width: 120px;
    height: 120px;
}

.pe-identidad__decor--cross {
    top: 12%;
    right: 6%;
    width: 80px;
    height: 80px;
}

.pe-identidad__decor--book {
    bottom: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
}

.pe-identidad__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
}

.pe-identidad .pe-section-title {
    color: var(--azul-institucional);
}

.pe-identidad__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.pe-identidad__block h3 {
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--azul-institucional);
    font-size: 1.25rem;
}

.pe-identidad__block p {
    margin: 0;
    color: var(--azul-institucional);
    line-height: 1.6;
    font-weight: 500;
}

/* ── CTA Reserva cupo ── */
.pe-cta {
    background: var(--magenta-logo);
    padding: 64px var(--page-gutter);
    text-align: center;
    border-bottom: 6px solid var(--celeste-escudo);
}

.pe-cta h2 {
    margin: 0 0 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blanco);
    line-height: 1.15;
}

.pe-cta .btn-cta-inverse {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 36px;
}

/* ── Reconocimientos ── */
.pe-recon {
    padding: var(--section-pad-y) var(--page-gutter);
    background: var(--blanco);
    border-bottom: 6px solid var(--celeste-escudo);
}

.pe-recon__grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pe-recon__item {
    padding: 28px;
    border-left: 6px solid var(--celeste-escudo);
    background: var(--celeste-fondo);
}

.pe-recon__item h3 {
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--azul-institucional);
}

.pe-recon__item p {
    margin: 0;
    color: var(--gris-texto);
    line-height: 1.55;
}

/* ── Testimonios (oscuro) ── */
.pe-testimonios {
    background: var(--azul-institucional);
    padding: var(--section-pad-y) var(--page-gutter);
    border-bottom: 6px solid var(--celeste-escudo);
}

.pe-testimonios .pe-section-title {
    color: var(--blanco);
}

.pe-testimonios .pe-section-lead {
    color: rgba(255, 255, 255, 0.9);
}

.pe-testimonios__grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pe-testimonial {
    margin: 0;
    background: var(--blanco);
    border-radius: 12px;
    padding: 28px;
    color: var(--gris-texto);
}

.pe-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--magenta-logo);
    color: var(--blanco);
    display: grid;
    place-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 16px;
}

.pe-testimonial blockquote,
.pe-testimonial p {
    margin: 0 0 16px;
    font-style: italic;
    line-height: 1.55;
}

.pe-testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pe-testimonial cite {
    font-style: normal;
    font-weight: 700;
    color: var(--azul-institucional);
}

.pe-testimonial footer span {
    font-size: 0.88rem;
    color: var(--gris-texto-suave);
}

/* ── Alianzas (fondo e iconos como noticias) ── */
.pe-alianzas {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: var(--section-pad-y) var(--page-gutter);
    background:
        radial-gradient(ellipse 82% 58% at 18% 14%, rgba(var(--celeste-escudo-rgb), 0.11), transparent 72%),
        radial-gradient(ellipse 72% 52% at 86% 82%, rgba(var(--magenta-rgb), 0.05), transparent 68%),
        radial-gradient(ellipse 55% 42% at 52% 48%, rgba(var(--azul-rgb), 0.04), transparent 75%),
        linear-gradient(180deg, var(--celeste-fondo) 0%, #eef4f9 50%, var(--celeste-fondo) 100%);
}

.pe-alianzas__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pe-alianzas__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
}

.pe-alianzas .pe-section-title {
    color: var(--azul-institucional);
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.pe-alianzas .pe-section-lead {
    color: var(--gris-texto);
}

.ally-deco {
    position: absolute;
    color: var(--azul-institucional);
    opacity: 0.09;
}

.ally-deco--handshake { top: 7%; left: 4%; width: clamp(88px, 11vw, 132px); }
.ally-deco--globe { top: 8%; right: 5%; width: clamp(84px, 10vw, 124px); opacity: 0.1; }
.ally-deco--language { top: 28%; left: 3%; width: clamp(72px, 9vw, 108px); }
.ally-deco--robot { top: 30%; right: 4%; width: clamp(80px, 9vw, 116px); opacity: 0.1; }
.ally-deco--pool { top: 50%; left: 6%; width: clamp(76px, 9vw, 112px); opacity: 0.08; }
.ally-deco--soccer { top: 52%; right: 7%; width: clamp(72px, 8vw, 104px); }
.ally-deco--people { bottom: 18%; left: 5%; width: clamp(84px, 10vw, 120px); opacity: 0.1; }
.ally-deco--school { bottom: 16%; right: 6%; width: clamp(80px, 9vw, 116px); }
.ally-deco--link { bottom: 6%; left: 14%; width: clamp(64px, 8vw, 96px); opacity: 0.08; }
.ally-deco--trophy { bottom: 7%; right: 14%; width: clamp(68px, 8vw, 100px); color: var(--magenta, #c41e6a); opacity: 0.08; }
.ally-deco--hub { top: 16%; left: 16%; width: clamp(56px, 7vw, 84px); opacity: 0.07; }

.pe-alianzas .allies-grid {
    max-width: none;
    margin: 0 auto;
}

.pe-alianzas .ally-info {
    height: 100%;
    justify-content: flex-start;
    gap: 16px;
}

.pe-alianzas .ally-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75em;
    margin-bottom: 0;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}

.pe-alianzas .ally-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    margin-top: auto;
}

.pe-alianzas .ally-info p {
    color: inherit;
}

.pe-alianzas .ally-card {
    background: var(--blanco);
    border: 2px solid rgba(var(--azul-rgb), 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(var(--azul-rgb), 0.08);
    align-items: stretch;
}

.pe-alianzas .ally-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--azul-rgb), 0.14);
    background: var(--blanco);
    box-shadow: 0 18px 36px rgba(var(--azul-rgb), 0.12);
}

.pe-alianzas .ally-logo {
    display: block;
    max-width: min(180px, 100%);
    width: auto;
    height: auto;
    max-height: 84px;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(1) brightness(0.92);
    opacity: 0.88;
    transition: filter 0.35s, opacity 0.35s;
}

.pe-alianzas .ally-card:hover .ally-logo {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.pe-alianzas .ally-logo.ally-logo--marlins {
    max-height: 100px;
    border-radius: 50%;
}

.pe-alianzas .ally-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 10px 14px;
    border-radius: 10px;
}

.pe-alianzas .ally-logo-shell--enexai {
    background: transparent;
}

.pe-alianzas .ally-logo--enexai {
    mix-blend-mode: multiply;
    filter: grayscale(1);
    opacity: 0.92;
}

.pe-alianzas .ally-card:hover .ally-logo--enexai {
    filter: grayscale(0);
    opacity: 1;
}

/* ── Noticias (fondo decorativo + iconos temáticos) ── */
.site-propuesta-e .pe-noticias,
.site-propuesta-e main.page-container.noticias-page,
.site-propuesta-e main.page-container.galeria-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 82% 58% at 18% 14%, rgba(var(--celeste-escudo-rgb), 0.11), transparent 72%),
        radial-gradient(ellipse 72% 52% at 86% 82%, rgba(var(--magenta-rgb), 0.05), transparent 68%),
        radial-gradient(ellipse 55% 42% at 52% 48%, rgba(var(--azul-rgb), 0.04), transparent 75%),
        linear-gradient(180deg, var(--celeste-fondo) 0%, #eef4f9 50%, var(--celeste-fondo) 100%);
}

.site-propuesta-e .pe-noticias {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: var(--section-pad-y) var(--page-gutter);
}

.site-propuesta-e main.page-container.noticias-page,
.site-propuesta-e main.page-container.galeria-page {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: var(--page-top-pad);
    padding-bottom: var(--section-pad-y);
}

.site-propuesta-e .news-section__deco,
.site-propuesta-e .pe-noticias__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-propuesta-e .pe-noticias__inner,
.site-propuesta-e .news-section__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-propuesta-e .news-section {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 7vw, 72px) var(--page-gutter) clamp(48px, 8vw, 80px);
}

.site-propuesta-e .news-section .section-title,
.site-propuesta-e .pe-noticias .pe-section-title {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.site-propuesta-e .news-section__lead,
.site-propuesta-e .pe-noticias .pe-section-lead {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.site-propuesta-e .news-deco {
    position: absolute;
    color: var(--azul-institucional);
    opacity: 0.08;
}

.site-propuesta-e .news-deco--paper {
    top: 7%;
    left: 5%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .news-deco--megaphone {
    top: 8%;
    right: 6%;
    width: clamp(92px, 11vw, 132px);
}

.site-propuesta-e .news-deco--calendar {
    top: 40%;
    left: 4%;
    width: clamp(80px, 9vw, 116px);
    opacity: 0.07;
}

.site-propuesta-e .news-deco--photo {
    top: 36%;
    right: 5%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .news-deco--rss {
    bottom: 14%;
    left: 10%;
    width: clamp(76px, 9vw, 108px);
    opacity: 0.065;
}

.site-propuesta-e .news-deco--bell {
    bottom: 12%;
    right: 9%;
    width: clamp(80px, 9vw, 112px);
    opacity: 0.07;
}

.site-propuesta-e .pe-noticias .news-card,
.site-propuesta-e .noticias-page .news-card,
.site-propuesta-e .galeria-page .news-card {
    border-radius: 12px;
    border: 2px solid rgba(var(--azul-rgb), 0.08);
    background: var(--blanco);
    box-shadow: 0 12px 32px rgba(var(--azul-rgb), 0.08);
}

.site-propuesta-e .noticias-page .news-detail-card,
.site-propuesta-e .galeria-page .news-detail-card {
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-propuesta-e .noticias-page .news-doc-cta {
    margin: 1rem 0 0;
    text-align: center;
}

.site-propuesta-e .noticias-page .news-doc-cta a {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--magenta, #c41e6a);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.site-propuesta-e .noticias-page .news-doc-cta a:hover {
    opacity: 0.92;
}

.site-propuesta-e .noticias-page .news-rich-body a img,
.site-propuesta-e .noticias-page .news-hero-link img,
.site-propuesta-e .galeria-page .news-hero-link img {
    cursor: pointer;
}

.site-propuesta-e .noticias-page .news-hero-link,
.site-propuesta-e .galeria-page .news-hero-link {
    text-align: center;
}

.site-propuesta-e .gallery-section {
    min-height: min(88vh, 920px);
}

.site-propuesta-e .gallery-deco {
    position: absolute;
    color: var(--azul-institucional);
    opacity: 0.11;
}

.site-propuesta-e .gallery-deco--camera { top: 6%; left: 4%; width: clamp(92px, 11vw, 140px); }
.site-propuesta-e .gallery-deco--photo { top: 8%; right: 5%; width: clamp(88px, 10vw, 132px); opacity: 0.12; }
.site-propuesta-e .gallery-deco--heart { top: 28%; left: 3%; width: clamp(64px, 8vw, 96px); color: var(--magenta, #c41e6a); opacity: 0.1; }
.site-propuesta-e .gallery-deco--album { top: 32%; right: 4%; width: clamp(80px, 9vw, 118px); }
.site-propuesta-e .gallery-deco--add-photo { top: 48%; left: 6%; width: clamp(72px, 8vw, 108px); opacity: 0.09; }
.site-propuesta-e .gallery-deco--landscape { top: 52%; right: 7%; width: clamp(96px, 11vw, 136px); opacity: 0.1; }
.site-propuesta-e .gallery-deco--chat { bottom: 22%; left: 5%; width: clamp(70px, 8vw, 104px); }
.site-propuesta-e .gallery-deco--star { bottom: 18%; right: 6%; width: clamp(68px, 8vw, 100px); color: var(--magenta, #c41e6a); opacity: 0.09; }
.site-propuesta-e .gallery-deco--people { bottom: 8%; left: 12%; width: clamp(84px, 10vw, 124px); opacity: 0.1; }
.site-propuesta-e .gallery-deco--film { bottom: 6%; right: 12%; width: clamp(76px, 9vw, 112px); }
.site-propuesta-e .gallery-deco--spark { top: 18%; left: 14%; width: clamp(56px, 7vw, 84px); opacity: 0.08; }
.site-propuesta-e .gallery-deco--frames { top: 16%; right: 16%; width: clamp(72px, 8vw, 108px); opacity: 0.09; }
.site-propuesta-e .gallery-deco--heart-2 { bottom: 34%; right: 14%; width: clamp(52px, 6vw, 76px); color: var(--magenta, #c41e6a); opacity: 0.08; }
.site-propuesta-e .gallery-deco--cam-2 { bottom: 36%; left: 16%; width: clamp(70px, 8vw, 100px); opacity: 0.08; }

.site-propuesta-e .ig-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.site-propuesta-e .ig-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 4px 0 18px;
}

.site-propuesta-e .ig-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.site-propuesta-e .ig-admin-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.site-propuesta-e .ig-admin-btn--upload {
    background: var(--azul-institucional);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--azul-rgb), 0.22);
}

.site-propuesta-e .ig-admin-btn--upload:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

.site-propuesta-e .ig-admin-btn--danger {
    background: #fff;
    color: #8a1f2e;
    border: 1px solid rgba(138, 31, 46, 0.28);
    padding: 8px 12px;
    font-size: 0.86rem;
}

.site-propuesta-e .ig-admin-btn--danger:hover {
    background: rgba(138, 31, 46, 0.06);
}

.site-propuesta-e .ig-delete-form {
    margin: 0;
    flex-shrink: 0;
}

.site-propuesta-e .ig-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(var(--azul-rgb), 0.06);
    box-shadow: 0 8px 22px rgba(var(--azul-rgb), 0.08);
    color: inherit;
}

.site-propuesta-e .ig-tile:focus-visible {
    outline: 3px solid rgba(var(--azul-rgb), 0.45);
    outline-offset: 3px;
}

.site-propuesta-e .ig-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.site-propuesta-e .ig-tile:hover img,
.site-propuesta-e .ig-tile:focus-visible img {
    transform: scale(1.04);
}

.site-propuesta-e .ig-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(10, 17, 40, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 700;
}

.site-propuesta-e .ig-tile:hover .ig-tile__overlay,
.site-propuesta-e .ig-tile:focus-visible .ig-tile__overlay {
    opacity: 1;
}

.site-propuesta-e .ig-tile__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.site-propuesta-e .ig-tile__stat svg {
    width: 18px;
    height: 18px;
}

.site-propuesta-e .ig-tile__stat[hidden] {
    display: none !important;
}

.site-propuesta-e .ig-lightbox {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 20px;
}

.site-propuesta-e .ig-lightbox[hidden] {
    display: none;
}

.site-propuesta-e .ig-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.78);
}

.site-propuesta-e .ig-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 36px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.site-propuesta-e .ig-lightbox__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 380px);
    max-height: calc(100vh - 36px);
}

.site-propuesta-e .ig-lightbox__photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1128;
    min-height: 320px;
}

.site-propuesta-e .ig-lightbox__photo img {
    max-width: 100%;
    max-height: calc(100vh - 36px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__dialog {
    width: min(100vw - 24px, 1400px);
    background: transparent;
    box-shadow: none;
}

.site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__layout {
    grid-template-columns: 1fr;
}

.site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__side {
    display: none;
}

.site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__photo {
    background: transparent;
    min-height: 0;
}

.site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__photo img {
    max-width: 96vw;
    max-height: 94vh;
    cursor: zoom-out;
}

.site-propuesta-e .ig-lightbox__expand {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--azul-institucional);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-propuesta-e .ig-lightbox__expand svg {
    width: 20px;
    height: 20px;
}

.site-propuesta-e .ig-lightbox__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.site-propuesta-e .ig-lightbox__side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 18px 16px;
    max-height: calc(100vh - 56px);
}

.site-propuesta-e .ig-lightbox__side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.site-propuesta-e .ig-lightbox__heading {
    min-width: 0;
    flex: 1;
}

.site-propuesta-e .ig-lightbox__title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--azul-institucional);
    line-height: 1.3;
}

.site-propuesta-e .ig-lightbox__date {
    margin: 0 0 12px;
    font-size: 0.88rem;
}

.site-propuesta-e .ig-lightbox__desc {
    margin: 0 0 14px;
    white-space: pre-wrap;
    color: var(--gris-texto);
    line-height: 1.55;
    font-size: 0.98rem;
}

.site-propuesta-e .ig-lightbox__desc:empty {
    display: none;
}

.site-propuesta-e .ig-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(var(--azul-rgb), 0.14);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: var(--azul-institucional);
    cursor: pointer;
}

.site-propuesta-e .ig-like-btn__icon {
    width: 22px;
    height: 22px;
    opacity: 0.45;
}

.site-propuesta-e .ig-like-btn.is-liked .ig-like-btn__icon {
    opacity: 1;
}

.site-propuesta-e .ig-like-btn.is-liked {
    color: var(--magenta, #c41e6a);
    border-color: rgba(196, 30, 106, 0.28);
    background: rgba(196, 30, 106, 0.06);
}

.site-propuesta-e .ig-comments-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.site-propuesta-e .ig-comments-panel[hidden] {
    display: none !important;
}

.site-propuesta-e .ig-comments {
    flex: 1;
    overflow: auto;
    margin: 14px 0;
    min-height: 80px;
    border-top: 1px solid rgba(var(--azul-rgb), 0.08);
    padding-top: 12px;
}

.site-propuesta-e .ig-comment {
    margin: 0 0 12px;
}

.site-propuesta-e .ig-comment__author {
    font-weight: 700;
    color: var(--azul-institucional);
    margin-right: 6px;
}

.site-propuesta-e .ig-comment__body {
    white-space: pre-wrap;
    color: var(--gris-texto);
}

.site-propuesta-e .ig-comment__date {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.site-propuesta-e .ig-comment-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    border-top: 1px solid rgba(var(--azul-rgb), 0.08);
    padding-top: 12px;
}

.site-propuesta-e .ig-comment-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 96px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(var(--azul-rgb), 0.16);
    padding: 8px 10px;
    font: inherit;
}

.site-propuesta-e .ig-comment-form button {
    border: 0;
    border-radius: 999px;
    background: var(--magenta, #c41e6a);
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
}

.site-propuesta-e .ig-lightbox__admin {
    margin-top: 10px;
}

body.ig-lightbox-open {
    overflow: hidden;
}

body.ig-lightbox-open #header-placeholder {
    z-index: 0;
}

@media (hover: none) {
    .site-propuesta-e .ig-tile__overlay {
        opacity: 1;
        align-items: flex-end;
        background: linear-gradient(180deg, transparent 40%, rgba(10, 17, 40, 0.55) 100%);
        padding-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .site-propuesta-e .ig-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .site-propuesta-e .ig-toolbar {
        justify-content: stretch;
    }
    .site-propuesta-e .ig-admin-btn--upload {
        width: 100%;
        justify-content: center;
    }
    .site-propuesta-e .ig-lightbox {
        padding: 0;
    }
    .site-propuesta-e .ig-lightbox__close {
        top: 10px;
        right: 10px;
        background: rgba(10, 17, 40, 0.55);
    }
    .site-propuesta-e .ig-lightbox__dialog,
    .site-propuesta-e .ig-lightbox.is-expanded .ig-lightbox__dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .site-propuesta-e .ig-lightbox__layout {
        grid-template-columns: 1fr;
        max-height: 100vh;
        overflow: auto;
    }
    .site-propuesta-e .ig-lightbox__photo img {
        max-height: 52vh;
    }
    .site-propuesta-e .ig-lightbox__side {
        max-height: none;
    }
    .site-propuesta-e .ig-lightbox__side-head {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .site-propuesta-e .ig-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .site-propuesta-e .ig-tile {
        border-radius: 4px;
    }
}

/* ── Páginas internas con fondo decorativo (contacto, manual, 404, acceso) ── */
.site-propuesta-e main.page-container.contacto-page,
.site-propuesta-e main.page-container.manual-page,
.site-propuesta-e main.page-container.page-404,
.site-propuesta-e main.page-container.access-page {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: var(--page-top-pad);
    padding-bottom: var(--section-pad-y);
    overflow: hidden;
    background:
        radial-gradient(ellipse 82% 58% at 18% 14%, rgba(var(--celeste-escudo-rgb), 0.11), transparent 72%),
        radial-gradient(ellipse 72% 52% at 86% 82%, rgba(var(--magenta-rgb), 0.05), transparent 68%),
        radial-gradient(ellipse 55% 42% at 52% 48%, rgba(var(--azul-rgb), 0.04), transparent 75%),
        linear-gradient(180deg, var(--celeste-fondo) 0%, #eef4f9 50%, var(--celeste-fondo) 100%);
}

.site-propuesta-e main.page-container.page-404 {
    display: block;
}

.site-propuesta-e .contacto-page__deco,
.site-propuesta-e .manual-page__deco,
.site-propuesta-e .page-404__deco,
.site-propuesta-e .access-page__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-propuesta-e .contacto-page__inner,
.site-propuesta-e .manual-page__inner,
.site-propuesta-e .page-404__inner,
.site-propuesta-e .access-page__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

.site-propuesta-e main.page-container.page-404 .page-404__inner {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.site-propuesta-e .contacto-page .card-flat,
.site-propuesta-e .manual-page .card-flat,
.site-propuesta-e .access-page .card-flat {
    box-shadow: 0 12px 32px rgba(var(--azul-rgb), 0.08);
}

.site-propuesta-e .page-deco {
    position: absolute;
    color: var(--azul-institucional);
    opacity: 0.08;
}

/* Contacto */
.site-propuesta-e .contact-deco--mail {
    top: 7%;
    left: 5%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .contact-deco--phone {
    top: 8%;
    right: 6%;
    width: clamp(92px, 11vw, 132px);
}

.site-propuesta-e .contact-deco--pin {
    top: 40%;
    left: 4%;
    width: clamp(80px, 9vw, 116px);
    opacity: 0.07;
}

.site-propuesta-e .contact-deco--map {
    top: 36%;
    right: 5%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .contact-deco--chat {
    bottom: 14%;
    left: 10%;
    width: clamp(76px, 9vw, 108px);
    opacity: 0.065;
}

.site-propuesta-e .contact-deco--schedule {
    bottom: 12%;
    right: 9%;
    width: clamp(80px, 9vw, 112px);
    opacity: 0.07;
}

/* Manual de convivencia */
.site-propuesta-e .manual-deco--book {
    top: 7%;
    left: 5%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .manual-deco--doc {
    top: 8%;
    right: 6%;
    width: clamp(92px, 11vw, 132px);
}

.site-propuesta-e .manual-deco--peace {
    top: 40%;
    left: 4%;
    width: clamp(80px, 9vw, 116px);
    opacity: 0.07;
}

.site-propuesta-e .manual-deco--rules {
    top: 36%;
    right: 5%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .manual-deco--folder {
    bottom: 14%;
    left: 10%;
    width: clamp(76px, 9vw, 108px);
    opacity: 0.065;
}

.site-propuesta-e .manual-deco--shield {
    bottom: 12%;
    right: 9%;
    width: clamp(80px, 9vw, 112px);
    opacity: 0.07;
}

/* Error 404 */
.site-propuesta-e .error-deco--search {
    top: 8%;
    left: 6%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .error-deco--home {
    top: 6%;
    right: 8%;
    width: clamp(96px, 11vw, 136px);
}

.site-propuesta-e .error-deco--help {
    top: 42%;
    left: 4%;
    width: clamp(92px, 10vw, 124px);
    opacity: 0.065;
}

.site-propuesta-e .error-deco--compass {
    top: 38%;
    right: 6%;
    width: clamp(76px, 9vw, 112px);
    opacity: 0.07;
}

.site-propuesta-e .error-deco--link {
    bottom: 12%;
    left: 10%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .error-deco--sign {
    bottom: 10%;
    right: 12%;
    width: clamp(88px, 10vw, 124px);
    opacity: 0.07;
}

/* Acceso al portal */
.site-propuesta-e .access-deco--login {
    top: 7%;
    left: 5%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .access-deco--user {
    top: 8%;
    right: 6%;
    width: clamp(92px, 11vw, 132px);
}

.site-propuesta-e .access-deco--lock {
    top: 40%;
    left: 4%;
    width: clamp(80px, 9vw, 116px);
    opacity: 0.07;
}

.site-propuesta-e .access-deco--school {
    top: 36%;
    right: 5%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .access-deco--family {
    bottom: 14%;
    left: 10%;
    width: clamp(76px, 9vw, 108px);
    opacity: 0.065;
}

.site-propuesta-e .access-deco--key {
    bottom: 12%;
    right: 9%;
    width: clamp(80px, 9vw, 112px);
    opacity: 0.07;
}

.site-propuesta-e.sistema-body main.page-container.sistema-page.access-page:has(.sistema-access-page) {
    padding-top: var(--page-top-pad);
    padding-bottom: var(--section-pad-y);
}

/* ── Nosotros — identidad (tarjetas + fondo con iconos en todo el main) ── */
.site-propuesta-e main.page-container.nosotros-page {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: var(--page-top-pad);
    padding-bottom: var(--section-pad-y);
    background:
        radial-gradient(ellipse 85% 55% at 15% 12%, rgba(var(--celeste-escudo-rgb), 0.1), transparent 72%),
        radial-gradient(ellipse 75% 50% at 88% 88%, rgba(var(--azul-rgb), 0.07), transparent 70%),
        radial-gradient(ellipse 60% 45% at 50% 50%, rgba(var(--celeste-escudo-rgb), 0.04), transparent 75%),
        linear-gradient(180deg, var(--celeste-fondo) 0%, #eef4f9 50%, var(--celeste-fondo) 100%);
    overflow: hidden;
}

.site-propuesta-e .nosotros-page .identity-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(40px, 7vw, 72px) var(--page-gutter) clamp(48px, 8vw, 80px);
    background: transparent;
}

.site-propuesta-e main.page-container.nosotros-page .nosotros-page__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.site-propuesta-e .nosotros-page .identity-deco {
    position: absolute;
    color: var(--azul-institucional);
    opacity: 0.08;
}

.site-propuesta-e .nosotros-page .identity-deco--book {
    top: 8%;
    left: 6%;
    width: clamp(88px, 10vw, 128px);
}

.site-propuesta-e .nosotros-page .identity-deco--study {
    top: 6%;
    right: 8%;
    width: clamp(96px, 11vw, 136px);
}

.site-propuesta-e .nosotros-page .identity-deco--compass {
    top: 42%;
    left: 4%;
    width: clamp(92px, 10vw, 124px);
    opacity: 0.065;
}

.site-propuesta-e .nosotros-page .identity-deco--reason {
    top: 38%;
    right: 6%;
    width: clamp(76px, 9vw, 112px);
    opacity: 0.07;
}

.site-propuesta-e .nosotros-page .identity-deco--heart {
    bottom: 12%;
    left: 10%;
    width: clamp(84px, 10vw, 120px);
    opacity: 0.075;
}

.site-propuesta-e .nosotros-page .identity-deco--faith {
    bottom: 10%;
    right: 12%;
    width: clamp(88px, 10vw, 124px);
    opacity: 0.07;
}

.site-propuesta-e .nosotros-page .identity-section__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-propuesta-e .nosotros-page .identity-section .section-title {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.site-propuesta-e .nosotros-page .identity-split {
    margin-top: 0;
    max-width: none;
    column-gap: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 1fr) 6px minmax(0, 1fr);
}

.site-propuesta-e .nosotros-page .identity-card {
    padding: clamp(44px, 6vw, 64px) clamp(32px, 4.5vw, 52px);
    min-height: clamp(280px, 38vh, 380px);
    justify-content: center;
    border-radius: 16px;
    border: 2px solid rgba(var(--azul-rgb), 0.08);
    box-shadow: 0 12px 32px rgba(var(--azul-rgb), 0.08);
    background: var(--blanco);
}

.site-propuesta-e .nosotros-page .identity-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.2vw, 2.2rem);
    margin-bottom: 20px;
    color: var(--azul-institucional);
}

.site-propuesta-e .nosotros-page .identity-card p {
    font-size: clamp(1.02rem, 1.55vw, 1.15rem);
    line-height: 1.65;
    max-width: 54ch;
    margin-inline: auto;
    color: var(--gris-texto);
}

.site-propuesta-e .nosotros-page .identity-stripe {
    width: 6px;
}

/* ── Footer Propuesta E (oscuro + franjas celestes) ── */
.site-propuesta-e .main-footer {
    --ig-brand-gradient: linear-gradient(
        135deg,
        #833ab4 0%,
        #c13584 35%,
        #e1306c 55%,
        #f77737 78%,
        #fcaf45 100%
    );
    background: var(--azul-institucional);
    border-top: 6px solid var(--celeste-escudo);
    padding: 0 0 24px;
}

.site-propuesta-e .footer-container--pe {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 56px 20px 40px;
    text-align: left;
    align-items: start;
}

.site-propuesta-e .footer-container--pe .footer-column {
    padding: 0 20px;
    border-left: 4px solid var(--celeste-escudo);
}

.site-propuesta-e .footer-container--pe .footer-column--brand {
    border-left: none;
    padding-left: 0;
    padding-right: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-propuesta-e .footer-column--brand .footer-logo {
    width: 68px;
    height: auto;
    max-width: none;
    max-height: 76px;
    aspect-ratio: 486 / 513;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 14px;
    flex-shrink: 0;
}

.site-propuesta-e .footer-column--brand .footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--blanco);
    font-size: 0.84rem;
    line-height: 1.28;
    letter-spacing: 0.01em;
    margin-bottom: 6px;
    text-align: center;
    max-width: 11.5em;
}

.site-propuesta-e .footer-column--brand .footer-brand-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
    text-align: center;
    max-width: 12em;
    font-weight: 500;
}

.site-propuesta-e .footer-container--pe .footer-column h4 {
    color: var(--celeste-escudo);
}

.site-propuesta-e .footer-container--pe .footer-links a,
.site-propuesta-e .footer-container--pe .footer-links--plain li {
    color: rgba(255, 255, 255, 0.88);
}

.site-propuesta-e .footer-container--pe .footer-links a:not(.social-link--instagram):hover,
.site-propuesta-e .footer-container--pe .footer-links a:not(.social-link--instagram):focus-visible {
    color: var(--celeste-escudo);
}

.site-propuesta-e .footer-bottom {
    border-top: none;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.75);
}

.site-propuesta-e .footer-container--pe .social-link {
    color: rgba(255, 255, 255, 0.88);
}

.site-propuesta-e .footer-container--pe .social-icon {
    color: rgba(255, 255, 255, 0.88);
}

/* Instagram — gradiente de marca al hover (footer sitio + sistema) */
.site-propuesta-e .social-link--instagram .social-icon path {
    transition: fill 0.25s ease;
}

.site-propuesta-e .social-link--instagram span {
    transition: color 0.25s ease, background 0.25s ease, -webkit-text-fill-color 0.25s ease;
}

.site-propuesta-e .social-link--instagram:hover,
.site-propuesta-e .social-link--instagram:focus-visible {
    color: transparent;
}

.site-propuesta-e .social-link--instagram:hover span,
.site-propuesta-e .social-link--instagram:focus-visible span {
    background: var(--ig-brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.site-propuesta-e .social-link--instagram:hover .social-icon path,
.site-propuesta-e .social-link--instagram:focus-visible .social-icon path {
    fill: url(#footer-instagram-gradient);
}

.site-propuesta-e .footer-container--pe .footer-placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

/* Ocultar hero/slider antiguo si queda residual */
.site-propuesta-e .hero-fullscreen,
.site-propuesta-e .seal-ring,
.site-propuesta-e .slider-container {
    display: none !important;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
    .pe-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .pe-etapas__split {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .pe-etapas__center {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        order: 1;
        padding: 40px var(--page-gutter) 32px;
        background: var(--azul-institucional);
        border-bottom: 6px solid var(--celeste-escudo);
    }
    .pe-stage--primaria { order: 2; }
    .pe-stage--bachillerato { order: 3; }
    .pe-stage {
        min-height: clamp(360px, 55vh, 520px);
    }
    .pe-stage--primaria .pe-stage__body,
    .pe-stage--bachillerato .pe-stage__body {
        max-width: min(520px, 94%);
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    .pe-identidad__grid { grid-template-columns: 1fr; }
    .pe-testimonios__grid { grid-template-columns: 1fr; }
    .pe-recon__grid { grid-template-columns: 1fr; }
    .site-propuesta-e main.page-container.nosotros-page {
        padding-bottom: clamp(40px, 8vw, 64px);
    }

    .site-propuesta-e .nosotros-page .identity-section {
        padding: clamp(32px, 6vw, 48px) var(--page-gutter) clamp(36px, 7vw, 56px);
    }

    .site-propuesta-e .nosotros-page .identity-deco {
        opacity: 0.05;
    }

    .site-propuesta-e .nosotros-page .identity-split {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .site-propuesta-e .nosotros-page .identity-stripe {
        width: 100%;
        height: 6px;
        min-height: 6px;
        margin: 0;
    }

    .site-propuesta-e .nosotros-page .identity-card {
        min-height: auto;
    }

    .site-propuesta-e main.page-container.noticias-page,
    .site-propuesta-e main.page-container.galeria-page {
        padding-bottom: clamp(40px, 8vw, 64px);
    }

    .site-propuesta-e .news-section {
        padding: clamp(32px, 6vw, 48px) var(--page-gutter) clamp(36px, 7vw, 56px);
    }

    .site-propuesta-e .news-deco {
        opacity: 0.05;
    }

    .ally-deco {
        opacity: 0.06;
    }

    .site-propuesta-e main.page-container.contacto-page,
    .site-propuesta-e main.page-container.manual-page,
    .site-propuesta-e main.page-container.page-404,
    .site-propuesta-e main.page-container.access-page {
        padding-bottom: clamp(40px, 8vw, 64px);
    }

    .site-propuesta-e .page-deco {
        opacity: 0.05;
    }

    .site-propuesta-e .footer-container--pe {
        grid-template-columns: 1fr;
        padding: 48px var(--page-gutter) 36px;
    }

    .site-propuesta-e .footer-container--pe .footer-column {
        border-left: none;
        padding: 0 0 24px;
    }

    .site-propuesta-e .footer-container--pe .footer-column:not(:first-child) {
        border-top: 4px solid var(--celeste-escudo);
        padding-top: 24px;
    }

    .site-propuesta-e .footer-container--pe .footer-column:last-child {
        padding-bottom: 0;
    }

    .site-propuesta-e .footer-container--pe .footer-column--brand {
        border-top: none;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .pe-stats__grid { grid-template-columns: 1fr; }
    .pe-hero__content { padding-top: 100px; }
    .site-propuesta-e .manual-page .grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .site-propuesta-e .manual-page .manual-card__actions {
        grid-template-columns: 1fr;
    }
    .site-propuesta-e .error-404-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .site-propuesta-e .error-404-actions .btn-magenta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .site-propuesta-e {
        --page-gutter: 16px;
    }
    .site-propuesta-e .contact-layout .address-overlay {
        position: static;
        margin-top: 12px;
    }
    .site-propuesta-e .contact-layout .map-container-full {
        min-height: 280px;
    }
    .site-propuesta-e .contact-layout .map-iframe {
        min-height: 280px;
    }
    .site-propuesta-e .logo-text {
        font-size: clamp(0.68rem, 2.8vw, 0.82rem);
        max-width: 11em;
    }
    .site-propuesta-e .navbar {
        gap: 8px;
    }
    .site-propuesta-e .pe-hero__content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-propuesta-e .pe-hero__content h1 {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }
    .site-propuesta-e .btn-magenta {
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
    .site-propuesta-e .card-flat,
    .site-propuesta-e .manual-card {
        padding: 20px 16px;
    }
    .site-propuesta-e .footer-container--pe {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }
}

@media (max-width: 480px) {
    .site-propuesta-e .logo-img {
        height: 46px;
    }
    .site-propuesta-e .pe-stats__item {
        padding: 16px 12px;
    }
}

/* Medios embebidos dentro del contenido (sin afectar logo, escudos ni hero) */
.site-propuesta-e #main img:not(.ally-logo):not(.pe-hero__fallback-img),
.site-propuesta-e #main video:not(.pe-hero__video) {
    max-width: 100%;
    height: auto;
}

.site-propuesta-e .pe-hero__media .pe-hero__video,
.site-propuesta-e .pe-hero__media .pe-hero__fallback-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.site-propuesta-e .doc-preview-title {
    font-family: 'Poppins', sans-serif;
    color: var(--azul-institucional);
}

.site-propuesta-e .doc-preview-download {
    background: var(--magenta-logo);
    border-color: var(--magenta-logo);
}

.site-propuesta-e .doc-preview-download:hover {
    background: var(--acento-primario-hover, #c2185b);
    border-color: var(--acento-primario-hover, #c2185b);
}

.site-propuesta-e .doc-preview-external {
    color: var(--azul-institucional);
    border-color: rgba(var(--celeste-escudo-rgb), 0.45);
}

.site-propuesta-e .doc-preview-close {
    font-family: inherit;
}

.site-propuesta-e .grid-modern > *,
.site-propuesta-e .contact-layout > * {
    min-width: 0;
}

.site-propuesta-e.page-home #header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 0;
    background: transparent;
}

.pe-hero__fallback-img {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .pe-hero__video {
        display: none;
    }
    .pe-hero__fallback-img {
        display: block;
    }
}
