/*
Theme Name: Heritage Template
Description: Template for Heritage School
Version: 1.0
Author: Nafta
*/


@font-face {
    font-family: 'Archivo';
    src: url('./assets/fonts/Archivo-VariableFont_wdth,wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62.5% 125%;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('./assets/fonts/Archivo-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-stretch: 62.5% 125%;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tipografía unificada (referencia: sección Noticias y Eventos, index) */
:root {
    --colegio-font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    --colegio-section-title-size: clamp(34px, 4vw, 56px);
    --colegio-section-title-lh: 1.1;
    --colegio-section-title-weight: 800;
    --colegio-section-title-color: #0b2332;
    --colegio-section-label-size: 17px;
    --colegio-section-label-weight: 700;
    --colegio-section-label-color: #8d8d8d;
    --colegio-body-size: clamp(14px, 1.2vw, 17px);
    --colegio-body-lh: 1.65;
    --colegio-body-color: #24303a;
    --colegio-intro-color: #6b747c;
    --colegio-card-title-size: clamp(20px, 1.75vw, 28px);
    --colegio-card-title-lh: 1.2;
    --colegio-card-title-weight: 800;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--colegio-font-sans);
    overflow-x: hidden;
}

/* Títulos principales de bloque (mismo criterio que .noticias-eventos-titulo) */
.section-title,
.valores-titulo,
.modelo-titulo,
.niveles-titulo,
.campus-titulo,
.vida-estudiantil-titulo,
.noticias-eventos-titulo,
.contact-title {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-section-title-size);
    line-height: var(--colegio-section-title-lh);
    font-weight: var(--colegio-section-title-weight);
    font-style: italic;
}

/* Títulos de tarjeta / bloque secundario (incl. hero y cierre: mismo tamaño que tarjeta Vida estudiantil) */
.about-slide-title,
.nivel-card-titulo,
.campus-slide-titulo,
.hero-title,
.programs-headline,
.vida-estudiantil-card-titulo,
.noticia-item-titulo {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-card-title-size);
    line-height: var(--colegio-card-title-lh);
    font-weight: var(--colegio-card-title-weight);
    font-style: italic;
}

/* Párrafos de cuerpo en secciones de inicio */
.section-description,
.vida-estudiantil-descripcion,
.about-slide-desc,
.nivel-card-desc,
.noticia-item-descripcion,
.evento-descripcion {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    line-height: var(--colegio-body-lh);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header transparente */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    --main-header-pad-y: 20px;
    padding: var(--main-header-pad-y) 0;
    transition: background 0.3s ease;
    overflow: visible;
    font-family: var(--colegio-font-sans);
}

.main-header.scrolled {
    background: #1A2F3D;
}

/* Páginas internas: header siempre azul (home/front-page conservan transparente inicial) */
body:not(.home):not(.front-page) .main-header {
    background: #1A2F3D;
    box-shadow: none;
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.main-header.scrolled .logo-placeholder {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menú principal del header */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.header-nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.main-header.scrolled .header-nav-list li a {
    color: #fff;
}

/* Mantener legible el dropdown cuando el header está azul */
.main-header.scrolled .header-nav-list .sub-menu a {
    color: #7d7d7d;
}

.main-header.scrolled .header-nav-list .sub-menu a:hover {
    color: #4d4d4d;
}

.header-nav-list li a:hover {
    opacity: 0.75;
}

/* Submenús desktop: lista desplegable al hover */
.header-nav-list > li {
    position: relative;
}

.header-nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    margin: 0;
    padding: 10px 0 8px;
    background: #efefef;
    border: 1px solid #d9d9d9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.header-nav-list .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #dddddd;
}

.header-nav-list .sub-menu li:last-child {
    border-bottom: 0;
}

.header-nav-list .sub-menu a {
    display: block;
    padding: 10px 14px;
    color: #7d7d7d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.header-nav-list .sub-menu a:hover {
    background: #e4e4e4;
    color: #4d4d4d;
    opacity: 1;
}

/* Puente invisible para evitar cierre al mover el mouse */
.header-nav-list > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 12px;
}

.header-nav-list > li:hover > .sub-menu,
.header-nav-list > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.main-header.scrolled .nav-toggle span {
    background: #fff;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Se habilita en móvil dentro de su media query */
.menu-submenu-toggle {
    display: none;
}

.btn-contactanos {
    background: #1b313f;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-contactanos:hover {
    background: #7ac4de;
}

/* Sección Hero */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    max-width: 960px;
    width: 100%;
}

.hero-title {
    color: #fff;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
    text-align: left;
    margin: 0;
}

.btn-admisiones {
    display: inline-block;
    background: #96D3E8;
    color: #1A2F3D;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 28px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background 0.25s, transform 0.2s;
    flex-shrink: 0;
}

.btn-admisiones:hover {
    background: #7ac4de;
    transform: translateY(-2px);
}

/* ================================
   Sección 2 — Sobre nosotros
================================ */
.about-section {
    padding: 80px 40px 60px;
    background: #fff;
    text-align: center;
}

/* Temporal: ocultar bloque tipo "sección 2" en plantillas internas */
.about-section.me-s2-single {
    display: none !important;
}

.about-header {
    max-width: 700px;
    margin: 0 auto 52px;
}

.about-section .section-title {
    font-size: calc(var(--colegio-card-title-size) * 1.2);
    line-height: var(--colegio-card-title-lh);
    font-style: normal;
}

.section-title {
    color: var(--colegio-section-title-color);
    margin-bottom: 20px;
}

.section-description {
    color: var(--colegio-intro-color);
}

/* Slider wrapper */
.about-slider-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.about-slider {
    position: relative;
    overflow: hidden;
}

/* Cada slide */
.about-slide {
    display: none;
}

.about-slide.active {
    display: block;
}

.about-slide-inner {
    position: relative;
    height: 420px;
}

/* Imagen — 75% de ancho desde la izquierda */
.about-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.about-slide-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

/* Card de texto — superpuesta, 80% de alto; contenido centrado vertical con padding simétrico */
.about-slide-card {
    position: absolute;
    top: 10%;
    height: 80%;
    width: 44%;
    right: 4%;
    background: #f4f6f8;
    border-radius: 8px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    overflow: hidden;
}

.about-slide-title {
    color: var(--colegio-section-title-color);
    margin-bottom: 20px;
}

.about-slide-desc {
    color: var(--colegio-body-color);
    flex: 1;
}

/* +50% respecto a --colegio-card-title-size / --colegio-body-size en la tarjeta */
.about-slide-card .about-slide-title {
    font-size: calc(var(--colegio-card-title-size) * 1.5);
    margin-bottom: 0;
}

.about-slide-card .about-slide-desc {
    font-size: calc(var(--colegio-body-size) * 1.35);
    line-height: calc(var(--colegio-body-lh) * 0.92);
    flex: none;
}

