:root {
    --bg-dark: #070f09;
    --bg-card: rgba(16, 30, 19, 0.85);
    --green-main: #2e7d32;
    --green-bright: #00e676;
    --green-glow: #1b5e20;
    --gold-accent: #ffd700;
    --text-light: #e0e2e0;
    --text-dim: #9eb0a2;
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    /* RUTA CORREGIDA A TU CARPETA ASSETS/IMG */
    background-image: 
        linear-gradient(rgba(7, 15, 9, 0.75), rgba(7, 15, 9, 0.85)), 
        url('./assets/img/Imagen-astronauta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

#leaf-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99;
}

/* --- MODAL EDAD --- */
#age-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(4, 8, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#age-modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--green-bright);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.modal-content i.leaf-icon {
    font-size: 3rem;
    color: var(--green-bright);
    margin-bottom: 15px;
}

.modal-content h2 {
    font-family: var(--font-title);
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.modal-content p {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-yes {
    background: var(--green-bright);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.btn-yes:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-no {
    background: transparent;
    color: #ff5252;
    border: 1px solid #ff5252;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(7, 15, 9, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

nav a:hover { color: var(--green-bright); }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.badge-edition {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid var(--green-bright);
    color: var(--green-bright);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-title);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.hero p {
    max-width: 600px;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- CRONÓMETRO --- */
.timer-container {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.time-box {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 75px;
}

.time-value {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--green-bright);
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.cta-btn {
    background: linear-gradient(45deg, var(--green-main), var(--green-bright));
    color: #000;
    font-family: var(--font-title);
    font-weight: 900;
    padding: 14px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* --- SECCIONES --- */
section { padding: 70px 6%; }

.section-title {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 0.95rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
}

.feature-card i {
    font-size: 2rem;
    color: var(--green-bright);
    margin-bottom: 15px;
}

footer {
    background: rgba(3, 7, 4, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    nav { display: none; }
    .timer-container { gap: 8px; }
    .time-box { min-width: 65px; padding: 8px; }
    .time-value { font-size: 1.4rem; }
}
