* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;

    color: #222;
    background-color: white;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    font-size: 1.25rem;
}

.container {
    width: min(92%, 1400px);
    margin: 0 auto;
}


/* =========================================
   BOTONES
========================================= */

button,
.boton {
    display: inline-block;

    padding: 12px 25px;

    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 15px;

    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;

    color: white;
    background-color: green;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;

    transition:
        background-color 0.3s,
        transform 0.3s;
}

button:hover,
.boton:hover {
    background-color: rgb(5, 89, 5);
    transform: translateY(-2px);
}

.boton {
    display: inline-block;
    padding: 12px 25px;

    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 15px;

    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;

    color: white;
    background-color: green;

    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);

    transition:
        background-color 0.3s,
        transform 0.3s;
}

.boton:hover {
    color: white;
    background-color: rgb(5, 89, 5);
    transform: translateY(-2px);
}


/* =========================================
   HEADER Y NAVEGACIÓN
========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    background-color: rgb(245, 245, 245);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

header .container {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    padding: 10px 0;
}

header p,
header .arriba {
    margin: 0;

    font-size: 20px;
    font-weight: bold;
    color: green;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

header a {
    padding: 8px 12px;

    font-weight: bold;
    text-decoration: none;
    color: black;

    transition: color 0.3s;
}

header a:hover {
    color: green;
}


/* =========================================
   PORTADAS CON IMAGEN DE FONDO
========================================= */

#fotoinicio,
#conocenos,
#manual-inicio {
    width: 100%;

    min-height: calc(100vh - 75px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding: 80px 6%;

    text-align: center;
    color: white;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#fotoinicio {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("media/fotogrupal.jpg");
}

#conocenos {
    font-weight: bold;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        url("media/inicioconocenos.jpg");
}

#manual-inicio {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("media/manualinicio.jpg");
}

#fotoinicio h1,
#conocenos h1,
#manual-inicio h1 {
    margin: 0 0 15px;

    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.1;
}

#fotoinicio p,
#conocenos p,
#manual-inicio p {
    max-width: 900px;
    margin: 0;

    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}


/* =========================================
   PÁGINA DE INICIO
========================================= */

#quienessomos .container {
    padding: 75px 20px;
    text-align: center;
}

#cartasinicio {
    padding: 50px 0;

    color: white;
    background-color: rgb(69, 63, 63);
}

#cartasinicio .container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;
}

.cuadrosinicio {
    width: 300px;
    padding: 25px;

    text-align: center;

    border-radius: 15px;

    background-color: rgba(255, 255, 255, 0.08);

    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.35);
}

#cartasinicio p {
    padding: 5px;
    font-size: 15px;
}


/* =========================================
   CARRUSEL PRINCIPAL CON BOTONES

   Este es el carrusel que usa JavaScript
   y las flechas anterior/siguiente.
========================================= */

.carrusel {
    position: relative;

    width: 90%;
    max-width: 1000px;
    height: 500px;

    margin: 30px auto;

    overflow: hidden;
    border-radius: 15px;
}

.diapositiva {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    transition: opacity 0.8s ease;
}

.diapositiva.activa {
    opacity: 1;
}

.diapositiva img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.anterior,
.siguiente {
    position: absolute;
    top: 50%;
    z-index: 2;

    transform: translateY(-50%);

    padding: 12px 17px;

    border: none;
    border-radius: 50%;

    font-size: 30px;
    color: white;

    background-color: rgba(0, 0, 0, 0.45);

    cursor: pointer;
}

.anterior {
    left: 20px;
}

.siguiente {
    right: 20px;
}

.anterior:hover,
.siguiente:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* =========================================
   PÁGINA CONÓCENOS
========================================= */

#vision,
#mision,
#instalaciones,
#docentes,
#instructores {
    width: 100%;
    padding: 75px 6%;
}

#vision,
#instalaciones,
#instructores {
    background-color: white;
}

#mision,
#docentes {
    background-color: rgb(247, 247, 247);
}