.about-slide-card .about-slide-arrow {
    margin-top: 0;
}

/* Home: tarjetas Sobre nosotros con tipografía más contenida (independiente) */
body.home .about-slide-card .about-slide-title {
    font-size: calc(var(--colegio-card-title-size) * 1.2);
}

body.home .about-slide-card .about-slide-desc {
    font-size: calc(var(--colegio-body-size) * 1.1);
    line-height: calc(var(--colegio-body-lh) * 0.9);
}

.about-slide-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 24px;
    color: #98D5E9;
    text-decoration: none;
    transition: transform 0.2s;
}

.about-slide-arrow svg {
    width: 32px;
    height: 32px;
    stroke: #98D5E9;
}

.about-slide-arrow:hover {
    transform: translateX(4px);
}

/* Controles: prev · dots · next */
.about-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.about-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #aaa;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.about-nav svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
}

.about-nav:hover {
    color: #1a365d;
}

.about-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.about-dot {
    background: #e2e8f0;
    border: none;
    border-radius: 50px;
    width: 52px;
    height: 36px;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.about-dot.active {
    background: #1a365d;
    color: #fff;
}

/* ================================
   Sección 3 — Nuestros Valores
================================ */
.valores-section {
    padding: 72px 40px 64px;
    background: #f0f2f5;
    text-align: center;
}

.valores-titulo {
    color: var(--colegio-section-title-color);
    margin-bottom: 48px;
    font-size: clamp(28px, 3.1vw, 46px);
}

.modelo-titulo {
    font-size: clamp(28px, 3.1vw, 46px);
}

/* Fila central: flecha · contenido · flecha */
.valores-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.valores-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    color: #98D5E9;
    transition: color 0.2s;
}

.valores-nav svg {
    width: 50px;
    height: 50px;
    stroke: #98D5E9;
}

.valores-nav:hover {
    color: #5bbdd6;
}

/* Zona imagen izquierda + slider */
.valores-main {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

/* Imagen izquierda fija */
.valores-img-izq {
    flex: 1;
    min-width: 0;
    display: block;
}

.valores-img-izq img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

/* Igualar “tamaño total” a la tarjeta derecha (cuadrado + bloque de título) sin agregar contenido */
.valores-img-izq::after {
    content: '';
    display: block;
    height: clamp(52px, 5vw, 64px);
}

/* Slider */
.valores-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.valores-slide {
    display: none;
}

.valores-slide.active {
    display: block;
}

/* Card */
.valores-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.valores-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.valores-card-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.valores-card-num {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 42px;
    font-weight: 900;
    color: rgba(255,255,255,0.85);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.valores-card-titulo {
    font-family: var(--colegio-font-sans);
    font-size: calc(var(--colegio-body-size) * 1.25);
    font-weight: 700;
    line-height: 1.3;
    color: var(--colegio-section-title-color);
    padding: 16px 20px 18px;
    margin: 0;
    text-align: left;
}

/* Caja de descripción */
.valores-desc-wrapper {
    max-width: 680px;
    margin: 36px auto 0;
}

.valores-desc {
    display: none;
    background: #2d4a5a;
    color: #fff;
    font-family: var(--colegio-font-sans);
    font-size: calc(var(--colegio-body-size) * 1.25);
    line-height: var(--colegio-body-lh);
    text-align: left;
    padding: 28px 32px;
    border-radius: 14px;
}

.valores-desc.active {
    display: block;
}

/* ================================
   Sección 4 — Modelo Educativo
================================ */
.modelo-section {
    background: #fff;
}

/* Título superior */
.modelo-header {
    padding: 64px 40px 52px;
    text-align: center;
    background: #fff;
}

.modelo-titulo {
    color: var(--colegio-section-title-color);
    font-size: clamp(28px, 3.1vw, 46px);
    margin: 0;
}

/* Banner con imagen */
.modelo-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #2d4a5a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modelo-banner-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 60px 40px;
    max-width: 780px;
    width: 100%;
}

.modelo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modelo-banner-texto {
    color: #fff;
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    line-height: var(--colegio-body-lh);
    text-align: center;
    margin: 0;
}

.modelo-banner-btn {
    display: inline-block;
    background: #96d3e8;
    border: none;
    color: #1a2f3d;
    font-family: var(--colegio-font-sans);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 700;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.modelo-banner-btn:hover {
    background: #7ac4de;
    transform: translateY(-1px);
}

/* Barra inferior oscura */
.modelo-barra {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #1A2F3D;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 44px 60px;
}

.modelo-barra-logo {
    flex-shrink: 0;
}

.modelo-barra-logo img {
    width: clamp(72px, 6vw, 96px);
    height: clamp(72px, 6vw, 96px);
    -o-object-fit: contain;
       object-fit: contain;
}

.modelo-barra-texto {
    flex: 1;
}

.modelo-barra-titulo {
    font-family: var(--colegio-font-sans);
    font-size: 22px;
    font-weight: var(--colegio-section-label-weight);
    font-style: normal;
    color: #fff;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modelo-barra-desc {
    font-family: var(--colegio-font-sans);
    font-size: 18px;
    color: #fff;
    line-height: var(--colegio-body-lh);
    margin: 0;
}

.modelo-barra-btn {
    display: inline-block;
    background: #c9b87a;
    color: #fff;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s;
}

.modelo-barra .modelo-barra-btn,
.modelo-barra .modelo-barra-btn:visited,
.modelo-barra .modelo-barra-btn:hover,
.modelo-barra .modelo-barra-btn:active,
.modelo-barra .modelo-barra-btn:focus {
    color: #fff !important;
    opacity: 1;
}

.modelo-barra-btn:hover {
    background: #b8a460;
}

/* ================================
   Sección 5 — Niveles Académicos
================================ */
.niveles-section {
    padding: 72px 40px 80px;
    background: #fff;
    text-align: center;
}

.niveles-titulo {
    color: var(--colegio-section-title-color);
    margin-bottom: 52px;
    font-size: clamp(28px, 3.1vw, 46px);
}

.niveles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: stretch;
}

/* Card */
.nivel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.nivel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.nivel-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.nivel-card-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nivel-card:hover .nivel-card-img img {
    transform: scale(1.04);
}

.nivel-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 18px;
    text-align: left;
}

.nivel-card-info {
    flex: 1;
}

.nivel-card-titulo {
    color: var(--colegio-section-title-color);
    font-size: var(--colegio-section-label-size);
    line-height: 1.3;
    margin: 0 0 2px;
}

.nivel-card-subtitulo {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-section-label-size);
    font-weight: var(--colegio-section-label-weight);
    color: var(--colegio-section-title-color);
    margin: 0 0 12px;
    line-height: 1.3;
}

.nivel-card-desc {
    font-size: calc(var(--colegio-body-size) * 0.92);
    color: var(--colegio-body-color);
    margin: 0;
}

