body {
    font-family: sans-serif;
    background: #eee;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

.header {
    position: relative;
    height: 50vw;
    margin-bottom: -100px;
}

.header__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vw;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url(imagenes/FONDO_1200x600.png);
    background-size: cover;
    z-index: 1;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    justify-content: space-between;
    display: flex;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-scrolled {
    background-color: #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .nav__link {
    color: #2e2e2e; 
}

.nav-scrolled .nav__link::after {
    background-color: #1e1e1e; 
}

.nav-scrolled .nav__link-activo {
    color: #000000; 
    text-decoration: underline #000000 1px solid; 
}

.nav__list {
    list-style: none;
    display: flex;
    margin-top: 30px;
    position: relative;
}

.nav__link {
    font-size: 1.2rem;
    margin-right: 4rem;
    color: #eee;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background-color: currentColor;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link-activo {
    margin-right: 4rem;
    font-size: 1.2rem;
    color: #eee;
    text-decoration: underline #eee 1px solid;
    text-underline-offset: 6px;
}

.nav__logo-img {
    margin-top: 1px;
    margin-left: 20px;
    height: 5rem;
}


.fondo {
    letter-spacing: 2px;
    color: #eee;
    font-size: 5.5rem;
    position: absolute;
    z-index: 4; 
    width: 100%; 
    height: 65%;
    text-align: center; 
    font-weight: 500;
    bottom: 0;
    margin: 0;
}

.explore {
    margin-right: 200px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}
.burbuja__roja {
    background-image: url(imagenes/burbujaroja.png);
    background-size: cover;
    width: 70px;
    height: 70px;
}

.english {
    margin-left: 200px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.burbuja__blanca {
    background-image: url(imagenes/burbujablanca.png);
    background-size: cover;
    width: 60px;
    height: 60px;
}

.nosotros {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #111111;
    color: #eee;
    margin: 0 9rem;
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.nosotros__info {
    display: flex;
    gap: 1rem;
    max-width: 900px;
}

.libro {
    background-image: url(imagenes/libro.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

.nosotros__text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-right: 30px;
}

.nosotros__carrusel {
    flex-shrink: 0;
    position: relative;
    max-width: 25rem;
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    min-height: 140px;
}

.nosotros__track {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nosotros__track-inner {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    width: 100%;
    align-items: center;
    position: relative;
}

.nosotros__carrusel-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    height: 90px;
    background-color: #ff0000;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
    transition: all 0.5s ease;
    transform-origin: center;
    position: relative;
}

.nosotros__carrusel-slide.active {
    height: 100px;
    transform: scale(1.1);
    z-index: 1;
}

.nosotros__carrusel-slide.no-transition {
    transition: none !important;
}

.slide-icon {
    width: 30%;
    height: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.nosotros__carrusel-slide h3 {
    color: white;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    max-width: 90%;
}

.carrusel-arrow {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carrusel-prev {
    left: -1.9rem;
}

.carrusel-next {
    right: -1.9rem;
}

.carrusel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #ddd;
    stroke-width: 2.5;
}

.carrusel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.carrusel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #666;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carrusel-dot:hover {
    transform: scale(1.2);
}

.carrusel-dot.active {
    background-color: #ff0000;
    transform: scale(1.2);
}

.instalaciones {
    background-color: #ddd;
    margin: 7rem 10rem;
    margin-bottom: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    border-radius: 6px;
}

.instalaciones__info {
    max-width: 45%;
    margin-left: 4rem;
}

.instalaciones__titulo {
    text-align: center;
    text-transform: uppercase;
}

.linea {
    width: 100%;
    height: 1px;
    background-color: #111111;
}

.instalaciones__subtitulo {
    text-align: center;
}

.instalaciones__imagen {
    background-image: url(imagenes/frente.png);
    background-size: cover;
    width: 25rem;
    height: 25rem;
}

.carrusel-instalaciones {
    position: relative;
    max-width: 95%;
    margin: 0.5rem auto;
    padding: 2rem 0;
}

.carrusel-instalaciones__track {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carrusel-instalaciones__track-inner {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 100%;
    position: relative;
}

.carrusel-instalaciones__slide {
    flex: 0 0 25%;
    height: 15rem;
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-instalaciones__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carrusel-instalaciones__slide.active {
    transform: scale(1.05);
    z-index: 1;
}

.carrusel-prev-instalaciones,
.carrusel-next-instalaciones {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.carrusel-prev-instalaciones {
    left: -30px;
}

.carrusel-next-instalaciones {
    right: -30px;
}

.carrusel-prev-instalaciones svg,
.carrusel-next-instalaciones svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.online__titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 5rem;
    text-transform: uppercase;
    text-decoration: underline #ff0000 2px solid;
    text-underline-offset: 5px;
}

.clases__online {
    display: flex;
    padding: 3rem 0;
    margin: 0 15rem;
    height: 36rem;
    margin-bottom: 14rem;
    justify-content: space-between;
}

.online__img {
    max-width: 50%;
    height: 90%;
    border-radius: 6px;
}

.online__info {
    margin-left: 4rem;
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.online__info-img {
    border-radius: 6px;
}

.online__vermas {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
    background-color: #ff0000;
    margin-left: auto;
    margin-bottom: 1rem;
    text-align: center; 
    color: #eee;
    border-radius: 4px;
}

.online__tick {
    color: #ff0000;
}

.formulario {
    max-width: 1150px;
    margin: auto;
    background-color: #ddd;
    margin-bottom: 5rem;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.formulario__form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 50%;
    gap: 1.5rem;
}

.formulario__input {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-family: sans-serif;
    font-size: 1rem;
}

.formulario__boton {
    background-color: #ff0000;
    color: #eee;
    border: none;
    border-radius: 10px;
    padding: 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario__boton:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

textarea {
    resize: none;
    height: 70px;
}

.formulario__contacto {
    width: 50%;
    text-align: center;
}

.formulario__titulo {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    text-decoration: underline #ff0000 2px solid;
    text-underline-offset: 4px;
    margin-top:0;
}

.formulario__img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

.formulario__texto {
    color: inherit;
    font-size: 1.2rem;
}

.footer {
    background-color: #111111;
    background-size: cover;
    height: 20rem;
    position: relative;
}

.footer__icons {
    position: absolute;
    margin: 10rem 6rem;
}

.footer__icon {
    margin-right: 0.5rem;
}

.footer__sections {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color:#eee;
}

.footer__section {
    margin-right: 3rem;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer__text {
    display: block;
    margin-top: 0; 
    margin-bottom: 0.5rem;
}

.footer__bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    color: #eee;
}

.header__background-sobrenosotros {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 30rem;
    background-color: #111111;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}

.fondo__titulo-nosotros {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 3rem;
    max-width: 50rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fondo__subtitulo-text {
    font-size: 1.1rem;  
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fondo__subtitulo {
    text-align: center; 
}

.circulorojo {
    position: relative;
    z-index: 2;
    color: #eee;
    height: 80%;
    width: 100%;
}

.circulorojo::before {
    content: '';
    position: absolute;
    width: 60rem;
    height: 100%;
    background: radial-gradient(circle, rgba(255,0,0,0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
}

.fondo__boton {
    background-color: #ff0000;
    color: #eee; 
    position: absolute;
    padding: 16px 32px;
    font-size: 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer; 
    z-index: 3;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.descubrir-mas {
    position: relative;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    color: #eee;
    top: 3rem;
}

.seccion__nosotros {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10rem;
}

.seccion__info {
    display: flex;
    gap: 2rem;
    margin-bottom: 5rem;
    border-top: 1px solid #ff0000;
}

.seccion__icon {
    width: 60px;
    height: 60px;
    margin-top: 1rem;
}

.section__texto {
    font-size: 1.2rem;
}

.bloque {
    width: 100%;
    min-height: 30vh;
    background-color: #cc0000;
    margin-bottom: clamp(5rem, 10vw, 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.bloque__contenido {
    max-width: min(80%, 1200px);
    width: 100%;
    min-height: 40vh;
    margin: 0 auto;
    background-color: #fff;
    border-radius: clamp(6px, 1vw, 10px);
    box-shadow: 0 0 clamp(20px, 4vw, 40px) 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.bloque__convenios {
    width: min(90%, 1000px);
    height: clamp(250px, 30vh, 300px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bloque__titulo {
    margin: clamp(1rem, 2vw, 2rem) auto;
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-transform: uppercase;
    text-decoration: underline #ff0000 1.5px solid;
    text-underline-offset: 4px;
}

.bloque__boton {    
    background-color: #ff0000;
    color: #eee;  
    padding: 16px 32px;
    font-size: 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    margin: clamp(0.5rem, 3vw, 2.5rem) auto;
    display: block;
    width: fit-content;
    max-width: 90%;
}

.modalidades {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    margin: 10rem 1rem 8rem 1rem;
}

.modalidad__imagen {
    border-radius: 10px;
    width: 100%;

}

.modalidad__titulo {
    text-align: center;
    text-decoration: underline #ff0000 1px solid;
    text-underline-offset: 4px;
}

.cursos { 
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
    background-color: #fff;
}

.cursos__info {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #eee;
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cursos__titulo {
    font-size: 1.5rem;
    margin: 0;
    text-decoration: underline #ff0000 1px solid;
    text-underline-offset: 4px;
}

.cursos__texto {
    text-align: justify;
    font-size: 1rem;
    padding-top: 1rem;
    margin: 0;
    margin-bottom: 3.5rem;
}

/* Ajuste de scroll offset para anchor links */
html {
    scroll-padding-top: 100px; /* Ajusta este valor según la altura de tu header */
}

/* Alternativa para navegadores que no soportan scroll-padding-top */
#formulario {
    scroll-margin-top: 100px;
}

.nav__hamburguer {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin-right: 20px;
}

.nav__hamburguer-line {
    width: 25px;
    height: 3px;
    background-color: #eee;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav__hamburguer.active .nav__hamburguer-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav__hamburguer.active .nav__hamburguer-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburguer.active .nav__hamburguer-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== MEDIA QUERIES ===== */

/* Hover effects */
@media (hover: hover) {
    .carrusel-arrow:hover svg {
        transform: scale(1.1);
        stroke: #fff;
    }
    
    .carrusel-prev-instalaciones:hover svg,
    .carrusel-next-instalaciones:hover svg {
        transform: scale(1.1);
    }
}

/* Desktop large */
@media (max-width: 1600px) {
    .online__img {
        max-height: 70%;
        max-width: 25%;
    }

    .clases__online {
        margin: 0 9rem;
        margin-bottom: 14rem;
    }

    .circulorojo::before {
        width: 45rem;
    }

    .fondo__titulo-nosotros {
        font-size: 2.1rem;
        max-width: 30rem;
    }
    .fondo__subtitulo-text {
        font-size: 1.2rem;
        max-width: 30rem;
    }
}

/* Desktop medium */
@media (max-width: 1200px) {

    .fondo {
        font-size: 3.5rem;
    }

    .explore {
        margin-right: 100px;
    }

    .english {
        margin-left: 100px;
    }

    .carrusel-instalaciones__slide {
        flex: 0 0 25%;
    }

    .carrusel-instalaciones__track-inner {
        gap: 1.5rem;
    }

    .online__img {
        display: none;
    }

    .online__titulo {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .clases__online {
        margin: 0 2rem 4rem 2rem;
    }

    .online__info {
        justify-content: center;
        max-width: 100%;
        font-size: 1.1rem;
        margin-left: 0;
        margin-top: 6rem;
    }

    .nosotros {
        flex-direction: column;
        align-items: center;
    }
    .nosotros__info {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    .nosotros__carrusel {
        margin-top: 0;
        max-width: 100%;
    }

    .instalaciones {
        justify-content: center;
        margin-left: 2rem;
        margin-right: 2rem;
        margin-top: 0;
    }

    .instalaciones__info {
        max-width: 100%;
        margin-left: 0;
    }

    .instalaciones__imagen {
        display: none;
    }

    .online__info-img {
        display: none;
    }
}

/* Tablet large */
@media (max-width: 992px) {
    .carrusel-instalaciones__slide {
        flex: 0 0 33.3333%;
    }
    .carrusel-instalaciones__track-inner {
        gap: 1rem;
    }

    h1 {
        font-size: 3rem;
        margin-bottom: 200px;
    }

    .carrusel-prev-instalaciones {
        left: 5px;
    }
    .carrusel-next-instalaciones {
        right: 5px;
    }
    .carrusel-prev-instalaciones,
    .carrusel-next-instalaciones {
        width: 32px;
        height: 32px;
    }
    .carrusel-prev-instalaciones svg,
    .carrusel-next-instalaciones svg {
        width: 18px;
        height: 18px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav__hamburguer {
        display: flex;
        margin-top: 20px;
    }
    
    .nav__list {
        position: fixed;
        right: -100%;
        width: 60%;
        height: 100%;
        background-color: #111111;
        flex-direction: column;
        transition: right 0.3s ease;
        margin-top: 0;
        text-align: center;
        padding: 2.5rem 0;
    }
    
    .nav__list.active {
        right: 0;
    }
    
    .nav__item {
        margin: 1rem 0;
    }
    
    .nav__link,
    .nav__link-activo {
        font-size: 1.5rem;
        display: block;
        margin: 0;
        padding: 1rem 0;
        width: 100%;
    }

    .nav__link::after {
        display: none;
    }

    .nav__link-activo {
        text-decoration: underline;
        text-decoration-color: #eee;
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
    }

    .nav-scrolled .nav__link {
        color: #eee; 
    }

    .nav-scrolled .nav__link-activo {
        color: #eee;
        text-decoration: underline;
        text-decoration-color: #eee;
        text-decoration-thickness: 2px;
        text-underline-offset: 8px;
    }
    
    .nav__logo-img {
        height: 4.5rem;
        margin-left: 5px;
        margin-top: 3px;
    }
    
    .nav__hamburguer-line {
        background-color: #eee;
    }
    
    .nav-scrolled .nav__hamburguer-line {
        background-color: #2e2e2e;
    }

    .nav__hamburguer.active .nav__hamburguer-line {
        background-color: #eee;
    }

    .header__background {
        height: 18rem;
        background-position: left center; 
        background-position: 30% center;
    }

    .fondo {
        font-size: 2.5rem;
    }

    .burbuja__roja {
        width: 50px;
        height: 50px;
    }

    .burbuja__blanca {
        width: 40px;
        height: 40px;
    }

    .nosotros {
        margin: 7rem 2rem;
    }

    .libro {
        display: none;
    }

    .carrusel-instalaciones__slide {
        flex: 0 0 50%;
    }
    .carrusel-instalaciones__track-inner {
        gap: 0.5rem;
    }

    .footer__sections {
        display: flex;
        flex-direction: column;
    }

    .online__info-img {
        display: flex;
    }

    h3.online__titulo, h4.formulario__titulo{
        font-size: 1.5rem;
    } 

    .clases__online {
        font-size: 1.2rem;
        height: 100%;
        margin-top: 0;
        padding: 0;
    }

    .online__info {
        margin-top: 0;
        text-align: center;
    }

    .online__subtitle {
        margin-top: 0;
    }

    .online__vermas {
        margin: 1rem auto;
    }

    .footer {
        height: 30rem;
    }

    .fondo__titulo-nosotros {
        font-size: 1.5rem;
        padding: 0;
        width: 81%;
    }

    .fondo__subtitulo-text {
        font-size: 1rem;
        padding: 0;
        width: 70%;
        margin-top: 1.8rem;
    }

    .fondo__boton {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .flecha-cta {
        display: none;
    }
    
    .circulorojo::before {
        width: 25rem;
    }

    .descubrir-mas {
        display: none;
    }

    .seccion__nosotros {
        margin: 27rem 1rem 0 1rem;
        font-size: 1rem;
    }

    .bloque {
        padding-left: 0;
        padding-right: 0;
    }

    .bloque__convenios {
        height: 130px;
        width: 100%;
        margin: 1rem 0 1rem 0;
    }

    .bloque__contenido {
        max-width: 100%;
        min-height: 30vh;
        margin-left: 1rem;
        margin-right: 1rem;
    }

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

    .modalidades {
        flex-direction: column;
        margin-top: 25rem;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .footer__icons {
        position: static;
        order: 2;
        margin: 2rem 0 6rem 0;
    }

    .footer__section {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .footer__sections {
        position: static;
        transform: none;
        order: 1;
        text-align: center;
    }

    .nav__link::after {
        display: none; /* Elimina el subrayado animado en móvil */
    }

    .nav__link-activo {
        text-decoration: underline #eee 2px solid; /* Subrayado más grueso para el link activo */
        text-underline-offset: 6px;
    }

    .nav-scrolled .nav__link-activo {
        text-decoration: underline #000000 2px solid;
        text-underline-offset: 6px;
    }
}

@media (max-width: 480px) {
    .carrusel-instalaciones__slide {
        flex: 0 0 100%;
        height: 23rem;
    }
    .carrusel-instalaciones__track-inner {
        gap: 0;
    }

    .carrusel-prev-instalaciones {
        left: 2px;
    }
    .carrusel-next-instalaciones {
        right: 2px;
    }
    .carrusel-prev-instalaciones,
    .carrusel-next-instalaciones {
        width: 26px;
        height: 26px;
    }
    .carrusel-prev-instalaciones svg,
    .carrusel-next-instalaciones svg {
        width: 14px;
        height: 14px;
    }

    .nosotros__carrusel-slide {
        flex: 0 0 calc((100% - 1rem) / 3);
        flex: 0 0 40%; 
        width: 40%; 
        min-width: 40%; 
        max-width: 40%; 
    }

    .nosotros__track-inner {
        gap: 0.5rem;
    }

    .nosotros__carrusel-slide.active {
        height: 90px;
        transform: scale(1); 
        z-index: 0; 
    }

    .carrusel-arrow {
        width: 40px;
        height: 38px;
    }

    .carrusel-arrow svg {
        width: 100%;
        height: 100%;
    }

    .fondo {
        font-size: 2rem;
        height: 58%;
    }

    .nosotros {
        text-align: center;
        margin-top: 12rem;
        margin-bottom: 2rem;
    }

    .nosotros__text {
        margin: 0;
    }

    .formulario {
        padding: 1rem;
        margin: 0 1rem 1rem 1rem;
    }

    .formulario__form {
        width: 100%;
    }

    .formulario__contacto {
        display: none;
    }

    .nav {
        height: 80px;
    }

    h3.online__titulo,
    h4.formulario__titulo {
        text-decoration: underline;
        text-decoration-color: #ff0000;
        text-decoration-thickness: 2px;
        text-decoration-style: solid;
        text-underline-offset: 4px;
    }
}