.exercise-badge {
  position: fixed;
  top: 100px; /* Ajusta este valor según la altura de tu nav */
  right: 30px;
  background: #ffffff;
  color: #bb3925;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 1999;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Contenedor de la barra de progreso de lectura --- */
.reading-progress-container {
  position: fixed;
  top: 80px; /* Justo debajo de tu nav (ajusta según los px de tu barra de navegación) */
  left: 0;
  width: 100%;
  height: 4px;
  background: #f3ad16;
  z-index: 998;
}

/* Relleno de la barra */
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: #ec2e11; /* El color índigo que usas en tus botones */
  transition: width 0.1s ease-out;
}
#top{
    position:sticky !important;
    top:0;
    z-index: 1000;
}
.exercise_display{
    height: auto;
    padding: 5rem;
    max-width:100%;
}
.exercise_window{
    margin: 0 auto;
    width:90%;
    border-radius: 20px;
    height: auto;
    padding:4rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    margin-bottom:5rem;
    background-color: #fff;
}
.exercise_title{
    color:#bb3925;
    font-size:2.027rem;
    font-weight:600;
    text-decoration: underline 2px #bb3925;
    text-underline-offset: 4px;
    margin-bottom:2rem;
}
.exercise_select_test, .exercise_select_pic, .exercise_select_bloq, .exercise_select_audio, .exercise_select_img, .exercise_select_pic, .exercise_fill{
    padding:2rem;
    margin-bottom:2rem;
}
.separador {
    border: none;
    height: 1px;               /* Grosor de la línea */
    background-color: #e1e8ed; /* Color del separador */
    margin: 2rem 0;          /* Espacio arriba y abajo */
}
.exercise_input_text {
  border: none;
  border-bottom: 2px solid #52246a;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
  color: #bb3925;
  width: 90px;
  padding: 2px 4px;
  margin: 0 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.exercise_input_text:focus {
  border-color: #bb3925; /* El mismo tono índigo que usas en los botones */
}
.exercise_question{
    margin-bottom:1rem;
}
.img_show{
    margin: 0 auto;
    max-width:300px;
    padding: 1rem;
}
.img_show_content{
    display:block;
    width: 90%;
    height: auto;
    border-radius: 2px;
    overflow:hidden;
    object-fit: contain;
    margin-bottom: auto;
}
.exercise_explanation{
color:#52246a;
font-size:1.266rem;
}
.exercise_question{
    color:#551a11;
    font-size:1.125rem;
}
.exercise_answers{
    padding:1rem;
}
.exercise_answers-img {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
}
.answer-option-img, .answer-option-bloq {
    display: flex;
    gap:0.2rem;
    overflow:hidden;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribuye el radio arriba y la foto abajo */
    width: 200px;
    height: 200px;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.answer-option-img:hover {
    background-color: #f1f4f8;
    border-color: #cbd5e1;
    transform: translateY(-3px);
}
.answer-option-bloq:hover{
     background-color: #f1f4f8;
    border-color: #cbd5e1;
    transform: translateY(-3px);
}
.answer_text{
    font-size:1rem;
    overflow:hidden;
    object-fit: contain;
    margin-bottom: auto;
}
.answer_img_item {
    display:block;
    width: 90%;
    height: auto;
    border-radius: 2px;
    overflow:hidden;
    object-fit: contain;
    margin-bottom: auto;
}
.answer-option {
    display: flex;
    align-items: center;
    max-width:100%;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem; /* <--- Cambia esto para hacer la letra más grande o pequeña */
    color: #551a11;
}
.answer-option:hover {
    background-color: #f1f4f8;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
/*answer-option-bloq*/
.answer-option.es-correcta {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724;
}
.answer-option.es-incorrecta {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24;
}
.answer-option-img.es-correcta {
    background-color: #d4edda !important;
}
.answer-option-img.es-incorrecta {
    background-color: #f8d7da!important;
    border-color: #f5c6cb !important;
}
.answer-option-bloq.es-correcta {
    background-color: #d4edda !important;
}
.answer-option-bloq.es-incorrecta {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.audio-player {
  display: flex;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom:2rem;
  padding:1rem;
  align-items: center;
  gap: 15px;
  background: #f3ad16;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 350px;
}

/* Botón personalizado */
.play-btn {
  background: #52246a;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease;
}
.play-btn:hover {
  background: #bb3925;
}
.audio-info {
  flex-grow: 1;
}
.audio-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #551a11;
  margin-bottom: 6px;
}

.progress-bar {
  background: #e5e7eb;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}
.progress {
  background: #52246a;
  height: 100%;
  width: 0%;
  transition: width 0.5s linear;
}

#btn-corregir{
  font-size: 1.125rem;
  border: none;
  font-weight: 400;
  font-family: "Varela Round", sans-serif;
  display: block;
  color: #fff;
  padding: 1rem;
  border-radius: 1.5rem;
  transition: transform 0.3s;
  transition: background-color 0.3s;
  background-color: #52246a;
  text-decoration: none;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
#btn-corregir:hover{
    background-color: #bb3925;
  cursor: pointer;
}
.social-share-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-title {
  font-size: 13px;
  font-weight: 600;
  color: #52246a;
  text-align: center;
  writing-mode: horizontal-tb; /* Cambia a vertical-rl si prefieres el texto girado en vertical */
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Estilo específico para ajustar el SVG de X dentro del botón */
.social-icon .x-logo {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Colores de marca y correo */
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.telegram { background-color: #229ed9; }
.social-icon.x-twitter { background-color: #000000; }
.social-icon.linkedin { background-color: #0a66c2; }
.social-icon.facebook { background-color: #1877f2; }
.social-icon.email { background-color: #52246a; }

/* Contenedor de botones en línea y centrados */
.button-space {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    text-align:center;
}

/* Estilo base compartido para ambos botones */
#btn-corregir, #btn-limpiar-texto {
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

/* Botón de Corregir */
#btn-corregir {
    background-color: #52246a;
    color: white;
}

#btn-corregir:hover {
    background-color: #3b1b4b;
}

/* Botón de Limpiar y repetir */
#btn-limpiar-texto {
    background-color: #e2e8f0;
    color: #334155;
}

#btn-limpiar-texto:hover {
    background-color: #cbd5e1;
}

/* Estilo base para los inputs de texto en los fill-in-the-blanks */
.exercise_input_text {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}