/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alata', Segoe UI, Calibri, Futura, verdana, sans-serif;
    font-size: 20px;
    background: linear-gradient(135deg, #b7efcd, #ffbd69);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #363636;
}

/* Header con título y estadísticas */
.header {
    background: #ffbcbc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #363636;
    letter-spacing: 0.1em;
    font-family: 'Saira Stencil One', cursive;
    font-size: 2.2em;
    margin: 0;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}

.game-stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: #4cd3c2;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9em;
}

/* Contenedor principal */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-area {
    width: 100%;
    max-width: 700px;
}

/* Tarjeta del acertijo */
.acertijo-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 3px solid #4cd3c2;
}

.acertijo-titulo {
    color: #ff6b6b;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-family: 'Saira Stencil One', cursive;
}

.acertijo-texto {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #363636;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 15px;
    border-left: 5px solid #4cd3c2;
}

.final-message {
    text-align: center;
    padding: 20px;
}

.final-message h3 {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 15px;
    font-family: 'Saira Stencil One', cursive;
}

.final-message p {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Sección de respuesta */
.respuesta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.respuesta-input {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 1.2em;
    border: 3px solid #4cd3c2;
    border-radius: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.respuesta-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.accion-btn {
    background: #4cd3c2;
    color: #363636;
    border: none;
    padding: 12px 30px;
    font-size: 1.2em;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accion-btn:hover {
    background: #ffbcbc;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.accion-btn:active {
    transform: translateY(0);
}

.verificar-btn {
    background: #ffbd69;
}

.verificar-btn:hover {
    background: #ffbcbc;
}

.siguiente-btn {
    background: #b7efcd;
}

.siguiente-btn:hover {
    background: #ffbcbc;
}

/* Sección de feedback */
.feedback-section {
    min-height: 40px;
    margin: 15px 0;
}

.mensaje-feedback {
    font-weight: bold;
    font-size: 1.2em;
    min-height: 1.5em;
    padding: 10px;
    border-radius: 10px;
}

.correcto {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    animation: pulse 0.5s;
}

.incorrecto {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Botones de navegación */
.navigation-buttons {
    margin-top: 20px;
}

/* Footer */
.footer {
    background: #b7efcd;
    padding: 15px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .game-stats {
        gap: 10px;
    }

    .stat-box {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .acertijo-card {
        padding: 20px;
        margin: 10px;
    }

    .acertijo-titulo {
        font-size: 1.5em;
    }

    .acertijo-texto {
        font-size: 1.2em;
    }

    .respuesta-input {
        padding: 12px;
    }

    .accion-btn {
        padding: 10px 20px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .acertijo-titulo {
        font-size: 1.3em;
    }

    .acertijo-texto {
        font-size: 1.1em;
    }

    .respuesta-input {
        font-size: 1em;
    }
}