.lesson-mode .progress-container {
    background-color: #aed7c5 !important;
    height: 22px !important; 
    border-radius: 50px; 
    overflow: hidden;
}

.lesson-mode .progress-fill {
    background: linear-gradient(to bottom, #00c170, #00b565) !important; 
    border-radius: 50px; 
    position: relative;
}

.lesson-mode .progress-fill::after {
    content: "";
    position: absolute;
    left: 5px; 
    right: 5px; 
    top: 2px; 
    height: 40%;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    pointer-events: none;
}

/* Mantener el resto del CSS igual */
.lesson-mode .streak-counter {
    display: none !important;
}

.lesson-mode .progress-bounce {
    animation: none;
}

.lesson-mode .skip-button {
    background: white !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    font-weight: 600 !important;
    font-family: 'Nunito', sans-serif;
    border-radius: 30px !important;
    padding: 12px 24px !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    margin-right: 10px;
    min-width: 120px;
}

.lesson-mode .skip-button:hover {
    background: #f8f9fa !important;
    border-color: #ddd !important;
    transform: translateY(-1px);
}

.lesson-mode .skip-button:active {
    transform: translateY(1px);
}

.lesson-mode #fixedFooter {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 40px !important; 
}

@media (min-width: 1025px) {
    .lesson-mode #fixedFooter {
        padding: 15px 60px !important; 
    }
}

.lesson-mode #fixedFooter #skipButton {
  margin-right: 180px !important; /* espacio hacia Verificar */
}

.lesson-mode #fixedFooter #verifyButton,
.lesson-mode #fixedFooter .verify-button {
  margin-left: 180px !important;  /* espacio hacia Saltar */
}

@media (max-width: 800px) {
  .lesson-mode #fixedFooter #skipButton {
    margin-right: 60px !important; 
  }

  .lesson-mode #fixedFooter #verifyButton,
  .lesson-mode #fixedFooter .verify-button {
    margin-left: 60px !important;
  }
}

@media (max-width: 510px) {
  .lesson-mode #fixedFooter #skipButton {
    margin-right: 30px !important;
  }

  .lesson-mode #fixedFooter #verifyButton,
  .lesson-mode #fixedFooter .verify-button {
    margin-left: 30px !important;
  }
}

@media (max-width: 460px) {
    .lesson-mode .skip-button {
        padding: 10px 18px !important;
        font-size: 14px !important;
        min-width: 100px !important;
        height: 38px !important;
        display: block;
        text-align: center;
        line-height: 18px; 
    }
    
    body.lesson-mode #verifyButton {
        min-width: clamp(140px, 45%, 180px);
        height: 42px;
        font-size: 16px;
        border-radius: 25px;
        padding: 12px 20px; 
        display: inline-block;
        text-align: center;
        line-height: 18px;
    }
}

/* ===== ESTILOS PARA PANTALLA DE REPASO ===== */

@media (min-width: 1025px) {
  .edooly-page-review-speech-bubble {
    max-width: 450px !important; 
    font-size: 20px !important;
    padding: 20px 25px !important;
    left: 55% !important; 
    transform: translateX(-50%) !important;
    top: 20% !important;
  }

  .edooly-page-review-lottie-container {
    width: 450px !important; 
    right: 5% !important; 
  }

  .edooly-page-review-lottie-container {
    width: 450px !important;
    height: 450px !important;
  }
}

@media (min-width: 1600px) {
  .edooly-page-review-speech-bubble {
    max-width: 550px !important;
    font-size: 22px !important;
    left: 60% !important;
  }

  .edooly-page-review-lottie-container {
    width: 500px !important;
    right: 10% !important;
  }

  .edooly-page-review-lottie-container {
    width: 500px !important;
    height: 500px !important;
  }
}

