* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

@font-face {
    font-family: "garet-book";
    src: url("fonts/Garet-Book.ttf") format('truetype');
}

@font-face {
    font-family: "garet-heavy";
    src: url("fonts/Garet-Heavy.ttf") format('truetype');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "garet-book", sans-serif;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    /* Previene el desplazamiento horizontal */
}

.container img {
    max-width: 100%;
}

/* BOTON SCROLL */

#btnSubir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f3c400;
    color: #1a203b;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    /* Oculto por defecto */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    /* Asegura que el botón esté sobre todos los elementos */
}

#btnSubir:hover {
    background-color: #1a203b;
    color: #f3c400;
}

#btnSubir.show {
    display: block;
    /* Se muestra cuando el usuario hace scroll */
}

/*BARRA DE NAVEGACIÓN Y OTROS*/

.container {
    margin: 0 auto;
    /* Centra horizontalmente */
    padding: 0 20px;
    /* Espaciado interno */
    width: 100%;
    /* Ocupa todo el ancho de la pantalla */
    max-width: 90vw;
    /* 90% del ancho del viewport */
    box-sizing: border-box;
    /* Para que el padding se tenga en cuenta en el cálculo del ancho */
}

.header {
    padding: 0;
    width: 100%;
    height: 100vh;
    /* Cambia min-height a height */
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #fafafa;
}

.menu {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100px;
    display: flex;
    align-items: center;
    background-color: #1a203b;
    width: 100vw;
    z-index: 10;
    /* Asegura que el menú esté por encima de la imagen */
}

.menu .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Alinea los elementos a la izquierda */
    width: 100%;
    /* Asegura que ocupe todo el ancho */
}

.menu .navbar {
    margin-left: auto;
    /* Empuja el menú hacia la derecha */
    display: flex;
    align-items: center;
}

.menu .navbar ul {
    display: flex;
    align-items: center;
}

.menu .navbar ul li {
    position: relative;
    float: left;
    /* Consider changing this to flexbox for mobile */
}

.menu .navbar ul li a {
    font: 18px;
    padding: 20px;
    color: #fafafa;
}

.menu .navbar ul li a:hover {
    color: #f3c400;
}

.logo {
    min-width: 7px;
    max-width: 200px;
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#menu {
    display: none;
}

.menu-icon {
    display: none;
    /* Ocultarlo por defecto */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
}

.menu-icon img {
    width: 100%;
}

.menu label {
    cursor: pointer;
    display: none;
}

.menu-toggle {
    display: none;
}

