/* ============================================ */
/*  YIVANANDA - RESPONSIVE PROFESIONAL          */
/*  Compatible con el index.html actual         */
/* ============================================ */

/* -------------------------------------------- */
/* TABLET GRANDE ≤ 1024px                       */
/* -------------------------------------------- */
@media (max-width: 1024px) {

    .nav-menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-title {
        font-size: 38px;
    }

    .programs-cards,
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .ig-grid {
        max-width: 100%;
    }
}

/* -------------------------------------------- */
/* TABLET / PORTÁTIL PEQUEÑO ≤ 900px            */
/* -------------------------------------------- */
@media (max-width: 900px) {

    /* Menú: hamburguesa */
    .nav-menu,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 22px 20px;
        gap: 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #eee;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Layouts a 1 columna */
    .promo-wrapper,
    .books-wrapper,
    .products-wrapper,
    .about-wrapper-new,
    .gift-wrapper,
    .contact-wrapper,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Suscripción */
    .subscription-bg {
        width: 100%;
        opacity: 0.22;
    }

    .subscription-content {
        max-width: 100%;
    }

    /* Libros */
    .books-images {
        height: 260px;
        margin: 0 auto 10px;
        max-width: 360px;
    }

    /* Productos */
    .products-images {
        max-width: 380px;
        margin: 0 auto;
    }

    /* Blog interés */
    .interest-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Instagram */
    .ig-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ig-large {
        grid-column: span 3;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }

    /* Agenda */
    .class-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-book-class {
        grid-column: span 2;
        justify-self: stretch;
        text-align: center;
    }

    /* Hero */
    .hero-content {
        padding: 0 28px;
    }
}

/* -------------------------------------------- */
/* MÓVIL ≤ 768px                                */
/* -------------------------------------------- */
@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    /* Header */
    .nav-container {
        height: 64px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-name {
        font-size: 18px;
    }

    .nav-menu.active {
        top: 64px;
        max-height: calc(100vh - 64px);
    }

    /* Hero */
    .hero {
        height: 75vh;
        min-height: 460px;
        max-height: none;
        margin-top: 64px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 22px;
    }

    .hero-bg img {
        object-position: center 20%;
    }

    .btn-hero {
        padding: 12px 26px;
        font-size: 13px;
    }

    /* 3 tarjetas */
    .three-cards {
        padding: 40px 0 30px;
    }

    .cards-row {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        gap: 14px;
    }

    .card-item {
        padding: 28px 22px;
    }

    .card-item h3 {
        font-size: 22px;
    }

    /* Promo */
    .promo-banner {
        padding: 20px 0 40px;
    }

    .promo-left {
        padding: 28px 20px;
    }

    .promo-title {
        font-size: 24px;
    }

    .promo-subtitle {
        font-size: 15px;
    }

    .promo-right {
        height: 230px;
    }

    .promo-right img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    /* Precios / plataforma */
    .platform {
        padding: 40px 0 30px;
    }

    .platform-title {
        font-size: 24px;
    }

    .platform-prices {
        gap: 6px;
    }

    .platform-price {
        font-size: 14px;
    }

    /* Stats */
    .stats-bar {
        padding: 28px 0;
        margin-top: 28px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 18px 8px;
    }

    .stat-item {
        flex: 0 0 45%;
    }

    .stat-divider {
        display: none;
    }

    .stat-num {
        font-size: 22px;
    }

    .stat-text {
        font-size: 10px;
    }

    /* Secciones generales */
    .cta-section,
    .programs-section,
    .store-preview,
    .about-yivananda,
    .gift-card-section,
    .schedule,
    .interest-blog,
    .instagram-section,
    .contact,
    .subscription,
    .books-section,
    .products-section {
        padding: 50px 0;
    }

    .programs-title,
    .store-title,
    .schedule-title,
    .interest-title,
    .ig-title,
    .contact-title,
    .about-text h2,
    .gift-content h2,
    .sub-title,
    .books-content h2,
    .products-content h2 {
        font-size: 24px;
    }

    /* Programas */
    .programs-cards {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
        gap: 22px;
    }

    /* Tienda */
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* Suscripción */
    .sub-price-box {
        width: 100%;
        max-width: 320px;
    }

    .sub-price {
        font-size: 28px;
    }

    /* Libros */
    .book-img {
        width: 150px;
        height: 210px;
    }

    .book-1 {
        left: 10px;
    }

    .book-2 {
        left: 130px;
    }

    .books-content {
        padding: 28px 22px;
    }

    /* Sobre Yivananda */
    .about-img-wrapper {
        max-width: 100%;
        min-height: auto;
        padding: 0;
    }

    .img-bg-purple {
        display: none;
    }

    .about-photo,
    .about-img-wrapper img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        border-radius: 14px;
        transform: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

    .about-floating-badge {
        left: 12px;
        bottom: 12px;
    }

    .about-text p {
        font-size: 13px;
    }

    /* Tarjeta regalo */
    .gift-image {
        padding: 0;
    }

    .gift-bg-backdrop {
        display: none;
    }

    .gift-img {
        height: 250px;
        transform: none;
        border-radius: 14px;
    }

    .gift-tag-overlay {
        left: 14px;
        bottom: 14px;
    }

    /* Agenda */
    .schedule-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .class-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 16px;
        text-align: left;
    }

    .class-time {
        font-size: 13px;
    }

    .class-name {
        font-size: 14px;
    }

    .class-teacher {
        font-size: 12px;
    }

    .class-level {
        justify-self: start;
    }

    .btn-book-class {
        grid-column: 1;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
        padding: 10px 14px;
    }

    /* Instagram */
    .ig-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .ig-large {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

    /* Contacto */
    .contact-wrapper {
        gap: 32px;
    }

    .btn-submit {
        width: 100%;
    }

    /* Footer */
    .footer-new {
        padding: 50px 0 20px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row-double {
        grid-template-columns: 1fr;
    }

    .footer-newsletter h3 {
        font-size: 18px;
        br {
            display: none;
        }
    }

    .btn-subscribe {
        width: 100%;
        text-align: center;
    }

    /* Botones flotantes */
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 16px;
        font-size: 26px;
    }

    .back-top {
        width: 40px;
        height: 40px;
        bottom: 22px;
        right: 78px;
        font-size: 13px;
    }
}