.vision-container,
.mision-container,
.instalaciones-container,
.docentes-container,
.instructores-container {
    width: min(100%, 1500px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(280px, 0.9fr);

    align-items: center;

    gap: clamp(45px, 8vw, 140px);
}

.vision-imagen,
.mision-imagen,
.instalaciones-imagen,
.docentes-imagen,
.instructores-imagen,
.vision-texto,
.mision-texto,
.instalaciones-texto,
.docentes-texto,
.instructores-texto {
    min-width: 0;
}

.vision-imagen img,
.mision-imagen img {
    display: block;

    width: 100%;
    height: clamp(320px, 35vw, 480px);

    object-fit: cover;

    border-radius: 15px;
}

.vision-texto h2,
.mision-texto h2,
.instalaciones-texto h2,
.docentes-texto h2,
.instructores-texto h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: clamp(2rem, 3vw, 2.7rem);
    color: green;
}

.vision-texto p,
.mision-texto p,
.instalaciones-texto p,
.docentes-texto p,
.instructores-texto p {
    margin-bottom: 0;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.7;
}


/* =========================================
   CARRUSELES DE CONÓCENOS CON FLECHAS
========================================= */

.carrusel-conocenos {
    position: relative;
    width: 100%;
    height: clamp(390px, 42vw, 560px);
    overflow: hidden;
    border-radius: 15px;
    background-color: #eeeeee;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    outline: none;
}

.carrusel-conocenos:focus-visible {
    outline: 3px solid green;
    outline-offset: 5px;
}

.carrusel-conocenos-pista {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s ease-in-out;
}

.slide-conocenos {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-conocenos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.flecha-carrusel {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    color: #222;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.flecha-carrusel:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.flecha-carrusel:active {
    transform: translateY(-50%) scale(0.95);
}

.flecha-carrusel.flecha-anterior {
    left: 18px;
}

.flecha-carrusel.flecha-siguiente {
    right: 18px;
}

.contador-carrusel {
    display: none !important;
}


/* =========================================
   CARRUSELES AUTOMÁTICOS ANTIGUOS

   Se conservan por si otra página todavía
   utiliza las clases carrusel-auto.
========================================= */

.carrusel-auto {
    width: 100%;
    height: 420px;

    overflow: hidden;

    border-radius: 15px;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.carrusel-pista {
    display: flex;

    height: 100%;
}

.carrusel-auto img {
    display: block;
    flex-shrink: 0;

    height: 100%;

    object-fit: cover;
}


/* Carrusel de dos imágenes */

.carrusel-dos .carrusel-pista {
    width: 300%;

    animation:
        moverDosImagenes
        10s
        infinite
        ease-in-out;
}

.carrusel-dos img {
    width: 33.333%;
}

@keyframes moverDosImagenes {
    0%,
    40% {
        transform: translateX(0);
    }

    50%,
    90% {
        transform: translateX(-33.333%);
    }

    100% {
        transform: translateX(-66.666%);
    }
}


/* Carrusel de tres imágenes */

.carrusel-tres .carrusel-pista {
    width: 400%;

    animation:
        moverTresImagenes
        15s
        infinite
        ease-in-out;
}

.carrusel-tres img {
    width: 25%;
}

@keyframes moverTresImagenes {
    0%,
    25% {
        transform: translateX(0);
    }

    33%,
    58% {
        transform: translateX(-25%);
    }

    66%,
    91% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(-75%);
    }
}

.carrusel-auto:hover .carrusel-pista {
    animation-play-state: paused;
}


/* =========================================
   PÁGINA DEL MANUAL
========================================= */

#descripcion-manual {
    padding: 80px 6%;

    text-align: center;
}

.manual-presentacion {
    width: min(100%, 1000px);
    margin: 0 auto;
}

.manual-presentacion h2 {
    margin-top: 0;

    font-size: clamp(2rem, 4vw, 3rem);
    color: green;
}

.manual-presentacion p {
    line-height: 1.7;
}

#contenido-manual {
    padding: 70px 6%;

    background-color: rgb(245, 245, 245);
}

#contenido-manual > h2 {
    margin-top: 0;
    margin-bottom: 40px;

    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: green;
}

.manual-grid {
    width: min(100%, 1400px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));

    gap: 25px;
}

