* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f7f9;
    color: #333;
    font-size: 20px;
    line-height: 1.6;
}

/* CONTENEDOR */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* HEADER */
.header {
    background: #4CAF50;
    color: rgb(17, 10, 61);
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li a {
    color: rgb(17, 10, 61);
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
}

.header {
    background: #f4e8d3;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-txt h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.header-txt p {
    font-size: 18px;
}

button, .btn, .btn-1 {
    font-size: 18px;
    padding: 12px;
}

.btn-1 {
    display: inline-block;
    margin-top: 15px;
    background: white;
    color: #4CAF50;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

/* NOSOTROS */
.about {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100vh;
}

.about img {
    width: 100%;
    border-radius: 10px;
}

/* SERVICIOS */
.servicios {
    text-align: center;
    padding: 40px 0;
    background: #f4e8d3;
}

.servicios-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.servicio-1 {
    background: rgb(250, 250, 249);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* FORMULARIO */
.formulario {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    background: #f4e8d3;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    
}

textarea {
    resize: none;
    height: 100px;
}

.btn {
    background: #4CAF50;
    color: white;
    cursor: pointer;
    border-radius: 25px;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 24px;
    padding: 12px 15px;
    border-radius: 50%;
    text-decoration: none;
}

#ejerciciosCognitivos {
    background: #f4e8d3;
    color: rgb(17, 10, 61);
    text-align: center;
    font-size: 26px;

}

/* FOOTER */
.footer {
    background: #2e7d32;
    color: white;
    text-align: center;
}

.juego {
    text-align: center;
    padding: 40px 0;
}

.color-btn {
    width: 100px;
    height: 100px;
    margin: 10px;
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
    opacity: 0.7;
}

#red { background: #f01d05; }
#blue { background: #3498db; }
#green { background: #01ac48; }
#yellow { background: #f1c40f; }

.active {
    opacity: 1 !important;
    border: 4px solid #000;
}

#shapes {
    margin-top: 20px;
}

.shape {
    width: 80px;
    height: 80px;
    margin: 10px;
    display: inline-block;
    border-radius: 10px;
    cursor: pointer;
}



/* variantes */
.circle {
    border-radius: 50%;
}

.square {
    border-radius: 10px;
}

#cards {
    margin-top: 20px;
}

.card {
    width: 80px;
    height: 80px;
    background: #3498db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    font-size: 30px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.card.open {
    background: #2ecc71;
}

#respuesta {
    padding: 10px;
    font-size: 18px;
    width: 200px;
    text-align: center;
}

#zonaJuego {
    position: relative;
    width: 390px;   /* +30% */
    height: 260px;  /* +30% */
    border: 2px solid #333;
    margin: 20px auto;
    overflow: hidden;
    background-color: #3498db;
}

/* objetivo */
#objetivo {
    position: absolute;
    top: 50px;
    left: 0;
    font-size: 30px; /* tamaño del avión */
}

/* bala */
#bala {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
}

#explosion {
    position: absolute;
    font-size: 40px;
    display: none;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: boom 0.4s ease;
}

@keyframes boom {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }

    /* MENU */
    .menu {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar ul li a {
        margin-left: 0;
        font-size: 16px;
    }

    .logo {
        font-size: 22px;
    }

    /* HEADER */
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-content img {
        width: 100%;
        max-width: 350px;
    }

    .header-txt h1 {
        font-size: 26px;
    }

    .header-txt p {
        font-size: 16px;
    }

    .btn-1 {
        font-size: 16px;
        padding: 10px 18px;
    }

    /* ABOUT */
    .about {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 40px 0;
    }

    .about img {
        max-width: 100%;
    }

    /* SERVICIOS */
    .servicios-content {
        grid-template-columns: 1fr;
    }

    .servicio-1 {
        padding: 15px;
    }

    /* FORMULARIO */
    .formulario {
        padding: 30px 15px;
    }

    input,
    textarea {
        width: 100%;
        font-size: 16px;
    }

    .btn {
        width: 100%;
    }

    /* JUEGOS */

    .color-btn {
        width: 70px;
        height: 70px;
    }

    .shape {
        width: 60px;
        height: 60px;
    }

    .card {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    #respuesta {
        width: 100%;
        max-width: 250px;
    }

    /* ZONA JUEGO */
    #zonaJuego {
        width: 95%;
        height: 220px;
    }

    #objetivo {
        font-size: 24px;
    }

    #bala {
        font-size: 16px;
    }

    /* TITULOS */
    #ejerciciosCognitivos {
        font-size: 22px;
        padding: 15px;
    }

    /* WHATSAPP */
    .whatsapp {
        font-size: 20px;
        padding: 10px 13px;
        bottom: 15px;
        right: 15px;
    }

    /* FOOTER */
    .footer {
        font-size: 14px;
        padding: 20px 10px;
    }
}