/* Encabezado común */
.encabezado-header {
    position: relative;
    height: 300px; /* Altura reducida para desktop */
    /* Quitamos la imagen de fondo fija */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Clases para diferentes fondos según la página */
.encabezado-header.academia {
    background-image: url('../images/header-academia.jpg');
}

.encabezado-header.admision {
    background-image: url('../images/header-admision.jpg');
}

.encabezado-header.programas {
    background-image: url('../images/header-programas.jpg');
}

.encabezado-header.contactos {
    background-image: url('../images/header-contactos.jpg');
}

.encabezado-header.faq {
    background-image: url('../images/header-faq.jpg');
}

.encabezado-header.default {
    background-image: url('../images/header-default.jpg');
}

.encabezado-header .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(60, 62, 199, 0.274);
}

.encabezado-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.encabezado-header h1 {
    font: 300 63px "Roboto Condensed", sans-serif;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.encabezado-header h1:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0; right: 0;
    width: 60px; height: 2px;
    margin: 0 auto;
    background: #bd8222;
}

.encabezado-header h1 .bold { font-weight: 600; color: #f0b14a; }

/* Estilos para H2 en el encabezado */
.encabezado-header h2 {
    font: 500 24px var(--font-heading);
    color: #fff;
    margin: 25px 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.encabezado-header p {
    font: 1.2rem var(--font-body);
    max-width: 700px;
    margin: 30px auto 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsivo */
@media (max-width: 1200px) {
    .encabezado-header {
        height: 200px; /* Altura para pantallas grandes */
    }
}

@media (max-width: 992px) { 
    .encabezado-header {
        height: 180px; /* Altura para tablets */
    }
    .encabezado-header h1 { font-size: 50px; }
    .encabezado-header h2 { font-size: 22px; }
}

@media (max-width: 768px) { 
    .encabezado-header { height: 160px; }
    .encabezado-header h1 { font-size: 40px; }
    .encabezado-header h2 { font-size: 20px; }
}

@media (max-width: 576px) { 
    .encabezado-header { height: 150px; }
    .encabezado-header h1 { font-size: 32px; }
    .encabezado-header h2 { font-size: 18px; }
    .encabezado-header p { font-size: 1rem; }
}


/* Estilos para la sección de introducción */
.content section:first-of-type {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
}

.content section:first-of-type h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: #4f2987;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.content section:first-of-type h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4f2987, #bd8222);
}

.content section:first-of-type p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
}

/* Estilos responsivos para la sección de introducción */
@media (max-width: 768px) {
    .content section:first-of-type h2 {
        font-size: 28px;
    }
    
    .content section:first-of-type p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .content section:first-of-type h2 {
        font-size: 24px;
    }
    
    .content section:first-of-type p {
        font-size: 15px;
    }
}
/* Estilos para la sección de introducción */
.intro-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
}

.intro-section h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    color: #4f2987;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.intro-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #4f2987, #bd8222);
}

.intro-section p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
}