/*------------------------------------------------------- Ajustes generales---------------------------------------------------------------------- */
/* ==============================
    PALETA PRINCIPAL
   ============================== */
:root {
    --naranja: #f39c12;
    --naranja-oscuro: #d35400;
    --naranja-claro: #f8c471;
    --gris-claro: #f4f4f4;
    --gris: #555;
    --blanco: #fff;
    --negro: black;
}

/* ==============================
    RESETEO Y BASE
   ============================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gris-claro);
    color: var(--gris);
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    /* 100% de la altura del viewport (visible en pantalla) */
    margin: 0;
    padding: 0;
    /* Elimina el margen por defecto del body */
}

/*h1,
h2,
h3,
h4,
h5 {
    color: var(--negro);
    font-weight: 600;
}*/

a {
    text-decoration: none;
}

html {
    height: 100%;
    /* Asegura que el HTML ocupe toda la altura */
}


header {
    nav {
        position: fixed;
        /* o sticky */
        top: 0;
        width: 100%;
        /* Para que ocupe todo el ancho */
        /* Añade un height, ej: */
        height: 70px;

        div {
            a {
                img {
                    width: 60px;
                    height: auto;
                }
            }
        }
    }
}

.bg-orange {
    background-color: orange;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {

    /* Fondo del menú desplegable */
    .navbar-collapse {
        background-color: #f57c00;
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
    }

    /* Letras blancas en menú responsive */
    .navbar-collapse .nav-link,
    .navbar-collapse .dropdown-item,
    .navbar-collapse .dropdown-toggle {
        color: white !important;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .dropdown-menu {
        background-color: #ef6c00;
        border: none;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #d85d00;
        color: white !important;
    }
}

/*-------------------------------------------------------------------Inicio ---------------------------------------------------------------------*/

/* =========================
ESTILOS GENERALES
========================= */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* =========================
BANNER / HERO (CARRUSEL)
========================= */
.hero {
    height: 70vh;
    overflow: hidden;
    position: relative;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 68vh;
    object-fit: cover;
}

.carousel-item img {
    width: 100%;
    filter: brightness(85%);
}

.carousel-caption {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    color: #f39c12;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #fff;
}

/* =========================
TARJETAS GENERALES
========================= */
.card {
    margin-top: 0;
    /* elimina espacio arriba */
    padding-top: 0;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.card-body {
    padding: 2rem 1rem;
}

/* =========================
TARJETAS EXTERNAS (Autogestión)
========================= */
.card-title {
    margin-top: 0;
    /* elimina espacio arriba */
    padding-top: 0;
    font-weight: 700;
    font-size: 1.3rem;
    color: black;
    margin-bottom: 1rem;
}

.btn-warning {
    background-color: #f39c12 !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e08e0b !important;
    transform: translateY(-2px);
}

/* =========================
TARJETAS DE NIVELES
========================= */
/* ======== TARJETAS NIVELES ======== */
.container .card {
    height: 350px;
    /* más altas */
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.container .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo más grande */
.container .card-body img {
    width: 150px;
    /* antes 100px */
    height: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.container .card-body img:hover {
    transform: scale(1.05);
}

/* Botón centrado y con color naranja */
.container .card-body .btn {
    background-color: #f57c00 !important;
    color: #fff !important;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.container .card-body .btn:hover {
    background-color: #e56e00 !important;
    transform: scale(1.05);
}

/* =========================
TARJETAS FORMULARIOS (Solicitud de Vacantes)
========================= */
.tarjeta-form .card-title {
    margin-top: 0;
    /* elimina espacio arriba */
    padding-top: 0;
    color: black;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-success {
    background-color: #f39c12;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 30px;
    margin: 5px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #f39c12;
    transform: translateY(-2px);
}

/* =========================
SECCIÓN REDES
========================= */
.text-center h2 {
    color: black;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.btn-outline-dark {
    border: 2px solid #f39c12 !important;
    color: #f39c12 !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #f39c12 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.MED {
    /*acceso a MED que se desplaza a lo laargo de la página*/
    position: fixed;
    /*para fijar*/
    bottom: 50px;
    right: 2px;
}

.MED img {
    width: 70%;
    height: 50%;
    transition: 0.1ms;
}

.MED img:hover {
    transform: scale(1.3);
}


/* =========================
ESPACIADO GENERAL ENTRE SECCIONES
========================= */
section.container {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* =========================
RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
    .hero {
        height: 60vh;
    }

    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 60vh;
    }

    .carousel-caption {
        top: 40%;
    }

    .carousel-item img {
        width: 70%;
        height: auto;
        filter: brightness(85%);
    }

    .carousel-caption h5 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 55vh;
    }

    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 55vh;
    }

    .carousel-caption {
        top: 38%;
    }

    .carousel-item img {
        width: 50%;
        height: auto;
        filter: brightness(85%);
    }

    .carousel-caption h5 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}


/*------------------------------ Quiénes somos ------------------------------------------------------------------------------------*/

/* =========================
SECCIÓN HISTORIA
========================= */

.historia {
    display: flex;
    flex-direction: column;
    /* Imagen arriba, texto abajo en todas las pantallas */
    align-items: center;
    gap: 20px;
    padding: 30px 15px;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.img-historia {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-historia img {
    width: 100%;
    max-width: 900px;
    /* Ajustalo si querés */
    object-fit: cover;
    display: block;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-historia img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.texto-historia {
    max-width: 1500px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.historia:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.texto-historia {
    color: black;
}

.texto-historia p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1.2rem;
    color: black;
}

/*.texto-historia p:first-child::first-letter {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f39c12;
}*/

/* tarjetas misión, visión y valores */

.card ul,
.card li,
.card p {
    color: #000;
    text-align: justify;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    /* si querés viñetas, quitá esta línea */
    padding-left: 0;
}

/* =========================
SECCIÓN equipo directivo
========================= */

.equipodirectivo {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Imagen + texto */
    align-items: center;
    gap: 2rem;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.equipodirectivo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.img-equipodirectivo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-equipodirectivo img {
    width: 100%;
    max-width: 750px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-equipodirectivo img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.equipodirectivo {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Imagen + texto */
    align-items: center;
    gap: 2rem;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.equipodirectivo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.img-equipodirectivo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-equipodirectivo img {
    width: 100%;
    max-width: 750px;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-equipodirectivo img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* ===== TABLET ===== */
@media (max-width: 992px) {
    .equipodirectivo {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.8rem;
        gap: 1.5rem;
    }

    .img-equipodirectivo img {
        max-width: 100%;
    }
}

/* ===== MÓVILES ===== */
@media (max-width: 768px) {
    .equipodirectivo {
        width: 95%;
        margin: 4rem auto 2rem auto;
        padding: 1.2rem;
        border-radius: 15px;
        gap: 1rem;
    }

    .img-equipodirectivo img {
        border-radius: 15px;
    }
}

/* ===== CELULARES PEQUEÑOS ===== */
@media (max-width: 480px) {
    .equipodirectivo {
        width: 98%;
        padding: 1rem;
        margin: 3rem auto 1.5rem auto;
    }

    .img-equipodirectivo img {
        border-radius: 12px;
    }
}

/********************************************fundadores************************************************************/

/* Tarjeta del mismo tamaño */
.card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

/* Título pegado arriba */
.card-body h3 {
    margin-top: 0;
}

/* Texto justificado */
.card-body ul {
    text-align: justify;
}

/* Imagen arriba */
.img-historia img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* En pantallas chicas se apilan */
@media (max-width: 768px) {
    .seccion-tarjetas {
        flex-direction: column;
    }

    .seccion-tarjetas .col-12.col-md-6 {
        width: 100%;
    }
}


/*--------------------------------------------------------colegio -----------------------------------------------------------------*/

.row h3 {
    color: black;
    font-weight: 200;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}


/*---------------------------------------------------------Nivel Inicial-----------------------------------------------------------*/

/* =========================
ESTILOS GENERALES
========================= */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: black;
    margin: 0;
    padding: 0;
}

/* =========================
SECCIÓN NIVEL INICIAL
========================= */
.nivelinicial {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Imagen + texto */
    align-items: center;
    gap: 2rem;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.nivelinicial:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.img-nivelinicial {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-nivelinicial img {
    width: 100%;
    max-width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

.img-nivelinicial img:hover {
    transform: scale(1.05);
}

.texto-nivelinicial p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: black;
}

/* =========================
BOTONES DE SOLICITUD VACANTE
========================= */
.text-center h2 {
    color: #f39c12;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.btn-outline-dark {
    border: 2px solid #f39c12 !important;
    color: #f39c12 !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #f39c12 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================
GALERÍA DE EQUIPO
========================= */
.grid-gale-ini {
    text-align: center;
    margin: 4rem auto;
}

.grid-gale-ini h2 {
    color: #f39c12;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.grid-inicial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 90%;
    margin: 0 auto;
}

.grid-inicial img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-inicial img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* =========================
GALERÍA IMAGENES NIVEL INICIAL
========================= */

.galeria-inicial {
    text-align: center;
    margin: 4rem auto;
}

.galeria-inicial h2 {
    color: #f39c12;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.grid-galeria-inicial {
    margin: 15px;
    display: grid;
    grid-auto-rows: 250px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.img-7 {
    grid-column: span 2;
}

.img-6 {
    grid-row: span 2;
}

.grid-galeria-inicial div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*para que la imagen no se vea estirada*/
}


/* =========================
   CURRÍCULA
========================= */
.grid-curricula {
    text-align: center;
    margin: 5rem auto;
    width: 90%;
}

.grid-curricula h2 {
    color: #f39c12;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.grid-curricula-detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: start;
}

.grid-curricula-inicial img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-curricula-inicial img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
    .nivelinicial {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .texto-nivelinicial p {
        text-align: justify;
    }

    .img-nivelinicial img {
        max-width: 280px;
    }

    .text-center h2,
    .grid-curricula h2,
    .grid-galeria-inicial h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .nivelinicial {
        padding: 1.5rem;
        gap: 1rem;
    }

    .texto-nivelinicial p {
        font-size: 0.95rem;
    }

    .btn-outline-dark {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .nivelinicial {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .texto-nivelinicial p {
        text-align: left;
    }

    .card-body-primario {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-galeria-inicial {
        grid-template-columns: repeat(2, 1fr);
    }
}



/*****************************************nivel primario ---------------------------------------------------*/

section {
    width: 90%;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h2, h3 {
    text-align: center;
    font-weight: 700;
    color: #222;
}

/* =====================================
   DESCRIPCIÓN NIVEL PRIMARIO
===================================== */

.nivelinicial {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: center;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.img-nivelinicial img {
    border-radius: 18px;
}

.texto-nivelinicial p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 1rem;
}

/* =====================================
   VACANTES
===================================== */

.nivelprimario {
    text-align: center;
    margin: 4rem auto;
}

.titulo-primario {
    margin-bottom: 2rem;
}

.card-body-primario {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
}

.card-body-primario a {
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* =====================================
   EQUIPO DOCENTE
===================================== */

.grid-imagenes-equipo-primaria {
    width: 90%;
    margin: 2rem auto 4rem auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Cada imagen con mismo alto y ancho */
.grid-imagenes-equipo-primaria img {
    width: 100%;
    aspect-ratio: 1 / 1;      /* cuadradas */
    object-fit: cover;        /* recorta sin deformar */
    display: block;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.grid-imagenes-equipo-primaria img:hover {
    transform: scale(1.02);
}

/* =====================================
   ESTRUCTURA
===================================== */

.nivelinicial img {
    width: 100%;
}

/* =====================================
   BOTÓN PROYECTOS
===================================== */

.btn-outline-dark {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
}

/* =====================================
   GALERÍA
===================================== */

.galeria-inicial {
    width: 90%;
    margin: 4rem auto;
}

.galeria-inicial h2 {
    margin-bottom: 2rem;
}

.grid-galeria-inicial {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
}

.grid-imagen-inicial img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 992px) {

    .nivelinicial {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.8rem;
    }

    .texto-nivelinicial p {
        text-align: left;
    }

    .card-body-primario {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-imagenes-equipo-primaria {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-galeria-inicial {
        grid-template-columns: repeat(2,1fr);
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* =====================================
   MÓVILES
===================================== */

@media (max-width: 768px) {

    section {
        width: 95%;
    }

    .nivelinicial {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
        margin: 2.5rem auto;
        border-radius: 16px;
    }

    .texto-nivelinicial p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .card-body-primario {
        grid-template-columns: 1fr;
    }

    .card-body-primario a {
        width: 100%;
    }

    .grid-imagenes-equipo-primaria {
        width: 95%;
        grid-template-columns: 1fr;
    }

    .grid-imagenes-equipo-primaria img {
        aspect-ratio: 1 / 1;
        border-radius: 14px;
    }
    .grid-galeria-inicial {
        grid-template-columns: 1fr;
    }

    .btn-outline-dark {
        width: 100%;
        max-width: 280px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* =====================================
   CELULARES PEQUEÑOS
===================================== */

@media (max-width: 480px) {

    .nivelinicial {
        padding: 1rem;
        border-radius: 14px;
    }

    .texto-nivelinicial p {
        font-size: 0.92rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .grid-imagen-inicial img,
    .grid-imagenes-equipo-primaria img,
    .img-nivelinicial img {
        border-radius: 12px;
    }
}
/*---------------------------------------------------------nivel secundario --------------------------------------------------*/

/* =========================
ESTILOS GENERALES
========================= */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* =========================
SECCIÓN NIVEL ISECUNDARIO
========================= */
.nivelsecundario {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Imagen + texto */
    align-items: center;
    gap: 2rem;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.nivelsecundario:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.img-nivelsecundario {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-nivelsecundario img {
    width: 100%;
    max-width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

.img-nivelsecundario img:hover {
    transform: scale(1.05);
}

.texto-secundario p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: black;
}

.texto-secundario ul {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: black;
}

.texto-secundario li {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: black;
}

/*----------------------------------------------------------proyectos nivel secundario----------------------------------------------------------*/

/* Ajuste del video */
.video-custom {
    width: 100%;
    max-width: 350px;
    /* ajusta a gusto */
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Título centrado */
.descripcion-video h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f39c12;
}

/* Estilo para texto */
.descripcion-video ul {
    list-style: none;
    color: #000;
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Hover suave al video */
.video-custom:hover {
    transform: scale(1.03);
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================
   SOLO CSS RESPONSIVE - NIVEL SECUNDARIO
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .nivelsecundario {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.8rem;
    }

    .img-nivelsecundario img {
        width: 100%;
        max-width: 700px;
        margin: auto;
        display: block;
    }

    .texto-secundario {
        width: 100%;
    }

    .texto-secundario p,
    .texto-secundario li,
    .texto-secundario ul {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .grid-autoridades {
        width: 95%;
        margin: auto;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .accordion-body {
        font-size: 0.95rem;
    }

    .grid-galeria-inicial {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card-body h2 {
        font-size: 1.5rem;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .nivelsecundario {
        grid-template-columns: 1fr;
        width: 95%;
        padding: 1.2rem;
        gap: 1rem;
        margin: 2rem auto;
        border-radius: 16px;
    }

    .texto-secundario p,
    .texto-secundario li,
    .texto-secundario ul {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }

    .grid-autoridades {
        width: 95%;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    .accordion-body {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .container .row {
        gap: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-body h2 {
        font-size: 1.3rem;
    }

    .card-body ul {
        font-size: 0.95rem;
        text-align: left;
        padding-left: 0;
    }

    .btn-outline-dark {
        width: 100%;
        max-width: 280px;
    }

    .grid-galeria-inicial {
        grid-template-columns: 1fr;
    }

    .grid-imagen-inicial img {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .nivelsecundario {
        padding: 1rem;
        border-radius: 14px;
    }

    .texto-secundario p,
    .texto-secundario li,
    .texto-secundario ul,
    .accordion-body,
    .card-body ul {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .accordion-button {
        font-size: 0.88rem;
        padding: 0.8rem;
    }

    .card-body h2 {
        font-size: 1.15rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.05rem;
    }

    .grid-imagen-inicial img,
    .img-nivelsecundario img {
        border-radius: 12px;
    }
}


/*----------------------------------------------------------pastoral---------------------------------------------------------*/

/* =========================
introducción
========================= */
.pastoral {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Imagen + texto */
    align-items: center;
    gap: 2rem;
    width: 90%;
    margin: 5rem auto 3rem auto;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pastoral:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.img-pastoral {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-pastoral img {
    width: 100%;
    max-width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

.img-pastoral img:hover {
    transform: scale(1.05);
}

.texto-pastoral ul {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: black;
}

.texto-pastoral h2 {
    font-size: 2rem;
    line-height: 1.6;
    text-align: center;
    color: #f39c12;
}

/* =====================================
   SOLO CSS RESPONSIVE - PASTORAL
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .pastoral {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 95%;
        margin: 2.5rem auto;
        padding: 1.8rem;
    }

    .img-pastoral img,
    .video-custom {
        width: 100%;
        max-width: 750px;
        margin: auto;
        display: block;
    }

    .texto-pastoral {
        width: 100%;
    }

    .texto-pastoral h2 {
        font-size: 1.7rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .texto-pastoral ul,
    .texto-pastoral li {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .titulo-seccion {
        font-size: 2rem;
        margin-top: 2rem;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .pastoral {
        grid-template-columns: 1fr;
        width: 95%;
        gap: 1.2rem;
        padding: 1.2rem;
        margin: 2rem auto;
        border-radius: 16px;
    }

    .img-pastoral img,
    .video-custom {
        width: 100%;
        border-radius: 14px;
    }

    .texto-pastoral h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .texto-pastoral ul,
    .texto-pastoral li {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
        padding-left: 0;
    }

    .titulo-seccion {
        font-size: 1.6rem;
        margin-top: 1.5rem;
    }

    main {
        overflow-x: hidden;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .pastoral {
        padding: 1rem;
        border-radius: 14px;
        gap: 1rem;
    }

    .img-pastoral img,
    .video-custom {
        border-radius: 12px;
    }

    .texto-pastoral h2 {
        font-size: 1.2rem;
    }

    .texto-pastoral ul,
    .texto-pastoral li {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .titulo-seccion {
        font-size: 1.3rem;
    }
}

/*----------------------------------------------------------talleres----------------------------------------------------------*/

/* =========================
   ESTILO GENERAL
========================= */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ======== TÍTULO PRINCIPAL ======== */
.titulo-seccion {
    text-align: center;
    color: #f39c12;
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 6rem;
    /* para compensar navbar fija */
    margin-bottom: 2.5rem;
    position: relative;
}

.titulo-seccion::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #ffb347);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* =========================
   CONTENEDOR DE NIVELES
========================= */
.grid-nivel {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* logo + acordeón */
    align-items: start;
    gap: 2rem;
    width: 90%;
    margin: 0 auto 2.5rem auto;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.grid-nivel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* Imagen del logo */
.grid-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-logo img {
    width: 100%;
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.grid-logo img:hover {
    transform: scale(1.05);
}

/* =========================
   ACORDEONES
========================= */
.accordion {
    width: 100%;
}

.accordion-item {
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: #fff7ed;
    color: #f39c12;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #f39c12, #ffb347);
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.accordion-body {
    background-color: #fff;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.accordion-body ul {
    margin: 0.3rem 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
/* =====================================
   SOLO CSS RESPONSIVE - TALLERES
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .titulo-seccion {
        font-size: 2rem;
        text-align: center;
        margin: 2rem 1rem;
    }

    .grid-nivel,
    .grid-taller-ingles {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 95%;
        margin: auto auto 2rem auto;
    }

    .grid-logo {
        text-align: center;
    }

    .grid-logo img {
        max-width: 220px;
        width: 100%;
        height: auto;
    }

    .accordion-button {
        font-size: 1rem;
        line-height: 1.4;
        padding: 1rem;
    }

    .accordion-body {
        font-size: 0.98rem;
        line-height: 1.6;
        padding: 1rem;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .titulo-seccion {
        font-size: 1.6rem;
        margin: 1.5rem 1rem;
    }

    .grid-nivel,
    .grid-taller-ingles {
        width: 95%;
        gap: 1rem;
        margin-bottom: 1.8rem;
    }

    .grid-logo img {
        max-width: 170px;
    }

    .accordion-item {
        border-radius: 14px;
        overflow: hidden;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 0.9rem;
        line-height: 1.35;
    }

    .accordion-body {
        font-size: 0.93rem;
        line-height: 1.5;
        padding: 1rem;
    }

    .accordion-body ul,
    .accordion-body p {
        margin-bottom: 0.7rem;
        word-break: break-word;
    }

    /* GALERÍA */
    .grid-galeria-inicial {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 95%;
        margin: auto;
    }

    .grid-imagen-inicial img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
    }

    .img-6,
    .img-7 {
        grid-column: span 2;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .titulo-seccion {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .grid-logo img {
        max-width: 130px;
    }

    .accordion-button {
        font-size: 0.88rem;
        padding: 0.8rem;
    }

    .accordion-body {
        font-size: 0.88rem;
        padding: 0.9rem;
        line-height: 1.45;
    }

    .grid-galeria-inicial {
        grid-template-columns: 1fr;
    }

    .grid-imagen-inicial img {
        height: 220px;
    }

    .img-6,
    .img-7 {
        grid-column: span 1;
    }
}

/*************************UPF*******************************************************/

/* Estilos para submenu de segundo nivel */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
}


/* Grilla de 2 columnas */
.grid-imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-right: 5%;
    padding-left: 5%;
    padding-block-end: 5%;
    gap: 20px;
    margin-left: .1rem;
    margin-right: .1rem;
}

/* Estilos de las imágenes */
.grid-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* opcional */
}

/* Responsive: en móvil se apilan */
@media (max-width: 768px) {
    .grid-imagenes {
        grid-template-columns: 1fr;
    }
}


/* -----------------------CONTACTO ------------------------------------------------*/


/* =========================
   ESTILO GENERAL
========================= */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff;
    color: #ffb347;
    margin: 40PX;
    padding: 0;
}

/* =====================================
   SOLO CSS RESPONSIVE - CONTACTOS
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .container.my-5 {
        width: 95%;
        margin: 2rem auto;
    }

    .container.my-5 h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-body img {
        width: 100%;
        max-width: 180px;
        height: auto;
        margin-bottom: 1rem;
    }

    .card-body ul {
        font-size: 1rem;
        line-height: 1.5;
        padding-left: 0;
        list-style: none;
        margin-bottom: 0.5rem;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .container.my-5 {
        width: 95%;
        margin: 1.5rem auto;
    }

    .container.my-5 h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .row.text-center {
        gap: 1rem;
    }

    .col-md-4 {
        width: 100%;
    }

    .card {
        border-radius: 18px;
    }

    .card-body {
        padding: 1.3rem;
    }

    .card-body img {
        max-width: 150px;
        margin-bottom: 1rem;
    }

    .card-body ul {
        font-size: 0.96rem;
        line-height: 1.45;
        word-break: break-word;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .container.my-5 h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .card-body {
        padding: 1rem;
    }

    .card-body img {
        max-width: 120px;
    }

    .card-body ul {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .card {
        border-radius: 14px;
    }
}

/* ------------------------novedades --------------------------------------------------------------*/
/* =====================================
   SOLO CSS RESPONSIVE - VISOR PDF
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .container.my-4 {
        width: 95%;
        margin: 2rem auto;
    }

    .container.my-4 h3 {
        font-size: 1.7rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .ratio iframe {
        border-radius: 16px;
    }

    .btn-primary {
        display: inline-block;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 12px;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .container.my-4 {
        width: 95%;
        margin: 1.8rem auto;
    }

    .container.my-4 h3 {
        font-size: 1.35rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 1rem;
    }

    .ratio {
        --bs-aspect-ratio: 140%;
    }

    .ratio iframe {
        border-radius: 14px;
    }

    .btn-primary {
        width: 100%;
        max-width: 320px;
        display: block;
        margin: auto;
        padding: 12px;
        font-size: 1rem;
        border-radius: 12px;
        text-align: center;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .container.my-4 h3 {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .ratio {
        --bs-aspect-ratio: 160%;
    }

    .ratio iframe {
        border-radius: 12px;
    }

    .btn-primary {
        font-size: 0.95rem;
        padding: 10px;
        border-radius: 10px;
    }
}

/*------------------------autogestión -------------------------------------------------------------*/

/* =====================================
   SOLO CSS RESPONSIVE - AUTOGESTIÓN
===================================== */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {

    .seccion-autogestion {
        width: 95%;
        margin: auto;
        padding: 2rem 0;
    }

    .card-autogestion {
        border-radius: 18px;
    }

    .card-autogestion .card-body {
        padding: 2rem 1.5rem;
    }

    .card-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .card-autogestion ul {
        font-size: 1rem;
        line-height: 1.5;
        padding-left: 0;
        list-style: none;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .btn-warning {
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 12px;
    }
}

/* ---------- MÓVILES ---------- */
@media (max-width: 768px) {

    .seccion-autogestion {
        width: 95%;
        padding: 1.5rem 0;
    }

    .row.text-center {
        gap: 1rem;
    }

    .col-md-6 {
        width: 100%;
    }

    .card-autogestion {
        border-radius: 16px;
    }

    .card-autogestion .card-body {
        padding: 1.5rem 1rem;
    }

    .card-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .card-autogestion ul {
        font-size: 0.95rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .btn-warning {
        width: 100%;
        max-width: 220px;
        padding: 12px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* ---------- CELULARES PEQUEÑOS ---------- */
@media (max-width: 480px) {

    .seccion-autogestion {
        width: 94%;
        padding: 1rem 0;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-autogestion .card-body {
        padding: 1.2rem 0.8rem;
    }

    .card-autogestion ul {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .btn-warning {
        font-size: 0.95rem;
        padding: 10px;
        border-radius: 10px;
    }

    .card-autogestion {
        border-radius: 14px;
    }
}


/*------------------------footer------------------------------------------------------------------------------*/

footer {
    background: linear-gradient(90deg, var(--naranja-oscuro), var(--naranja));
    color: var(--blanco);
    font-size: 0.9rem;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

footer a {
    color: var(--blanco);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gris-claro);
}