.nivel-card-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #98D5E9;
}

.nivel-card-arrow-text {
    font-size: calc(var(--colegio-body-size) * 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #98D5E9;
}

.nivel-card-arrow svg {
    width: 22px;
    height: 22px;
    stroke: #98D5E9;
    transition: transform 0.2s;
}

.nivel-card:hover .nivel-card-arrow svg {
    transform: translateX(4px);
}

/* ================================
   Sección 6 — Nuestro Campus
================================ */
.campus-section {
    background: #1A2F3D;
    overflow: hidden;
}

/* Cabecera */
.campus-header {
    padding: 56px 40px 44px;
    text-align: center;
}

.campus-label {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-section-label-size);
    font-weight: var(--colegio-section-label-weight);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin: 0 0 14px;
}

.campus-titulo {
    color: #fff;
    margin: 0;
    font-size: clamp(28px, 3.1vw, 46px);
}

/* Carrusel */
.campus-carousel-outer {
    overflow: hidden;
    padding-bottom: 56px;
}

.campus-track {
    display: flex;
    gap: 16px;
    padding: 0 10%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}

/* Cada slide */
.campus-slide {
    flex: 0 0 80%;
    height: 420px;
    border-radius: 0px;
    background-size: cover;
    background-position: center;
    background-color: #2d4a5a;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.campus-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    border-radius: inherit;
}

.campus-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 28px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.campus-slide-titulo {
    color: #1A2F3D;
    margin: 0;
    background: #fff;
    padding: 8px 16px;
    border-radius: 0;
}

.campus-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c9b87a;
    color: #fff;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 700;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 50px;
    transition: background 0.2s;
}

.campus-slide-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.campus-slide-btn:hover {
    background: #b8a460;
}

.campus-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 22px;
}

.campus-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.campus-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ================================
   Sección 7 — Vida estudiantil
================================ */
.vida-estudiantil-section {
    background: #f2f3f4;
    padding: 70px 40px 84px;
}

.vida-estudiantil-header {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.vida-estudiantil-titulo {
    margin: 0 0 14px;
    color: var(--colegio-section-title-color);
    font-size: clamp(28px, 3.1vw, 46px);
}

.vida-estudiantil-descripcion {
    margin: 0 auto;
    max-width: 620px;
    color: var(--colegio-intro-color);
}

.vida-estudiantil-cards {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.vida-estudiantil-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
    align-items: stretch;
    background: transparent;
    overflow: hidden;
}

.vida-estudiantil-card-image {
    min-height: 240px;
    background: #d9dee2;
    border-radius: 10px 10px 0px 0px;
    overflow: hidden;
}

.vida-estudiantil-card-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.vida-estudiantil-card-content {
    background: #fff;
    margin: 5% 0;
    height: 90%;
    padding: 36px 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(8, 26, 38, 0.08);
}

.vida-estudiantil-card-titulo {
    margin: 0 0 12px;
    color: var(--colegio-section-title-color);
}

.vida-estudiantil-card-descripcion {
    margin: 0 0 24px;
    color: var(--colegio-body-color);
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    line-height: var(--colegio-body-lh);
    max-width: 460px;
}

.vida-estudiantil-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #9bd8e7;
    font-size: clamp(14px, 1.2vw, 20px);
    font-weight: 700;
    transition: color 0.2s;
}

.vida-estudiantil-card-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.vida-estudiantil-card-link:hover {
    color: #79c7da;
}

/* ================================
   Sección 8 — Noticias y Eventos
================================ */
.noticias-eventos-section {
    background: #fff;
    padding: 72px 40px 80px;
}

.noticias-eventos-header {
    text-align: center;
    margin-bottom: 34px;
}

.noticias-eventos-titulo {
    margin: 0;
    color: var(--colegio-section-title-color);
    font-size: clamp(28px, 3.1vw, 46px);
}

.noticias-eventos-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start;
}

.noticias-eventos-etiqueta {
    margin: 0 0 12px;
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-section-label-size);
    font-weight: var(--colegio-section-label-weight);
    color: var(--colegio-section-label-color);
    line-height: 1.2;
}

.noticias-columna {
    min-width: 0;
}

.noticia-item {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.6fr);
    margin-bottom: 18px;
}

.noticia-item:last-child {
    margin-bottom: 0;
}

.noticia-item-imagen {
    background: #d6dde4;
    min-height: 245px;
}

.noticia-item-imagen img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.noticia-item-contenido {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-item-titulo {
    margin: 0 0 10px;
    color: var(--colegio-section-title-color);
}

.noticia-item-descripcion {
    margin: 0 0 20px;
    color: var(--colegio-body-color);
}

.noticia-item-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #9bd8e7;
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 700;
    text-decoration: none;
}

.noticia-item-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.eventos-columna {
    min-width: 0;
}

.eventos-lista {
    background: #fff;
    border: 1px solid #e8e8e8;
}

.evento-item {
    display: grid;
    grid-template-columns: 70px 1fr 24px;
    gap: 16px;
    padding: 20px 18px;
    border-bottom: 1px solid #e8e8e8;
    align-items: start;
}

.evento-item:last-child {
    border-bottom: none;
}

.evento-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.evento-mes {
    display: inline-block;
    background: #c9b87a;
    color: #fff;
    text-transform: lowercase;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 10px;
}