.edooly-page-review-container {
    margin: 0;
    padding: 0;
    min-height: calc(100vh - var(--header-height, 0px));
    background: linear-gradient(to bottom, #ffe0b2, #ffffff);
    font-family: 'Nunito Sans', sans-serif;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* SVG Container */
.edooly-page-review-lottie-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.edooly-page-review-lottie-container {
    width: 300px;
    height: 300px;
}

/* Globo de texto */
.edooly-page-review-speech-bubble {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 300px;
    background: #222222;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 15px;
    text-align: left;
    z-index: 10;
    animation: edooly-page-review-float 3s ease-in-out infinite;
    font-family: 'Nunito', sans-serif;
}

.edooly-page-review-speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: #222222 transparent transparent transparent;
}

@keyframes edooly-page-review-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Footer real (parte inferior) */
.edooly-page-review-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #ccc;
    padding: 20px 0;
    text-align: center;
    z-index: 5;
}

.edooly-page-review-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.edooly-page-review-button:hover {
    background-color: #333;
}

/* Nuevo indicador de modo repaso */
.review-mode-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5be47;
    border-radius: 50%;
    z-index: 1001;
    margin-left: auto;
    margin-right: 15px;
    animation: reviewIndicatorPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.review-mode-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes reviewIndicatorPop {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.review-mode-indicator {
    display: none;
}

.lesson-mode.review-active .review-mode-indicator {
    display: flex !important;
}

@keyframes fadeSlideRight {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.edooly-page-review-container {
  animation: fadeSlideRight 0.6s ease-out;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.edooly-page-review-container {
  animation: fadeSlideUp 0.6s ease-out;
}

.edooly-continue-button {
    min-width: 250px;
    height: 45px;
    line-height: 45px;
    font-size: 18px;
    padding: 0 24px;
    background: #444;
    color: white;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    border: none;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 0 #000, 0 6px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    transform: translateY(0);
    user-select: none;
}

.edooly-continue-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 #000, 0 7px 15px rgba(0,0,0,0.15) !important;
    background: #444 !important;
}

.edooly-continue-button:active {
    transform: translateY(4px) !important;
    box-shadow: 0 1px 0 #000 !important;
}

.edooly-continue-button:disabled {
    background: #cccccc !important;
    box-shadow: 0 4px 0 #999999 !important;
    cursor: not-allowed !important;
    transform: translateY(0) !important;
}

/* ===== NUEVOS ESTILOS PARA SISTEMA DE LECCIONES CON PREGUNTAS APILADAS ===== */

/* Contenedor principal de preguntas apiladas */
.questions-stack-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.questions-stack-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    align-items: stretch;
}

/* Separador entre preguntas */
.question-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 40px 0;
    width: 100%;
}

/* Contenedor de pregunta individual SIN tarjeta */
.question-wrapper {
    padding: 25px 0;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
}

.question-wrapper.answered {
    opacity: 0.7;
}

/* Bot��n "Ver explicaci��n" para preguntas respondidas */
.show-explanation-btn {
    min-width: 140px;      
    height: 35px;
    line-height: 35px;
    font-size: 14px;
    padding: 0 16px;
    background: #777;     
    color: white;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    border: none;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 
        0 4px 0 #555,          
        0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    transform: translateY(0);
    user-select: none;
}

.show-explanation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 0 #555, 
        0 7px 15px rgba(0,0,0,0.2);
    background: #7f7f7f; 
}

.show-explanation-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #555;
}

/* Tama�0�9o m��s peque�0�9o en pantallas peque�0�9as */
@media (max-width: 600px) {
    .show-explanation-btn {
        min-width: 110px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
        padding: 0 12px;
    }
}

/* A��n m��s peque�0�9o en m��viles muy peque�0�9os */
@media (max-width: 400px) {
    .show-explanation-btn {
        min-width: 95px;
        height: 28px;
        line-height: 28px;
        font-size: 11px;
    }
}

