/* START OF FILE css/style.css */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdf5e6;
    color: #4a4a4a;
    text-align: center;
    padding: 20px;
    padding-top: 80px;
    /* Adds space at the top for the fixed logo */
}

/* --- NUEVO ESTILO PARA EL LOGO --- */
.site-logo {
    position: fixed;
    /* Stays in place when scrolling */
    top: 15px;
    left: 15px;
    width: 100px;
    /* Adjust size as needed */
    height: auto;
    z-index: 1001;
    /* Ensures it's above other elements */
    background-color: white;
    border-radius: 50%;
    /* Makes the logo circular */
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #e86a33;
    font-size: 3em;
    font-weight: bold;
}

.container {
    max-width: 950px;
    margin: auto;
}

.section {
    background-color: #fff;
    border: 2px solid #fabd64;
    border-radius: 15px;
    margin: 20px 0;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    background-color: #fabd64;
    color: #4a4a4a;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.6em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.section-title:hover {
    background-color: #f9ab4a;
}

.content {
    display: none;
    padding-top: 20px;
    font-size: 1.1em;
    line-height: 1.6;
}

.clickable {
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border: 3px solid #007bff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    width: 85%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.3s;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #888;
}

.image-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.image-box {
    text-align: center;
    margin: 10px;
    cursor: pointer;
}

.image-box img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 10px;
    border: 2px solid #ddd;
    transition: transform 0.2s;
}

.image-box img:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

/* --- ESTILOS PARA TEXTO LÚDICO --- */
.highlight {
    font-size: 1.3em;
    color: #ff6347;
    /* Color tomate */
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
}

.important-word {
    font-weight: 900;
    /* Extra negrita */
    color: #20b2aa;
    /* Verde mar */
    font-size: 1.2em;
    text-transform: uppercase;
}

.small-detail {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}

/* Animación para la aparición del pop-up */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- NUEVOS ESTILOS PARA EL BOTÓN --- */
.footer-button-container {
    margin-top: 40px;
    text-align: center;
}

.button-link {
    display: inline-block;
    background-color: #e86a33;
    /* Same color as the title */
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-link:hover {
    background-color: #d75a23;
    /* A darker shade */
    transform: scale(1.05);
}

.units-menu-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unit-link {
    display: block;
    background-color: #fabd64;
    color: #4a4a4a;
    padding: 20px 25px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.unit-link:hover {
    background-color: #f9ab4a;
    transform: translateY(-3px);
}

/* START OF FILE css/style.css (añadir al final) */

/* --- ESTILOS BARRA DE PROGRESO --- */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
}

.progress-bar {
    width: 0%;
    height: 15px;
    background-color: #4caf50;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* --- ESTILOS FEEDBACK INSTANTÁNEO --- */
.instant-feedback {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
}

.correct-feedback {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.incorrect-feedback {
    background-color: #fbe9e7;
    border: 2px solid #ff5722;
    color: #c62828;
}

/* --- ESTILOS PUNTUACIÓN DE ESTRELLAS --- */
.star-rating {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 20px;
}

.star.filled {
    color: #ffc107;
    /* Amarillo estrella */
}

/* --- ESTILOS PREGUNTAS DRAG & DROP --- */
.draggable-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 20px;
}

.draggable {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: grab;
    transition: background-color 0.2s;
}

.draggable:hover {
    background-color: #0056b3;
}

.draggable.dragging {
    opacity: 0.5;
}

.droppable-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.droppable-pair {
    text-align: center;
}

.droppable-pair img {
    max-width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.droppable {
    width: 180px;
    height: 50px;
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.droppable.drag-over {
    border-color: #007bff;
    background-color: #e9ecef;
}

/* START OF FILE css/style.css */

/* ... (todos los estilos que ya tenías hasta aquí) ... */

.unit-link:hover {
    background-color: #f9ab4a;
    transform: translateY(-3px);
}

/* --- ESTILOS PARA EL QUIZ --- */
.quiz-box {
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
}

#question-progress {
    font-size: 0.9em;
    color: #888;
    text-align: right;
}

#question-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.quiz-option {
    display: block;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quiz-option:hover {
    background-color: #e9ecef;
}

.quiz-option input {
    margin-right: 15px;
}

/* MEJORA: Estilos para los campos de texto */
.quiz-input {
    width: 95%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.quiz-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}


/* --- ESTILOS BARRA DE PROGRESO --- */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
}

.progress-bar {
    width: 0%;
    height: 15px;
    background-color: #4caf50;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* --- ESTILOS FEEDBACK INSTANTÁNEO --- */
.instant-feedback {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
}

.correct-feedback {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.incorrect-feedback {
    background-color: #fbe9e7;
    border: 2px solid #ff5722;
    color: #c62828;
}

/* --- ESTILOS PUNTUACIÓN DE ESTRELLAS --- */
.star-rating {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 20px;
}

.star.filled {
    color: #ffc107;
    /* Amarillo estrella */
}

/* --- ESTILOS PREGUNTAS DRAG & DROP --- */
.draggable-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 20px;
}

.draggable {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: grab;
    transition: background-color 0.2s;
}

.draggable:hover {
    background-color: #0056b3;
}

.draggable.dragging {
    opacity: 0.5;
}

.droppable-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.droppable-pair {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.droppable-pair img {
    max-width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* NUEVO: Estilo para los objetivos de drop que son texto */
.droppable-text-target {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    height: 100px;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.droppable {
    width: 180px;
    height: 50px;
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.droppable.drag-over {
    border-color: #007bff;
    background-color: #e9ecef;
}