/* --- Contenedor general de marcapáginas --- */
.bookmarks-container {
    position: absolute;
    top: -71px; /* Altura para que sobresalgan por encima del libro */
    left: 40px;
    right: 40px;
    display: flex;
    pointer-events: none; /* Permite hacer clic solo en los marcapáginas */
    z-index: 10;
    overflow: hidden; 
    height: 70px;    
}

/* --- Estilo base del marcapáginas --- */
.bookmark {
    pointer-events: auto;
    background-color: #52246a;
    color: #fff;
    font-size: 1.266rem;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 24px; 
    border-radius: 10px 10px 0 0; /* Curva superior clásica de pestañas */
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    transform: translateY(18px); /* Posición oculta parcial por defecto */
}

/* --- Posicionamiento específico a la derecha (Para A1) --- */
.bookmark-right {
    margin-left: auto; /* Empuja el marcapáginas totalmente hacia la derecha del contenedor */
    margin-right: 60px; /* Separación opcional desde el borde derecho del libro */
}

/* --- Posicionamiento específico a la izquierda (Para cuando estés en A2) --- */
.bookmark-left {
    margin-right: auto; /* Empuja el marcapáginas totalmente hacia la izquierda */
    margin-left: 60px;  /* Separación opcional desde el borde izquierdo del libro */
}

/* --- Efecto al pasar el ratón (Hover) --- */
.bookmark:hover {
    transform: translateY(0px); /* Sube por completo al hacer hover */
    background-color: #642f82;
}

