/* ==========================================================================
   AZ Gestion Musical - Premium Glassmorphism Landing Page
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-base: #030014;
    --bg-grad: radial-gradient(circle at top right, #1f0545 0%, #030014 60%);
    --primary: #8a2be2;
    --primary-neon: #b14dff;
    --secondary-neon: #00f3ff;
    --gold: #ffb800;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(20, 10, 40, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: 0 8px 32px 0 rgba(138, 43, 226, 0.15);
    --backdrop: blur(16px);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-base); }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-base);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base elements */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* Text Gradient utility */
.text-gradient {
    background: linear-gradient(to right, var(--secondary-neon), var(--primary-neon), #ff00ff, var(--secondary-neon));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.animated-gradient {
    animation: gradientMove 6s ease alternate infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gold {
    background: linear-gradient(to right, #ffe259, #ffa751);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glass panel utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-glow);
}

/* --- Navbar --- */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 1.5rem 0; transition: var(--transition);
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 0, 20, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand h1 {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand i { color: var(--gold); }
.nav-menu { display: flex; gap: 1rem; align-items: center; }
.nav-link {
    font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-muted); padding: 0.5rem 1rem;
    transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--text-main); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 1px; background: var(--secondary-neon);
    transition: var(--transition); transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }
.nav-link.btn-cta {
    background: linear-gradient(135deg, var(--gold) 0%, #ff8c00 100%);
    color: #000 !important; border-radius: 30px; font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.3); padding: 0.7rem 1.5rem;
}
.nav-link.btn-cta::after { display: none; }
.nav-link.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 184, 0, 0.6); }
.hamburger { display: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1rem 2.5rem; border-radius: 50px; font-family: var(--font-heading);
    font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: var(--transition);
    border: none;
}
.btn-gold {
    background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
    color: #000; box-shadow: 0 10px 25px rgba(255, 167, 81, 0.4);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px rgba(255, 167, 81, 0.6); }
.btn-glass {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 5rem;
}
.hero::before {
    content: ''; position: absolute; top: -20%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(138,43,226,0.3) 0%, transparent 60%);
    filter: blur(80px); z-index: 0;
    animation: pulseGlow 8s infinite alternate;
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; right: -10%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(0,243,255,0.2) 0%, transparent 60%);
    filter: blur(80px); z-index: 0;
    animation: pulseGlow 10s infinite alternate-reverse;
}
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}
.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 900px;
    padding: 3rem; border-radius: 30px;
}
.hero-title {
    font-family: var(--font-heading); font-size: 5rem; font-weight: 900;
    line-height: 1.1; margin-bottom: 2rem;
}
.title-line { display: block; }
.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem;
    max-width: 700px; margin-inline: auto; font-weight: 300;
}
.hero-cta { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 4rem; }
.hero-stats { display: flex; justify-content: center; gap: 4rem; }
.stat {
    display: flex; flex-direction: column; align-items: center;
}
.stat-num-container { display: flex; align-items: baseline; gap: 0.1rem; }
.stat-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--text-main); }
.stat-plus { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--secondary-neon); }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* --- Section Commons --- */
.section { padding: 8rem 0; position: relative; }
.section-title {
    font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800;
    text-align: center; margin-bottom: 1rem; color: var(--text-main);
}
.section-subtitle {
    text-align: center; color: var(--text-muted); font-size: 1.2rem;
    max-width: 600px; margin: 0 auto 4rem; line-height: 1.7; font-weight: 300;
}

/* --- Services (Glass Grid) --- */
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.service-card {
    position: relative; overflow: hidden; height: 400px;
    border-radius: 24px; padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end;
    transition: var(--transition);
}
/* Ensure the image container sits in background */
.service-card .bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s ease; opacity: 0.6; z-index: 0;
}
.service-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(3,0,20,1) 0%, rgba(3,0,20,0.4) 50%, rgba(3,0,20,0) 100%);
    z-index: 1; pointer-events: none;
}
.service-card:hover { transform: translateY(-10px);  box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1); }
.service-card:hover .bg-img { transform: scale(1.1); opacity: 0.8; }
.service-card-content { position: relative; z-index: 2; }
.service-card-content i {
    font-size: 2.5rem; color: var(--secondary-neon); margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}
.service-card-content h3 {
    font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1rem; font-weight: 700;
}
.service-card-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.5; }

/* --- Process --- */
.process { position: relative; }
.process::before {
    content: ''; position: absolute; top: 10%; right: 0; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(177, 77, 255, 0.15) 0%, transparent 70%);
    filter: blur(100px); z-index: 0; pointer-events: none;
}
.process-steps { display: flex; gap: 2rem; position: relative; }
.process-step {
    flex: 1; padding: 3rem 2rem; text-align: center;
    transition: var(--transition);
}
.process-step.glass-panel:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2); box-shadow: 0 15px 35px rgba(138,43,226,0.3);
}
.step-number {
    width: 80px; height: 80px; margin: 0 auto 2rem; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800;
    color: var(--secondary-neon); text-shadow: 0 0 15px rgba(0,243,255,0.5);
}
.process-step h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }
.process-step p { color: var(--text-muted); font-weight: 300; }

/* --- Gallery & Testimonials --- */
/* --- Carousel Shared Styles --- */
.gallery-wrapper,
.services-wrapper {
    position: relative;
    margin-top: 3rem;
}

.gallery-track,
.services-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar,
.services-track::-webkit-scrollbar {
    display: none;
}

