/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --primary: rgb(163, 89, 238);
    --primary-hover: rgb(180, 110, 255);
    --primary-dark: rgb(140, 70, 220);
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.6);
    --text: #ffffff;
    --text-secondary: #b0b0b8;
    --text-muted: #6b6b7a;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(163, 89, 238, 0.2);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Botón hamburguesa flotante para móvil */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px var(--shadow-glow);
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-menu-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 12px 35px var(--shadow-glow);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay para el menú móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Menú móvil drawer */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px var(--shadow);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav .nav-link {
    display: block;
    padding: 1.25rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav .nav-link:hover {
    color: var(--primary);
    padding-left: 1.5rem;
    background: rgba(163, 89, 238, 0.05);
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-promo,
.btn-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary,
.btn-promo,
.btn-cta {
    background: var(--primary);
    color: var(--text);
}

.btn-primary:hover,
.btn-promo:hover,
.btn-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--primary);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(163, 89, 238, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-icon:hover {
    color: var(--text);
    border-color: var(--primary-hover);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.btn-icon i {
    font-size: 1.2rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo animada con blur */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('resources/images/fondo-banner-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroBackgroundMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Capa oscura con gradiente morado para oscurecer la imagen */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(163, 89, 238, 0.15) 0%, rgba(10, 10, 15, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Animación de movimiento, zoom y brillo */
@keyframes heroBackgroundMove {
    0% {
        transform: scale(1) translate(0, 0);
        filter: blur(10px) brightness(0.9);
    }
    25% {
        transform: scale(1.1) translate(3%, 2%);
        filter: blur(10px) brightness(1.1);
    }
    50% {
        transform: scale(1.05) translate(-2%, 3%);
        filter: blur(10px) brightness(0.95);
    }
    75% {
        transform: scale(1.15) translate(-3%, -2%);
        filter: blur(10px) brightness(1.05);
    }
    100% {
        transform: scale(1) translate(0, 0);
        filter: blur(10px) brightness(0.9);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow-glow);
}

.search-icon {
    color: var(--text-secondary);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    padding: 0.75rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary);
    color: var(--text);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ============================================
   TIRA PROMOCIONAL
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(163, 89, 238, 0.15) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.promo-text {
    flex: 1;
    min-width: 300px;
}

.promo-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.promo-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-right: 0.5rem;
}

.price-new {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}

.btn-promo {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    white-space: nowrap;
}

/* ============================================
   SECCIÓN CATÁLOGO
   ============================================ */
.catalog {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.genre-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px var(--shadow-glow);
    background: rgba(26, 26, 36, 0.8);
}

.genre-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.genre-icon i {
    font-size: inherit;
}

.genre-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.genre-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.genre-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.genre-link:hover {
    color: var(--primary-hover);
}

/* ============================================
   CANCIONES DESTACADAS
   ============================================ */
.featured-tracks {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tracks-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.track-featured {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.track-featured:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.track-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.track-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-preview,
.btn-download {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-preview {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-preview:hover {
    color: var(--text);
    border-color: var(--primary);
}

.btn-download {
    background: var(--primary);
    color: var(--text);
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.track-item:hover {
    border-color: var(--primary);
    background: rgba(26, 26, 36, 0.8);
}

.track-details {
    flex: 1;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.track-genre {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.track-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-preview-small,
.btn-download-small {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-preview-small {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-preview-small:hover {
    color: var(--text);
    border-color: var(--primary);
}

.btn-download-small {
    background: var(--primary);
    color: var(--text);
}

.btn-download-small:hover {
    background: var(--primary-hover);
}

/* ============================================
   POR QUÉ NOS ELIGEN
   ============================================ */
.why-choose {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-glow);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 89, 238, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.benefit-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-section {
    text-align: center;
}

.btn-cta {
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
    }

    .header-actions {
        order: 2;
    }

    .menu-toggle {
        display: none;
    }

    /* Mostrar botón flotante y menú móvil */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .promo-content {
        flex-direction: column;
        text-align: center;
    }

    .genres-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .tracks-layout {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header-content {
        gap: 1rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }

    .btn-icon i {
        font-size: 1rem;
    }

    .hero {
        min-height: 60vh;
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

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

    .search-box {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 0.875rem;
    }

    .search-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .promo-banner {
        padding: 2rem 0;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-subtitle {
        font-size: 0.9rem;
    }

    .btn-promo {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .catalog,
    .featured-tracks,
    .why-choose {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .genres-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .genre-card {
        padding: 1.5rem;
    }

    .genre-icon {
        font-size: 2.5rem;
    }

    .genre-name {
        font-size: 1.25rem;
    }

    .tracks-layout {
        gap: 1.5rem;
    }

    .track-featured {
        padding: 1.5rem;
    }

    .track-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .track-buttons {
        width: 100%;
        margin-top: 1rem;
    }

    .btn-preview-small,
    .btn-download-small {
        flex: 1;
        padding: 0.6rem 0.875rem;
        font-size: 0.85rem;
    }

    .benefits-grid {
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 2rem;
    }

    .btn-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

