* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #263238;
}

.contenedor {
    width: min(1100px, 94%);
    margin: auto;
    padding: 30px 0 40px;
}

/* =========================
           CABECERA
        ========================= */

.cabecera {
    text-align: center;
    margin-bottom: 30px;
}

    .cabecera h1 {
        margin: 0 0 10px;
        font-size: 38px;
    }

    .cabecera p {
        margin: 0 0 20px;
        font-size: 20px;
    }

/* =========================
           MARCADOR
        ========================= */

.marcador {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 18px;
    font-weight: bold;
}

/* =========================
           PALABRAS EN INGLES
        ========================= */

.palabras {
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.palabra {
    padding: 15px 25px;
    background: white;
    border: 2px solid #cfd8dc;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
    font-size: 20px;
    font-weight: bold;
    cursor: grab;
    user-select: none;
}

    .palabra:hover {
        transform: translateY(-2px);
    }

    .palabra.arrastrando {
        opacity: .45;
    }

/* =========================
           IMAGENES
        ========================= */

.frutas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}

.fruta {
    min-height: 250px;
    background: white;
    border: 3px dashed #cfd8dc;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: .2s;
}

    .fruta img {
        width: 150px;
        height: 150px;
        object-fit: contain;
        pointer-events: none;
    }

/* NOMBRE EN ESPAŅOL */

.nombre-espanol {
    margin-top: 10px;
    font-size: 21px;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================
           DESTINO ACTIVO
        ========================= */

.fruta.destino-activo {
    border-color: #4caf50;
    background: #f0fff3;
    transform: scale(1.04);
}

/* =========================
           CORRECTO
        ========================= */

.fruta.correcta {
    border-color: #4caf50;
    background: #e8f8ec;
}

/* =========================
           INCORRECTO
        ========================= */

.fruta.incorrecta {
    animation: error .35s;
}

@keyframes error {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* =========================
           MENSAJE
        ========================= */

.mensaje {
    min-height: 50px;
    margin-top: 25px;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

/* =========================
           BOTON
        ========================= */

.btn-reiniciar {
    display: block;
    margin: 15px auto 0;
    padding: 14px 28px;
    border: 0;
    border-radius: 12px;
    background: #263238;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

    .btn-reiniciar:hover {
        opacity: .9;
    }

/* =========================
           MOVIL
        ========================= */

@media (max-width: 600px) {

    .cabecera h1 {
        font-size: 30px;
    }

    .cabecera p {
        font-size: 17px;
    }

    .frutas {
        grid-template-columns: repeat(2, 1fr);
    }

    .fruta {
        min-height: 190px;
    }

        .fruta img {
            width: 105px;
            height: 105px;
        }

    .nombre-espanol {
        font-size: 17px;
    }
}
