/* ======================================================
   ESPACIO PARA NIÑOS Y ADOLESCENTES
   ====================================================== */

.ninos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.ninos-header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    border-radius: 20px;
    margin-bottom: 30px;
}

.ninos-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
}

.ninos-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Navegación */
.ninos-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.ninos-nav .nav-btn {
    padding: 12px 25px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.ninos-nav .nav-btn:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.ninos-nav .nav-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

/* Secciones */
.ninos-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ninos-section.active {
    display: block;
}

.ninos-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* ======================================================
   JUEGOS
   ====================================================== */
.juegos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.juego-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
}

.juego-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.juego-card .juego-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.juego-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.juego-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.juego-card .juego-edad {
    display: inline-block;
    background: #f0f7ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #3498db;
    margin-bottom: 12px;
}

.juego-card .btn-jugar {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.juego-card .btn-jugar:hover {
    background: #2980b9;
}

/* ======================================================
   CUENTOS
   ====================================================== */
.cuentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.cuento-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.cuento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cuento-card .cuento-img {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
}

.cuento-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cuento-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cuento-card .btn-cuento {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cuento-card .btn-cuento:hover {
    color: #2980b9;
}

/* ======================================================
   ACTIVIDADES
   ====================================================== */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.actividad-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.actividad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.actividad-card .actividad-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.actividad-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.actividad-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}


/* ======================================================
   MINDFULNESS
   ====================================================== */
.mindfulness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mindfulness-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.mindfulness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.mindfulness-card .mindfulness-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.mindfulness-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.mindfulness-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mindfulness-card .mindfulness-duracion {
    display: inline-block;
    background: #f0f7ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #3498db;
}

/* ======================================================
   ADOLESCENTES
   ====================================================== */
.adolescentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.adolescente-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.adolescente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.adolescente-card .adolescente-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.adolescente-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.adolescente-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.adolescente-card .btn-adolescente {
    color: #9b59b6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.adolescente-card .btn-adolescente:hover {
    color: #8e44ad;
}

/* ======================================================
   MODALES
   ====================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.modal-cuento {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #e74c3c;
}

/* ======================================================
   JUEGO MEMORY
   ====================================================== */
.memory-game {
    margin-top: 15px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.memory-card {
    aspect-ratio: 1;
    background: #3498db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.memory-card:hover {
    transform: scale(1.03);
}

.memory-card.flipped {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.memory-card.matched {
    background: #27ae60;
    cursor: default;
    opacity: 0.7;
}

.memory-card .card-content {
    display: none;
}

.memory-card.flipped .card-content,
.memory-card.matched .card-content {
    display: block;
}

.memory-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.memory-info .btn-memory {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.memory-info .btn-memory:hover {
    background: #2980b9;
}

/* ======================================================
   ANIMACIONES
   ====================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
    .ninos-header h1 {
        font-size: 1.8rem;
    }
    
    .ninos-nav .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .juegos-grid,
    .cuentos-grid,
    .actividades-grid,
    .mindfulness-grid,
    .adolescentes-grid {
        grid-template-columns: 1fr;
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ======================================================
   MANDALAS
   ====================================================== */
#mandalaContainer {
    background: white;
    border-radius: 12px;
    padding: 10px;
}

.color-btn {
    transition: all 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.15);
}

#mandalaSvg path {
    transition: fill 0.2s ease;
}

#mandalaSvg path:hover {
    opacity: 0.8;
}


/* ======================================================
   ESPACIO PARA ADOLESCENTES
   ====================================================== */

.adolescentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.adolescente-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-top: 4px solid #9b59b6;
}

.adolescente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.adolescente-card .adolescente-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
}

.adolescente-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.adolescente-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.adolescente-card .adolescente-tag {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
    margin-right: 8px;
}

.adolescente-card .adolescente-duracion {
    font-size: 0.7rem;
    color: #999;
}

.adolescente-card .btn-adolescente {
    display: block;
    margin-top: 12px;
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.adolescente-card .btn-adolescente:hover {
    background: #8e44ad;
}

/* Modal Adolescente */
.modal-adolescente {
    max-width: 700px;
}

.modal-adolescente .adolescente-contenido h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #9b59b6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-adolescente .adolescente-contenido .contenido-texto {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.modal-adolescente .adolescente-contenido .contenido-texto h3 {
    color: #9b59b6;
    margin-top: 25px;
    font-size: 1.2rem;
}