.manual-tarjeta {
    padding: 30px;

    border-radius: 15px;

    background-color: white;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.manual-tarjeta h3 {
    margin-top: 0;

    font-size: 1.5rem;
    color: green;
}

.manual-tarjeta p {
    margin-bottom: 0;

    font-size: 1rem;
    line-height: 1.6;
}

#descargar-manual {
    padding: 80px 6%;

    text-align: center;
    color: white;

    background-color: rgb(47, 58, 47);
}

#descargar-manual h2 {
    margin-top: 0;

    font-size: clamp(2rem, 4vw, 3rem);
}

#descargar-manual p {
    max-width: 800px;
    margin: 0 auto 30px;

    line-height: 1.6;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background-color: rgb(35, 35, 35);
    color: white;
}

footer .container {
    min-height: 150px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

footer p {
    margin: 0;
    padding: 20px;

    font-size: 15px;
    text-align: center;
}


/* =========================================
   PÁGINA DEL MANUAL: PASOS
========================================= */

/* Portada con imagen debajo del header */

#manual-inicio {
    width: 100%;
    min-height: calc(100vh - 75px);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    padding: 80px 6%;

    text-align: center;
    color: white;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("media/portadamanual.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#manual-inicio h1 {
    max-width: 1000px;
    margin: 0 0 15px;

    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
}

#manual-inicio p {
    max-width: 800px;
    margin: 0;

    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: bold;
}


/* Introducción */

#introduccion-manual {
    padding: 70px 20px;
    text-align: center;
}

#introduccion-manual .container {
    max-width: 900px;
}

#introduccion-manual h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: clamp(2rem, 4vw, 3rem);
    color: green;
}

#introduccion-manual p {
    line-height: 1.7;
}


/* Sección que contiene todos los pasos */

#pasosmanual {
    padding: 70px 6%;

    background-color: rgb(245, 245, 245);
}

.pasos-container {
    width: min(100%, 1100px);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 40px;
}


/* Tarjeta de cada paso */

.paso-manual {
    position: relative;

    padding: 40px;

    border-radius: 18px;

    background-color: white;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.numero-paso {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    font-size: 24px;
    font-weight: bold;

    color: white;
    background-color: green;
}

.paso-manual h3 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: clamp(1.5rem, 3vw, 2rem);
    color: green;
}

.paso-manual p {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 18px;
    line-height: 1.7;
}


/* Imágenes debajo de cada paso */

.paso-manual img {
    display: block;

    width: 100%;
    max-height: 600px;

    margin-top: 30px;

    object-fit: contain;

    border: 1px solid rgb(220, 220, 220);
    border-radius: 12px;

    background-color: rgb(250, 250, 250);
}


/* Botón de SiPAGO */

.paso-manual .boton {
    display: inline-block;

    padding: 12px 25px;

    border-radius: 12px;

    font-size: 17px;
    font-weight: bold;
    text-decoration: none;

    color: white;
    background-color: green;

    transition:
        background-color 0.3s,
        transform 0.3s;
}

.paso-manual .boton:hover {
    background-color: rgb(5, 89, 5);
    transform: translateY(-2px);
}


/* =========================================
   PÁGINA DE ACTIVIDADES
========================================= */

/* PORTADA. Cambia fondoactividades.jpg por tu imagen. */

#actividades-portada {
    width: 100%;
    min-height: calc(100vh - 75px);
    padding: 80px 6%;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    text-align: center;
    color: white;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.52),
            rgba(0, 0, 0, 0.52)
        ),
        url("media/visionimagen.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.actividades-portada-contenido {
    width: 100%;
    max-width: 900px;
}

.actividades-portada-contenido > p:first-child {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.actividades-portada-contenido h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1;
}

.actividades-portada-descripcion {
    max-width: 720px;
    margin: 25px auto 0;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
}


/* SECCIONES Y CONTORNOS */

.actividad-seccion {
    padding: 70px 25px;
    background-color: white;
}

.actividad-seccion-alternativa {
    background-color: rgb(245, 245, 245);
}

