:root {
    --primary: #007BFF; /* Azúl Eléctrico */
    --secondary: #1E1E1E; /* Gris oscuro */
    --accent: #FFD700; /* Dorado */
    --bg-dark: #0F0F0F; /* Negro profundo */
    --card-bg: #1A1A1A;
    --text-white: #F8F9FA;
    --text-muted: #888888;
    --glow: 0 0 20px rgba(0, 123, 255, 0.4);
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.3);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.highlight, .accent {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.section-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header & Nav */
header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 700 !important;
}

.menu-toggle {
    display: none;
}


/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 5%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.08) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-block;
}

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

.btn.primary:hover {
    transform: scale(1.05);
    box-shadow: var(--glow);
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn.secondary:hover {
    background: white;
    color: var(--bg-dark);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.beat-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px solid var(--primary); /* Blue ring back as requested */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse-ring 1s infinite alternate ease-in-out;
    box-shadow: var(--gold-glow);
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.hero-logo {
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.9; box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.2); }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 50px 10px rgba(255, 215, 0, 0.3); }
}

/* Sections */
.interactive-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.alt-bg {
    background: #0a0a0a;
    border-radius: 40px;
    margin-top: 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-container {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 3rem;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bpm-display {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.bpm-display small {
    font-size: 1.2rem;
    opacity: 0.5;
}

.beat-indicator {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: var(--glow);
    border: 2px solid var(--accent); /* Gold detail */
}

.beat-active {
    transform: scale(1.3);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tap-btn {
    background: #222;
    color: white;
    padding: 20px 50px;
    font-size: 1.2rem;
    border: 2px solid #333;
}

.tap-btn:active {
    background: var(--primary);
    border-color: var(--primary);
}

.game-status {
    margin-top: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

#results-container h3 {
    color: var(--accent); /* Gold detail */
}

.analyse-text strong {
    color: var(--accent);
}

#results-container {
    margin-top: 2rem;
}

.hidden { display: none; }

/* Setlist Chaos */
.chaos-challenge {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.manual-task, .quick-switch-promo {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timer {
    font-family: monospace;
    font-size: 3rem;
    color: var(--accent); /* Gold detail */
    margin: 1rem 0;
}

.song-list {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.song-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.manual-controls {
    display: flex;
    gap: 10px;
}

input {
    background: #000;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 80px;
}

.glow {
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

.divider {
    font-weight: 900;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
}

/* App Mockup Styles */
.app-mockup {
    background: #000;
    width: 200px;
    height: 350px;
    margin: 0 auto 1.5rem;
    border-radius: 30px;
    border: 6px solid #222;
    padding: 20px 10px;
    box-shadow: var(--gold-glow); /* Subtle gold glow */
}

.mockup-screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-song {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.mockup-song.active {
    background: rgba(0, 123, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: bold;
}

/* Mixer Widget */
.mixer-widget {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 900px;
}

.mixer-stage {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.stage-element {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-element .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.stage-center {
    flex: 1.5;
}

.phone-device {
    width: 140px;
    height: 240px;
    background: #000;
    border: 4px solid #333;
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen-content {
    text-align: center;
}

.mode-label {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.audio-waves {
    height: 30px;
    width: 60px;
    background: repeating-linear-gradient(90deg, var(--primary), var(--primary) 2px, transparent 2px, transparent 6px);
    opacity: 0;
}

.wave-active {
    animation: wave-motion 0.5s infinite alternate;
    opacity: 1;
}

.wave-blue { background: repeating-linear-gradient(90deg, var(--primary), var(--primary) 2px, transparent 2px, transparent 6px); }
.wave-gold { background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 2px, transparent 6px); }

@keyframes wave-motion {
    from { transform: scaleY(0.5); }
    to { transform: scaleY(1.2); }
}

/* Switch Styles */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.slider:before {
    position: absolute;
    content: "";
    height: 26px; width: 26px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }

.alert-box {
    margin-top: 2rem;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
}

.alert-box.warning {
    background: rgba(255, 77, 77, 0.1);
    color: #FF4D4D;
    border: 1px solid #FF4D4D;
}

.alert-box.success {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.eureka-moment {
    margin-top: 4rem;
}

.savings-card {
    background: linear-gradient(135deg, #1a1a1a, #252525);
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 4rem;
    border-radius: 30px;
    border: 1px solid var(--accent);
    box-shadow: var(--gold-glow);
}

.old-way p, .new-way p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }

.price { font-size: 2.5rem; font-weight: 900; }

.old-way .price { text-decoration: line-through; color: #555; }
.new-way .price { color: var(--accent); }

.vs-text {
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.8rem;
}

/* Utility & Feedback Animations */
.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.success-text {
    color: #28a745 !important;
    font-weight: 700;
    transition: color 0.3s;
}

#manual-progress {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*                               MEDIA QUERIES                                */
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

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

    .divider {
        padding: 0.5rem 0;
        text-align: center;
    }

    .savings-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
        width: 100%;
        display: flex;
    }
}


@media screen and (max-width: 768px) {
    /* Header Mobile */
    header {
        padding: 0.8rem 1rem;
    }

    .logo { font-size: 1.5rem; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--text-white);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    nav ul.active {
        right: 0;
    }


    /* Hero Mobile */
    .hero {
        flex-direction: column-reverse;
        height: auto;
        padding: 100px 5% 40px;
        text-align: center;
        gap: 2rem;
    }


    .hero-content h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .beat-circle {
        width: 180px;
        height: 180px;
    }

    /* Interactive Sections */
    .interactive-section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }


    .game-container {
        padding: 1.5rem 1rem;
    }

    .timer { font-size: 2.2rem; }

    .manual-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .manual-controls input {
        width: 100%;
    }

    .mixer-stage {
        gap: 1.5rem;
    }

    .switch-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .switch-label { font-size: 0.85rem; }

    .phone-device {
        width: 100px;
        height: 160px;
    }

    .stage-center {
        order: -1;
    }

    .savings-card {
        padding: 1.5rem 1rem;
    }

    .price {
        font-size: 1.8rem;
    }
}


@media screen and (max-width: 400px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

