/* =======================================================
   ESTILOS GENERALES
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #2b3a2a;
    line-height: 1.6;
    background-color: #fff;
}

/* =======================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ======================================================= */
.btn-whatsapp {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(10, 10, 10, 0.3);
    z-index: 2000;
    font-size: 0.95rem;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    background-color: #20ba59;
}

/* =======================================================
   BARRA DE NAVEGACIÓN (HEADER)
   ======================================================= */
header {
    background-color: #2d4a22;
    color: #f5f2eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

header h2 {
    font-size: 1.3rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e6dfd1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ffffff;
}

/* =======================================================
   SECCIÓN PRINCIPAL CON IMAGEN DE FONDO CORREGIDA (HERO)
   ======================================================= */
.hero {
    /* Corregido para que apunte exactamente a tu carpeta Images */
    background-image: url('Images/fondo-colegio.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    position: relative;
    border-bottom: 5px solid #2d4a22;
}

/* Capa transparente ajustada para que la foto del colegio se vea con claridad */
.hero-capa {
    background-color: rgba(245, 242, 235, 0.722); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-contenido {
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #2d4a22; 
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
}

.hero .lema {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: bold;
    color: #1e3316; 
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
}

.hero .subtexto {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #1e3316;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
}

/* =======================================================
   BOTONES Y ELEMENTOS DE ACCIÓN
   ======================================================= */
.btn {
    display: inline-block;
    background-color: #2d4a22;
    color: #f5f2eb;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn:hover {
    background-color: #416933;
    transform: translateY(-2px);
}

.btn-secundario {
    display: inline-block;
    margin-top: 15px;
    color: #2d4a22;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-secundario:hover {
    color: #1e3316;
    text-decoration: underline;
}

/* =======================================================
   SECCIONES GENERALES Y TARJETAS
   ======================================================= */
.seccion {
    padding: 60px 10%;
    text-align: center;
}

.seccion h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d4a22;
}

.fondo-gris {
    background-color: #f5f2eb; 
}

.tarjetas {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.tarjeta-enlace {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(45, 74, 34, 0.1);
    border-top: 5px solid #2d4a22;
    flex: 1;
    min-width: 280px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tarjeta-enlace h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d4a22;
}

/* =======================================================
   ESTILOS PARA LA SECCIÓN DE TESTIMONIOS (EGRESADOS)
   ======================================================= */
.fondo-beige-claro {
    background-color: #faf9f6;
}

.subtitulo-seccion {
    color: #4a5d45;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.testimonios-contenedor {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.tarjeta-testimonio {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(45, 74, 34, 0.06);
    border-left: 5px solid #2d4a22;
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.comentario p {
    font-style: italic;
    color: #4a5d45;
    font-size: 1.05rem;
    line-height: 1.6;
}

.autor-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e6dfd1;
    padding-top: 15px;
}

.autor-info strong {
    color: #2d4a22;
    font-size: 1.1rem;
}

.autor-info span {
    color: #7a8a75;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* =======================================================
   ESTILOS PARA PÁGINAS INTERNAS (DETALLES DE CARRERAS)
   ======================================================= */
.seccion-interna {
    padding: 50px 15%;
    max-width: 1200px;
    margin: 0 auto;
}

.seccion-interna h1 {
    color: #2d4a22;
    margin-bottom: 15px;
    font-size: 2.3rem;
    text-align: center;
}

.seccion-interna .introduccion {
    font-size: 1.2rem;
    font-style: italic;
    color: #4a5d45;
    margin-bottom: 40px;
    text-align: center;
}

.bloque-grado {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    background: #faf9f6;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(45, 74, 34, 0.05);
}

.bloque-grado.invertido {
    flex-direction: row-reverse;
}

.texto-grado {
    flex: 1.2;
    text-align: left;
}

.texto-grado h2 {
    font-size: 1.8rem;
    color: #2d4a22;
    margin-bottom: 15px;
}

.texto-grado p {
    margin-bottom: 15px;
    color: #4a5d45;
}

.texto-grado h3 {
    font-size: 1.1rem;
    color: #2d4a22;
    margin-bottom: 10px;
}

.texto-grado ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #4a5d45;
}

.texto-grado ul li {
    margin-bottom: 6px;
}

.destacado-grado {
    background-color: #e6dfd1;
    padding: 15px;
    border-left: 4px solid #2d4a22;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
}

.destacado-grado h4 {
    color: #1e3316;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.imagen-grado {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.foto-carrera {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #2d4a22;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.accion-carrera {
    text-align: center;
    margin-top: 50px;
}

/* =======================================================
   FORMULARIO E INFO DE CONTACTO
   ======================================================= */
.info-ubicacion {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #2d4a22;
}

.formulario {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario input, .formulario textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #c2bcae;
    background-color: #faf9f6;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.formulario input:focus, .formulario textarea:focus {
    border-color: #2d4a22;
}

/* =======================================================
   PIE DE PÁGINA (FOOTER)
   ======================================================= */
footer {
    background-color: #1e3316;
    color: #e6dfd1;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95rem;
    margin-top: 60px;
}

footer p {
    margin-bottom: 5px;
}

footer .derechos {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* =======================================================
   REGLAS RESPONSIVAS (DISEÑO PARA CELULARES)
   ======================================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 5%;
        gap: 10px;
    }




    /* REINICIO BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f3; /* Fondo de la página ligeramente verdoso */
    padding: 40px 20px;
}

/* CONTENEDOR PRINCIPAL CENTRADO */
.contenedor-pensum {
    max-width: 750px;
    margin: 0 auto; /* Centra todo el bloque en la pantalla */
    text-align: center;
}

/* TÍTULO PRINCIPAL */
.contenedor-pensum h1 {
    color: #2d4a22; /* Verde bosque */
    font-size: 2.2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* EL CUADRO PÁLIDO PARA CADA GRADO */
.cuadro-grado {
    background-color: #f7f9f6; /* Fondo pálido suave */
    border: 1px solid #dce2d7; /* Borde sutil */
    border-radius: 12px;       /* Esquinas redondeadas */
    padding: 35px;
    margin-bottom: 35px;       /* Separación entre 4to y 5to */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Sombra muy suave */
    text-align: left;          /* Hace que el texto interior se alinee a la izquierda */
}

/* TÍTULO DE GRADO (CUARTO / QUINTO) */
.cuadro-grado h2 {
    color: #2d4a22;
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #2d4a22;
    padding-bottom: 8px;
}

/* LISTA DE MATERIAS */
.lista-materias {
    list-style: none; /* Quita los puntos por defecto */
}

/* CADA MATERIA EN LA LISTA */
.lista-materias li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #333333;
    font-weight: bold; /* Todo en negrita como en tu imagen original */
}

/* VIÑETA PERSONALIZADA VERDE */
.lista-materias li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2d4a22; /* Punto verde */
    font-size: 1.3rem;
    top: -2px;
}

/* SECCIÓN DEL BOTÓN (BAJADO BASTANTE) */
.seccion-boton {
    margin-top: 80px; /* Gran separación del botón con respecto al último cuadro */
    margin-bottom: 40px;
    text-align: center;
}

.boton-inscribirse {
    display: inline-block;
    background-color: #2d4a22;
    color: #ffffff;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(45, 74, 34, 0.2);
    transition: background 0.2s ease;
}

.boton-inscribirse:hover {
    background-color: #1a2d14;
}

}