.actividad-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 42px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);

    align-items: center;
    gap: 65px;

    background-color: white;

    border: 2px solid rgba(0, 128, 0, 0.28);
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.actividad-inversa .carrusel-actividad {
    order: 2;
}

.actividad-inversa .actividad-texto {
    order: 1;
}


/* TEXTO */

.actividad-texto h2 {
    margin: 5px 0 20px;
    color: green;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.actividad-texto > p:last-child,
.actividad-seccion-alternativa .actividad-texto > p:last-child {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.9;
    text-align: justify;
}

.actividad-etiqueta {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
}


/* CARRUSELES DE ACTIVIDADES */

.carrusel-actividad {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    background-color: #eeeeee;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    outline: none;
}

.carrusel-actividad:focus-visible {
    outline: 3px solid green;
    outline-offset: 5px;
}

.carrusel-actividad-pista {
    display: flex;
    width: 100%;
    transition: transform 0.65s ease-in-out;
}

.slide-actividad {
    min-width: 100%;
    height: 440px;
    overflow: hidden;
}

.slide-actividad img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.carrusel-actividad:hover .slide-actividad img {
    transform: scale(1.025);
}


/* FLECHAS DE ACTIVIDADES */

.flecha-actividad {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 48px;
    height: 48px;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 50%;

    color: #222;
    background-color: rgba(255, 255, 255, 0.88);

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);

    font-size: 1.6rem;
    line-height: 1;

    cursor: pointer;
    transform: translateY(-50%);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.flecha-actividad:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.flecha-actividad:active {
    transform: translateY(-50%) scale(0.95);
}

.flecha-actividad.flecha-anterior {
    left: 18px;
}

.flecha-actividad.flecha-siguiente {
    right: 18px;
}


/* =========================================
   DISEÑO PARA TABLET Y CELULAR
========================================= */

@media (max-width: 900px) {

    header .container {
        flex-direction: column;

        gap: 5px;
        padding: 15px 0;
    }

    header nav {
        flex-wrap: wrap;

        gap: 8px;
    }

    #fotoinicio,
    #conocenos,
    #manual-inicio,
    #actividades-portada {
        min-height: calc(100vh - 130px);
    }

    .vision-container,
    .mision-container,
    .instalaciones-container,
    .docentes-container,
    .instructores-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .vision-imagen img,
    .mision-imagen img,
    .carrusel-auto,
    .carrusel-conocenos {
        height: 350px;
    }

    .manual-grid {
        grid-template-columns:
            repeat(2, minmax(240px, 1fr));
    }

    .actividad-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px;
    }

    .actividad-inversa .carrusel-actividad,
    .actividad-inversa .actividad-texto {
        order: initial;
    }

    .actividad-texto {
        text-align: center;
    }

    .actividad-texto > p:last-child,
    .actividad-seccion-alternativa .actividad-texto > p:last-child {
        text-align: center;
    }

    .slide-actividad {
        height: 390px;
    }
}


@media (max-width: 768px) {

    #manual-inicio {
        min-height: calc(100vh - 130px);
        padding: 60px 20px;
    }

    #introduccion-manual {
        padding: 50px 20px;
    }

    #pasosmanual {
        padding: 50px 20px;
    }

    .pasos-container {
        gap: 30px;
    }

    .paso-manual {
        padding: 28px 20px;
    }

    .numero-paso {
        width: 48px;
        height: 48px;

        font-size: 21px;
    }

    .paso-manual p {
        font-size: 17px;
    }

    .paso-manual img {
        margin-top: 25px;
    }
}


