body.kids-theme {
    background: linear-gradient(135deg, #FFF3E0 0%, #E0F7FA 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.game-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    overflow: hidden;
    min-height: 600px;
    position: relative;
}

.game-section { display: none !important; padding: 20px; animation: popIn 0.5s ease-out; }
.game-section.active { display: block !important; }

.kids-nav .nav-link {
    background: white;
    color: #777;
    border-radius: 50px;
    margin: 5px;
    padding: 10px 20px;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.kids-nav .nav-link:hover { transform: translateY(-3px); }
.kids-nav .nav-link.active {
    background: linear-gradient(45deg, #FF9800, #FF5722);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.memorama-grid {
    display: grid;
    gap: 10px;
    margin: 0 auto;
    perspective: 1000px;
    max-width: 800px;
}
.grid-lvl-1 { grid-template-columns: repeat(4, 1fr); max-width: 500px; } 
.grid-lvl-2 { grid-template-columns: repeat(4, 1fr); max-width: 600px; } 
.grid-lvl-3 { grid-template-columns: repeat(5, 1fr); max-width: 700px; } 

.memory-card {
    height: 100px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.4s;
}
.memory-card.flip { transform: rotateY(180deg); }
.memory-card .face {
    position: absolute; width: 100%; height: 100%; border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    backface-visibility: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.face-front { background: white; transform: rotateY(180deg); font-size: 2.5rem; border: 2px solid #00BCD4; }
.face-back { background: linear-gradient(135deg, #673AB7, #9C27B0); color: white; font-size: 1.5rem; transform: rotateY(0deg); }


#areaFrutas {
    height: 400px;
    background: #F1F8E9;
    border: 3px dashed #8BC34A;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}
.fruta-voladora { 
    position: absolute; 
    font-size: 3.5rem; 
    
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;        
    
    animation: popIn 0.3s; 
    cursor: pointer; 
}
@keyframes popIn {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    60% {
        transform: scale(1.1); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.fruta-voladora { 
    position: absolute; 
    font-size: 3.5rem; 
    user-select: none;     
    -webkit-user-select: none; 
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    z-index: 100;           
    transition: transform 0.1s; 
}

.fruta-voladora:active {
    transform: scale(0.9);
}

.trivia-emoji { font-size: 6rem; animation: float 3s infinite ease-in-out; }
.btn-trivia { font-size: 1.2rem; padding: 15px; border-width: 2px; transition: 0.2s; }
.btn-trivia:hover { transform: scale(1.02); }

.reciclaje-area {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.item-basura-container {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float 3s infinite ease-in-out;
}

.basura-icon { font-size: 5rem; line-height: 1; }
.basura-name { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #555; 
    background: #f0f0f0; 
    padding: 5px 15px; 
    border-radius: 15px;
    margin-top: 10px;
}

.bin-container {
    transition: transform 0.2s;
    cursor: pointer;
    border: 4px solid transparent;
    border-radius: 20px;
    padding: 15px;
}
.bin-container:hover { transform: scale(1.05); }
.bin-container:active { transform: scale(0.95); }

.bin-organic { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; }
.bin-organic h5 { font-weight: bold; }


.bin-inorganic { background: #E3F2FD; color: #1565C0; border-color: #BBDEFB; }
.bin-inorganic h5 { font-weight: bold; }


.feedback-box {
    min-height: 50px;
    font-size: 1.1rem;
    font-weight: 600;
}

.simon-board { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 300px; margin: 0 auto; }
.simon-btn {
    height: 120px; border-radius: 20px; opacity: 0.6; cursor: pointer;
    border: 4px solid rgba(0,0,0,0.1); transition: 0.1s;
}
.simon-btn:active, .simon-btn.active { opacity: 1; transform: scale(0.95); box-shadow: 0 0 20px currentColor; }

.comic-cover {
    height: 250px; background: #eee; border-radius: 10px; overflow: hidden;
    position: relative; transition: transform 0.3s;
}
.comic-cover img { width: 100%; height: 100%; object-fit: cover; }
.comic-cover:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.book-cover {
    height: 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
    position: relative;
}
.book-cover:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.book-cover-art { height: 180px; width: 100%; overflow: hidden;  display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #eee; font-size: 5rem; color: white; }
.book-cover-art i {font-size: 5rem; color: white;}
.book-info { padding: 15px; text-align: left; }

.comic-page-container {
    min-height: 400px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 5px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.page-image { font-size: 8rem; margin-bottom: 20px; animation: float 4s infinite ease-in-out; }
.page-text { font-size: 1.2rem; color: #555; line-height: 1.6; }
.page-number { position: absolute; bottom: 10px; right: 20px; font-weight: bold; color: #ccc; }


.comic-nav-btn {
    width: 50px; height: 50px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; transition: 0.2s;
}