.modal-adolescente .adolescente-contenido .contenido-texto ul,
.modal-adolescente .adolescente-contenido .contenido-texto ol {
    padding-left: 25px;
}

.modal-adolescente .adolescente-contenido .contenido-texto li {
    margin: 8px 0;
}

.modal-adolescente .contenido-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.modal-adolescente .contenido-footer .tag-pdf {
    color: #888;
    font-size: 0.85rem;
}

.btn-pdf {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pdf:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .adolescentes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .adolescentes-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-adolescente {
        padding: 15px;
    }
    
    .modal-adolescente .adolescente-contenido h2 {
        font-size: 1.3rem;
    }
}


/* ======================================================
   ESTILOS PARA BOTÓN ADOLESCENTE - CORREGIDO
   ====================================================== */

.adolescente-card .btn-adolescente {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.adolescente-card .btn-adolescente:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.4);
}

.adolescente-card .btn-adolescente:active {
    transform: scale(0.96);
}

/* ======================================================
   ESTILOS PARA MODAL ADOLESCENTE
   ====================================================== */

.modal-adolescente {
    max-width: 700px;
    padding: 35px;
}

.modal-adolescente .adolescente-contenido h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 3px solid #9b59b6;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-adolescente .adolescente-contenido .contenido-texto {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.modal-adolescente .adolescente-contenido .contenido-texto h3 {
    color: #9b59b6;
    margin-top: 28px;
    font-size: 1.2rem;
}

.modal-adolescente .adolescente-contenido .contenido-texto ul,
.modal-adolescente .adolescente-contenido .contenido-texto ol {
    padding-left: 25px;
}

.modal-adolescente .adolescente-contenido .contenido-texto li {
    margin: 8px 0;
}

.modal-adolescente .contenido-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.modal-adolescente .contenido-footer .tag-pdf {
    color: #888;
    font-size: 0.85rem;
}

/* ======================================================
   BOTÓN PDF
   ====================================================== */

.btn-pdf {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.btn-pdf:active {
    transform: scale(0.96);
}


/* ======================================================
   ESTILOS PARA NUEVOS JUEGOS
   ====================================================== */

/* Botones de juegos */
.btn-juego {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: inline-block;
    margin: 5px;
}

.btn-juego:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.btn-juego:active {
    transform: scale(0.96);
}

.btn-juego-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-juego-success:hover {
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

.btn-juego-warning {
    background: linear-gradient(135deg, #f39c12, #d68910);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-juego-warning:hover {
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
}

.btn-juego-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-juego-danger:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.btn-cerrar {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.btn-cerrar:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Diana / Lanzamiento de Emociones */
#diana {
    transition: transform 0.2s ease;
}

#diana:hover {
    transform: scale(1.05);
}

#emocionResultado {
    min-height: 100px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#emocionResultado h3 {
    margin: 5px 0;
}

#emocionResultado p {
    margin: 10px 0 0;
}

/* Rompecabezas */
#puzzleContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 300px;
    margin: 20px auto;
}

#puzzleContainer div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

#puzzleContainer div:hover:not(.colocada) {
    transform: scale(1.05);
    border-color: #3498db;
}

#puzzleContainer div.colocada {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    opacity: 0.7;
    cursor: default;
}

/* Teatro de Emociones */
#teatroEmoji {
    font-size: 5rem;
    transition: all 0.3s ease;
    min-height: 80px;
}

#teatroPista {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    min-height: 80px;
    transition: all 0.3s ease;
}

/* Botones dentro del modal */
.modal .btn-memory {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: inline-block;
}

.modal .btn-memory:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.modal .btn-memory:active {
    transform: scale(0.96);
}


/* ======================================================
   ACTIVIDADES - ESTILOS
   ====================================================== */

.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.actividad-card {
    background: white;
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-top: 4px solid #27ae60;
}

.actividad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.actividad-card .actividad-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.actividad-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.actividad-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.actividad-card .actividad-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #e8f8f0;
    color: #27ae60;
    margin-right: 6px;
}

.actividad-card .actividad-duracion {
    font-size: 0.65rem;
    color: #999;
}