.evento-dia {
    color: #0b2332;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

.evento-titulo {
    margin: 0 0 8px;
    color: #0d1e2a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.evento-descripcion {
    margin: 0;
    color: var(--colegio-body-color);
}

.evento-link {
    color: #b9b9b9;
    display: inline-flex;
    align-self: start;
    text-decoration: none;
}

.evento-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.evento-link:hover {
    color: #95c8d8;
}

/* ================================
   Sección 9 — Cierre / CTA (fondo + overlay + texto real) */
.programs-section {
    position: relative;
    min-height: min(83vh, 740px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Capa de imagen (nítida; el texto va encima del overlay) */
.programs-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2d4a5a;
}

.programs-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

.programs-section__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.programs-headline {
    margin: 0;
    font-style: italic;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.programs-cta-btn {
    display: inline-block;
    background: #96d3e8;
    color: #1a2f3d;
    font-family: var(--colegio-font-sans);
    font-size: clamp(12px, 1.05vw, 15px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 999px;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.programs-cta-btn:hover {
    background: #7ac4de;
    transform: translateY(-2px);
}

/* ================================
   Footer
================================ */
.site-footer, .main-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 60px) clamp(28px, 4vw, 50px);
    text-align: center;
    background: #1A2F3D;
    font-family: var(--colegio-font-sans);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer-logo-img {
    max-height: clamp(80px, 10vw, 130px);
    width: auto;
    display: block;
    margin: 0 auto 4px;
}

.site-footer-logo-placeholder {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    margin: 0 auto 4px;
}

.site-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(28px, 4vw, 44px);
    margin-bottom: clamp(28px, 4vw, 44px);
}

.site-footer-divider--thin {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: clamp(22px, 3vw, 36px);
    margin-bottom: clamp(22px, 3vw, 36px);
    opacity: 0.9;
}

.site-footer-developed {
    font-size: clamp(11px, 1vw, 13px);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: right;
}

.site-footer-nav-list {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 4vw, 72px);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-nav-list li a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    display: block;
}

.site-footer-nav-list li a:hover {
    color: #96D3E8;
}

.site-footer-social-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(12px, 1.1vw, 15px);
    letter-spacing: 3px;
    margin-bottom: clamp(16px, 2vw, 26px);
    text-transform: uppercase;
    font-weight: 700;
}

.footer-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-footer .social-icons {
    gap: clamp(10px, 1.5vw, 16px);
}

.site-footer .social-icon {
    width: clamp(34px, 3.8vw, 40px);
    height: clamp(34px, 3.8vw, 40px);
    border-width: 1.5px;
    background: #ffffff;
    border-color: #ffffff;
}

.site-footer .social-icon svg {
    width: clamp(15px, 1.6vw, 18px);
    height: clamp(15px, 1.6vw, 18px);
}

.site-footer .social-icon[aria-label="Facebook"] svg { fill: #1A2F3D; }
.site-footer .social-icon[aria-label="WhatsApp"] svg  { fill: #1A2F3D; }

.site-footer .social-icon[aria-label="Instagram"] svg,
.site-footer .social-icon[aria-label="YouTube"] svg,
.site-footer .social-icon[aria-label="LinkedIn"] svg {
    stroke: #1A2F3D;
}

.site-footer .social-icon[aria-label="YouTube"] svg polygon {
    fill: #1A2F3D;
    stroke: none;
}

.site-footer .social-icon:hover {
    background: #e8f0fe;
    border-color: #e8f0fe;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .btn-admisiones {
        align-self: flex-start;
    }

    .about-slide-inner {
        height: 360px;
    }

    .about-slide-card {
        width: 52%;
        padding: 24px 20px;
        gap: 14px;
    }

    .about-slide-card .about-slide-title {
        font-size: calc(var(--colegio-card-title-size) * 1.2);
    }

    .about-slide-card .about-slide-desc {
        font-size: calc(var(--colegio-body-size) * 1.12);
        line-height: 1.45;
    }

    body.home .about-slide-card .about-slide-title {
        font-size: calc(var(--colegio-card-title-size) * 1.05);
    }

    body.home .about-slide-card .about-slide-desc {
        font-size: calc(var(--colegio-body-size) * 1);
        line-height: 1.45;
    }

    /* Header nav en tablet/móvil: menú desplegable */
    .header-container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        /* 100% = alto de la fila logo/botones; + pad inferior del header para no quedar bajo la barra fija */
        top: calc(100% + var(--main-header-pad-y, 20px));
        left: 0;
        width: 100%;
        background: rgba(26, 47, 61, 0.97);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding: 0 24px;
        overscroll-behavior: contain;
    }

    .header-nav.is-open {
        max-height: min(90vh, calc(100dvh - 96px));
        padding: 16px 24px 20px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .header-nav-list {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .header-nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav-list li:last-child {
        border-bottom: none;
    }

    .header-nav-list li a {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: 16px 0;
        font-size: clamp(17px, 2.7vw, 19px);
        line-height: 1.25;
        font-weight: 600;
        color: #fff !important;
    }

    .header-nav-list > li {
        position: static;
    }

    .header-nav-list > li.menu-item-has-children {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 8px;
    }

    .header-nav-list > li.menu-item-has-children > a {
        padding-right: 8px;
    }

    .menu-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .menu-submenu-toggle:hover,
    .menu-submenu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.14);
        outline: none;
    }

    .menu-submenu-toggle::before {
        content: "";
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-1px);
        transition: transform 0.2s ease;
    }

    .header-nav-list > li.is-submenu-open > .menu-submenu-toggle::before {
        transform: rotate(-135deg) translateY(-1px);
    }

    .header-nav-list .sub-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, margin 0.25s ease;
        grid-column: 1 / -1;
    }

    .header-nav-list > li.is-submenu-open > .sub-menu {
        max-height: 420px;
        margin: 0 0 10px;
    }

    .header-nav-list .sub-menu li {
        border-bottom: 0;
    }

    .header-nav-list .sub-menu a {
        min-height: 44px;
        padding: 10px 0 10px 22px;
        font-size: clamp(15px, 2.2vw, 17px);
        line-height: 1.3;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85) !important;
    }
}

