/* Reset básico */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Eliminar espacios laterales completamente */
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.col-lg-3, .col-lg-9, .col-lg-4, .col-lg-8, .col-md-4, .col-md-8, .col-md-5, .col-md-7 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Forzar ancho completo */
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilos generales */
h1, h2, p, ul {
    margin: 0;
}

a{
    text-decoration: none;
}

/* Estilos para carrusel de imagenes */
.carousel-image {
    height: 260px;
    object-fit: cover;
}

/* Estilos para cursos test */
.test-image {
    height: 128px;
    object-fit: cover;
}

.image-avatar{
    width: 32px;
    height: 32px;
}

/* Sidebar sticky a la derecha en pantallas grandes */
.sticky-sidebar {
  position: sticky;
  top: 10px;
  align-self: flex-start;
}

/* sidebar en escritorio */
.side-e{
    max-width: 400px;
}

/* Calendario visual mejorado */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-cell {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
}
.calendar-cell.text-muted {
  color: #ccc !important;
}
.calendar-cell.active {
  background: #EA1621;
  color: #fff;
}

/* estilos de borde */
.borde-myred{
    border-color: #EA1621 !important;
}

.side-profile{
    width: 80px;
    height: 80px;
    border-color: #EA1621 !important;
}

.my-underline-red{
    text-underline-offset: 10px;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #EA1621 !important;
}

.bg-icons-sm{
    width: 48px;
    height: 48px;
    background-color: #1A1C88 !important;
}

.calendar-borde{
    border-color: #EA1621 !important;
}

.avatar-side-progress{
    width: 40px; height: 40px;
}

/* Ajuste: barra de progreso más larga y menos redondeada */
.sidebar-progress {
  height: 14px;
  background: #f3f3f3;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(234,22,33,0.08);
  position: relative;
  width: 90%; /* Más larga */
  margin-left: auto;
  margin-right: auto;
}
.sidebar-progress-bar {
  height: 100%;
  width: 30%; /* Cambia este valor para el porcentaje deseado */
  background: linear-gradient(90deg, #EA1621 60%, #ff4d4d 100%);
  border-radius: 3px 0 0 3px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 6px rgba(234,22,33,0.12);
}

.progress-bar-30 {
  width: 30%;
}
.progress-bar-70 {
  width: 70%;
}

/* Barra de progreso para cards (perfil-obj.html) */
.card-progress {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  width: 100%;
}
.card-progress-bar {
  height: 100%;
  background: #1A1C88;
  border-radius: 4px 0 0 4px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar-40 {
  width: 40%;
}
.progress-bar-60 {
  width: 60%;
}
.progress-bar-80 {
  width: 80%;
}
.progress-bar-100 {
  width: 100%;
}

/* ==========================================
   ESTILOS PARA PÁGINA DE SECCIONES
   ========================================== */

/* Contenedor principal de las cartas de sección */
.section-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Efecto hover para las cartas */
.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #EA1621;
    text-decoration: none;
    color: inherit;
}

/* Header de la carta con icono y información */
.section-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #f8f9fa;
    flex-grow: 1;
}

/* Icono de la sección */
.section-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #EA1621 0%, #ff4d4d 100%)!important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.5rem;
    color: #ffffff!important;
}

/* Información de la sección */
.section-info {
    flex-grow: 1;
    min-width: 0; /* Permite que el texto se ajuste */
}

/* Título de la sección */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a!important;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Descripción de la sección */
.section-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Cuerpo de la carta con características y acción */
.section-card-body {
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
}

/* Características de la sección */
.section-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Elementos de características */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #495057;
    background: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.feature-item i {
    font-size: 0.75rem;
    color: #EA1621;
}

/* Área de acción */
.section-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Texto de acción */
.action-text {
    font-weight: 600;
    color: #1A1C88;
    font-size: 0.9rem;
}

