:root {
    --bg-color: #050302;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #d97706; /* Amber-600 */
    --accent: #a855f7; /* Purple-500 */
    --text: #fffbeb;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- MÁGICO BACKGROUND --- */
#magic-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a0f0a 0%, #000000 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- NAV --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 3, 2, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.links a {
    text-decoration: none;
    color: #ccc;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

.links a:hover { color: var(--primary); }

.btn-nav {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.badge {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #e9d5ff;
    display: inline-block;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #fbbf24, #d97706, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s infinite linear;
}

.hero p {
    font-size: 1.2rem;
    color: #a8a29e;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #b45309);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #57534e;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover { transform: scale(1.05); }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

.small-note { font-size: 0.8rem; opacity: 0.5; margin-top: 1rem; }

/* ORB ANIMATION */
.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

/* --- SECTIONS --- */
section { padding: 5rem 5%; }

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- STEPS --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.step-item {
    flex: 1;
    min-width: 250px;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255,255,255,0.05);
    font-weight: bold;
    margin-bottom: -1.5rem;
    z-index: -1;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 5%;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: #666;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: 0.3s;
}

.socials a:hover { color: var(--primary); }

/* --- ANIMATIONS --- */
@keyframes shine { to { background-position: 200% center; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); } }

.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 1s forwards; }
.delay { animation-delay: 0.5s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Clases para JS Scroll */
.fade-in-scroll { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .cta-group { flex-direction: column; }
    .links { display: none; } /* Ocultar links en móvil simple */
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Oculto inicialmente */
    left: 20px;
    right: 20px;
    background: rgba(15, 10, 6, 0.95);
    border: 1px solid var(--primary);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: -200px;
    }
    .cookie-content {
        flex-direction: column;
        margin-bottom: 1rem;
    }
}

/* --- BOTÓN DE MÚSICA FLOTANTE --- */
.music-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001; /* Por encima de todo */
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.music-btn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.6);
}

.music-btn.playing {
    border-color: var(--accent);
    color: var(--accent);
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Ajuste móvil para que no choque con el banner de cookies si ambos están */
@media (max-width: 600px) {
    .music-btn {
        bottom: 80px; /* Un poco más arriba en móviles */
        left: 15px;
    }
}