/* ── Móvil ──────────────────────────────────────────── */
@media (max-width: 600px) {

    :root {
        --colegio-section-title-size: clamp(28px, 7.5vw, 42px);
        --colegio-section-title-lh: 1.12;
        --colegio-card-title-size: clamp(18px, 5.2vw, 24px);
        --colegio-body-size: clamp(14px, 3.8vw, 16px);
        --colegio-body-lh: 1.6;
    }

    /* Header */
    .header-container {
        padding: 0 16px;
    }

    .site-logo {
        max-height: 44px;
    }

    .btn-contactanos {
        padding: 9px 18px;
        font-size: 13px;
    }

    /* Hero */
    .hero-section {
        padding: 100px 20px 60px;
        align-items: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .hero-title {
        text-align: left;
    }

    .btn-admisiones {
        align-self: flex-start;
    }

    /* About */
    .about-section {
        padding: 50px 20px 40px;
    }

    .about-header {
        margin-bottom: 32px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .about-slide-inner {
        height: 320px;
    }

    .about-slide-card {
        width: 65%;
        right: 3%;
        padding: 16px 14px;
        gap: 10px;
    }

    .about-slide-card .about-slide-title {
        font-size: calc(var(--colegio-card-title-size) * 1);
    }

    .about-slide-card .about-slide-desc {
        font-size: calc(var(--colegio-body-size) * 0.95);
        line-height: 1.48;
    }

    body.home .about-slide-card .about-slide-title {
        font-size: calc(var(--colegio-card-title-size) * 0.88);
    }

    body.home .about-slide-card .about-slide-desc {
        font-size: calc(var(--colegio-body-size) * 0.86);
        line-height: 1.5;
    }

    .about-slide-card .about-slide-arrow svg {
        width: 26px;
        height: 26px;
    }

    .about-dot {
        width: 44px;
        height: 30px;
        font-size: 11px;
    }

    /* Niveles Académicos */
    .niveles-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .niveles-section {
        padding: 52px 20px 60px;
    }

    /* Modelo Educativo */
    .modelo-header {
        padding: 48px 20px 36px;
    }

    .modelo-banner {
        min-height: 300px;
    }

    .modelo-barra {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .modelo-barra-btn {
        width: 100%;
        text-align: center;
    }

    /* Valores */
    .valores-section {
        padding: 52px 20px 48px;
    }

    .valores-main {
        flex-direction: column;
        gap: 24px;
    }

    .valores-img-izq {
        flex: 0 0 auto;
    }

    .valores-img-izq img {
        max-width: 200px;
    }

    .valores-card-img {
        aspect-ratio: 1 / 1;
    }

    /* Sección 9 — CTA */
    .programs-section {
        min-height: min(88vh, 600px);
    }

    .programs-section__content {
        padding: 48px 20px;
        gap: 28px;
    }

    /* Vida estudiantil */
    .vida-estudiantil-section {
        padding: 54px 20px 58px;
    }

    .vida-estudiantil-header {
        margin-bottom: 30px;
    }

    .vida-estudiantil-cards {
        gap: 18px;
    }

    .vida-estudiantil-card {
        grid-template-columns: 1fr;
    }

    .vida-estudiantil-card-image {
        min-height: 220px;
    }

    .vida-estudiantil-card-content {
        margin: 0;
        height: auto;
        padding: 24px 20px 20px;
    }

    .vida-estudiantil-card-titulo {
        margin-bottom: 10px;
    }

    .vida-estudiantil-card-descripcion {
        margin-bottom: 18px;
    }

    .vida-estudiantil-card-link {
        font-size: 20px;
    }

    /* Noticias y eventos */
    .noticias-eventos-section {
        padding: 56px 20px 60px;
    }

    .noticias-eventos-header {
        margin-bottom: 24px;
    }

    .noticias-eventos-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .noticias-eventos-etiqueta {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .noticia-item {
        grid-template-columns: 1fr;
    }

    .noticia-item-imagen {
        min-height: 220px;
    }

    .noticia-item-contenido {
        padding: 20px 18px;
    }

    .evento-item {
        grid-template-columns: 62px 1fr 20px;
        gap: 12px;
        padding: 16px 14px;
    }

    .evento-dia {
        font-size: 26px;
    }

    .evento-titulo {
        font-size: 12px;
    }

    .programs-cta-btn {
        padding: 14px 28px;
        font-size: 12px;
    }

    /* Footer */
    .site-footer {
        padding: 40px 16px 28px;
    }

    .site-footer-nav-list {
        gap: 20px 28px;
    }

    .site-footer-nav-list li a {
        font-size: 16px;
    }

    .site-footer-social-title {
        font-size: 12px;
        letter-spacing: 2.5px;
        margin-bottom: 16px;
    }

    .site-footer .social-icon {
        width: 36px;
        height: 36px;
    }

    .site-footer .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .site-footer-developed {
        font-size: 11px;
        text-align: center;
    }
}

/* ================================
   Página de Contacto
================================ */

body.page-contacto,
body.page-template-page-contacto-php {
    background: #eef2f7;
    font-family: var(--colegio-font-sans);
}

body.page-contacto .main-header,
body.page-template-page-contacto-php .main-header {
    background: #1A2F3D;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    --main-header-pad-y: 14px;
    padding: 14px 0;
}

.btn-back {
    color: #102A36;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: var(--colegio-font-sans);
}

.btn-back:hover {
    opacity: 1;
}

/* Layout principal */
.contact-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 50px 20px 80px;
    font-family: var(--colegio-font-sans);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

/* Encabezado */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header-badge {
    display: inline-block;
    background: #102A36;
    color: #98D5E9;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
    font-family: var(--colegio-font-sans);
}

.contact-title {
    color: var(--colegio-section-title-color);
    margin-bottom: 14px;
}

.contact-subtitle {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    color: var(--colegio-intro-color);
    line-height: var(--colegio-body-lh);
    margin-bottom: 10px;
}

.contact-intro {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    color: var(--colegio-intro-color);
    line-height: var(--colegio-body-lh);
    font-style: italic;
}

/* Tarjeta del formulario */
.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 44px 48px;
    box-shadow: 0 8px 40px rgba(16, 42, 54, 0.1);
}

.contact-form-image {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.contact-form-image--top {
    margin-bottom: 12px;
}

.contact-form-image--bottom {
    margin-top: 12px;
}

.contact-form-image img {
    display: block;
    margin: 0 auto;
    width: min(220px, 65vw);
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.contact-form-image--bottom img {
    width: min(150px, 45vw);
}

/* Separador de sección */
.form-section-title {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #102A36;
    margin: 28px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
    font-family: var(--colegio-font-sans);
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Campos */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
    font-family: var(--colegio-font-sans);
}

.required {
    color: #fc8181;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 14px;
    font-style: italic;
    font-family: var(--colegio-font-sans);
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #2d3748;
    background: #f8fafc;
    font-family: var(--colegio-font-sans);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.contact-form input::-moz-placeholder, .contact-form textarea::-moz-placeholder {
    color: #b0bec5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0bec5;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #98D5E9;
    box-shadow: 0 0 0 4px rgba(152, 213, 233, 0.15);
    background: #fff;
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* Grados — tarjetas elegantes */
.grades-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grade-group {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s;
}

.grade-group:hover {
    border-color: #98D5E9;
}

.grade-group-title {
    font-size: 11px;
    font-weight: bold;
    color: #102A36;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #98D5E9;
    font-family: var(--colegio-font-sans);
}

/* Checkbox como tarjetita */
.checkbox-label {
    display: block;
    cursor: pointer;
    margin-bottom: 6px;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    background: #fff;
    border-color: #e2e8f0;
}

.checkbox-label input:checked + .checkbox-inner {
    background: #e8f7fc;
    border-color: #98D5E9;
}

.checkbox-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
    margin-top: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-inner .checkbox-check {
    background: #102A36;
    border-color: #102A36;
}

.checkbox-label input:checked + .checkbox-inner .checkbox-check::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    font-family: var(--colegio-font-sans);
}

.checkbox-age {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
    font-family: var(--colegio-font-sans);
}

/* Radio Open House */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    flex: 1;
    cursor: pointer;
    font-weight: normal !important;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.15s;
    font-family: var(--colegio-font-sans);
}

.radio-label input:checked + .radio-inner {
    background: #e8f7fc;
    border-color: #98D5E9;
    color: #102A36;
}

/* Privacidad */
.privacy-note {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: var(--colegio-font-sans);
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

/* Error */
.form-error {
    display: none;
    background: #fff5f5;
    color: #e53e3e;
    border: 1.5px solid #fed7d7;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    font-family: var(--colegio-font-sans);
}

/* Botón enviar */
.btn-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #102A36;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: var(--colegio-font-sans);
}

.btn-submit:hover {
    background: #1a3f52;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje de éxito */
.form-success {
    display: none;
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(16, 42, 54, 0.1);
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #98D5E9, #6bbdd4);
    color: #102A36;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(152, 213, 233, 0.5);
}

.form-success h3 {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-card-title-size);
    font-weight: var(--colegio-card-title-weight);
    line-height: var(--colegio-card-title-lh);
    color: var(--colegio-section-title-color);
    margin-bottom: 12px;
}

.form-success p {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size);
    color: var(--colegio-intro-color);
    line-height: var(--colegio-body-lh);
    max-width: 440px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 700px) {
    .contact-page {
        padding: 30px 16px 60px;
    }

    .contact-form {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .contact-form-image--top {
        margin-bottom: 10px;
    }

    .contact-form-image--bottom {
        margin-top: 10px;
    }

    .contact-form-image img {
        width: min(170px, 60vw);
    }

    .contact-form-image--bottom img {
        width: min(120px, 40vw);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .grades-container {
        grid-template-columns: 1fr;
    }

    .radio-group {
        gap: 10px;
    }
}

/* ================================
   Página Nuestro Campus — Sección 2: Carrusel
================================ */
.nc-s2-section {
    background: #fff;
    padding: 56px 0 44px;
}

.nc-s2-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Área deslizable */
.nc-s2-inner {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.nc-s2-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nc-s2-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.nc-s2-slide img {
    display: block;
    width: 100%;
    height: 480px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}

/* Flechas de navegación — mismo estilo que .valores-nav */
.nc-s2-arrow {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #98D5E9;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nc-s2-arrow svg {
    width: 28px;
    height: 28px;
    stroke: #98D5E9;
    transition: stroke 0.2s;
}

.nc-s2-arrow:hover {
    color: #5bbdd6;
}

.nc-s2-arrow:hover svg {
    stroke: #5bbdd6;
}

/* Indicadores (dots) */
.nc-s2-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 22px;
}

.nc-s2-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #d0d7e2;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.nc-s2-dot.active {
    background: #1a365d;
    transform: scale(1.2);
}

.nc-s2-dot:focus-visible {
    outline: 2px solid #c9b87a;
    outline-offset: 2px;
}

@media (max-width: 960px) {
    .nc-s2-section {
        padding: 44px 0 36px;
    }

    .nc-s2-wrapper {
        padding: 0 20px;
    }

    .nc-s2-slide img {
        height: 360px;
    }
}

@media (max-width: 600px) {
    .nc-s2-section {
        padding: 32px 0 28px;
    }

    .nc-s2-wrapper {
        padding: 0 4px;
    }

    .nc-s2-slide img {
        height: 220px;
    }

    .nc-s2-dots {
        padding-top: 16px;
        gap: 8px;
    }

    .nc-s2-dot {
        width: 10px;
        height: 10px;
    }
}

/* ================================
   Página Modelo Educativo / Ciudadanos Globales / Mundo Real
================================ */

body.page-modelo-educativo,
body.page-admisiones,
body.page-servicio-buses,
body.page-identidad,
body.page-vida-estudiantil,
body.page-alianza-familia,
body.page-deportes,
body.page-ciudadanos-globales,
body.page-mundo-real,
body.page-niveles-academicos,
body.page-nuestro-campus,
body.page-template-page-php,
body.page-template-page-plantilla-extra-php,
body.page-template-page-blog-php,
body.page-blog,
body.page-template-page-valores-php,
body.page-valores,
body.single {
    background: #eef2f7;
    font-family: var(--colegio-font-sans);
}

body.page-modelo-educativo .main-header,
body.page-admisiones .main-header,
body.page-servicio-buses .main-header,
body.page-identidad .main-header,
body.page-vida-estudiantil .main-header,
body.page-alianza-familia .main-header,
body.page-deportes .main-header,
body.page-ciudadanos-globales .main-header,
body.page-mundo-real .main-header,
body.page-niveles-academicos .main-header,
body.page-nuestro-campus .main-header,
body.page-template-page-php .main-header,
body.page-template-page-plantilla-extra-php .main-header,
body.page-template-page-blog-php .main-header,
body.page-blog .main-header,
body.page-template-page-valores-php .main-header,
body.page-valores .main-header,
body.single .main-header {
    background: #1A2F3D;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Menos aire que el header fijo del inicio; el hero empieza justo debajo */
    --main-header-pad-y: 14px;
    padding: 14px 0;
}

/* Compensa la barra de administración de WordPress en modo edición */
body.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }
}

.modelo-educativo-page {
    background: #fff;
    font-family: var(--colegio-font-sans);
    margin-top: 0;
    padding-top: 0;
}

.modelo-educativo-wrapper {
    max-width: 100%;
    width: 100%;
}

/* ── Plantilla Paginas Extra: encabezado reutilizable ── */
.extra-page-hero {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.extra-page-hero__img {
    display: block;
    width: 100%;
    height: 360px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center center;
       object-position: center center;
}

.extra-page-hero__title-wrap {
    max-width: 75%;
    margin: 0 auto;
    padding: 56px 0 24px;
}

/* Sin imagen destacada: compensar la altura del hero para que el h1 no quede pegado al menú */
.extra-page-hero--no-thumb .extra-page-hero__title-wrap {
    padding-top: clamp(72px, 11vw, 132px);
    padding-bottom: clamp(20px, 3vw, 32px);
}

.extra-page-hero__title {
    margin: 0;
    font-family: var(--colegio-font-sans);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 800;
    color: var(--colegio-section-title-color, #1a365d);
}

.extra-page-hero__subtitle {
    max-width: 860px;
    margin: 18px 0 0;
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size, 16px);
    color: var(--colegio-intro-color, #4a5568);
    line-height: var(--colegio-body-lh, 1.6);
}

/* ── Sección 1: Hero ── */
.me-hero {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

.me-hero__img {
    display: block;
    width: 100%;
    height: 460px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center top;
       object-position: center top;
}

.me-hero__card {
    position: relative;
    z-index: 2;
    margin-top: -100px;
    margin-left: 48px;
    margin-right: auto;
    background: #fff;
    padding: 44px 52px;
    max-width: 720px;
    width: calc(70% - 48px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.me-hero__titulo {
    font-family: var(--colegio-font-sans);
    font-size: 34px;
    font-weight: 800;
    color: var(--colegio-section-title-color, #1a365d);
    line-height: 1.2;
    margin: 0 0 14px;
}

.me-hero__subtitulo {
    font-family: var(--colegio-font-sans);
    font-size: var(--colegio-body-size, 16px);
    color: var(--colegio-intro-color, #4a5568);
    line-height: var(--colegio-body-lh, 1.6);
    margin: 0;
}

@media (max-width: 768px) {
    .extra-page-hero__img {
        height: 220px;
    }

    .extra-page-hero__title-wrap {
        max-width: 92%;
        padding: 30px 0 12px;
    }

    .extra-page-hero--no-thumb .extra-page-hero__title-wrap {
        padding-top: clamp(48px, 10vw, 88px);
        padding-bottom: 14px;
    }

    .extra-page-hero__title {
        font-size: 34px;
    }

    .extra-page-hero__subtitle {
        margin-top: 12px;
    }

    .me-hero__img {
        height: 260px;
    }

    .me-hero__card {
        margin-top: -60px;
        margin-left: 16px;
        margin-right: 16px;
        width: auto;
        padding: 28px 24px;
    }

    .me-hero__titulo {
        font-size: 24px;
    }
}

/* ── Contenido de la página (editor de WordPress) ── */
.me-content {
    max-width: 75%;
    margin: 0 auto;
    padding: 60px 0 80px;
    font-family: var(--colegio-font-sans);
    font-size: 17px;
    color: #222;
    line-height: 1.75;
}

.me-content h1,
.me-content h2,
.me-content h3,
.me-content h4 {
    color: #0a1e2e;
    font-family: var(--colegio-font-sans);
    line-height: 1.2;
    margin-top: 2.2em;
    margin-bottom: 0.4em;
}

.me-content h2 { font-size: 36px; font-weight: 800; }
.me-content h3 { font-size: 22px; font-weight: 700; }
.me-content h4 { font-size: 18px; font-weight: 700; }

.me-content p {
    margin-bottom: 1.1em;
}

.me-content ul,
.me-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.me-content li {
    margin-bottom: 0.4em;
}

.me-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.me-content a {
    color: var(--colegio-section-title-color, #1a365d);
    text-decoration: underline;
}

.me-content strong {
    color: #0a1e2e;
    font-weight: 700;
}

/*
 * Plantillas tipo Modelo Educativo: menos aire entre el editor y .about-section
 * (antes ~80px + ~80px; debe ir después del shorthand de .me-content).
 */
.modelo-educativo-page .me-content {
    padding-bottom: 48px;
}

.modelo-educativo-page .about-section {
    padding-top: 40px;
}

/* ── Servicio de Buses: línea de tiempo (.hbus-*) ── */
.modelo-educativo-page .hbus-wrap * {
    box-sizing: border-box;
}

.modelo-educativo-page .hbus-wrap {
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 32px 40px;
    color: #0f2935;
}

.modelo-educativo-page .hbus-intro {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #0f2935;
    margin: 0 0 32px;
    text-align: justify;
}

.modelo-educativo-page .hbus-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 0;
}

.modelo-educativo-page .hbus-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}

.modelo-educativo-page .hbus-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modelo-educativo-page .hbus-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.modelo-educativo-page .hbus-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #98d5e9;
    flex-shrink: 0;
    margin-top: 4px;
}

.modelo-educativo-page .hbus-vline {
    width: 1.5px;
    flex: 1;
    min-height: 32px;
    background: #0f2935;
    margin-top: 2px;
    margin-bottom: 2px;
}

.modelo-educativo-page .hbus-right {
    flex: 1;
    padding-top: 0;
    padding-bottom: 28px;
    text-align: justify;
}

.modelo-educativo-page .hbus-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2935;
    margin-bottom: 5px;
    letter-spacing: 0.04em;
}

.modelo-educativo-page .hbus-body {
    font-size: 0.87rem;
    line-height: 1.72;
    color: #0f2935;
}

.modelo-educativo-page .hbus-body strong {
    font-weight: 700;
}

.modelo-educativo-page .hbus-row:last-child .hbus-vline {
    display: none;
}

@media (max-width: 500px) {
    .modelo-educativo-page .hbus-wrap {
        padding: 20px 16px 32px;
    }
}

/* ── Admisiones: proceso / línea de tiempo (.adm-proceso-*) ── */
.modelo-educativo-page .me-content--admisiones {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
}

.modelo-educativo-page .adm-proceso-wrap * {
    box-sizing: border-box;
}

.modelo-educativo-page .adm-proceso-wrap {
    background: #eef2f5;
    font-family: var(--colegio-font-sans, Arial, Helvetica, sans-serif);
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 36px 36px 40px;
    border-radius: 12px;
    color: #1a2f3d;
}

.modelo-educativo-page .adm-proceso__intro {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 24px;
    text-align: justify;
}

.modelo-educativo-page .adm-proceso__intro p {
    margin: 0 0 1em;
}

.modelo-educativo-page .adm-proceso__intro p:last-child {
    margin-bottom: 0;
}

.modelo-educativo-page .adm-proceso__heading {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #0f2935;
    margin: 0 0 20px;
    line-height: 1.25;
}

.modelo-educativo-page .adm-proceso__requisitos {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 28px;
    text-align: left;
}

.modelo-educativo-page .adm-proceso__requisitos h3,
.modelo-educativo-page .adm-proceso__requisitos h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #0f2935;
}

.modelo-educativo-page .adm-proceso__requisitos ul {
    margin: 0;
    padding-left: 1.25em;
}

.modelo-educativo-page .adm-proceso__requisitos li {
    margin-bottom: 0.35em;
}

.modelo-educativo-page .adm-proceso__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modelo-educativo-page .adm-proceso__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}

.modelo-educativo-page .adm-proceso__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modelo-educativo-page .adm-proceso__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.modelo-educativo-page .adm-proceso__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7ec8e3;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 2px #eef2f5;
}

.modelo-educativo-page .adm-proceso__vline {
    width: 2px;
    flex: 1;
    min-height: 28px;
    background: #98d5e9;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 1px;
}

.modelo-educativo-page .adm-proceso__steps .adm-proceso__row:last-child .adm-proceso__vline {
    display: none;
}

.modelo-educativo-page .adm-proceso__right {
    flex: 1;
    padding-bottom: 26px;
    text-align: left;
}

.modelo-educativo-page .adm-proceso__step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2935;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.modelo-educativo-page .adm-proceso__step-body {
    font-size: 0.88rem;
    line-height: 1.72;
    color: #1a2f3d;
}

.modelo-educativo-page .adm-proceso__step-body strong {
    font-weight: 700;
}

.modelo-educativo-page .adm-proceso__nota {
    font-size: 0.88rem;
    line-height: 1.72;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 47, 61, 0.12);
    text-align: justify;
}

.modelo-educativo-page .adm-proceso__nota p {
    margin: 0 0 0.75em;
}

.modelo-educativo-page .adm-proceso__nota p:last-child {
    margin-bottom: 0;
}

@media (max-width: 500px) {
    .modelo-educativo-page .adm-proceso-wrap {
        padding: 24px 18px 28px;
    }
}

/* ── Página Valores (template page-valores.php) ── */
.valores-page {
    background: #fff;
    font-family: var(--colegio-font-sans);
    margin-top: 0;
    padding-top: 0;
}

.valores-page__wrapper {
    max-width: 100%;
    width: 100%;
}

/* Aire entre el hero (tarjeta + imagen) y el contenido del editor */
.valores-page .me-hero {
    padding-bottom: clamp(40px, 6vw, 72px);
}

.valores-page .me-content {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: 48px;
}

.valores-page__cards-block {
    padding: 0 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.valores-page__cards-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}

.valores-page__cards-title {
    margin-bottom: 16px;
}

.valores-page__cards-desc {
    margin: 0 auto;
}

.valores-cards-section {
    width: 100%;
}

.valores-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

.valores-card {
    display: flex;
    flex-direction: column;
    background: #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(8, 26, 38, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    min-height: 100%;
}

a.valores-card:hover {
    box-shadow: 0 10px 28px rgba(8, 26, 38, 0.12);
    transform: translateY(-3px);
}

a.valores-card:focus-visible {
    outline: 2px solid var(--colegio-section-title-color, #0b2332);
    outline-offset: 3px;
}

.valores-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #cfd6dc;
    overflow: hidden;
}

.valores-card__img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}

.valores-card__numero {
    position: absolute;
    right: clamp(12px, 3vw, 22px);
    bottom: clamp(8px, 2vw, 16px);
    font-size: clamp(3rem, 9vw, 4.5rem);
    font-weight: 800;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    letter-spacing: -0.02em;
}

.valores-card__titulo {
    margin: 0;
    padding: 22px 22px 12px;
    font-size: var(--colegio-card-title-size);
    line-height: var(--colegio-card-title-lh);
    font-weight: var(--colegio-card-title-weight);
    color: var(--colegio-section-title-color);
}

.valores-card__pie {
    margin-top: auto;
    background: #2a3d4a;
    padding: 18px 22px 22px;
    border-radius: 0 0 12px 12px;
}

.valores-card__descripcion {
    margin: 0;
    font-size: var(--colegio-body-size);
    line-height: var(--colegio-body-lh);
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 600px) {
    .valores-page__cards-block {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 56px;
    }
}

/* ── Página Blog (template page-blog.php) ── */
.blog-page__inner {
    padding-bottom: 72px;
}

.blog-page__masthead {
    width: 100%;
}

.blog-page__hero-img {
    display: block;
    width: 100%;
    max-height: 380px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}

.blog-page__title-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 16px;
    text-align: center;
}

.blog-page__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    color: var(--colegio-section-title-color);
}

