*{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Page transition and reveal-once styles */
body.page-exit,
body.page-fade-out {
    opacity: 1;
    transition: opacity 360ms ease-in-out;
}

body.page-exit-active,
body.page-fade-out.page-exit-active {
    opacity: 0;
}

body.page-enter {
    opacity: 0;
}

body.page-enter-active {
    opacity: 1;
    transition: opacity 360ms ease-in-out;
}

/* Reveal-once items (first visit animations) */
.reveal-item-hidden{
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms cubic-bezier(.2,.9,.2,1), transform 520ms cubic-bezier(.2,.9,.2,1);
}
.reveal-item-visible{
    opacity: 1;
    transform: translateY(0);
}

/* Small helper to reduce motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce){
    .reveal-item-hidden, .reveal-item-visible, body.page-exit-active, body.page-enter-active{
        transition: none !important;
        transform: none !important;
    }
}


body {
    line-height: 1.6;
    font-size: 16px;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(Imagenes/background.png);
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

nav img{ /* Tamaño del Logo */
    width: 200px;
    transition: width 0.3s ease;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul li{ /*Diseño categorias*/
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{ /* Color de las letras */
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
    font-weight: 500;
}

.nav-links ul li::after{ /* CSS de lineas que aparecen en las categorias */
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{ /* efecto al dejar el mouse encima de una categoria */
    width: 100%;
}

.hero-btn{ /*Diseño de boton*/
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 16px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 0.3s ease;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.text-box{ /* DIseño del Texto del inicio */
    width: 90%;
    max-width: 900px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    z-index: 5;
}

.text-box h1{
    font-size: 62px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1px;
}

.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}

nav .fa-solid{
    display: none;
}

@media(max-width: 700px){
    .header{
        min-height: 80vh;
    }
    
    nav{
        padding: 3% 4%;
    }
    
    .text-box h1{
        font-size: 20px;
    }
    
    .nav-links ul li{ /*Diseño categorias*/
        display: block;
    }
    
    .nav-links{
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    
    nav .fa-solid{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    
    .nav-links ul{
        padding: 30px;
    }
}


.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.course h1{
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.course > p{
    font-size: 18px;
    color: #777;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

h1{
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

h4{
    font-weight: 600;
    font-size: 16px;
}
 
p{ /*Texto dentro del cuerpo, tamaño y color*/
    color: #777;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    padding: 10px;
}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.course-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.course-overlay{
    position: absolute;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.92) 0%, rgba(255, 107, 107, 0.88) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-align: center;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.course-col:hover .course-overlay{
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.98) 0%, rgba(255, 107, 107, 0.95) 100%);
    opacity: 1;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.course-overlay h3{
    color: white;
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.course-overlay h3 i{
    font-size: 28px;
}

.course-overlay p{
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    font-weight: 400;
}

.course-col:hover{
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.25);
    transform: translateY(-8px) scale(1.01);
}

/* Banner Carrusel - MEJORADO CON ANIMACIONES */
.banner-carousel{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 600px;
    background: #000;
}

.carousel-container{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Track holds slides in a row; smooth transition */
.carousel-track{
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide{
    flex: 0 0 100%;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    animation: slideZoom 8s ease-in-out forwards;
}

/* Animación de zoom suave en cada slide */
@keyframes slideZoom {
    0% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.carousel-slide.active {
    animation: slideZoom 8s ease-in-out forwards;
}

/* Overlay que cubre el slide para mejor legibilidad */
.carousel-slide::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 5;
    pointer-events: none;
}

.carousel-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    padding: clamp(20px, 3.5vw, 50px);
    border-radius: 0;
    z-index: 10;
    animation: fadeInText 0.8s ease-out 0.3s both;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.carousel-text h2{
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: clamp(12px, 2vw, 24px);
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.carousel-text p{
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.3px;
}

/* Badge visible para identificar la imagen principal */
.carousel-slide.active[data-main="true"]::after{
    content: "Cobertura Nacional";
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f44336 0%, #ff6b6b 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 25;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    animation: slideInBadge 0.6s ease-out both;
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicadores de slides (dots) */
.carousel-dots{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    justify-content: center;
}

.carousel-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0);
}

.carousel-dot.active{
    background: #f44336;
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.6);
}

.carousel-dot:hover{
    background: rgba(255,255,255,0.8);
}

/* Botones navegación prev/next */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: clamp(12px, 2vw, 20px);
    color: white;
    font-weight: bold;
    font-size: clamp(16px, 3vw, 24px);
    transition: all 0.3s ease;
    border-radius: 3px;
    background-color: rgba(0,0,0,0.5);
    user-select: none;
    z-index: 20;
    border: none;
    backdrop-filter: blur(4px);
}

.next {
    right: clamp(10px, 2vw, 20px);
}

.prev {
    left: clamp(10px, 2vw, 20px);
}

.prev:hover, .next:hover {
    background-color: rgba(244, 67, 54, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.5);
}

/* Contenedor central para controlar proporciones del contenido */
.page-content{
    width: 85%;
    max-width: 1200px;
    margin: 60px auto;
    box-sizing: border-box;
}

/* Sección CTA Expandida */
.cta-expanded{
    margin: 100px auto;
    width: 80%;
    background: linear-gradient(135deg, #f44336 0%, #ff6b6b 100%);
    border-radius: 15px;
    padding: 80px 60px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 45px rgba(244, 67, 54, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-expanded::before{
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    z-index: 0;
}

.cta-expanded::after{
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    z-index: 0;
}

.cta-content{
    position: relative;
    z-index: 1;
}

.cta-content h1{
    color: white;
    margin-bottom: 20px;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.cta-content > p{
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    margin-bottom: 50px;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-benefits{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item{
    background: rgba(255, 255, 255, 0.12);
    padding: 30px 25px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.benefit-item:hover{
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.benefit-item i{
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover i{
    transform: scale(1.2) rotate(5deg);
}

.benefit-item h4{
    color: white;
    margin: 15px 0 12px 0;
    font-size: 17px;
    font-weight: 700;
}

.benefit-item p{
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin: 0;
    line-height: 20px;
}

.cta-expanded .hero-btn{
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 45px;
}

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(Imagenes/banner_contacto.png);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

@media(max-width: 700px){
    .cta h1{
        font-size: 24px;
    }
}

.footer{
    width: 100%;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 40px 30px;
    box-sizing: border-box;
}

.footer-content{
    width: 85%;
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    box-sizing: border-box;
}

.footer-section h4{
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f44336;
    letter-spacing: 0.5px;
}

.footer-section p{
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    padding: 0;
    margin: 8px 0;
}

.footer-contact{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact i{
    color: #f44336;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.footer-links{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a{
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 0;
    line-height: 1.6;
}

.footer-links a:hover{
    color: #f44336;
    margin-left: 5px;
}

.footer-social{
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-social a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(244, 67, 54, 0.2);
    border-radius: 50%;
    color: #f44336;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
}

.footer-social a:hover{
    background: #f44336;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.footer-bottom{
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p{
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/*-------------Sobre Nosotros Pagina--------------------*/

.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(Imagenes/banner_sobrenos.png);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1{
    margin-top: 100px;
    line-height: 1.4;
    font-size: 42px;
}

.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col{
    flex-flow: 48%;
    padding: 30px 2px;
}

.about-col img{
    width: 100%;
}

.about-col h1{
    padding-top: 0;
}

.about-col p{
    padding: 15px 0 25px;
}

/*------------------------ Contacto --------------------------------*/

.contact-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 100px;
    max-width: 1200px;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

/* Columna de información (lado izquierdo) */
.info-col{
    padding-right: 40px;
}

.info-box{
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-box:hover{
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.15);
    transform: translateY(-5px);
}

.info-box .fa-solid{
    font-size: 36px;
    color: #f44336;
    margin-right: 25px;
    flex-shrink: 0;
    margin-top: 5px;
}

.info-box span{
    flex: 1;
}

.info-box h5{
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
}

.info-box p{
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    padding: 0;
}

.info-box a{
    color: #f44336;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-box a:hover{
    color: #ff6b6b;
}

.hours{
    border-left: 4px solid #f44336;
}

/* Columna del formulario (lado derecho) */
.form-col{
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-group{
    margin-bottom: 22px;
}

.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 16px;
    margin-bottom: 0;
    outline: none;
    border: 2px solid #e0e0e0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, sans-serif;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9f9f9;
}

.contact-col input:focus, .contact-col textarea:focus{
    border-color: #f44336;
    background: #fff;
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.3);
    transform: scale(1.01);
}

.contact-col input::placeholder, .contact-col textarea::placeholder{
    color: #999;
    font-weight: 400;
}

/* CAPTCHA Styling */
.recaptcha-container{
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    padding: 15px 0;
}

.g-recaptcha{
    transform: scale(1);
    transform-origin: left;
}

.hero-btn-2{ /*Diseño de boton*/
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 2px solid #f44336;
    padding: 16px 50px;
    font-size: 18px;
    background: #f44336;
    position: relative;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.hero-btn-2:hover{
    border: 2px solid #ff6b6b;
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}
/* Feedback messages for forms */
.success-message{
    margin-top: 20px;
    color: #155724;
    background: #d4edda;
    border: 2px solid #28a745;
    padding: 18px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}
.error-message{
    margin-top: 20px;
    color: #721c24;
    background: #f8d7da;
    border: 2px solid #dc3545;
    padding: 18px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

/*----------------Servicios--------------------------*/

.facilities{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

/* Grid container for services */
.facilities-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 50px auto;
    max-width: 1000px;
}

.facilities-col{
    background: white;
    padding: 35px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 4px solid #f44336;
    min-height: 280px;
}

.facilities-col:hover{
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.2);
    transform: translateY(-8px);
    border-left-color: #ff6b6b;
}

.facilities-col .fa-solid, .fa-regular, .fa-traffic{
    font-size: 48px;
    margin-bottom: 15px;
    color: #f44336;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-items: center;
}

.facilities-col:hover .fa-solid,
.facilities-col:hover .fa-regular,
.facilities-col:hover .fa-traffic{
    color: #ff6b6b;
    transform: scale(1.15) rotate(8deg);
}

.facilities-col p{
    padding: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.6;
}

.facilities-col h3{
    color: #333;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

/* Dynamic description reveal effect */
.facility-description{
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin: 15px 0 0 0;
    padding: 12px 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 2px solid transparent;
    font-weight: 500;
    color: #555;
}

/* Revelar descripción al scrollear */
.facility-description.description-reveal{
    max-height: 200px;
    opacity: 1;
    border-top-color: #f44336;
    padding: 15px 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.facilities-col:hover .facility-description{
    max-height: 150px;
    opacity: 1;
    border-top-color: #f44336;
    padding: 12px 0;
}

/* Scroll Reveal Animation */
.facilities-col.reveal-hidden{
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.facilities-col.reveal-animate{
    animation: revealFromBottom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 1;
    transform: translateY(0);
}

@keyframes revealFromBottom{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries para Responsividad */

/* Tablets y pantallas medianas (768px - 1024px) */
@media(max-width: 1024px){
    .course{
        width: 90%;
    }
    
    .cta-expanded{
        width: 90%;
        padding: 60px 40px;
    }
    
    .course h1, .cta-expanded h1{
        font-size: 36px;
    }
    
    .row{
        gap: 20px;
    }
    
    .course-col{
        flex-basis: 48%;
    }
    
    .footer-content{
        gap: 30px;
    }
}

/* Tablets pequeños y teléfonos grandes (max-width: 768px) */
@media(max-width: 768px){
    nav img{
        width: 150px;
    }
    
    .text-box h1{
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .text-box p{
        font-size: 13px;
        margin: 8px 0 20px;
    }
    
    .hero-btn{
        padding: 10px 28px;
        font-size: 11px;
    }

    .banner-carousel{
        aspect-ratio: 16 / 10;
        max-height: 450px;
    }
    
    .carousel-text{
        width: 90%;
        padding: 15px 12px;
    }
    
    .carousel-text h2{
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .carousel-text p{
        font-size: 12px;
    }
    
    .prev, .next{
        padding: 10px;
        font-size: 16px;
    }
    
    .carousel-dots{
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-dot{
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active{
        width: 22px;
    }

    .course{
        width: 90%;
        padding-top: 50px;
        padding-bottom: 40px;
    }
    
    .course h1{
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .course > p{
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .row{
        flex-direction: column;
        gap: 20px;
    }

    /* Contact responsive */
    .contact-us{
        width: 90%;
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .info-col{
        padding-right: 0;
        margin-bottom: 30px;
    }

    .form-col{
        padding: 30px 20px;
    }

    .info-box{
        padding: 20px;
    }

    .info-box .fa-solid{
        font-size: 28px;
        margin-right: 15px;
    }

    .info-box h5{
        font-size: 16px;
    }

    .info-box p{
        font-size: 14px;
    }

    .recaptcha-container{
        transform: scale(0.9);
        transform-origin: left;
        margin-bottom: 16px;
    }
    
    .course-col{
        flex-basis: 100%;
        min-height: 260px;
    }
    
    .course-overlay{
        padding: 20px;
    }
    
    .course-overlay h3{
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .course-overlay p{
        font-size: 12px;
        line-height: 18px;
    }

    /* Facilities responsive for scroll reveal */
    @supports (scroll-behavior: smooth) {
        .facilities-col.reveal-animate{
            animation: revealFromBottomTablet 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        @keyframes revealFromBottomTablet{
            from{
                opacity: 0;
                transform: translateY(20px);
            }
            to{
                opacity: 1;
                transform: translateY(0);
            }
        }
    }

    .videos-section{
        width: 90%;
        padding: 40px 20px;
        margin: 60px auto;
        border-radius: 10px;
    }
    
    .videos-section h1{
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .videos-section > p{
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .videos-grid{
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .video-placeholder{
        aspect-ratio: 1;
        min-height: 130px;
    }
    
    .video-placeholder i{
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .video-placeholder p{
        font-size: 11px;
        margin: 6px 0;
    }

    .cta-expanded{
        width: 90%;
        padding: 40px 20px;
        margin: 60px auto;
        border-radius: 12px;
    }
    
    .cta-expanded::before{
        width: 200px;
        height: 200px;
        top: -30%;
        right: -15%;
    }
    
    .cta-expanded::after{
        width: 180px;
        height: 180px;
        bottom: -25%;
    }
    
    .cta-expanded h1{
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .cta-content > p{
        font-size: 13px;
        margin-bottom: 25px;
        line-height: 22px;
    }
    
    .cta-benefits{
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .benefit-item{
        padding: 18px 15px;
        border-radius: 10px;
    }
    
    .benefit-item i{
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .benefit-item h4{
        font-size: 14px;
        margin: 10px 0 8px 0;
    }
    
    .benefit-item p{
        font-size: 11px;
        line-height: 16px;
    }
    
    .cta-expanded .hero-btn{
        padding: 11px 28px;
        font-size: 11px;
        margin-top: 0;
    }

    .page-content{
        width: 90%;
        margin: 40px auto;
    }
    
    .footer-content{
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-social{
        gap: 20px;
    }
    
    .footer-social a{
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Teléfonos (max-width: 600px) */
@media(max-width: 600px){
    nav{
        padding: 3% 4%;
    }
    
    nav img{
        width: 120px;
    }
    
    .nav-links ul{
        padding: 20px;
    }
    
    .nav-links ul li{
        padding: 6px 0;
        display: block;
    }
    
    .text-box{
        width: 95%;
    }
    
    .text-box h1{
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .text-box p{
        font-size: 12px;
        margin: 6px 0 15px;
        line-height: 1.5;
    }
    
    .hero-btn{
        padding: 9px 24px;
        font-size: 10px;
        border: 1px solid #fff;
    }

    .banner-carousel{
        aspect-ratio: 16 / 12;
        max-height: 350px;
    }
    
    .carousel-text{
        width: 95%;
        padding: 12px 8px;
    }
    
    .carousel-text h2{
        font-size: 16px;
        margin-bottom: 6px;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    }
    
    .carousel-text p{
        font-size: 11px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    
    .prev, .next{
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .carousel-slide::before{
        background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    }
    
    .carousel-slide.active[data-main="true"]::after{
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .carousel-dots{
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-dot{
        width: 6px;
        height: 6px;
    }
    
    .carousel-dot.active{
        width: 18px;
    }

    /* Contact mobile styling */
    .contact-us{
        width: 95%;
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .info-col, .form-col{
        padding: 0;
    }

    .info-box{
        padding: 15px;
        margin-bottom: 20px;
    }

    .info-box .fa-solid{
        font-size: 28px;
        margin-right: 12px;
        margin-top: 0;
    }

    .info-box h5{
        font-size: 15px;
    }

    .info-box p{
        font-size: 13px;
    }

    .form-col{
        padding: 20px 15px;
    }

    .form-group{
        margin-bottom: 16px;
    }

    .contact-col input, .contact-col textarea{
        padding: 14px;
        font-size: 15px !important;
    }

    .captcha-box{
        padding: 16px;
        margin-bottom: 16px;
    }

    .recaptcha-container{
        transform: scale(0.85);
        transform-origin: left;
        margin-bottom: 16px;
    }

    .hero-btn-2{
        padding: 14px 30px;
        font-size: 16px;
        margin-top: 10px;
    }

    .success-message, .error-message{
        margin-top: 16px;
        padding: 14px;
        font-size: 14px;
    }

    .course{
        width: 95%;
        padding-top: 40px;
        padding-bottom: 30px;
    }
    
    .course h1{
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .course > p{
        font-size: 12px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .course-col{
        min-height: 240px;
        margin-bottom: 15px;
        padding: 15px 10px;
    }
    
    .course-overlay{
        padding: 15px 12px;
    }
    
    .course-overlay h3{
        font-size: 16px;
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .course-overlay h3 i{
        font-size: 20px;
    }
    
    .course-overlay p{
        font-size: 11px;
        line-height: 16px;
    }

    .videos-section{
        width: 96%;
        padding: 30px 15px;
        margin: 40px auto;
        border-radius: 8px;
    }
    
    .videos-section h1{
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .videos-section > p{
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .videos-grid{
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .video-placeholder{
        min-height: 100px;
        padding: 12px;
    }
    
    .video-placeholder i{
        font-size: 32px;
        margin-bottom: 6px;
    }
    
    .video-placeholder p{
        font-size: 10px;
        margin: 4px 0;
    }
    
    .video-placeholder p:last-child{
        font-size: 9px;
        color: #999;
    }

    .cta-expanded{
        width: 96%;
        padding: 30px 15px;
        margin: 40px auto;
        border-radius: 10px;
    }
    
    .cta-expanded::before{
        width: 150px;
        height: 150px;
        top: -25%;
        right: -15%;
        opacity: 0.6;
    }
    
    .cta-expanded::after{
        width: 130px;
        height: 130px;
        bottom: -20%;
        opacity: 0.6;
    }
    
    .cta-expanded h1{
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .cta-content > p{
        font-size: 12px;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .cta-benefits{
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .benefit-item{
        padding: 15px 12px;
    }
    
    .benefit-item i{
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .benefit-item h4{
        font-size: 13px;
        margin: 8px 0 6px 0;
    }
    
    .benefit-item p{
        font-size: 10px;
        line-height: 14px;
    }
    
    .cta-expanded .hero-btn{
        padding: 10px 22px;
        font-size: 10px;
    }

    .page-content{
        width: 95%;
        margin: 30px auto;
    }
    
    h3{
        text-align: center;
        font-weight: 600;
        margin: 8px 0;
    }
    
    .footer{
        padding: 40px 20px 20px;
    }
    
    .footer-content{
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .footer-section h4{
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-section p{
        font-size: 12px;
    }
    
    .footer-social{
        padding: 20px 0;
        gap: 15px;
    }
    
    .footer-social a{
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-bottom p{
        font-size: 11px;
    }
}

/* Ultra móviles (max-width: 480px) */
@media(max-width: 480px){
    .header{
        min-height: 80vh;
    }
    
    nav{
        padding: 2% 3%;
    }
    
    nav img{
        width: 100px;
    }
    
    .text-box{
        top: 50%;
        width: 98%;
    }
    
    .text-box h1{
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .text-box p{
        font-size: 11px;
        margin: 5px 0 12px;
    }
    
    .hero-btn{
        padding: 8px 20px;
        font-size: 9px;
    }

    .banner-carousel{
        aspect-ratio: 16 / 14;
        max-height: 300px;
        margin-top: 10px;
    }
    
    .carousel-text h2{
        font-size: 14px;
    }
    
    .carousel-text p{
        font-size: 10px;
    }
    
    .course h1{
        font-size: 20px;
    }
    
    .videos-section h1{
        font-size: 20px;
    }
    
    .cta-expanded h1{
        font-size: 20px;
    }
    
    .videos-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-placeholder{
        min-height: 90px;
    }
    
    .footer{
        padding: 30px 15px 15px;
    }
    
    .footer-content{
        width: 95%;
        grid-template-columns: 1fr;
    }
    
    .footer-social{
        gap: 12px;
        padding: 15px 0;
    }
    
    .footer-social a{
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
