/* Variables de diseño */
:root {
    --primary-blue: #1a237e;
    --chaos-red: #b71c1c;
    --cosmos-gold: #f9a825;
    --background-light: #f5f5f5;
    --background-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #333333;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* Utilidades */
.hidden {
    display: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Sección Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3949ab 100%);
}

.hero-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-chaos {
    background: var(--chaos-red);
    color: white;
}

.btn-chaos:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.4);
}

.btn-cosmos {
    background: var(--cosmos-gold);
    color: var(--text-dark);
}

.btn-cosmos:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 168, 37, 0.4);
}

/* Sección Caos */
.chaos-section {
    min-height: 100vh;
    background: var(--background-dark);
    color: var(--text-light);
    padding: 4rem 2rem;
    transition: all 0.5s ease;
}

.chaos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.countdown-container {
    text-align: center;
    margin: 3rem 0;
}

.countdown-display {
    font-size: 3rem;
    color: var(--chaos-red);
    font-weight: 700;
    margin: 1rem 0;
}

.deficit-info {
    font-size: 1.5rem;
    color: #ff5252;
}

.chart-container {
    max-width: 800px;
    margin: 3rem auto;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sección Cosmos */
.cosmos-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: var(--text-dark);
    padding: 4rem 2rem;
}

.cosmos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.growth-container {
    text-align: center;
    margin: 3rem 0;
}

.growth-display {
    font-size: 3rem;
    color: var(--cosmos-gold);
    font-weight: 700;
    margin: 1rem 0;
}

.achievements-gallery {
    margin: 4rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.3;
    filter: grayscale(100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.achievement.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.3);
}

.achievement-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Sección Inversión */
.investment-section {
    min-height: 100vh;
    background: var(--background-light);
    padding: 4rem 2rem;
}

.investment-container {
    max-width: 1200px;
    margin: 0 auto;
}

.temple-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    align-items: center;
}

.temple-animation {
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: #e3f2fd;
    border-radius: 10px;
}

.investment-controls {
    text-align: center;
}

.btn-invest {
    background: var(--primary-blue);
    color: white;
    margin: 2rem 0;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .temple-builder {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}