/* -------------------------------------------- */
/* MÓVIL PEQUEÑO ≤ 480px                        */
/* -------------------------------------------- */
@media (max-width: 480px) {

    .hero {
        height: 70vh;
        min-height: 420px;
    }

    .hero-title {
        font-size: 24px;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 13px 20px;
    }

    .promo-title,
    .platform-title,
    .programs-title,
    .store-title,
    .schedule-title,
    .interest-title,
    .ig-title,
    .contact-title,
    .about-text h2,
    .gift-content h2,
    .sub-title {
        font-size: 22px;
    }

    .store-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto 28px;
    }

    .stat-num {
        font-size: 20px;
    }

    .about-photo,
    .about-img-wrapper img {
        height: 300px;
    }

    .gift-img {
        height: 220px;
    }

    .book-img {
        width: 120px;
        height: 170px;
    }

    .books-images {
        height: 200px;
    }

    .sub-price {
        font-size: 24px;
    }

    .card-item h3 {
        font-size: 20px;
    }
}

/* -------------------------------------------- */
/* PANTALLAS MUY ANCHAS ≥ 1400px                */
/* -------------------------------------------- */
@media (min-width: 1400px) {

    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 48px;
    }
}

/* -------------------------------------------- */
/* MÓVIL HORIZONTAL (landscape)                 */
/* -------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 90px 0 40px;
    }

    .hero-title {
        font-size: 22px;
    }
    /* Tipografía móvil equilibrada */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .hero-title {
        font-size: 30px !important;
    }

    .nav-link {
        font-size: 16px;
    }

    .promo-title,
    .platform-title,
    .programs-title,
    .store-title,
    .schedule-title,
    .interest-title,
    .ig-title,
    .contact-title,
    .about-text h2,
    .gift-content h2,
    .sub-title {
        font-size: 26px !important;
    }

    .about-text p,
    .promo-desc,
    .programs-desc,
    .contact-desc,
    .gift-content p {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    .class-name {
        font-size: 15px !important;
    }

    .class-time {
        font-size: 14.5px !important;
    }

    .btn-book-class,
    .btn-submit,
    .btn-hero,
    .btn-cta {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px !important;
    }

    .promo-title,
    .platform-title,
    .programs-title,
    .store-title,
    .schedule-title,
    .interest-title,
    .ig-title,
    .contact-title,
    .about-text h2,
    .gift-content h2,
    .sub-title {
        font-size: 24px !important;
    }
}

    .nav-menu.active {
        max-height: 70vh;
    }
}
