/*
Theme Name: Dindali Theme
Theme URI: https://dindali.com
Author: Carolina Rodríguez
Description: Tema infantil ultra-optimizado, rápido y adaptable para Dindali.com
Version: 1.0.0
*/

/* 1. RESET UNIVERSAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2D3748;
    background-color: #F7FAFC;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 2. CABECERA Y NAVEGACIÓN */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #FF6B6B;
}

.brand-logo .dot {
    color: #4FD1C5;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: #4A5568;
    padding: 0.5rem 0.9rem;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background-color: #FFF5F5;
    color: #FF6B6B;
}

/* 3. CONTENEDORES Y TARJETAS */
.main-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.reading-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.story-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    color: #2B6CB0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-hero-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.story-body {
    font-size: 1.15rem;
    color: #2D3748;
    line-height: 1.8;
}

.story-body p {
    margin-bottom: 1.5rem;
}

/* 4. MINIJUEGOS MATEMÁTICOS */
.game-container {
    background: #FFFFFF;
    border: 3px solid #E2E8F0;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 550px;
    margin: 2rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.game-header h3 {
    font-family: 'Quicksand', sans-serif;
    color: #2B6CB0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.game-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.game-btn {
    background: #EDF2F7;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-btn.active, .game-btn:hover {
    background: #FF6B6B;
    color: #FFFFFF;
}

.game-board {
    background: #F7FAFC;
    border-radius: 18px;
    padding: 1.5rem;
}

.game-score {
    font-weight: 800;
    color: #D69E2E;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.game-question {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1.5rem;
}

.game-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.opt-btn {
    background: #4FD1C5;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 209, 197, 0.3);
    transition: transform 0.15s ease;
}

.opt-btn:active {
    transform: scale(0.92);
}

.game-feedback {
    min-height: 28px;
    font-weight: 700;
    font-size: 1.1rem;
}

.game-feedback.correct { color: #38A169; }
.game-feedback.wrong { color: #E53E3E; }

/* 5. PIE DE PÁGINA */
.footer {
    background: #FFFFFF;
    border-top: 2px solid #EDF2F7;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #718096;
    margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 0.8rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .reading-card { padding: 1.5rem; }
    .story-title { font-size: 1.7rem; }
}