/* Reinicio básico para mantener una estructura uniforme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background-color: #f8f8f8;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* Contenedor central */
.contenedor {
    width: 92%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Encabezado */
.encabezado {
    background-color: #ffffff;
    border-top: 6px solid #e86817;
}

.encabezado-contenido {
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.identidad {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e86817;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    border: 5px solid #ffe0cc;
}

.identidad h1 {
    color: #333333;
    font-size: 28px;
    line-height: 1.2;
}

.identidad p {
    margin-top: 4px;
    color: #777777;
}

/* Menú */
.navegacion {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #d9570b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.boton-menu {
    min-height: 58px;
    padding: 12px 25px;
    color: #ffffff;
    background-color: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    font-size: 16px;
    font-weight: bold;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.boton-menu:hover,
.boton-menu:focus,
.boton-menu.activo {
    background-color: #b84405;
    border-bottom-color: #ffffff;
    outline: none;
}

/* Pestañas */
.seccion {
    display: none;
    min-height: 600px;
    animation: aparecer 0.35s ease;
}

.seccion.activa {
    display: block;
}

@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Banner */
.banner {
    min-height: 470px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            rgba(104, 43, 7, 0.76),
            rgba(104, 43, 7, 0.76)
        ),
        url("img/inicio1.jpg") center/cover no-repeat;
}

.banner-contenido {
    padding-top: 70px;
    padding-bottom: 70px;
}

.etiqueta,
.titulo-seccion span,
.encabezado-seccion span,
.informacion-formulario span {
    display: inline-block;
    margin-bottom: 10px;
    color: #e86817;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner .etiqueta {
    padding: 6px 12px;
    border-radius: 4px;
    color: #ffffff;
    background-color: #e86817;
}

.banner h2 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.1;
}

.banner p {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: 18px;
}

/* Botón principal */
.boton-principal {
    display: inline-block;
    padding: 14px 24px;
    color: #ffffff;
    background-color: #e86817;
    border: 2px solid #e86817;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.boton-principal:hover,
.boton-principal:focus {
    background-color: #bc4605;
    border-color: #bc4605;
    transform: translateY(-2px);
    outline: none;
}

/* Encabezados internos */
.encabezado-seccion {
    padding: 70px 0;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(188, 70, 5, 0.96),
            rgba(232, 104, 23, 0.92)
        );
}

.encabezado-seccion span {
    color: #ffe3d1;
}

.encabezado-seccion h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 5vw, 48px);
}

.encabezado-seccion p {
    max-width: 720px;
    margin: auto;
    font-size: 18px;
}

/* Contenido */
.contenido-seccion {
    padding-top: 70px;
    padding-bottom: 70px;
}