/* Estilos para elementos desactivados en preguntas respondidas */
.question-wrapper.answered .option,
.question-wrapper.answered button:not(.show-explanation-btn),
.question-wrapper.answered input,
.question-wrapper.answered select,
.question-wrapper.answered textarea,
.question-wrapper.answered .sequence-item,
.question-wrapper.answered .match-item,
.question-wrapper.answered .fraction-cell {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

/* ===== NUEVO SISTEMA TEACH ===== */

/* Contenedor principal del sistema teach */
.edooly_teach_container {
    display: flex;
    gap: 40px;
    align-items: center;
    min-height: 500px;
}

/* Columna izquierda - Contenido teach */
.edooly_teach_left_column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

/* Header con animaci��n reducida */
.edooly_teach_header_with_animation {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.edooly_teach_header_with_animation .question-animation {
    width: 126px !important; /* 30% menos que 180px */
    height: 126px !important;
}

/* Caja de contenido teach */
.edooly_teach_content_box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
}

/* Columna derecha - Pregunta interactiva */
.edooly_teach_right_column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edooly_teach_question_content {
    width: 100%;
    background: transparent;
}

/* Estilos para el contenido teach */
.edooly_teach_content_box h10 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    margin: 20px 0 10px 0;
    display: block;
}

.edooly_teach_content_box h10:first-child {
    margin-top: 0;
}

.edooly_teach_content_box p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.edooly_teach_content_box ul,
.edooly_teach_content_box ol {
    margin: 10px 0 15px 20px;
}

.edooly_teach_content_box li {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

/* ===== DISE�0�5O RESPONSIVO PARA SISTEMA TEACH ===== */

/* Tablets (1080px - 480px) */
@media (max-width: 1080px) and (min-width: 481px) {
    .edooly_teach_container {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }
    
    .edooly_teach_left_column {
        width: 100%;
        gap: 20px;
    }
    
    .edooly_teach_header_with_animation {
        justify-content: center;
        gap: 15px;
    }
    
    .edooly_teach_header_with_animation .question-animation {
        width: 130px !important;
        height: 130px !important;
    }
    
    .edooly_teach_content_box {
        max-height: 300px;
        padding: 25px;
    }
    
    .edooly_teach_right_column {
        width: 100%;
    }
}

/* M��viles (480px y menor) */
@media (max-width: 480px) {
    .edooly_teach_container {
        flex-direction: column;
        gap: 25px;
        min-height: auto;
    }
    
    .edooly_teach_left_column {
        width: 100%;
        gap: 15px;
    }
    
    .edooly_teach_header_with_animation {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .edooly_teach_header_with_animation .question-animation {
        width: 110px !important;
        height: 110px !important;
    }
    
    .edooly_teach_content_box {
        max-height: 250px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .edooly_teach_content_box h10 {
        font-size: 1.2rem;
        margin: 15px 0 8px 0;
    }
    
    .edooly_teach_content_box p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .edooly_teach_right_column {
        width: 100%;
    }
}

/* Ajustes responsivos para el sistema apilado */
@media (max-width: 768px) {
    .questions-stack-container {
        padding: 15px;
    }
    
    .question-wrapper {
        padding: 20px 0;
    }
    
    .question-separator {
        margin: 30px 0;
    }
    
    .questions-stack-inner {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .questions-stack-container {
        padding: 10px;
    }
    
    .question-wrapper {
        padding: 15px 0;
    }
    
    .question-separator {
        margin: 20px 0;
    }
    
    .questions-stack-inner {
        gap: 0;
    }
}

/* Mantener compatibilidad con el sistema actual */
.lesson-mode main {
    padding-bottom: calc(var(--footer-height, 72px) + var(--footer-gap, 16px));
}

.lesson-mode .questions-stack-container {
    padding-bottom: 80px;
}

/* Asegurar que el scroll funcione correctamente */
.lesson-mode body {
    overflow-x: hidden;
}

.lesson-mode .questions-stack-inner {
    padding-bottom: 20px;
}