/* Icono de flecha */
.section-action i {
    color: #1A1C88;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Efecto hover en la flecha */
.section-card:hover .section-action i {
    transform: translateX(4px);
}

/* ==========================================
   HERO SECTION PARA PÁGINA DE SECCIONES
   ========================================== */

/* Hero section principal */

/* Overlay para mejorar la legibilidad del texto */


/* Título del hero */


/* Subtítulo del hero */
.hero-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   RESPONSIVE DESIGN PARA HERO
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 767.98px) {
    .hero-section {
        height: 180px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .hero-section {
        height: 160px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* ==========================================
   RESPONSIVE DESIGN PARA CARTAS DE SECCIONES
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
    .section-card-header {
        padding: 1.25rem;
    }
    
    .section-card-body {
        padding: 1rem 1.25rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    
    .section-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 767.98px) {
    .section-card {
        border-radius: 6px;
    }
    
    .section-card-header {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-icon i {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .section-description {
        font-size: 0.8rem;
    }
    
    .section-card-body {
        padding: 0.875rem 1rem;
    }
    
    .section-features {
        margin-bottom: 0.875rem;
        gap: 0.375rem;
    }
    
    .feature-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .action-text {
        font-size: 0.85rem;
    }
    
    .section-action i {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .section-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .section-icon {
        align-self: center;
    }
    
    .section-features {
        justify-content: center;
    }
    
    .section-action {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================
   ESTILOS PARA PÁGINA DE TEMARIOS GRATIS
   ========================================== */

/* Sidebar de temarios - columna izquierda */
.temarios-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Lista de opciones de temarios */
.temarios-list {
    margin-top: 1rem;
}

/* Opción individual de temario */
.temario-option {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.temario-option:hover {
    border-color: #1A1C88;
    box-shadow: 0 4px 12px rgba(26, 28, 136, 0.15);
    transform: translateY(-2px);
}

.temario-option.active {
    background: #1A1C88;
    border-color: #1A1C88;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(26, 28, 136, 0.25);
}

/* Contenido de la opción de temario */
.temario-option-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
    min-height: 60px;
}

/* Icono de la bandera/región */
.temario-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.temario-icon i {
    font-size: 1rem;
    color: #1A1C88;
}

.temario-option.active .temario-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.temario-option.active .temario-icon i {
    color: #ffffff;
}

/* Nombre del temario */
.temario-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex-grow: 1;
    color: #1a1a1a;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.temario-option.active .temario-name {
    color: #ffffff;
}

/* Contenido principal - columna derecha */
.temario-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-height: 600px;
}

/* Paneles de contenido de temarios */
.temario-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.temario-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones de temario (General, Específico) */
.temario-section {
    margin-bottom: 2rem;
}

/* Header de sección */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.section-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.25rem;
    color: #1A1C88;
}

.section-title {
    font-weight: 700;
    color: #1A1C88;
    margin: 0;
    font-size: 1.1rem;
}

/* Contenido de la sección */
.section-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Elementos individuales de tema */
.tema-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.tema-item:hover {
    border-color: #EA1621;
    box-shadow: 0 4px 12px rgba(234, 22, 33, 0.15);
    transform: translateY(-1px);
}

/* Información del tema */
.tema-info {
    flex-grow: 1;
}

.tema-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.tema-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Acciones del tema */
.tema-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Badge de gratis */
.badge.bg-danger {
    background-color: #EA1621 !important;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Icono de wallet para contenido premium */
.bi-wallet {
    font-size: 1.1rem;
}

/* Botón de descarga */
.btn-outline-primary {
    border-color: #1A1C88;
    color: #1A1C88;
    transition: all 0.3s ease;
    padding: 0.375rem 0.75rem;
}

.btn-outline-primary:hover {
    background-color: #1A1C88;
    border-color: #1A1C88;
    color: #ffffff;
    transform: scale(1.05);
}

/* ==========================================
   RESPONSIVE DESIGN PARA TEMARIOS
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
    .temarios-sidebar {
        position: static;
        margin-bottom: 2rem;
        padding: 1.25rem;
    }
    
    .temario-content {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 0.875rem 1.25rem;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-icon i {
        font-size: 1.1rem;
    }
    
    .tema-item {
        padding: 0.875rem 1.25rem;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 767.98px) {
    .temarios-sidebar {
        padding: 1rem;
    }
    
    .temario-option-content {
        padding: 0.875rem;
        gap: 0.625rem;
        min-height: 50px;
    }
    
    .temario-icon {
        width: 28px;
        height: 28px;
    }
    
    .temario-icon i {
        font-size: 0.875rem;
    }
    
    .temario-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .temario-content {
        padding: 1.25rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .tema-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .tema-actions {
        justify-content: center;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .temarios-sidebar {
        padding: 0.875rem;
    }
    
    .temario-option-content {
        padding: 0.75rem;
        min-height: 45px;
    }
    
    .temario-icon {
        width: 24px;
        height: 24px;
    }
    
    .temario-icon i {
        font-size: 0.75rem;
    }
    
    .temario-name {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .temario-content {
        padding: 1rem;
    }
    
    .section-header {
        padding: 0.625rem 0.875rem;
    }
    
    .tema-item {
        padding: 0.625rem 0.875rem;
    }
}

/* ==========================================
   ESTILOS PARA PÁGINA DE SELECTOR DE MANUALES
   ========================================== */

/* Selector principal de manuales */
.manual-selector {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.manual-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1A1C88;
    border-radius: 20px 20px 0 0;
}

.selector-option {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 0rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.selector-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1A1C88;
    opacity: 0;
    transition: all 0.3s ease;
}

.selector-option:hover::before {
    opacity: 1;
}

.selector-option:hover {
    border-color: #1A1C88;
    box-shadow: 0 8px 25px rgba(26, 28, 136, 0.12);
    transform: translateY(-4px);
    background: #f8f9fa;
}

.selector-option.active {
    background: #ffffff;
    border-color: #1A1C88;
    border-width: 2px;
    color: #1A1C88;
    box-shadow: 0 12px 30px rgba(26, 28, 136, 0.15);
    transform: translateY(-2px);
}

.selector-option.active::before {
    opacity: 1;
    height: 6px;
}

.option-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e9ecef;
}

.option-icon i {
    font-size: 1.8rem;
    color: #1A1C88;
    transition: all 0.3s ease;
}

.selector-option:hover .option-icon {
    /*background: #1A1C88;*/
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(26, 28, 136, 0.25);
    border:  2px solid #1A1C88;
}

.selector-option:hover .option-icon i {
    color: #ffffff;
}

.selector-option.active .option-icon {
     /*background: #1A1C88;*/
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 28, 136, 0.3);
    border:  2px solid #1A1C88;
}

.selector-option.active .option-icon i {
    color: #ffffff;
}

.option-text {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.selector-option:hover .option-text {
    color: #1A1C88;
    transform: scale(1.02);
}

.selector-option.active .option-text {
    color: #1A1C88;
    font-weight: 800;
}

/* Sidebar de manuales - columna izquierda */
.manuales-sidebar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.manuales-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1A1C88;
    border-radius: 16px 16px 0 0;
}

/* Lista de opciones de manuales */
.manuales-list {
    margin-top: 1.5rem;
}

/* Opción individual de manual */
.manual-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.manual-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 28, 136, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manual-option:hover::before {
    opacity: 1;
}

.manual-option:hover {
    border-color: #1A1C88;
    box-shadow: 0 8px 25px rgba(26, 28, 136, 0.12);
    transform: translateY(-3px);
}

.manual-option.active {
    background: #ffffff;
    border-color: #1A1C88;
    border-width: 2px;
    color: #1A1C88;
    box-shadow: 0 8px 25px rgba(26, 28, 136, 0.15);
    transform: translateY(-2px);
}

.manual-option.active::before {
    opacity: 0;
}

/* Contenido de la opción de manual */
.manual-option-content {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    min-height: 50px;
    position: relative;
    z-index: 2;
}

/* Icono de la bandera/región */
.manual-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.4s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.manual-icon i {
    font-size: 1.2rem;
    color: #1A1C88;
    transition: all 0.3s ease;
}

.manual-option:hover .manual-icon {
    background: #1A1C88;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(26, 28, 136, 0.2);
    border-color: transparent;
}

.manual-option:hover .manual-icon i {
    color: #ffffff;
}

.manual-option.active .manual-icon {
    background: #1A1C88;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 28, 136, 0.25);
}

.manual-option.active .manual-icon i {
    color: #ffffff;
}

/* Nombre del manual */
.manual-name {
    font-weight: 700;
    font-size: 1rem;
    flex-grow: 1;
    color: #2c3e50;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: all 0.3s ease;
}

.manual-option:hover .manual-name {
    color: #1A1C88;
    transform: scale(1.02);
}

.manual-option.active .manual-name {
    color: #1A1C88;
    font-weight: 800;
}

/* Contenido principal - columna derecha */
.manual-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-height: 600px;
}

/* Paneles de contenido de manuales */
.manual-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.manual-panel.active {
    display: block;
}

/* Secciones de manual (General, Específico) */
.manual-section {
    margin-bottom: 2rem;
}

/* Header de sección con funcionalidad de colapso */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-header:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.section-header.expanded {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.section-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 1.25rem;
    color: #1A1C88;
}

.section-title {
    font-weight: 700;
    color: #1A1C88;
    margin: 0;
    font-size: 1.1rem;
    flex-grow: 1;
}

/* Icono de toggle para colapsar/expandir */
.section-toggle {
    font-size: 1.1rem;
    color: #1A1C88;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-header.expanded .section-toggle {
    transform: rotate(180deg);
}

/* Contenido de la sección */
.section-content {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.section-content.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN PARA SELECTOR DE MANUALES
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 991.98px) {
    .manual-selector {
        padding: 2rem;
    }
    
    .selector-option {
        padding: 1.5rem 1rem;
        min-height: 120px;
        margin-bottom: 1rem;
    }
    
    .option-icon {
        width: 48px;
        height: 48px;
    }
    
    .option-icon i {
        font-size: 1.4rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .manuales-sidebar {
        position: static;
        margin-bottom: 2rem;
        padding: 1.25rem;
    }
    
    .manual-content {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 0.875rem 1.25rem;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-icon i {
        font-size: 1.1rem;
    }
    
    .tema-item {
        padding: 0.5rem;
    }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 767.98px) {
    .manual-selector {
        padding: 1.5rem;
    }
    
    .selector-option {
        padding: 1rem;
        min-height: 80px;
        gap: 0.75rem;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
    }
    
    .option-icon i {
        font-size: 1.1rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
    
    .manuales-sidebar {
        padding: 1rem;
    }
    
    .manual-option-content {
        padding: 0.875rem;
        gap: 0.625rem;
        min-height: 50px;
    }
    
    .manual-icon {
        width: 28px;
        height: 28px;
    }
    
    .manual-icon i {
        font-size: 0.875rem;
    }
    
    .manual-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .manual-content {
        padding: 1.25rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .section-icon {
        width: 30px;
        height: 30px;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .tema-item {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .tema-actions {
        justify-content: center;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .manuales-sidebar {
        padding: 0.875rem;
    }
    
    .manual-option-content {
        padding: 0.75rem;
        min-height: 45px;
    }
    
    .manual-icon {
        width: 24px;
        height: 24px;
    }
    
    .manual-icon i {
        font-size: 0.75rem;
    }
    
    .manual-name {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .manual-content {
        padding: 1rem;
    }
    
    .section-header {
        padding: 0.625rem 0.875rem;
    }
    
    .tema-item {
        padding: 0.5rem;
    }
}

/* ==========================================
   MEJORAS DE ACCESIBILIDAD
   ========================================== */

/* Focus visible para navegación por teclado */
.temario-option:focus,
.manual-option:focus,
.section-header:focus {
    outline: 2px solid #EA1621;
    outline-offset: 2px;
}

/* Indicadores visuales mejorados */
.temario-option:hover .temario-icon,
.manual-option:hover .manual-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Transiciones suaves */
.temario-option,
.manual-option,
.tema-item,
.btn-outline-primary,
.section-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   ANIMACIONES ESPECIALES
   ========================================== */

/* Animación de entrada para opciones */
.temario-option,
.manual-option {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Retraso escalonado para animaciones de opciones */
.temario-option:nth-child(1),
.manual-option:nth-child(1) { animation-delay: 0.1s; }
.temario-option:nth-child(2),
.manual-option:nth-child(2) { animation-delay: 0.2s; }
.temario-option:nth-child(3),
.manual-option:nth-child(3) { animation-delay: 0.3s; }
.temario-option:nth-child(4),
.manual-option:nth-child(4) { animation-delay: 0.4s; }
.temario-option:nth-child(5),
.manual-option:nth-child(5) { animation-delay: 0.5s; }
.temario-option:nth-child(6),
.manual-option:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   ESTILOS ESPECÍFICOS PARA BOTÓN VOLVER
   ========================================== */

.btn-primary {
    background-color: #1A1C88;
    border-color: #1A1C88;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #EA1621;
    border-color: #EA1621;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 22, 33, 0.25);
}





