/* ==========================================================================
   ESTILOS COLORIDOS Y TEMÁTICA DECORADA DE PURACÉ
   ========================================================================== */

:root {
    --primary: #2d6a4f;
    --primary-light: #52b788;
    --secondary: #d97706;
    --secondary-hover: #b45309;
    --accent: #06b6d4;
    --bg-dark: #090d16;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-color: #0f172a;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 60%, #070a12 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
}

.screen {
    display: none;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    backdrop-filter: blur(16px);
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Encabezado y Créditos */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 34px;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.game-subtitle {
    font-size: 15px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 22px;
}

.credits-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: 5px solid var(--secondary);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    margin-bottom: 22px;
}

.credits-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 13px;
    text-transform: uppercase;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.credit-item { display: flex; flex-direction: column; }
.credit-item .label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; }
.credit-item .value { font-size: 13px; color: #1e293b; font-weight: 700; }
.credit-item .value.highlight { color: var(--primary); font-size: 15px; }

.instructions {
    font-size: 14px;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Interfaz del Juego */
.game-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.badge-info {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    color: #334155;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart-icon { color: var(--danger); animation: heartBeat 1.5s infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.star-icon { color: #f59e0b; }

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 22px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* Tarjeta de Pregunta e Ilustración */
.question-card {
    text-align: left;
    transition: all 0.4s ease;
    padding: 20px;
    border-radius: 18px;
}

/* Temas de Fondo de las Preguntas */
.theme-volcano { background: linear-gradient(135deg, rgba(254, 243, 199, 0.7) 0%, rgba(254, 215, 170, 0.7) 100%); border: 2px solid #f97316; }
.theme-water { background: linear-gradient(135deg, rgba(224, 242, 254, 0.7) 0%, rgba(186, 230, 253, 0.7) 100%); border: 2px solid #0284c7; }
.theme-paramo { background: linear-gradient(135deg, rgba(220, 252, 231, 0.7) 0%, rgba(187, 247, 208, 0.7) 100%); border: 2px solid #16a34a; }
.theme-culture { background: linear-gradient(135deg, rgba(243, 232, 255, 0.7) 0%, rgba(233, 213, 255, 0.7) 100%); border: 2px solid #9333ea; }

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.question-number { font-size: 12px; font-weight: 800; color: #475569; text-transform: uppercase; }
.category-badge { background: #ffffff; color: #0f172a; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 12px; border: 1px solid #cbd5e1; }

.question-media-card {
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 18px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.media-icon { font-size: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.media-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.question-text {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.45;
    font-weight: 700;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--primary);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.option-btn.correct { background: #dcfce7 !important; border-color: var(--success) !important; color: #14532d !important; }
.option-btn.incorrect { background: #fee2e2 !important; border-color: var(--danger) !important; color: #7f1d1d !important; }

.hint-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botones */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #1b4332 100%); color: white; }
.btn-primary:hover { transform: translateY(-3px); }
.btn-secondary { background: linear-gradient(135deg, var(--secondary) 0%, #b45309 100%); color: white; }

.icon-celebration { font-size: 65px; color: var(--primary); margin-bottom: 15px; }
.icon-celebration.gold { color: #f59e0b; }
.icon-celebration.danger { color: var(--danger); }

.final-score-box { background: #f8fafc; border-radius: 18px; padding: 22px; margin: 22px 0; border: 2px dashed #cbd5e1; }
.final-score-box h1 { font-size: 52px; color: var(--primary); font-weight: 900; }