.blog-page__intro {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px 32px;
}

.blog-page__posts {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 40px 0;
    box-sizing: border-box;
}

.blog-page__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-page__list .noticia-item {
    margin-bottom: 0;
}

.blog-page__list .noticia-item-titulo a {
    color: inherit;
    text-decoration: none;
}

.blog-page__list .noticia-item-titulo a:hover {
    color: #9bd8e7;
}

.blog-page__date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--colegio-intro-color);
    margin-bottom: 8px;
}

.blog-page__empty {
    text-align: center;
    color: var(--colegio-intro-color);
    padding: 40px 20px;
    font-size: var(--colegio-body-size);
}

.blog-page__pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.blog-page__pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    justify-content: center;
}

.blog-page__pagination li {
    margin: 0;
}

.blog-page__pagination a,
.blog-page__pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--colegio-section-title-color);
    border: 1px solid #d9dee2;
    border-radius: 8px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.blog-page__pagination a:hover {
    border-color: #9bd8e7;
    color: #2a7a8c;
}

.blog-page__pagination span.page-numbers.current {
    background: var(--colegio-section-title-color);
    color: #fff;
    border-color: var(--colegio-section-title-color);
}

.blog-page__pagination span.page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
}

/* Entrada individual (single.php) */
.blog-single__wrap {
    padding: 48px 40px 80px;
    max-width: 820px;
    margin: 0 auto;
    box-sizing: border-box;
}