/* --- Tu contenedor del libro (se mantiene igual para respetar la estructura) --- */
.book_content{
    position: relative;
    width: 92%;
    height: 90vh;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin: 0 auto;
    margin-bottom: 7rem;
    border: 3px solid #551322;
    display: flex;
    gap: 1rem;
    padding: 2rem;
    padding-left:1rem;
    padding-right:0rem;
    align-items: flex-start;
}
.book_index{
width: 22%;
height:100%;
overflow-y: auto;
border-right: 2px solid #551322;    
padding-bottom:1rem;
scrollbar-width: thin;               /* Hace la barra más fina ("thin" o "auto") */
    scrollbar-color: #551322 #f4f4f9;
}
.book_index::-webkit-scrollbar {
    width: 2px; /* <--- Aquí defines lo delgada que la quieres */
}
.book_index::-webkit-scrollbar-track {
    background: #f4f4f9; 
}
.book_index::-webkit-scrollbar-thumb {
    background-color: #551322;
    border-radius: 4px;
}
.book_index ul{
    list-style: none;
}
.book_index a.activo{
    background-color: #f3ad16;
    padding:1px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.book_lesson{
    max-width: 78%;
    max-height:100%;
    overflow-y: auto;
    padding-bottom:1rem;
    padding-right:1rem;
    scrollbar-width: thin;               /* Hace la barra más fina ("thin" o "auto") */
    scrollbar-color: #551322 #f4f4f9;
}
.index_title{
    font-size: 1.266rem;
    color: #52246a;
    text-transform: uppercase;
    background-color: #52246a;
    width: fit-content;
    color:#fff;
    padding:10px;
}
.index_item_alfa, .index_item_beta{
    display: inline-block;
    font-size: 1.125rem;
    text-decoration: none;
    cursor:pointer;
    color: #52246a;
    transition: background-color 0.2s, color 0.2s;
}
.index_item_alfa:hover, .index_item_beta:hover{
    background-color: rgba(85, 19, 34, 0.08);
    color: #bb3925;
}
.index_item_alfa{
    margin-top:15px;
    margin-bottom:5px;
    font-weight:600;
    text-decoration: underline 1px solid #52246a;
    text-underline-offset: 2px;
}
.index_item_beta{
    font-size: 1rem;
    margin-left:1rem;
    margin-bottom:10px;
}

/*CONTENIDO DE ELCTURA*/
.content_title{
    margin-top:1rem;
    margin-bottom:1rem;
    font-size:1.602rem;
    color: #52246a;
}
.content_title_beta{
    margin-top: 20px;
    margin-bottom:10px;
    margin-left: 10px;
    font-size:1.424rem;
    color: #52246a;
}
.content_text{
    margin-top:10px;
    margin-left:10px;
    font-size:1.125rem;
    line-height:1.2;
    color: #551a11;
}
.content_text_stand{
    font-size:1.266rem;
    line-height:1.2;
    color: #fff;
    transition: all 0.3s ease;
}
.img_footer{
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
    font-size:1rem;
    line-height:1.2;
    color: #551a11;
}
.article_img{
    margin: 0 auto;
    margin-top:1rem;
    max-width:70%;
    display: flex;
    flex-direction: column;
    gap:10px;
}
/*PARTE DE EJERCICIOS*/
/* Contenedor principal del carrusel */
.exercise-carousel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* Pista o contenedor interno que simula el carrusel deslizante */
.exercise-carousel {
    display: flex;
    overflow-x: hidden; /* Oculta las preguntas que no están activas */
    scroll-behavior: smooth;
    width: 100%;
}

/* Cada tarjeta de pregunta ocupa el 100% del ancho del carrusel */
.exercise_select_test {
    min-width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.exercise_question{
    margin-bottom:20px;
    font-weight:600;
    color: #52246a;;
}
.exercise_question_test{
    color:#551a11;
    font-size:1.125rem;
}

/* Tus estilos existentes para las opciones */
.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;
    color: #551a11;
    margin-bottom: 8px; /* Espacio entre opciones */
}

.answer-option:hover {
    background-color: #f1f4f8;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.answer-option.es-correcta {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

/* Opción incorrecta que el usuario eligió */
.answer-option.es-incorrecta {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

/* --- Barra inferior de círculos indicadores --- */
.carousel-indicators-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Estilo base de los círculos */
.carousel-indicators-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1; /* Color por defecto / no respondida */
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-indicators-dots .dot:hover {
    transform: scale(1.2);
}

/* Círculo de la pregunta actual (se rellena / destaca) */
.carousel-indicators-dots .dot.active {
    background-color: #551a11; /* Color corporativo o principal de tu app */
    transform: scale(1.1);
}

/* Círculo de preguntas ya hechas / respondidas (sombrías o atenuadas) */
.carousel-indicators-dots .dot.completed {
    background-color: #94a3b8; /* Un tono intermedio para indicar progreso completado */
}
.carousel-indicators-dots .dot-star {
    background-color: transparent !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8; /* Color inactivo por defecto */
    padding: 0;
}

.carousel-indicators-dots .dot-star.active {
    color: #551a11; /* Color activo cuando estás en la tarjeta final */
    transform: scale(1.1);
}

.carousel-indicators-dots .dot-star svg {
    width: 14px;
    height: 14px;
}
.results-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}
.btn-clean-repeat {
    background-color: #e2e8f0;
    color: #334155;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}
.btn-clean-repeat:hover {
    background-color: #cbd5e1;
}
.results-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.results-content {
    width: 100%;
}

.results-title {
    color: #551a11;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.results-message {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.results-score {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d97706; /* Tono dorado/amarillo oscuro legible */
    margin-bottom: 1.5rem;
}

.btn-close-review {
    background-color: #4a2c59; /* Tono morado corporativo de tu web */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.btn-close-review:hover {
    background-color: #3b2246;
}
.margina{
    padding-top:4rem;
    padding-bottom:1.5rem;
    color: #fff;
    padding: 8px;
    width: fit-content;
    background-color: #bb3925;
    margin-top:2rem;
    margin-bottom:2rem;
}
.exercise_fill{
    padding:2rem;
    margin-bottom:2rem;
}
.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 */
}
#btn-corregir, #btn-limpiar-texto{
    margin-top:2rem;
}
.button-space {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Botón Corregir */
#btn-corregir {
    background-color: #52246a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

#btn-corregir:hover {
    background-color: #3b1b4b;
}

/* Botón Limpiar y repetir */
#btn-limpiar-texto {
    background-color: #e2e8f0;
    color: #334155;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

#btn-limpiar-texto:hover {
    background-color: #cbd5e1;
}

/* Inputs */
.exercise_input_text {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.go_lesson {
    margin:0 auto;
    color:#52246a;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* O el ancho que necesites */
}

.go_lesson p {
    font-size:1.266rem;
    margin: 0;
}

.go_lesson a {
    text-decoration: underline;
    color: inherit; /* Opcional: mantiene el color heredado del texto */
}
.oculto{
    cursor: none;
    pointer-events: none;
    opacity:0;
}