/* HEADER MOBILE */

@media (max-width:768px) {

    /* ocultamos menú normal */
    .nav-bar {
        display: none;
    }

    /* header */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: linear-gradient(to right, #000, #1a1a1a);
    }

    /* logo */
    .logo-left img {
        width: 50px;
    }

    /* quitamos el texto del centro en móvil */
    .logo-center {
        display: none;
    }

    /* hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }

}

/* =========================
   HERO MOBILE
========================= */

@media (max-width: 768px){

    .hero-content{
        padding: 20px;
    }

    .hero-content h1{

        font-size: 48px;

        letter-spacing: 5px;

        margin-bottom: 18px;

        line-height: 1.1;
    }

    .hero-content h1::after{

        width: 110px;

        bottom: -10px;
    }

    .hero-content p{

        font-size: 16px;

        line-height: 1.7;

        max-width: 320px;

        margin-bottom: 30px;
    }

    .hero-btn{

        padding: 14px 28px;

        font-size: 13px;

        letter-spacing: 3px;
    }

}

@media (max-width: 768px){

    .logo-left img{
        width: 48px;
        height: auto;
    }

}

/* MENU MOBILE PANEL */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: 0.4s ease;
}

.mobile-menu.active {
    right: 0;
}

/* HEADER MENU */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header img {
    width: 60px;
}

.menu-header span {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* LINKS */
.menu-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}

/* SOCIAL */
.menu-social {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: #fff;
}

/* OVERLAY (oscurecer fondo opcional) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* =========================
   📱 QUE HACEMOS MOBILE
========================= */

@media (max-width: 768px) {

    .qh-container {
        display: flex;
        flex-direction: column;
    }

    /* 🔥 TEXTO PRIMERO */
    .qh-text {
        order: 1;
        padding: 20px;
        text-align: left;
    }

    .qh-text h2 {
        font-size: 32px;
        text-align: center;
    }

    .qh-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 🖼️ IMAGEN DESPUÉS */
    .qh-img {
        order: 2;
        width: 100%;
    }

    .qh-img img {
        width: 100%;
        height: auto;
        display: block;
    }

}

/* =========================
   📱 NUESTRA ACADEMIA MOBILE
========================= */

@media (max-width: 768px) {

    .na-galeria {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .na-img {
        width: 100%;
    }

    .na-img img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

}

/* =========================
   📱 CURSO DETALLE MOBILE
========================= */

@media (max-width: 768px) {

    .curso-layout {
        display: flex;
        flex-direction: column;
    }

    /* 🔥 TEXTO PRIMERO */
    .curso-info {
        order: 1;
        padding: 20px;
        text-align: center;
    }

    /* 🖼️ IMAGEN DESPUÉS */
    .curso-imagen {
        order: 2;
        width: 100%;
    }

    .curso-imagen img {
        width: 100%;
        height: auto;
        /* 🔥 CLAVE */
        object-fit: contain;
        /* opcional */
        display: block;
        border-radius: 10px;
    }

    .curso-info h1 {
        font-size: 28px;
        line-height: 1.3;
    }

}


/* =========================
   📱 PERFECCIONAMIENTO MOBILE
   Ç========================= */

@media (max-width: 768px) {

    .main-title {
        font-size: 32px;
        line-height: 1.2;
        text-align: center;
        letter-spacing: 2px;
    }

    .main-title span {
        display: inline;
    }

}

@media (max-width: 768px) {

    .cursos-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .perf-card {
        position: relative;
        width: 100%;
        height: auto;
        /* 🔥 quitamos alturas raras */
        overflow: hidden;
        border-radius: 12px;
    }

    .img-box {
        width: 100%;
        height: auto;
    }

    .img-box img {
        width: 100%;
        height: auto;
        /* 🔥 clave */
        object-fit: contain;
        /* opcional */
    }

    /* 🔥 OVERLAY BIEN POSICIONADO */
    .perf-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        pointer-events: none;
    }

    /* 🔥 INFO SOBRE LA IMAGEN */
    .perf-info {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
        color: #fff;
        z-index: 2;
    }

}

@media (max-width: 768px) {

    .whatsapp-box {
        padding: 20px;
        text-align: center;
    }

    .btn-whatsapp {
        display: block;
        width: 100%;
        padding: 16px;
        font-size: 16px;
        border-radius: 8px;
    }

}