.blog-single__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    color: var(--colegio-section-title-color);
}

.blog-single__date {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--colegio-intro-color);
    margin-bottom: 28px;
}

.blog-single__featured {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaed;
}

.blog-single__featured img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .blog-page__title-wrap,
    .blog-page__intro,
    .blog-page__posts {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-single__wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Página Deportes — Sección 2: tres cuadros (imagen 1:1 + título en franja blanca) */
.dep-s2-section {
    background: #fff;
    padding: 0 0 56px;
}

.me-hero + .dep-s2-section {
    padding-top: 48px;
}

.dep-s2-inner {
    max-width: 75%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.dep-s2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    align-items: stretch;
}

.dep-s2-card {
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.dep-s2-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

a.dep-s2-card:focus-visible {
    outline: 2px solid var(--colegio-section-title-color, #1a365d);
    outline-offset: 4px;
}

/* Cuadrado con imagen de fondo; el título es un div con bg blanco dentro */
.dep-s2-card-visual {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}

.dep-s2-card-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    width: 80%;
    background: #fff;
    padding: 12px 18px;
    box-sizing: border-box;
}

.dep-s2-card-title {
    font-family: var(--colegio-font-sans);
    font-weight: 800;
    font-size: clamp(16px, 1.3vw, 20px);
    color: #000;
    line-height: 1.2;
    display: block;
}

.modelo-educativo-page .dep-s3-section.about-section {
    padding-top: 32px;
}

@media (max-width: 960px) {
    .dep-s2-inner {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .dep-s2-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dep-s2-section {
        padding-bottom: 44px;
    }
}

@media (max-width: 600px) {
    .dep-s2-inner {
        max-width: 100%;
        padding: 0 20px;
    }

    .dep-s2-card-caption {
        padding: 10px 14px;
    }
}

/* Solo plantilla Niveles Académicos: franja gris + texto negro */
body.page-niveles-academicos .me-content {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding: 60px clamp(20px, 12vw, 15%) 80px;
    background: #F7F7F7;
    color: #000;
}

body.page-niveles-academicos .me-content h1,
body.page-niveles-academicos .me-content h2,
body.page-niveles-academicos .me-content h3,
body.page-niveles-academicos .me-content h4 {
    color: #000;
}

body.page-niveles-academicos .me-content a {
    color: #000;
}

body.page-niveles-academicos .me-content strong {
    color: #000;
}

@media (max-width: 960px) {
    .me-content {
        max-width: 90%;
        padding: 48px 0 60px;
    }

    .modelo-educativo-page .me-content {
        padding-bottom: 40px;
    }

    .modelo-educativo-page .about-section {
        padding-top: 36px;
    }

    body.page-niveles-academicos .me-content {
        padding: 48px clamp(20px, 6vw, 40px) 60px;
    }
}

@media (max-width: 600px) {
    .me-content {
        max-width: 100%;
        padding: 36px 20px 50px;
    }

    .modelo-educativo-page .me-content {
        padding-bottom: 36px;
    }

    .modelo-educativo-page .about-section {
        padding-top: 32px;
    }

    body.page-niveles-academicos .me-content {
        padding: 36px 20px 50px;
    }

    .me-content h2 { font-size: 26px; }
    .me-content h3 { font-size: 19px; }
}
