/* ========================================
   Responsive Styles - Mobile First Approach
======================================== */

/* ========================================
   Tablet (768px - 1024px)
======================================== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 3rem;
    }

    /* Navigation */
    .nav-logo {
        width: 280px;
        height: 85px;
    }

    .nav-list {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero-tagline {
        font-size: clamp(4rem, 8vw, 8rem);
    }

    /* Hero Content - Centered Layout */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-subtitle {
        text-align: center;
        margin: 2rem auto;
    }

    /* CTA Buttons - Centered for tablets */
    .hero-cta {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 3rem auto;
    }

    .hero-cta .btn {
        min-width: 180px;
    }

    /* Album Section */
    .album-grid {
        gap: 4rem;
    }

    .vinyl-disc-container {
        width: 550px;  /* Mucho más grande en tablets */
        height: 550px;
    }

    .album-cover {
        width: 360px;  /* Proporcional al vinilo grande */
        height: 360px;
    }

    .album-tracklist-container {
        padding-left: 2rem;
    }

    /* Side Dots */
    .side-dots {
        right: 2rem;
    }
}

/* ========================================
   Mobile Landscape & Small Tablets (481px - 768px)
======================================== */
@media screen and (max-width: 768px) {
    /* Typography adjustments */
    html {
        font-size: 55%;
    }

    .section-title {
        font-size: clamp(3rem, 6vw, 5rem);
        margin-bottom: 3rem;
    }

    /* Section Headers - Mobile Optimization */
    .section-header {
        padding: 0 2rem;
        text-align: center;
    }

    .section-title-main {
        font-size: clamp(3rem, 7vw, 5rem);
        text-align: center;
    }

    .section-divider {
        justify-content: center;
        margin: 2rem auto;
    }

    /* General Button Centering for Mobile */
    .btn-primary,
    .btn-secondary {
        display: inline-flex;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Navigation */
    .nav-container {
        padding: 0 2rem;
    }

    .nav-logo {
        width: 220px;
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .nav-link {
        font-size: 2rem;
        color: var(--color-white);
    }

    .nav-toggle {
        display: flex !important;
        z-index: 1001;
        position: relative;
    }

    /* Hero Section */
    .hero-content {
        padding: 0 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-logo {
        width: clamp(200px, 60vw, 350px);
        margin: 0 auto;
    }

    .hero-tagline {
        font-size: clamp(3.5rem, 7vw, 6rem);
        letter-spacing: 0.1em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(1.4rem, 2.5vw, 2rem);
        text-align: center;
    }

    /* CTA Buttons - Centered for Tablets too */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 350px;
        gap: 1.5rem;
        margin: 2rem auto;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Hero Logo Container */
    .hero-logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /* Album Section */
    .album-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .album-vinyl-container {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .album-tracklist-container {
        order: 2;
        padding-left: 0;
    }

    /* Album Links for Tablets - Side by Side (2 buttons) */
    .album-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        padding: 3rem 1rem;
        margin: 2rem auto;
        max-width: 500px;
    }

    .album-link {
        flex: 1;
        min-width: 180px;
        max-width: 220px;
        height: auto;
        min-height: 52px;
        padding: 1.4rem 2.5rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .album-link i {
        font-size: 2rem;
    }

    .link-label {
        display: inline-block !important;
        font-size: 1.3rem;
    }

    .vinyl-disc-container {
        width: 480px;  /* Maximizado en tablets */
        height: 480px;
        margin: 0 auto;
    }

    .album-cover {
        width: 320px;  /* Grande y prominente */
        height: 320px;
    }

    .album-marquee {
        display: none;
    }

    .track-item {
        padding: 1.5rem 1.8rem; /* Más espacio */
    }

    .track-title {
        font-size: 1.8rem; /* Aumentado de 1.6rem */
        font-weight: 500;
    }

    /* Album Info - Larger Text */
    .album-title {
        font-size: 3rem !important;
    }

    .album-meta {
        font-size: 1.6rem !important;
        gap: 2rem;
    }

    .tracklist-header h4 {
        font-size: 2rem !important;
    }

    /* Band Section */
    .band-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Tour Section */
    .tour-item {
        padding: 2rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    /* Contact - Ocultar social links redundantes en móvil/tablet */
    .contact-section .social-links {
        display: none;
    }

    /* Side Dots */
    .side-dots {
        display: none;
    }

    /* Fix cart and percentage overlap on mobile */
    .merch-cart-icon {
        bottom: 160px !important; /* Ensure separation on mobile */
        right: 20px !important;
        width: 55px;
        height: 55px;
    }

    .scroll-percentage {
        bottom: 180px !important;
        right: 20px !important;
    }
}

/* ========================================
   Mobile Portrait (320px - 480px)
======================================== */
@media screen and (max-width: 480px) {
    /* Typography */
    html {
        font-size: 50%;
    }

    .container {
        padding: 0 2rem;
    }

    /* Navigation */
    .navigation {
        padding: 1.5rem 0;
    }

    .nav-logo {
        width: 120px;
        height: 40px;
    }

    /* Hero Section */
    .hero-content {
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Video Background Mobile Optimization - RESPONSIVE */
    .hero-video {
        object-fit: cover;
        object-position: center center;
        /* Removido opacity y filter para mantener video original */
    }

    /* Subtle overlay only on bottom for scroll indicator */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30%; /* Solo cubre el 30% inferior */
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,0.3) 100%
        );
        pointer-events: none;
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2; /* Asegurar que el contenido esté sobre el overlay */
    }

    .hero-logo {
        width: clamp(180px, 70vw, 250px);
        margin: 0 auto; /* Centrar el logo */
    }

    .hero-tagline {
        font-size: clamp(3rem, 12vw, 5rem);
        letter-spacing: 0.05em;
        text-align: center; /* Asegurar centrado */
    }

    .hero-subtitle {
        font-size: 1.6rem;
        margin-bottom: 3rem;
        text-align: center; /* Asegurar centrado */
    }

    /* CTA Buttons - Better Centering */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2rem;
        margin: 3rem auto;
        padding: 0 2rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        min-width: 240px;
        justify-content: center;
        text-align: center;
        margin: 0;
        padding: 1.8rem 3rem;
        font-size: 1.6rem;
    }

    /* Hero Content - Better Centering */
    .hero-logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        width: 100%;
        margin: 2rem auto;
        /* Agregar sombra para mejor legibilidad sin overlay */
        text-shadow:
            2px 2px 4px rgba(0,0,0,0.8),
            0 0 20px rgba(0,0,0,0.5);
    }

    /* Mejorar legibilidad de textos en hero sin overlay pesado */
    .hero-tagline,
    .album-name {
        text-shadow:
            3px 3px 6px rgba(0,0,0,0.9),
            0 0 30px rgba(0,0,0,0.7);
    }

    .hero-scroll {
        bottom: 2rem;
    }

    /* Album Section */
    .album-section {
        padding: 8rem 0; /* Más respiración entre secciones */
    }

    /* Better Text Contrast for Mobile */
    p, .track-title, .track-duration {
        color: #ffffff !important; /* Blanco puro para mejor legibilidad */
    }

    .album-meta, .tour-meta, .member-role {
        color: #b3b3b3 !important; /* Gris más claro */
    }

    /* Section spacing improvements */
    .section {
        padding: 8rem 0;
        min-height: auto; /* No forzar 100vh en móvil */
    }

    .section-header {
        margin-bottom: 4rem; /* Más espacio después del header */
    }

    .vinyl-disc-container {
        width: 95vw;  /* Casi todo el ancho */
        max-width: 450px;  /* Límite aumentado */
        height: 95vw;
        max-height: 450px;
        margin: 0 auto; /* Centrar vinilo */
    }

    .album-cover {
        width: 65%;  /* Más grande proporcional */
        height: 65%;
        max-width: 290px;
        max-height: 290px;
    }

    /* Track List - Better Mobile Layout */
    .track-item {
        flex-wrap: wrap;
        padding: 1.8rem 1.5rem; /* Más espacio */
        justify-content: space-between;
    }

    .track-item:hover {
        transform: none;
    }

    .track-number {
        font-size: 1.8rem; /* Aumentado de 1.6rem */
        margin-right: 1.2rem;
        font-weight: bold;
    }

    .track-title {
        font-size: 1.8rem; /* Aumentado de 1.4rem */
        flex: 1 0 60%;
        line-height: 1.4;
    }

    .track-duration {
        font-size: 1.5rem; /* Aumentado de 1.2rem */
        margin: 0 1rem;
        order: 3;
    }

    .track-play {
        width: 48px;  /* Touch target mínimo recomendado */
        height: 48px;
        margin: 0 0.5rem; /* Espacio entre botones */
    }

    .track-play i {
        font-size: 1.8rem; /* Icono más grande */
    }

    /* Improve all interactive elements */
    button, a.btn, .social-link, .gallery-tab, .track-play {
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Album Links - Responsive Streaming Buttons (2 buttons) */
    .album-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        align-items: center;
        padding: 3rem 1rem;
        margin: 2rem auto;
        max-width: 320px;
    }

    .album-link {
        width: 100%;
        height: auto;
        min-height: 55px;
        padding: 1.6rem 2rem;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        font-size: 1.6rem;
        font-weight: 500;
    }

    .album-link i {
        font-size: 2.2rem;
        margin-right: 0.5rem;
    }

    .link-label {
        display: inline-block !important;
        font-size: 1.4rem;
        white-space: nowrap;
    }

    /* Album Info - Centered */
    .album-info-header {
        text-align: center;
    }

    .album-tracklist-container {
        max-width: 100%;
    }

    /* Music Player */
    .player-main {
        padding: 2rem;
    }

    .player-cover {
        width: 150px;
        height: 150px;
    }

    .player-controls {
        gap: 2rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
    }

    /* Band Section */
    .band-members {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .member-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    /* Tour Section */
    .tour-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
    }

    .tour-date {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .tour-cta {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        margin: 0 auto;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .gallery-tab {
        padding: 1rem 2rem;
        flex: 0 1 auto;
    }

    /* Merch Section - Centered */
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 350px;
        margin: 0 auto;
    }

    .merch-card {
        text-align: center;
    }

    .merch-cta {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        margin: 1.5rem auto 0;
    }

    /* Contact Form */
    .contact-form {
        padding: 0;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-submit {
        width: 100%;
        max-width: 250px;
        margin: 2rem auto 0;
        display: block;
        justify-content: center;
    }

    /* Social Links - Ocultar en sección contacto (ya están en footer) */
    .contact-section .social-links {
        display: none;
    }

    /* Social Links - Mantener en otras secciones si existen */
    .social-links {
        gap: 1.5rem;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        margin: 2rem auto;
    }

    .social-links a {
        width: 48px;  /* Touch target mínimo */
        height: 48px;
        font-size: 2rem; /* Iconos más grandes */
    }

    /* Footer - Better Mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* ========================================
   Small Mobile (< 320px)
======================================== */
@media screen and (max-width: 320px) {
    html {
        font-size: 45%;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-tagline {
        font-size: 2.5rem;
    }

    /* Album Links - Single Column for Small Screens */
    .album-links {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .album-link {
        width: 100%;
        padding: 1.4rem;
    }

    .vinyl-disc-container {
        width: 92vw;  /* Máximo uso del espacio */
        max-width: 380px;
        height: 92vw;
        max-height: 380px;
    }

    .album-cover {
        width: 65%;  /* Más grande */
        height: 65%;
        max-width: 250px;
        max-height: 250px;
    }

    .track-title {
        font-size: 1.6rem !important;
    }

    .track-number {
        font-size: 1.6rem !important;
    }
}

/* ========================================
   Landscape Orientation Adjustments
======================================== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 4rem 0;
    }

    .hero-logo {
        width: 200px;
    }

    .hero-tagline {
        font-size: 4rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero-scroll {
        display: none;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .navigation,
    .side-dots,
    .hero-scroll,
    .hero-video,
    .loader,
    .lightbox {
        display: none !important;
    }

    .section {
        page-break-after: always;
        min-height: auto;
        padding: 2cm 0;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}