/**
 * CSS definitivo para Acuecar Kids
 * Este archivo consolida todos los estilos necesarios
 */

/* Estilos para el modal y encabezados */
.modal-header, h4, .close {
    background-color: #0c1f3a;
    color: white !important;
    text-align: center;
    font-size: 30px;
}

.modal-footer {
    background-color: #f9f9f9;
}

/* Estilos para imágenes y contenedores */
.sombra1 {
    margin-right: 40px;
}

.imagen-con-espacio {
    margin-bottom: 20px;
    margin-right: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.imagen-con-espacio.left {
    margin-right: 20px;
}

/* Contenedor de imagen y texto */
.imagen-texto-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.texto-al-lado {
    flex-grow: 1;
}

/* Líneas divisorias horizontales */
#horizontal-line {
    display: flex;
    width: 100%;
    height: 20px;
    background-color: #9CBF50;
    border-radius: 10px;
}

#horizontal-l {
    display: flex;
    width: 100%;
    height: 20px;
    background-color: transparent;
    border-radius: 10px;
}

.horizontal-divider {
    margin: 30px 0;
}

/* Contenedor de juegos */
.juegos-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.juegos {
    text-align: center;
    margin: 10px;
    flex: 0 1 45%;
    max-width: 520px;
    box-sizing: border-box;
}

.juegos h3 {
    margin-bottom: 10px;
}

.sombra {
    border-radius: 8px;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.15);
}

.juegosn {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;                                 
}

/* Botón de agua */
.button-container {
    text-align: center;
    margin: 20px 0;
}

.btn-water {
    background-color: #17a2ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-water:hover {
    background-color: #0d6efd;
    transform: scale(1.1);
}

.icono {
    width: 30px;
    height: auto;
    margin-left: 10px;
    vertical-align: middle;
}

/* Modal y sistema de dibujo */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: relative;
}

.close-button {
    color: rgba(255, 255, 255, 0.7);
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.close-button:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.drawing-canvas {
    position: absolute;
    z-index: 10000;
    pointer-events: auto;
    cursor: url('../images/acuecarkids/lapiz.svg'),crosshair;
}

.modal.drawing-active,
.modal.drawing-active .close-button {
    cursor: url('../images/acuecarkids/lapiz.svg'),crosshair ;!important;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .imagen-texto-container {
        flex-direction: column;
    }
    
    .imagen-con-espacio.left {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .juegos {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .close-button {
        font-size: 50px;
        top: 10px;
        right: 20px;
    }
    
    .btn-water {
        width: 80%;
        max-width: 300px;
        padding: 15px;
    }
}

/* Reemplaza las líneas del cursor personalizado con esto: */