.actividad-card .btn-actividad {
    display: block;
    margin-top: 10px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.actividad-card .btn-actividad:hover {
    background: #229954;
}

/* Modal de actividad */
.actividad-contenido h2 {
    color: #27ae60;
    text-align: center;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 12px;
}

.actividad-contenido .actividad-detalle {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.actividad-contenido .actividad-detalle ol {
    padding-left: 20px;
}

.actividad-contenido .actividad-detalle li {
    margin: 6px 0;
}



/* ======================================================
   BOTÓN DE ACTIVIDADES - MEJORADO
   ====================================================== */

.actividad-card .btn-actividad {
    display: block;
    margin-top: 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
    position: relative;
    overflow: hidden;
}

/* Efecto hover */
.actividad-card .btn-actividad:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

/* Efecto click */
.actividad-card .btn-actividad:active {
    transform: scale(0.95);
}

/* Efecto de brillo al pasar el mouse */
.actividad-card .btn-actividad::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actividad-card .btn-actividad:hover::after {
    opacity: 1;
}

/* Icono del botón */
.actividad-card .btn-actividad i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.actividad-card .btn-actividad:hover i {
    transform: translateX(4px);
}

/* Variante para el modal */
.modal .btn-actividad-modal {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.modal .btn-actividad-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}


/* Variante para actividades (verde) */
.actividad-card .btn-actividad {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.actividad-card .btn-actividad:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

/* Variante para juegos (azul) */
.juego-card .btn-jugar {
    background: linear-gradient(135deg, #3498db, #5dade2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
}

.juego-card .btn-jugar:hover {
    background: linear-gradient(135deg, #2e86c1, #3498db);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

/* Variante para cuentos (naranja) */
.cuento-card .btn-cuento {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.25);
}

.cuento-card .btn-cuento:hover {
    background: linear-gradient(135deg, #d68910, #f39c12);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
}

/* Variante para adolescentes (morado) */
.adolescente-card .btn-adolescente {
    background: linear-gradient(135deg, #9b59b6, #af7ac5);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.25);
}

.adolescente-card .btn-adolescente:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.4);
}



/* ======================================================
   CUENTOS - ESTILOS
   ====================================================== */

.cuentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cuento-card {
    background: white;
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-top: 4px solid #f39c12;
}

.cuento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cuento-card .cuento-img {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 8px;
}

.cuento-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.cuento-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.cuento-card .cuento-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #fef9e7;
    color: #f39c12;
}

.cuento-card .btn-cuento {
    display: block;
    margin-top: 10px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.25);
}

.cuento-card .btn-cuento:hover {
    background: linear-gradient(135deg, #d68910, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
}

.cuento-card .btn-cuento:active {
    transform: scale(0.95);
}

/* Modal de cuento */
.cuento-contenido h2 {
    color: #f39c12;
    text-align: center;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 12px;
}

.cuento-contenido .cuento-texto {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.cuento-contenido .cuento-texto p {
    margin: 12px 0;
}

.cuento-contenido .cuento-texto strong {
    color: #f39c12;
}


/* ======================================================
   JUEGOS - ESTILOS COMPLETOS
   ====================================================== */

.juegos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.juego-card {
    background: white;
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-top: 4px solid #3498db;
}

.juego-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.juego-card .juego-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 8px;
}

.juego-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.juego-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.juego-card .juego-edad {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #ebf5fb;
    color: #3498db;
    margin-bottom: 10px;
}

.juego-card .btn-jugar {
    display: block;
    margin-top: 10px;
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
}

.juego-card .btn-jugar:hover {
    background: linear-gradient(135deg, #2e86c1, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.juego-card .btn-jugar:active {
    transform: scale(0.95);
}

/* Cada juego con color diferente */
.juego-card:nth-child(1) { border-top-color: #3498db; }
.juego-card:nth-child(2) { border-top-color: #e74c3c; }
.juego-card:nth-child(3) { border-top-color: #9b59b6; }
.juego-card:nth-child(4) { border-top-color: #1abc9c; }
.juego-card:nth-child(5) { border-top-color: #f39c12; }
.juego-card:nth-child(6) { border-top-color: #e67e22; }

.juego-card:nth-child(1) .juego-edad { background: #ebf5fb; color: #3498db; }
.juego-card:nth-child(2) .juego-edad { background: #fdedec; color: #e74c3c; }
.juego-card:nth-child(3) .juego-edad { background: #f4ecf7; color: #9b59b6; }
.juego-card:nth-child(4) .juego-edad { background: #e8f8f5; color: #1abc9c; }
.juego-card:nth-child(5) .juego-edad { background: #fef9e7; color: #f39c12; }
.juego-card:nth-child(6) .juego-edad { background: #fdf2e9; color: #e67e22; }

.juego-card:nth-child(1) .btn-jugar { background: linear-gradient(135deg, #3498db, #5dade2); }
.juego-card:nth-child(2) .btn-jugar { background: linear-gradient(135deg, #e74c3c, #ec7063); }
.juego-card:nth-child(3) .btn-jugar { background: linear-gradient(135deg, #9b59b6, #af7ac5); }
.juego-card:nth-child(4) .btn-jugar { background: linear-gradient(135deg, #1abc9c, #48c9b0); }
.juego-card:nth-child(5) .btn-jugar { background: linear-gradient(135deg, #f39c12, #f5b041); }
.juego-card:nth-child(6) .btn-jugar { background: linear-gradient(135deg, #e67e22, #eb984e); }

.juego-card:nth-child(1) .btn-jugar:hover { background: linear-gradient(135deg, #2e86c1, #3498db); }
.juego-card:nth-child(2) .btn-jugar:hover { background: linear-gradient(135deg, #cb4335, #e74c3c); }
.juego-card:nth-child(3) .btn-jugar:hover { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.juego-card:nth-child(4) .btn-jugar:hover { background: linear-gradient(135deg, #16a085, #1abc9c); }
.juego-card:nth-child(5) .btn-jugar:hover { background: linear-gradient(135deg, #d68910, #f39c12); }
.juego-card:nth-child(6) .btn-jugar:hover { background: linear-gradient(135deg, #ca6f1e, #e67e22); }


/* ======================================================
   MINDFULNESS - ESTILOS
   ====================================================== */

.mindfulness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.mindfulness-card {
    background: white;
    padding: 20px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border-top: 4px solid #1abc9c;
}

.mindfulness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.mindfulness-card .mindfulness-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.mindfulness-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 6px;
}

.mindfulness-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.mindfulness-card .mindfulness-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    background: #e8f8f5;
    color: #1abc9c;
    margin-right: 6px;
}

.mindfulness-card .mindfulness-duracion {
    font-size: 0.65rem;
    color: #999;
}

.mindfulness-card .btn-mindfulness {
    display: block;
    margin-top: 10px;
    background: linear-gradient(135deg, #1abc9c, #48c9b0);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.25);
}

.mindfulness-card .btn-mindfulness:hover {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 188, 156, 0.4);
}

.mindfulness-card .btn-mindfulness:active {
    transform: scale(0.95);
}

/* Cada card con color diferente */
.mindfulness-card:nth-child(1) { border-top-color: #1abc9c; }
.mindfulness-card:nth-child(2) { border-top-color: #f39c12; }
.mindfulness-card:nth-child(3) { border-top-color: #e74c3c; }
.mindfulness-card:nth-child(4) { border-top-color: #9b59b6; }
.mindfulness-card:nth-child(5) { border-top-color: #3498db; }
.mindfulness-card:nth-child(6) { border-top-color: #27ae60; }
.mindfulness-card:nth-child(7) { border-top-color: #e67e22; }
.mindfulness-card:nth-child(8) { border-top-color: #2c3e50; }
.mindfulness-card:nth-child(9) { border-top-color: #1abc9c; }
.mindfulness-card:nth-child(10) { border-top-color: #f1c40f; }
.mindfulness-card:nth-child(11) { border-top-color: #e74c3c; }
.mindfulness-card:nth-child(12) { border-top-color: #3498db; }
.mindfulness-card:nth-child(13) { border-top-color: #27ae60; }
.mindfulness-card:nth-child(14) { border-top-color: #9b59b6; }
.mindfulness-card:nth-child(15) { border-top-color: #f39c12; }

/* Modal de mindfulness */
.modal-mindfulness {
    max-width: 650px;
}

.mindfulness-contenido h2 {
    color: #1abc9c;
    text-align: center;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 12px;
}

.mindfulness-contenido .mindfulness-detalle {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.mindfulness-contenido .mindfulness-detalle h3 {
    color: #1abc9c;
    margin-top: 20px;
}

.mindfulness-contenido .mindfulness-detalle ol {
    padding-left: 20px;
}

.mindfulness-contenido .mindfulness-detalle li {
    margin: 6px 0;
}

.mindfulness-contenido .mindfulness-detalle strong {
    color: #2c3e50;
}