@media (max-width: 600px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    p {
        font-size: 1.1rem;
    }

    header p,
    header .arriba {
        text-align: center;
        font-size: 17px;
    }

    header nav {
        padding: 5px 0;
    }

    header a {
        padding: 6px 8px;
        font-size: 14px;
    }

    #fotoinicio,
    #conocenos,
    #manual-inicio,
    #actividades-portada {
        min-height: calc(100vh - 145px);
        padding: 60px 20px;
    }

    #vision,
    #mision,
    #instalaciones,
    #docentes,
    #instructores {
        padding: 50px 20px;
    }

    .vision-imagen img,
    .mision-imagen img,
    .carrusel-auto,
    .carrusel-conocenos {
        height: 290px;
    }

    .carrusel {
        width: 95%;
        height: 300px;
    }

    .anterior,
    .siguiente {
        padding: 8px 12px;
        font-size: 22px;
    }

    .flecha-carrusel {
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }

    .flecha-carrusel.flecha-anterior {
        left: 10px;
    }

    .flecha-carrusel.flecha-siguiente {
        right: 10px;
    }

    .manual-grid {
        grid-template-columns: 1fr;
    }

    #descripcion-manual,
    #contenido-manual,
    #descargar-manual {
        padding: 55px 20px;
    }

    .actividad-seccion {
        padding: 45px 18px;
    }

    .actividad-container {
        gap: 28px;
        padding: 22px;
        border-radius: 16px;
    }

    .slide-actividad {
        height: 300px;
    }

    .flecha-actividad {
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }

    .flecha-actividad.flecha-anterior {
        left: 10px;
    }

    .flecha-actividad.flecha-siguiente {
        right: 10px;
    }

    .actividad-texto > p:last-child,
    .actividad-seccion-alternativa .actividad-texto > p:last-child {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.75;
    }
}

/* ======================================================
   CARRUSELES MÁS ALTOS: DOCENTES E INSTRUCTORES
====================================================== */

#docentes .carrusel-conocenos,
#instructores .carrusel-conocenos {
    height: 650px;
}

#docentes .carrusel-conocenos-pista,
#instructores .carrusel-conocenos-pista {
    height: 100%;
}

#docentes .slide-conocenos,
#instructores .slide-conocenos {
    height: 650px;
}

#docentes .slide-conocenos img,
#instructores .slide-conocenos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f4f6f5;
}

/* TABLETAS */

@media (max-width: 900px) {

    #docentes .carrusel-conocenos,
    #instructores .carrusel-conocenos,
    #docentes .slide-conocenos,
    #instructores .slide-conocenos {
        height: 570px;
    }
}

/* CELULARES */

@media (max-width: 600px) {

    #docentes .carrusel-conocenos,
    #instructores .carrusel-conocenos,
    #docentes .slide-conocenos,
    #instructores .slide-conocenos {
        height: 480px;
    }
}

/* ======================================================
   COMUNIDAD: CONOCE NUESTRO TRABAJO
====================================================== */

#comunidad {
    padding: 80px 25px;
    background-color: #f4f7f5;
}

#comunidad > .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 45px;

    background-color: #ffffff;

    border: 2px solid rgba(32, 83, 35, 0.28);
    border-radius: 26px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

#comunidad h2 {
    position: relative;

    margin: 0 0 38px;
    padding-bottom: 17px;

    color: #205323;

    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.1;
    text-align: center;
}

#comunidad h2::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    width: 85px;
    height: 4px;

    border-radius: 20px;
    background-color: #205323;

    transform: translateX(-50%);
}

/* CARRUSEL DE COMUNIDAD */

#comunidad .carrusel {
    position: relative;

    width: 100%;
    height: 520px;
    overflow: hidden;

    border-radius: 22px;
    background-color: #e9eeeb;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.16);
}

#comunidad .diapositiva {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

#comunidad .diapositiva.activa {
    opacity: 1;
    visibility: visible;
}

#comunidad .diapositiva img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* FLECHAS DEL CARRUSEL */

#comunidad .anterior,
#comunidad .siguiente {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 50px;
    height: 50px;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(32, 83, 35, 0.2);
    border-radius: 50%;

    color: #205323;
    background-color: rgba(255, 255, 255, 0.9);

    font-size: 1.7rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease;
}

#comunidad .anterior {
    left: 20px;
}

#comunidad .siguiente {
    right: 20px;
}

#comunidad .anterior:hover,
#comunidad .siguiente:hover {
    color: #ffffff;
    background-color: #205323;

    transform: translateY(-50%) scale(1.1);
}


/* ======================================================
   REDES SOCIALES
====================================================== */

#redes-sociales {
    padding: 80px 25px;

    background:
        linear-gradient(
            135deg,
            rgba(32, 83, 35, 0.97),
            rgba(19, 55, 31, 0.98)
        );
}