.header-content {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-image: url(images/apo-img-header.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    background-attachment: fixed;
}

.header-container {
    /* Renombrado para evitar conflictos */
    width: 100%;
    height: 100%;
    /* Asegura que ocupe el 100% de .header-content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    /* Hacemos que este contenedor sea absolutamente posicionado */
    top: 60%;
    /* Mueve el contenedor hacia el centro */
    transform: translateY(-50%);
}

.header-txt {
    max-width: 820px;
    /* Opcional: limita el ancho del texto para un diseño más limpio */
    color: #fafafa;
}

.header-txt h1 {
    line-height: 1.2;
    font-size: 350%;
    font-family: "garet-heavy";
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.header-txt p {
    font-size: 170%;
    margin-bottom: 45px;
}

.header-img {
    width: 50%;
}

@media (max-width: 1800px) {
    .header-txt h1 {
        font-size: 250%;
    }

    .header-txt p {
        font-size: 110%;
    }
}

/*SECCIÓN 2*/

.about {
    padding: 100px 0;
    width: 100%;
}

.about-txt {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.about-txt h2 {
    color: #1a203b;
    font-family: "garet-heavy";
    font-size: 300%;
    margin-bottom: 15px;
    text-align: center;
}

.about-txt p {
    font-size: 165%;
    line-height: 1.7;
    margin-right: 23%;
    margin-left: 23%;
    margin-bottom: 10px;
    color: #1a203b;
    text-align: center;
}


.about-content {
    margin-top: 55px;
    display: flex;
    /* Mantén flex para que funcione flex-direction */
    flex-direction: row;
    /* Coloca los elementos en una columna */
    justify-content: center;
    gap: 2vw;
    /* Espacio entre widgets */
    width: 100%;
    /* Asegura que ocupe todo el ancho */
}

.box-1 {
    display: flex;
    flex-direction: column;
    font-size: 2vw;
    color: #fafafa;
    font-family: "garet-heavy";
    text-align: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #256980;
    flex-basis: calc(30% - 30px);
    height: 25vw;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.box-1:hover {
    transform: scale(1.1);
}

.box-1 h3 {
    margin-bottom: 5%;
}

.box-1 p {
    font-size: 57%;
    font-family: "garet-book";
    text-align: center;
}

.about-txt h3 {
    font-size: 190%;
    margin: 0 auto 20px;
    font-family: "garet-heavy";
    color: #f3c400;
    text-align: center;
    margin-bottom: 40px;
}

.about-txt-columns {
    display: flex;
    justify-content: space-between;
    /* Alinea las columnas a la izquierda y a la derecha */
    max-width: 60%;
    /* Limita el ancho para que no se extienda toda la pantalla */
    margin: 0 auto;
}

.about-txt-left,
.about-txt-right {
    flex: 1;
    /* Ambas columnas tendrán el mismo ancho */
    padding-left: 7%;
}

.about-txt-left p,
.about-txt-right p {
    font-size: 120%;
    line-height: 1.5;
    color: #1a203b;
    text-align: left;
    margin: 0 0 10px 0;
    /* Espaciado inferior entre párrafos */
}

@media (max-width: 1800px) {
    .about-txt h2 {
        font-size: 200%;

    }

    .about-txt p {
        font-size: 100%;
    }

    .about-txt h3 {
        font-size: 130%;
    }

    .about-txt-left p,
    .about-txt-right p {
        font-size: 90%;
    }
}


/*SECCION 3*/

.noticias {
    text-align: center;
    background-color: #1a203b;
    padding: 100px;
}

.noticias h2 {
    color: #f3c400;
    font-family: "garet-heavy";
    font-size: 300%;
    margin-bottom: 20px;
    text-align: center;
}

.noticias h3 {
    color: #fff;
    font-family: "garet-book";
    font-size: 150%;
    margin-bottom: 20px;
    text-align: center;
}

.news-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    gap: 10vw;
    /* Aumentado para dar espacio extra entre tarjetas */
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20vw;
    /* Aumentado para un contenedor más amplio */
    margin-bottom: 20px;
}

.card {
    width: 25vw;
    /* Ancho de la tarjeta */
    height: 25vw;
    /* Altura de la tarjeta */
    background: #f5f5f5;
    position: relative;
    padding: 0;
    /* Eliminar el padding para que la imagen ocupe todo el espacio */
    border: 2px solid #c3c6ce;
    transition: 0.5s ease-out;
    overflow: hidden;
    /* Asegura que el contenido no sobresalga */
    border-radius: 20px;
    transition: box-shadow 0.1s ease, border-width 0.1s ease;
}

.card-image {
    width: 100%;
    height: 100%;
    /* Ajusta la altura al 100% del contenedor */
    display: block;
    object-fit: cover;
    /* Ajusta la imagen para llenar el espacio sin distorsionarse */
}

.card-details {
    color: black;
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
}

.card-button {
    transform: translate(-50%, 150%) scale(1);
    width: 70%;
    border-radius: 1rem;
    border: none;
    background-color: #f3c400;
    color: #fff;
    font-size: 20px;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease;
    /* Transición para opacidad y escala */
}

.text-title {
    position: absolute;
    /* Posiciona el texto sobre la tarjeta */
    top: 40%;
    /* Ajusta la posición vertical del texto */
    left: 50%;
    /* Centra horizontalmente */
    transform: translateX(-50%);
    /* Centra horizontalmente */
    color: white;
    /* Texto en blanco para mayor contraste */
    font-size: 150%;
    font-family: "garet-heavy";
    font-weight: bold;
    z-index: 2;
    /* Asegura que esté encima de la imagen */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Agrega sombra para mayor visibilidad */
}

@media (max-width: 1800px) {

    .noticias h2 {
        font-size: 200%;
    }

    .noticias h3 {
        font-size: 100%;
    }

    .text-title {
        font-size: 100%;
        top: 40%;
    }

}

/* Hover Effects */
.card:hover {
    border-color: #f3c400;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
    border-width: 3px;
    /* Aumenta el grosor del borde */

}

.card:hover .card-button {
    transform: translate(-50%, -30%) scale(1);
    opacity: 1;
    cursor: pointer;
}

.card-button:hover {
    background-color: #1a203b;
    /* Azul oscuro en hover sobre el botón */
    transform: scale(1.2);
    /* Solo aumenta el tamaño */
    transition: transform 0.3s ease;
    /* Suaviza la escala */
}


/*SECCION 4*/

.afiliados {
    display: flex;
    align-items: flex-start;
    /* Alinea el contenido superiormente */
    justify-content: space-between;
    /* Deja espacio entre los elementos de la sección */
    padding: 20px;
    position: relative;
    /* Necesario para que los elementos hijos con position: absolute se posicionen en relación a esta sección */
}

.text-content {
    width: 50%;
    /* Ocupa el 50% del ancho para el texto */
    display: flex;
    flex-direction: column;
    /* Alinea el <h2> y el <p> en columna */
    text-align: left;
    /* Alinea el contenido dentro de text-content a la izquierda */
    padding-left: 60px;
    padding-right: 30px;
}

.afiliados h2 {
    color: #1a203b;
    font-family: "garet-heavy";
    font-size: 300%;
    margin-bottom: 65px;
    margin-top: 65px;
    text-align: left;
    /* Alinea el título a la izquierda */
}

.text-content p {
    font-size: 120%;
    padding-right: 100px;
    font-family: "garet-book";
}

.image-content {
    flex: 1;
    /* Deja que la imagen use el espacio sobrante */
    display: flex;
    /* Para posicionar fácilmente el contenido */
    justify-content: flex-end;
    /* Alínea la imagen a la derecha */
    align-items: center;
    /* Centra verticalmente la imagen dentro del contenedor */
    padding-right: 6vw;
    /* Agrega espacio desde el borde derecho */
    margin-top: 6%;
}

.image-content img {
    max-width: 100%;
    /* Asegura que no exceda el ancho del contenedor */
    height: auto;
    /* Mantén las proporciones */
    object-fit: contain;
    /* Asegura que no se deforme al escalar */
    border-radius: 0.5rem;
    /* Mantiene los bordes redondeados */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.boton-franja {
    font-family: "garet-heavy";
    position: absolute;
    /* Posiciona el botón relativo a la franja amarilla */
    margin-top: 33%;
    /* Ajusta el botón hacia abajo, más allá del borde inferior */
    left: 5%;
    /* Alinea el botón al borde derecho con un margen */
    background-color: #1a203b;
    color: #f3c400;
    padding: 0.5rem 2rem;
    /* Espaciado interno del botón */
    border: none;
    /* Elimina bordes */
    border-radius: 35px;
    font-size: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
    /* Asegura que sea interactivo */
}

.boton-franja:hover {
    transform: scale(1.2);
    /* Agranda el botón al pasar el cursor */
}

@media (max-width: 1800px) {
    .afiliados h2 {
        font-size: 200%;
        margin-bottom: 5%;
        margin-top: 7%;
    }

    .text-content p {
        font-size: 110%;
        padding-right: 8%;
    }

    .image-content {
        padding-right: 4vw;
        /* Incrementa el margen derecho si es necesario */
        margin-top: 6%;
    }

    .boton-franja {
        font-size: 17px;
        margin-top: 35%;
        left: 6%;
    }
}

@media (min-width: 1600px) and (max-width: 1800px) {

    .afiliados h2 {
        margin-bottom: 5%;
        margin-top: 8%;
    }

    .text-content p {
        font-size: 110%;
        padding-right: 15%;
    }

    .boton-franja {
        left: 5%;
    }

}


/*SECCION 5*/


.formulario {
    margin: 0;
    /* Elimina márgenes externos */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    /* Asegura que ocupe todo el ancho */
    min-height: 100vh;
    /* Ocupa el 100% de la altura de la ventana */
    padding: 150px 20px;
    /* Espaciado interno para evitar que el contenido quede pegado */
    overflow: hidden;
    /* Evita elementos desbordados */
    box-sizing: border-box;
    /* Incluye padding dentro del cálculo de tamaño */
}

.form-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Ocupa el 100% del ancho del contenedor padre */
    height: 100%;
    /* Ocupa el 100% de la altura del contenedor padre */
    background-color: #1a203b;
    /* Fondo azul */
    z-index: -1;
    /* Coloca el fondo detrás del formulario */
}

form {
    padding: 2vw;
    width: 40%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    /* Mantén el fondo blanco en el formulario */
    border-radius: 20px;
    position: relative;
    /* Para asegurar que se quede encima del fondo */
    z-index: 1;
    /* Asegura que el formulario quede sobre el fondo */
}


form h3 {
    font-size: 250%;
    color: #1a203b;
    font-family: "garet-heavy";
    text-transform: uppercase;
    margin-bottom: 50px;
}

@media (max-width: 1800px) {
    form {
        padding: 2vw;
        width: 44%;
    }

    form h3 {
        font-size: 200%;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Espaciado entre elementos del formulario */
}

.input-container {
    position: relative;
}

.input-container>i {
    padding: 14px;
    border-radius: 50%;
    background-color: #f3c400;
    color: #1a203b;
    position: absolute;
    font-size: 20px;
    top: 4px;
    left: 6px;
}

.input-container>input,
textarea {
    padding: 17px 15px 17px 65px;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 35px;
    border: 2px solid #1a203b;
    font-size: 16px;
    color: #1a203b;
}

.btn {
    background-color: #f3c400;
    padding: 17px 30px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    color: #fafafa;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
    background-color: #1a203b;
}

/* FONDO OSCURO - ENVIO FORMULARIO */

/* Fondo oscuro del overlay */
.overlay {
    position: fixed;
    /* Fijo para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100vw;
    /* Cubre todo el ancho visible */
    height: 100vh;
    /* Cubre toda la altura visible */
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    z-index: 999;
    /* Capa detrás del pop-up */
    opacity: 0;
    /* Oculto inicialmente */
    visibility: hidden;
    /* No es clickeable ni visible */
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    /* Suavidad */
}

/* Mostrar overlay */
.overlay.visible {
    opacity: 1;
    /* Opacidad total */
    visibility: visible;
    /* Aparece en pantalla */
    transition: opacity 0.5s ease;
    /* Animación de entrada */
}

/* Ventana del pop-up */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a203b;
    color: #f3c400;
    border: 2px solid #1a203b;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* Capa encima del overlay */
    text-align: center;
    font-family: "garet-heavy";
    font-size: 1.2em;
    border-radius: 8px;
    opacity: 0;
    /* Oculto inicialmente */
    visibility: hidden;
    /* No clickeable inicialmente */
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    /* Suavidad */
}

/* Mostrar pop-up */
.popup.visible {
    opacity: 1;
    /* Aparece completamente */
    visibility: visible;
    /* Visible y clickeable */
}



/* Estilo de campos inválidos */
input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="tel"]:invalid {
    border-color: red;
}

/* Estilo de campos válidos */
input[type="text"]:valid,
input[type="email"]:valid,
input[type="tel"]:valid {
    border-color: green;
}



@media (max-width: 1200px) {

    /* SECCION HEADER */
    .header-content {
        background-size: cover !important;
        /* La imagen ocupa todo el espacio */
        background-position: center center !important;
        /* La centra correctamente */
        height: 80vh;
        /* Reduce un poco la altura para mejorar la visualización */
        background-attachment: scroll;
        /* Evita problemas en móviles */
    }

    .header-txt h1 {
        font-size: 250%;
    }

    .header-txt p {
        font-size: 120%;
        padding-left: 7%;
        padding-right: 7%;
    }

    /* BARRA DE NAVEGACIÓN */
    .menu {
        display: flex;
        justify-content: flex-start;
        /* Alinea los elementos al principio */
        align-items: center;
        padding: 10px 20px;
        background-color: #1a203b;
        position: relative;
        /* Necesario para alinear el logo y el botón */
        width: 100vw;
        /* Asegura que el contenedor ocupe el 100% del ancho de la pantalla */
        left: 0;
        top: 0;
    }

    /* Asegurarse de que el logo esté centrado */
    .logo {
        min-width: 7px;
        max-width: 200px;
        font-size: 25px;
        font-weight: 800;
        text-transform: uppercase;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        position: absolute;
        /* Saca el logo de la secuencia normal del flujo */
        left: 50%;
        /* Lo coloca en el centro */
        transform: translateX(-50%);
        /* Ajusta el centro real del logo */
    }

    /* Asegurarse de que el botón de menú se alinee a la izquierda */
    .menu-icon {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        width: 50px;
        /* Tamaño del contenedor */
        height: 50px;
        /* Tamaño del contenedor */
        position: absolute;
        left: 20px;
        /* Alinea el botón al lado izquierdo */
    }

    .menu-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Asegura que la imagen no se deforme */
    }

    /* Navbar oculto por defecto */
    .navbar {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background-color: #1a203b;
        flex-direction: column;
        z-index: 1000;

        max-height: 0;
        /* Inicia colapsado */
        opacity: 0;
        /* Inicialmente invisible */
        overflow: hidden;
        /* Evita mostrar contenido antes de abrir */
        transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
        /* Suaviza el efecto */
    }

    .navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        width: 100%;
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 15px 20px;
        color: #fafafa;
        border-bottom: 1px solid #333;
        font-size: 16px;
        text-align: left;
        text-decoration: none;
    }

    .navbar ul li a:hover {
        background-color: #333;
        color: #f3c400;
    }

    /* Mostrar el menú cuando tiene la clase 'active' */
    .navbar.active {
        max-height: 500px;
        /* Ajusta este valor según el tamaño del menú */
        opacity: 1;
    }

    /* QUIENES SOMOS */

    .about-txt h2 {
        font-size: 250%;
    }

    .about-txt p {
        font-size: 120%;
        /* Reduce el tamaño del texto */
        margin-right: 5%;
        /* Ajusta el margen */
        margin-left: 5%;
        /* Ajusta el margen */
    }

    /* También podemos ajustar el padding */
    .about {
        padding: 50px 20px;
        /* Reduce el padding en pantallas pequeñas */
    }

    /* CARROUSEL BOX */

    .about-content {
        flex-direction: column;
        /* Las cards se apilan una debajo de la otra */
        justify-content: center;
        align-items: center;
        gap: 55px;
        /* Ajuste del espacio entre las cards */
    }

    .box-1 {
        width: 300px;
        /* Mantiene el mismo ancho fijo */
        height: 300px;
        /* Mantiene la misma altura fija */
        font-size: 180%;
        /* Ajusta el tamaño del texto para pantallas más pequeñas */
    }

    /* Aseguramos que el texto de cada card se ajuste bien */
    .box-1 p {
        font-size: 15px;
        /* Ajusta el tamaño del texto en móvil para que no ocupe mucho espacio */
        flex-grow: 1;
        /* Permite que el contenido se distribuye de manera uniforme */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centra el contenido dentro de la card */
    }

    /* INSTITUCIÓN */

    .about-txt-columns {
        display: flex;
        flex-direction: column;
        /* Apila las columnas en dispositivos móviles */
        align-items: center;
        /* Centra los elementos */
        text-align: center;
        max-width: 65%;
        /* Ajusta el ancho en móviles */
    }

    .about-txt-left,
    .about-txt-right {
        width: 100%;
        /* Ocupa el 100% del ancho para mejor visualización */
        margin-bottom: 20px;
        /* Agrega un espacio entre las columnas */
    }

    .about-txt-left p,
    .about-txt-right p {
        font-size: 110%;
        /* Ajuste del tamaño del texto */
        line-height: 1.5;
        text-align: center;
        /* Asegura que el texto se mantenga centrado */

    }


    /* NOTICIAS */

    .noticias {
        padding: 50px 20px;
        /* Reduce el padding para mejor ajuste en pantallas pequeñas */
    }

    .noticias h3 {
        font-size: 120%;
    }

    .news-content {
        flex-direction: column;
        /* Apila las tarjetas una debajo de otra */
        align-items: center;
        /* Centra los elementos */
        gap: 20px;
        /* Espaciado entre las tarjetas */
    }

    .card-container {
        width: 100%;
        /* Asegura que las tarjetas ocupen el ancho completo */
        display: flex;
        justify-content: center;
    }

    .card {
        width: 90%;
        /* Hace que la tarjeta ocupe el 90% del ancho de la pantalla */
        height: auto;
        /* Ajusta la altura automáticamente */
    }

    .card-image {
        width: 100%;
        height: auto;
        /* Ajusta la imagen sin distorsionarla */
    }

    .text-title {
        font-size: 100%;
        top: 40%;

    }

    .card-button {
        font-size: 16px;
        /* Ajusta el tamaño del botón */
        width: 80%;
    }

    /* AFILIADOS */

    .afiliados {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Alinea el contenido a la izquierda */
        width: 100%;
        padding: 0 10px;
        /* Agrega algo de espacio lateral */
    }

    .afiliados h2 {
        margin-bottom: 40px;
    }

    .text-content {
        width: 90%;
        /* Ocupa todo el ancho disponible */
        display: flex;
        justify-content: center;
        /* Centra el contenedor en la pantalla */
    }

    .text-content h2 {
        text-align: center;
        /* Mantén el título a la izquierda */
    }

    .text-content p {
        font-size: 110%;
        /* Ajusta el tamaño del texto en mobile */
        font-family: "garet-book";
        line-height: 1.5;
        text-align: left;
        /* El texto alineado a la izquierda */
        width: 115%;
        max-width: 600px;
        /* Evita que el texto se extienda demasiado en pantallas grandes */
        margin: 0 auto;
        /* Centra el bloque de texto */
    }

    .image-content {
        width: 100%;
        display: flex;
        justify-content: center;
        /* Centra la imagen */
        margin-top: 40px;
    }

    .image-content img {
        width: 100%;
        /* Ajusta el tamaño de la imagen al ancho de la pantalla */
        height: auto;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .contenedor-btn {
        display: flex;
        justify-content: center;
        /* Centra el botón horizontalmente */
        width: 100%;
        /* Ocupa todo el ancho disponible */
        padding-right: 8%;
    }

    .boton-franja {
        font-size: 18px;
        position: relative;

    }


    /* FORMULARIO */

    .formulario {
        padding: 50px 15px;
        /* Reduce el padding para evitar espacio innecesario */
        min-height: auto;
        /* Permite que el formulario se adapte al contenido */
    }

    form {
        margin-top: 20%;
        width: 90%;
        /* Hace que el formulario ocupe la mayor parte de la pantalla */
        padding: 20px;
        /* Reduce el padding para mantener un diseño más compacto */
    }

    form h3 {
        font-size: 180%;
        /* Reduce el tamaño del título en mobile */
        margin-bottom: 30px;
        /* Reduce el espacio inferior */
    }

    .input-group {
        gap: 10px;
        /* Espaciado entre inputs */
    }

    .input-container>i {
        padding: 10px;
        border-radius: 50%;
        background-color: #f3c400;
        color: #1a203b;
        position: absolute;
        font-size: 18px;
        top: 5px;
        left: 5px;
    }

    .input-container>input,
    textarea {
        padding: 14px 15px 14px 50px;
        /* Ajusta el padding para no desperdiciar espacio */
        font-size: 14px;
        /* Reduce el tamaño del texto en los inputs */
        margin-bottom: 15px;
        /* Reduce el espacio entre los campos */
    }

    .btn {
        padding: 14px 20px;
        /* Botón más compacto */
        font-size: 14px;
        /* Reduce el tamaño del texto en el botón */
    }

}