button {
    background-color: transparent;
}

/* ===== CARRUSEL PRINCIPAL ===== */
/* Contenedor Principal */
.banner-principal {
    width: 100%;
    margin: 0 auto;
}

.carrusel-contenedor {
    position: relative;
    width: 100%;
    max-width: 1360px; /* Ancho máximo de la imagen Desktop */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0; /* Cambiar a p.ej. 12px si deseas bordes redondeados */
}

/* Pista deslizante (Flexbox horizontal) */
.carrusel-pista {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Cada Item/Banner */
.carrusel-item {
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.carrusel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.carrusel-item picture {
    display: block;
    width: 100%;
}

/* Manejo de Proporciones Desktop vs Mobile */
.carrusel-item img {
    width: 100%;
    height: auto;
    max-height: 470px; /* Alto máximo especificado para Desktop */
    object-fit: cover;
    display: block;
}

/* Flechas de Navegación */
.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #4a4a4a;
    border: none;
    font-size: 1.8rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.carrusel-flecha:hover {
    color: #00a8ca; /* Azul cian de acento */
    transform: translateY(-50%) scale(1.15);
}

.carrusel-flecha.izquierda {
    left: 10px;
}

.carrusel-flecha.derecha {
    right: 10px;
}

/* Puntos de Navegación (Dots) */
.carrusel-puntos {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carrusel-punto {
    width: 10px;
    height: 10px;
    background-color: #555555;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.carrusel-punto.activo {
    background-color: #00a8ca; /* Azul cian activo */
}

/* Adaptación Mobile */
@media (max-width: 767px) {
    .carrusel-item img {
        max-height: none; /* En celular toma el alto proporcional de la imagen móvil */
    }
    
    .carrusel-flecha {
        font-size: 1.4rem;
        padding: 5px 8px;
    }
    
    .carrusel-puntos {
        bottom: 8px;
        gap: 8px;
    }
    
    .carrusel-punto {
        width: 8px;
        height: 8px;
    }
}
/* CAROUSEL */

.promocion-familiar {
    margin-top: 10px;
    margin-bottom: -20px;
}

.banner-plan-familiar {
    width: 100%;
}

.lema {
    width: 100%;
    background-color: #eeeeee;
    height: 100px;
    display: flex;
    margin-top: 20px;
}

.lema-texto {
    margin: auto;
    text-align: center;   
}

.servicios {
    width: 100%;
    /*margin-top: 20px;*/
}

.servicios-lista {
    /*display: flex;
    margin: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;*/
}

.servicio-lista-bloque {
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.servicio-lista-icono {
    width: 70%;
}

.equipos-tecnologicos {
    margin-top: 20px;
    width: 100%;
}

.equipos-tecnologicos-wrapper {
    position: relative;
}

.equipos-tecnologicos-galeria {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.equipos-tecnologicos-galeria::-webkit-scrollbar {
    display: none;
}

.equipo-tecnologico-bloque {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.equipo-tecnologico-imagen {
    position: relative; /* referencia para las flechas en móvil */
}

/* --- Flechas: estilo chevron flotante, sin fondo circular --- */
.carousel-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.2s;
}
.carousel-btn:hover {
    opacity: 0.6;
}

/* Dots ocultos por defecto en móvil */
.carousel-dots {
    display: none;
}

/* ===== MÓVIL: flechas a los costados, centradas con la imagen ===== */
@media (max-width: 767px) {
    .equipos-tecnologicos-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 4px;
    }

    .carousel-btn {
        position: relative;
        top: 0;
        /* Altura aproximada de la imagen para centrar verticalmente el ícono */
        align-self: flex-start;
        margin-top: 140px; /* ajusta según la altura real de tu .equipo-tecnologico-imagen */
    }

    .equipos-tecnologicos-galeria {
        flex: 1;
    }

    .equipo-tecnologico-bloque {
        flex: 0 0 100%;
    }
}

/* Tablet: 2 por vista, mostramos dots, ocultamos flechas si prefieres */
@media (min-width: 768px) {
    .equipo-tecnologico-bloque {
        flex: 0 0 calc(50% - 12px);
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
}

/* Desktop: 3 por vista, ocultamos controles porque todo es visible */
@media (min-width: 1024px) {
    .equipo-tecnologico-bloque {
        flex: 0 0 calc(33.333% - 16px);
    }
    .carousel-btn {
        display: none;
    }
    .carousel-dots {
        display: none;
    }
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #333;
}

.banner-promociones {
    width: 100%;
    margin-top: 20px;
}

.banner-promociones-inicio {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.planes {
    background-color: #eeeeee;
    height: 380px;
}

.planes-wrapper {
    position: relative;
}

.planes-galeria {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.planes-galeria::-webkit-scrollbar {
    display: none;
}

.planes-plan-imagen {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
}

.sedes {
    width: 100%;
    margin-top: 130px;
}

.sedes-titulo {
    text-align: center;
}

.sede-bloque {
    display: flex;
    margin-top: 30px;
    gap: 10px;
}

.sede-bloque-imagen {
    width: 50%;
}

.sede-bloque-descripcion {
    width: 25%;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
    gap:10px;
}

.sede-bloque-horarios {
    width: 25%;
    padding-left: 10px;
    border-left: 1px solid #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.sede-bloque-foto {
    border-radius: 5px;
    width: 100%;
}

.banner-franquicia-banner {
    margin: auto;
}

.banner-franquicia-imagen {
    width: 100%;
}

/* Móvil: flechas a los costados */
@media (max-width: 767px) {
    .planes-wrapper {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .planes-galeria {
        flex: 1;
    }
    .planes-plan-imagen {
        flex: 0 0 100%;
    }

    .planes {
        background-color: #FFFFFF;
        height: unset;
        width: 90%;
        margin: auto;
    }

    .sedes {
        margin-top: 20px;
    }
}

/* Tablet: 2 por vista */
@media (min-width: 768px) {
    .planes-plan-imagen {
        flex: 0 0 calc(50% - 12px);
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
}

/* Desktop: 3 por vista, sin controles */
@media (min-width: 1024px) {
    .planes-plan-imagen {
        flex: 0 0 calc(33.333% - 16px);
    }
    .planes-wrapper .carousel-btn {
        display: none;
    }
    .planes-wrapper .carousel-dots {
        display: none;
    }
}



/* Responsive */
@media (max-width: 768px) {
    .carrusel-contenedor {
        height: 200px;
    }

    .carrusel-flecha {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carrusel-flecha.izquierda {
        left: 10px;
    }

    .carrusel-flecha.derecha {
        right: 10px;
    }

    .carrusel-puntos {
        bottom: 15px;
    }

    .carrusel-punto {
        width: 10px;
        height: 10px;
    }

    .sede-bloque {
        flex-direction: column;
    }

    .sede-bloque-imagen {
        width: 95%;
        margin: auto;
    }

    .sede-bloque-descripcion {
        width: 95%;
        margin: auto;
        align-items: center;
    }

    .sede-bloque-horarios {
        width: 95%;
        margin: auto;
        align-items: center;
    }

    .sede-bloque-horarios {
        border: 0px;
    }

    .promocion-familiar {
        height: 250px;
    }

    .promocion-familiar-banner {
        height: 250px;
    }

    .banner-plan-familiar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .banner-promociones-principal {
        height: 150px;
    }

    .banner-promociones {
        margin-bottom: 20px;
    }

    .revert-mobile {
        flex-direction: column-reverse;
    }

    .lema-texto {
        width: 90%;
        margin: auto;
    }

    .servicio-lista-bloque {
        padding: 10px;
    }

    .equipos-tecnologicos {
        width: 90%;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .carrusel-contenedor {
        height: 350px;
    }

    .carrusel-flecha {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* --- CARRUSEL DE SERVICIOS --- */

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 45px; /* Espacio lateral para alojar las flechas */
    box-sizing: border-box;
}

.servicios-lista {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    
    /* Ocultar barra de scroll nativa */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

.servicios-lista::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

/* Tarjetas individuales dentro del carrusel */
.servicio-lista-bloque {
    /* Muestra 3 tarjetas en escritorios */
    flex: 0 0 calc((100% - 90px) / 6); 
    scroll-snap-align: start;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
    text-align: center;
}

/* Botones de Navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    color: #0c72a0;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background-color: #00bef0;
    transform: translateY(-50%) scale(1.08);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablets (Muestra 2 tarjetas) */
@media (max-width: 992px) {
    .servicio-lista-bloque {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* Celulares (Muestra 1 tarjeta a la vez) */
@media (max-width: 576px) {
    .carousel-container {
        /*padding: 0 35px;*/
    }
    
    .servicio-lista-bloque {
        /*flex: 0 0 100%;*/
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        top:0;
    }
}