#redes-sociales > .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px;

    text-align: center;

    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;

    background-color: rgba(255, 255, 255, 0.06);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(5px);
}

#redes-sociales h2 {
    position: relative;

    margin: 0 0 22px;
    padding-bottom: 17px;

    color: #ffffff;

    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.1;
}

#redes-sociales h2::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    width: 80px;
    height: 4px;

    border-radius: 20px;
    background-color: #ffffff;

    transform: translateX(-50%);
}

.redes-etiqueta {
    margin: 0 0 12px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.redes-descripcion {
    max-width: 650px;
    margin: 0 auto 38px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.8;
}

.redes-botones {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;

    max-width: 850px;
    margin: 0 auto;
}

/* TARJETAS DE REDES */

.red-social {
    position: relative;

    min-height: 115px;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    overflow: hidden;

    color: #202020;
    background-color: #ffffff;

    border: 2px solid transparent;
    border-radius: 20px;

    text-align: left;
    text-decoration: none;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.red-social::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity 0.3s ease;
}

.red-social:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.24);
}

.red-social:hover::before {
    opacity: 0.08;
}

/* ICONOS */

.red-icono {
    position: relative;
    z-index: 1;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 17px;

    color: #ffffff;

    font-size: 1.25rem;
    font-weight: 800;
}

.instagram .red-icono {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #e1306c,
            #f77737
        );
}

.facebook .red-icono {
    background-color: #1877f2;

    font-family: Arial, sans-serif;
    font-size: 2rem;
}

.instagram:hover {
    border-color: #e1306c;
}

.facebook:hover {
    border-color: #1877f2;
}

.instagram::before {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #e1306c,
            #f77737
        );
}

.facebook::before {
    background-color: #1877f2;
}

/* CONTENIDO DE LAS TARJETAS */

.red-contenido {
    position: relative;
    z-index: 1;

    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.red-contenido strong {
    color: #202020;

    font-size: 1.2rem;
    font-weight: 700;
}

.red-contenido small {
    overflow: hidden;

    color: #666666;

    font-size: 0.92rem;
    font-weight: 400;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.red-flecha {
    position: relative;
    z-index: 1;

    color: #205323;

    font-size: 1.7rem;
    font-weight: 700;

    transition: transform 0.3s ease;
}

.red-social:hover .red-flecha {
    transform: translate(4px, -4px);
}


/* ======================================================
   TABLETAS
====================================================== */

@media (max-width: 900px) {

    #comunidad > .container,
    #redes-sociales > .container {
        padding: 35px;
    }

    #comunidad .carrusel {
        height: 440px;
    }

    .redes-botones {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}


/* ======================================================
   CELULARES
====================================================== */

@media (max-width: 600px) {

    #comunidad,
    #redes-sociales {
        padding: 50px 16px;
    }

    #comunidad > .container,
    #redes-sociales > .container {
        padding: 25px 18px;

        border-radius: 19px;
    }

    #comunidad h2 {
        margin-bottom: 28px;

        font-size: 2rem;
    }

    #comunidad .carrusel {
        height: 320px;

        border-radius: 15px;
    }

    #comunidad .anterior,
    #comunidad .siguiente {
        width: 42px;
        height: 42px;

        font-size: 1.35rem;
    }

    #comunidad .anterior {
        left: 10px;
    }

    #comunidad .siguiente {
        right: 10px;
    }

    #redes-sociales h2 {
        font-size: 2.2rem;
    }

    .redes-descripcion {
        margin-bottom: 28px;

        font-size: 1rem;
    }

    .redes-botones {
        gap: 17px;
    }

    .red-social {
        min-height: 100px;
        padding: 18px;

        gap: 14px;

        border-radius: 16px;
    }

    .red-icono {
        width: 50px;
        height: 50px;

        border-radius: 14px;
    }

    .red-contenido strong {
        font-size: 1.05rem;
    }

    .red-contenido small {
        font-size: 0.82rem;
    }

    .red-flecha {
        font-size: 1.4rem;
    }
}