/* =========================
   CURSO ONLINE MOBILE
========================= */

@media (max-width: 768px) {

    .online-coming {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
        background: #000;
    }

    .online-content {
        max-width: 320px;
        animation: fadeUp 1s ease;
    }

    .online-content h1 {
        font-size: 42px;
        line-height: 1.1;
        letter-spacing: 3px;
        margin-bottom: 20px;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    }

    .online-content p {
        font-size: 16px;
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .online-sub {
        font-size: 13px;
        color: #888;
        letter-spacing: 1px;
    }

}

/* =========================
   FORMULARIO MOBILE PRO
========================= */

@media (max-width: 768px) {

    .checkout {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    /* RESUMEN */
    .resumen {
        background: #111;
        padding: 20px;
        border-radius: 10px;
    }

    .resumen h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .resumen ul li {
        font-size: 14px;
        padding: 8px 0;
        border-bottom: 1px solid #222;
    }

    /* FORMULARIO */
    .formulario {
        background: #000;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .formulario h2 {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }

    /* GRID */
    .grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .grid input {
        width: 100%;
        padding: 14px;
        border-radius: 8px;
        border: 1px solid #222;
        background: #111;
        color: #fff;
        font-size: 14px;
    }

    .grid input::placeholder {
        color: #777;
    }

    /* FOCUS PRO */
    .grid input:focus {
        outline: none;
        border: 1px solid #fff;
    }

    /* OPCIONES */
    .opciones {
        margin-top: 25px;
    }

    .opciones p {
        font-size: 14px;
        margin-bottom: 10px;
        color: #aaa;
    }

    .radio {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    /* CHECKS */
    .checks {
        margin-top: 20px;
    }

    .check {
        display: flex;
        gap: 10px;
        font-size: 13px;
        margin-bottom: 10px;
        color: #bbb;
    }

    /* BOTÓN */
    .btn {
        width: 100%;
        margin-top: 25px;
        padding: 14px;
        font-size: 14px;
        border-radius: 8px;
        background: #fff;
        color: #000;
        font-weight: bold;
        transition: 0.3s;
    }

    .btn:hover {
        background: #e5e5e5;
    }

}

/* =========================
   SHOWS MOBILE
========================= */

@media (max-width: 768px) {

    .shows-gallery {
        padding: 40px 20px;
        text-align: center;
    }

    .titulo-shows {
        font-size: 28px;
        letter-spacing: 3px;
        margin-bottom: 30px;
    }

    /* CAROUSEL -> vertical */
    .carousel {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* SOLO 1 CARD visible */
    .card {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;

        width: 100%;
        max-width: 320px;

        height: 420px;
        /* 🔥 altura fija */
        overflow: hidden;
    }

    /* ocultamos las laterales */
    .card.left,
    .card.right {
        display: none;
    }

    /* IMAGEN */
    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
        border-radius: 16px;
    }



    /* OVERLAY */
    .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 20px;
        border-radius: 0 0 16px 16px;

        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.8),
                rgba(0, 0, 0, 0));
    }

    .overlay h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .overlay p {
        font-size: 14px;
        color: #ccc;
    }

}

/* =========================
   ESTUDIO MOBILE
========================= */

@media (max-width: 768px) {

    .estudio {
        display: flex;
        flex-direction: column;
        /* 🔥 clave */
    }

    /* TEXTO PRIMERO */
    .estudio-texto {
        order: 1;
        padding: 40px 20px;
        text-align: center;
    }

    .estudio-texto h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .estudio-texto p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .btn-estudio {
        display: block;
        margin: 20px auto 0;
        /* 🔥 centra horizontal */
        width: fit-content;
    }

    /* IMAGEN DESPUÉS */
    .estudio-img {
        padding: 0 20px 40px;
        order: 2;
    }

    .estudio-img img {
        width: 100%;
        height: 380px;
        /* 🔥 más presencia */
        object-fit: cover;
        object-position: center 20%;
        /* 🔥 sube la cara */
        border-radius: 20px;
    }

}

/* =========================
   LOGO MOBILE
========================= */

@media screen and (max-width: 768px) {

    .logo-left {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .logo-left img {
        width: 45px;
        height: auto;
        display: block;
    }

}





