@media (max-width: 768px) {
    .fondohero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    .navbar-search {
        max-width: 110px;
        padding: 4px 10px;
    }
    .navbar-search input {
        font-size: 0.8rem;
    }
    .navbar-brand img {
        height: 28px;
    }

    /* ===== CARRUSEL COACHES ===== */
    .coaches-track {
        flex-wrap: nowrap !important;
        align-items: center;
        overflow: hidden;
        margin: 10px 0 6px;
    }
    .coach-card {
        margin: 0 -14px !important;
        transition: all .3s ease;
        flex-shrink: 0;
    }
    .coach-card .coach-photo,
    .coach-card h3,
    .coach-card p.jost-age {
        transition: all .3s ease;
    }
    .coach-card.carousel-lateral-izq,
    .coach-card.carousel-lateral-der {
        transform: scale(0.55);
        opacity: 0.55;
        z-index: 1;
    }
    .coach-card.carousel-lateral-izq .coach-photo,
    .coach-card.carousel-lateral-der .coach-photo {
        height: 140px;
        overflow: hidden;
    }
    .coach-card.carousel-lateral-izq h3,
    .coach-card.carousel-lateral-der h3 {
        font-size: 1rem;
    }
    .coach-card.carousel-lateral-izq .stars,
    .coach-card.carousel-lateral-der .stars {
        display: none;
    }
    .coach-card.carousel-activo {
        transform: scale(1);
        opacity: 1;
        z-index: 2;
        width: 200px;
    }
    .coach-card.carousel-activo .coach-photo {
        height: 240px;
    }

    /* ===== CARRUSEL MENSUALIDADES ===== */
    .planes-track {
        flex-wrap: nowrap !important;
        align-items: center;
        overflow: hidden;
        margin: 10px 0 6px;
    }
    .plan-card {
        width: 220px !important;
        flex-shrink: 0;
        margin: 0 -30px !important;
        transition: all .3s ease;
    }
    .plan-card.destacado {
        transform: none;
        box-shadow: none;
    }
    .plan-card ul {
        min-height: auto;
    }
    .plan-card.carousel-lateral-izq,
    .plan-card.carousel-lateral-der {
        transform: scale(0.72);
        opacity: 0.5;
        filter: blur(1.5px);
        z-index: 1;
        pointer-events: none;
    }
    .plan-card.carousel-activo {
        transform: scale(1);
        opacity: 1;
        filter: none;
        z-index: 2;
    }

    /* ===== FLECHAS DE NAVEGACIÓN ===== */
    .carousel-nav {
        display: flex;
        justify-content: center;
        gap: 26px;
        margin-bottom: 20px;
    }
    .carousel-arrow {
        background-color: rgba(255,255,255,0.12);
        color: #2BFF52;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        line-height: 1;
    }
    .carousel-arrow:active {
        background-color: rgba(43,255,82,0.3);
    }

    /* ===== ENTRENAMIENTOS: pills y tarjetas con scroll horizontal ===== */
    #entrenamientos .d-flex.jost {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px 6px;
        -webkit-overflow-scrolling: touch;
    }
    #entrenamientos .badge.dia {
        flex-shrink: 0;
    }
    #entrenoTrack {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 4px;
        -webkit-overflow-scrolling: touch;
    }
    .entreno-card {
        flex: 0 0 42%;
        max-width: 42%;
        height: 170px;
        scroll-snap-align: center;
    }
    .entreno-card .card-title {
        font-size: 0.95rem;
    }

    /* ===== FOOTER en columnas apretadas, no apiladas ===== */
    footer .row {
        text-align: left;
        flex-wrap: nowrap;
    }
    footer .row > div {
        padding-left: 8px;
        padding-right: 8px;
    }
    footer .footer-brand {
        font-size: 1.1rem;
        padding: 8px 14px;
    }
    footer .footer-links h6 {
        font-size: 0.8rem;
    }
    footer .footer-links ul {
        font-size: 0.75rem;
    }
    footer p.jost.mt-3 {
        font-size: 0.75rem;
    }
    footer .footer-social {
        justify-content: flex-start;
        display: flex;
    }

    /* ===== CATALOGO / PRODUCTOS ===== */
    .fondocatalogo h1 {
        font-size: 1.8rem;
    }
    .categoria-card {
        width: 85%;
        max-width: 300px;
    }
    .producto-card {
        width: 44%;
        min-width: 140px;
        padding: 10px;
        margin: 8px 4px;
    }
    .producto-card img {
        height: 110px;
    }
    .producto-card h3 {
        font-size: 0.95rem;
    }
    .banner-categoria {
        font-size: 1.2rem;
    }

    /* ===== LOGIN / REGISTRO ===== */
    .auth-wrap {
        flex-direction: column;
    }
    .auth-imagen {
        min-height: 220px;
        flex: none;
        width: 100%;
    }
    .auth-panel {
        padding: 30px 20px;
    }
}

/* Las flechas y clases de carrusel no deben afectar el escritorio */
@media (min-width: 769px) {
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    #listaProductos {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}