.titulo-seccion {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.titulo-seccion h2 {
    margin-bottom: 12px;
    color: #333333;
    font-size: 38px;
}

.titulo-seccion p {
    color: #666666;
}

/* Galería */
.galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tarjeta {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    border-bottom: 5px solid #e86817;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tarjeta:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

.tarjeta img {
    height: 230px;
    object-fit: cover;
    background-color: #eeeeee;
}

.tarjeta-contenido {
    padding: 24px;
}

.tarjeta-contenido h3 {
    margin-bottom: 10px;
    color: #d9570b;
    font-size: 22px;
}

.tarjeta-contenido p {
    color: #666666;
}

/* Formulario */
.formulario-contenedor {
    margin-top: 70px;
    padding: 40px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 45px;
    align-items: start;
    background-color: #ffffff;
    border-radius: 10px;
    border-left: 7px solid #e86817;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.informacion-formulario h2 {
    margin-bottom: 15px;
    color: #333333;
    font-size: 32px;
}

.informacion-formulario p {
    color: #666666;
}

.formulario {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo-completo {
    grid-column: 1 / -1;
}

.campo label {
    margin-bottom: 7px;
    color: #444444;
    font-weight: bold;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 13px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.campo textarea {
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    border-color: #e86817;
    box-shadow: 0 0 0 3px rgba(232, 104, 23, 0.15);
}

/* Pie de página */
.pie-pagina {
    padding: 35px 0;
    color: #ffffff;
    background-color: #2f2f2f;
    border-top: 6px solid #e86817;
}

.pie-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pie-contenido h2 {
    margin-bottom: 5px;
    color: #ff9b5e;
}

/* Diseño para tabletas */
@media screen and (max-width: 900px) {
    .galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formulario-contenedor {
        grid-template-columns: 1fr;
    }
}

/* Diseño para teléfonos */
@media screen and (max-width: 650px) {
    .encabezado-contenido {
        min-height: auto;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .identidad {
        align-items: flex-start;
    }

    .logo {
        width: 55px;
        height: 55px;
        font-size: 17px;
    }

    .identidad h1 {
        font-size: 21px;
    }

    .identidad p {
        font-size: 14px;
    }

    .menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .boton-menu {
        width: 100%;
        min-height: 50px;
        padding: 10px 8px;
        font-size: 14px;
        border-bottom-width: 3px;
    }

    .banner {
        min-height: 430px;
        text-align: center;
    }

    .banner p {
        font-size: 16px;
    }

    .galeria {
        grid-template-columns: 1fr;
    }

    .tarjeta img {
        height: 220px;
    }

    .contenido-seccion {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .titulo-seccion h2 {
        font-size: 30px;
    }

    .formulario-contenedor {
        padding: 25px 20px;
    }

    .formulario {
        grid-template-columns: 1fr;
    }

    .campo,
    .campo-completo {
        grid-column: 1;
    }

    .pie-contenido {
        flex-direction: column;
        text-align: center;
    }
}

/* Pantallas muy pequeñas */
@media screen and (max-width: 380px) {
    .menu {
        grid-template-columns: 1fr;
    }

    .identidad h1 {
        font-size: 18px;
    }

    .banner h2 {
        font-size: 32px;
    }
}
/* ==================================================
                ELEMENTOS NUEVOS
=================================================== */

.espacio-superior {
    margin-top: 80px;
}


/* VALORES */

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.valor {
    padding: 25px;
    background-color: #ffffff;
    border-left: 5px solid #e86817;
    border-radius: 7px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.valor:hover {
    transform: translateY(-5px);
}

.valor h3 {
    margin-bottom: 8px;
    color: #d9570b;
    font-size: 21px;
}

.valor p {
    color: #666666;
}


/* CARRERAS */

.carreras-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.carrera {
    position: relative;
    padding: 35px 25px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    border-top: 5px solid #e86817;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
}

.numero-carrera {
    margin-bottom: 15px;
    color: #e86817;
    font-size: 38px;
    font-weight: bold;
}

.carrera h3 {
    color: #333333;
    font-size: 20px;
    line-height: 1.5;
}


/* INFORMACIÓN DE ADMISIONES */

.informacion-admision {
    margin-top: 50px;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 9px;
    border-left: 6px solid #e86817;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.informacion-admision h2 {
    margin-bottom: 25px;
    color: #d9570b;
}

.informacion-admision ol {
    padding-left: 25px;
}

.informacion-admision li {
    margin-bottom: 18px;
    padding-left: 8px;
    color: #555555;
}


/* AVISO DE INSCRIPCIONES */

.aviso-admisiones {
    margin-top: 50px;
    padding: 40px;
    color: #ffffff;
    text-align: center;
    background-color: #d9570b;
    border-radius: 10px;
}

.aviso-admisiones h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.aviso-admisiones p {
    max-width: 750px;
    margin: 10px auto;
}


/* TABLETAS */

@media screen and (max-width: 900px) {

    .carreras-grid {
        grid-template-columns: 1fr;
    }

}


/* TELÉFONOS */

@media screen and (max-width: 650px) {

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .informacion-admision {
        padding: 25px 20px;
    }

    .aviso-admisiones {
        padding: 30px 20px;
    }

    .aviso-admisiones h2 {
        font-size: 27px;
    }

}