/* Gallery carousel items */
.gallery-track .gallery-item {
    min-width: 350px;
    max-width: 400px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* Services carousel items */
.services-track .service-card {
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* Shared carousel buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--secondary-neon);
    color: #000;
    box-shadow: 0 0 15px var(--secondary-neon);
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* Responsive: en mobile los botones dentro del contenedor */
@media (max-width: 768px) {
    .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }

    .gallery-track .gallery-item {
        min-width: 280px;
    }

    .services-track .service-card {
        min-width: 260px;
    }
}
.gallery-item {
    border-radius: 20px; overflow: hidden; position: relative; cursor: pointer;
    box-shadow: var(--glass-glow); border: 1px solid var(--glass-border);
}
.gallery-item img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); filter: grayscale(30%); }
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.gallery-item-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,0,20,0.9), transparent);
    display: flex; align-items: flex-end; padding: 2rem; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }

/* Testimonials (Horizontal Scroll) */
.testimonial-wrapper { position: relative; margin-top: 3rem; }
.testimonial-track {
    display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0 3rem;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
    min-width: 300px; max-width: 350px; flex-shrink: 0; scroll-snap-align: center;
    background: var(--glass-bg); backdrop-filter: var(--backdrop);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.5rem;
    display: flex; flex-direction: column; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-10px); border-color: rgba(255,255,255,0.2); }
.testimonial-stars { color: var(--gold); margin-bottom: 1rem; font-size: 1.2rem; }
.testimonial-quote { position: absolute; top: 1rem; right: 2rem; font-family: var(--font-heading); font-size: 6rem; color: rgba(255,255,255,0.05); line-height: 1; }
.testimonial-text { flex-grow: 1; font-size: 1.1rem; color: var(--text-main); font-style: italic; margin-bottom: 2rem; z-index: 1; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary-neon)); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: bold; font-size: 1.2rem; }
.testimonial-info h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.2rem; }
.testimonial-info span { color: var(--text-muted); font-size: 0.9rem; }

/* CTA Band */
.cta-band {
    padding: 8rem 0; margin-top: 5rem; position: relative; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to bottom, rgba(3,0,20,1), rgba(30,15,60,0.5));
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.2;
}
.cta-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.cta-content {
    position: relative; z-index: 2;
}
.cta-band h2 { font-family: var(--font-heading); font-size: 4rem; margin-bottom: 1.5rem; font-weight: 900; }
.cta-band p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; position: relative; z-index: 2; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 4rem 0 2rem; margin-top: 4rem; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer h3, .footer h4 { font-family: var(--font-heading); margin-bottom: 1.5rem; }
.footer p, .footer li { color: var(--text-muted); margin-bottom: 0.75rem; font-weight: 300; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary-neon); color: #000; box-shadow: 0 0 15px var(--secondary-neon); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* Utilities / Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center;
    align-items: center; font-size: 35px; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1000; transition: var(--transition);
}
.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg); box-shadow: 0 6px 20px rgba(37,211,102,0.6); color: white;
}

/* Animations Core */
.animate-slide-up { display: inline-block; opacity: 0; transform: translateY(30px); animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-equalizer {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    margin-bottom: 2rem;
}
.hero-equalizer .bar {
    width: 12px;
    background: linear-gradient(to top, var(--primary), var(--secondary-neon));
    border-radius: 6px;
    animation: equalize 1s ease-in-out infinite alternate;
    box-shadow: 0 0 15px var(--secondary-neon);
}
.hero-equalizer .bar-1 { height: 30px; animation-delay: 0.1s; }
.hero-equalizer .bar-2 { height: 60px; animation-delay: 0.3s; }
.hero-equalizer .bar-3 { height: 40px; animation-delay: 0.5s; }
.hero-equalizer .bar-4 { height: 80px; animation-delay: 0.2s; }
.hero-equalizer .bar-5 { height: 50px; animation-delay: 0.4s; }
.hero-equalizer .bar-6 { height: 70px; animation-delay: 0.6s; }
.hero-equalizer .bar-7 { height: 35px; animation-delay: 0.3s; }

@keyframes equalize {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.hero-particles {
    position: absolute; width: 100%; height: 100%; pointer-events: none; z-index: 1;
}
.hero-particles .note {
    position: absolute; font-size: 2rem; color: var(--secondary-neon); opacity: 0;
    text-shadow: 0 0 10px var(--secondary-neon);
    animation: floatNote 10s linear infinite;
}
.hero-particles .note:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particles .note:nth-child(2) { left: 20%; font-size: 3rem; animation-delay: 2s; color: var(--gold); }
.hero-particles .note:nth-child(3) { left: 40%; animation-delay: 4s; }
.hero-particles .note:nth-child(4) { left: 60%; font-size: 2.5rem; animation-delay: 1s; color: var(--primary-neon); }
.hero-particles .note:nth-child(5) { left: 80%; animation-delay: 5s; }
.hero-particles .note:nth-child(6) { left: 90%; font-size: 3rem; animation-delay: 3s; color: var(--gold); }

@keyframes floatNote {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-50vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .process-steps { grid-template-columns: 1fr; flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .nav-menu { display: none; } /* hamburger logic needed */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px; color: #fff;
    background: transparent; border: none; cursor: pointer;
}
.lightbox img {
    max-width: 90%; max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,184,0,0.3);
}

/* Testimonial arrows */
.testimonial-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--glass-bg); backdrop-filter: var(--backdrop);
    border: 1px solid var(--glass-border); color: var(--gold);
    font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: var(--transition);
}
.testimonial-btn:hover { background: var(--secondary-neon); color: #000; box-shadow: 0 0 15px var(--secondary-neon); }
.testimonial-btn.prev { left: -20px; }
.testimonial-btn.next { right: -20px; }

/* Accessibility */
.skip-nav {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}
.skip-nav:focus {
    position: fixed; top: 10px; left: 10px; z-index: 9999;
    width: auto; height: auto;
    background: var(--primary); color: #fff; padding: 1rem 2rem;
    border-radius: 8px; font-size: 1rem;
}
