/* Desktop (mayor o igual a 1200px) */
@media (min-width: 1200px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
    }
}

/* Pantallas menores a 1200px */
@media (max-width: 1199px) {
    .menu-toggle {
        display: block;
        position: absolute;
        /* Para posicionarlo dentro del header */
        top: 50%;
        /* Centrado vertical */
        right: 20px;
        /* Pegado a la derecha con un poco de margen */
        transform: translateY(-50%);
        /* Centrar exacto vertical */
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 28px;
        color: white;
        cursor: pointer;
        z-index: 1500;
    }

    header {
        position: relative;
        /* Asegura que el botón se posicione respecto al header */
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: rgba(17, 0, 27, 0.95);
        border: 1px solid #fff;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 10px 20px;
    }

    .nav-menu li:hover .dropdown {
        position: static;
        background-color: transparent;
    }
}



@media (max-width: 768px) {

    /* HEADER */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
    }

    .menu-toggle {
        align-self: flex-end;
    }

    .nav-menu li a {
        font-size: 16px;
    }

    .hero-overlay h1 {
        font-family: 'Tourney', sans-serif;
        font-size: 50px;
        font-weight: 100;
        color: transparent;
        /* Elimina el relleno */
        -webkit-text-stroke: 1px #fff;
        /* Solo borde blanco */
        text-shadow: none;
        /* Asegúrate de que no haya sombra que lo haga parecer relleno */
        background: none;
        -webkit-font-smoothing: antialiased;
        /* Mejora visual del trazo */
        margin-bottom: 15px;
    }

    /* CAROUSEL */

    .hero-video {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .hero-video video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .hero-overlay {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 20px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        width: 100%;
    }

    .hero-overlay h1 {
        font-size: 3rem;
        font-weight: bold;
        color: #b82727;
        text-shadow: 0 0 10px #000;
        margin-bottom: 15px;
    }

    .hero-overlay p {
        font-size: 1.4rem;
        color: #fff;
        text-shadow: 0 0 6px #000;
    }


    /* RUTINAS */
    .rutinas-banner h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .rutinas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .rutina-card img {
        height: 600px;
    }

    .rutina-card {
        min-height: auto;
        width: 500px;
        margin: 0 auto;
    }

    .borde {
        width: 510px;
        margin: 0 auto;
    }

    .rutina-card h3 {
        font-size: 18px;
    }

    .rutina-card a {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* TIPS */
    .seccion-tips h2 {
        font-size: 24px;
    }

    .acordeon-titulo {
        font-size: 18px;
        padding: 14px 16px;
    }

    .acordeon-contenido ul {
        padding: 10px 0;
    }

    /* CARRUSEL MARCAS */
    .productos {
        gap: 10px;
    }

    .producto {
        min-width: 120px;
    }

    .producto img {
        height: 100px;
    }



    /*Calendario*/
    #event-details {
        background: #1e1e1e;
        color: white;
        padding: 20px;
        border-radius: 10px;
        max-width: 500px;
        width: 100%;
        min-height: 350px;
        font-size: 17px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }


    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        max-width: 800px;
        margin: auto;
        padding-top: 30px;
        justify-content: center;
        align-items: center;
    }

    .titulozonas {
        padding-top: 50px;
    }

    .card-zonas img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }

    .card-zonas h3 {
        margin: 15px;
        font-size: 20px;
        color: #fff;
        text-align: center;
    }









    /*apk*/
    .app-fitforce {
        background: #3d015f;
        color: #fff;
        padding: 60px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 400px;
    }
}

@media (max-width: 500px) {

    /* HEADER */

    .logo img {
        width: 150px;
        margin-bottom: 10px;
    }


    .nav-menu li a {
        font-size: 16px;
    }

    .hero-video video {
        position: relative;
        width: 100%;
        height: 2000px;
        top: 400px;
        overflow: hidden;
    }

    .hero-overlay h1 {
        font-family: 'Tourney', sans-serif;
        font-size: 50px;
        font-weight: 100;
        color: transparent;
        /* Elimina el relleno */
        -webkit-text-stroke: 1px #fff;
        /* Solo borde blanco */
        text-shadow: none;
        /* Asegúrate de que no haya sombra que lo haga parecer relleno */
        background: none;
        -webkit-font-smoothing: antialiased;
        /* Mejora visual del trazo */
        margin-bottom: 15px;
    }



    /* RUTINAS */
    .rutinas-banner h2 {
        font-size: 24px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .rutinas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
        max-width: 100%;
    }

    .rutina-card {
        min-height: auto;
        width: 100%;
        height: 550px;
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
        padding-bottom: 20px;
    }

    .borde {
        width: 100%;
        max-width: 600px;
        /* un poco más que la card */
        margin: 0 auto;
        box-sizing: border-box;
    }

    .rutina-card img {
        width: 100%;
        height: 400px;
        border-radius: 12px;
    }

    .rutina-card h3 {
        font-size: 18px;
        padding: 0 10px;
    }

    .rutina-card p {
        padding: 0 10px;
    }

    .rutina-card a {
        padding: 8px 16px;
        font-size: 14px;
        margin: 0 10px 20px 10px;
    }


    /* CARRUSEL MARCAS */
    .productos {
        gap: 10px;
        padding-left: 10px;
    }

    .producto {
        min-width: 100px;
    }

    .producto img {
        height: 80px;
    }

    /*Calendario*/
    #event-details {
        background: #1e1e1e;
        color: white;
        padding: 20px;
        border-radius: 10px;
        max-width: 500px;
        width: 100%;
        min-height: 350px;
        font-size: 17px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
    }


    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        max-width: 800px;
        margin: auto;
        padding-top: 30px;
        justify-content: center;
        align-items: center;
    }

    .titulozonas {
        padding-top: 50px;
    }

    .card-zonas img {
        width: 300px;
        height: 200px;
        object-fit: cover;
    }

    .card-zonas h3 {
        margin: 15px;
        font-size: 20px;
        color: #fff;
        text-align: center;
    }

    /*apk*/
    .app-fitforce {
        background: #3d015f;
        color: #fff;
        padding: 60px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 400px;
    }

}