/* ===================================
   ESTILOS PARA PÁGINA DE NOMBRAMIENTOS
   Red de Salud Coracora
   =================================== */

/* ===== TARJETAS DE PROCESOS ===== */
.process-card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    margin-bottom: 30px !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
}

.process-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* ===== ENCABEZADOS DE TARJETAS ===== */
.card-header-custom {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px !important;
    border: none !important;
}

.card-header-custom h3 {
    margin: 0 !important;
    font-weight: 600 !important;
}

.card-header-custom i {
    margin-right: 10px !important;
}

/* ===== ELEMENTOS DE DOCUMENTOS ===== */
.document-item {
    border-left: 4px solid #3498db !important;
    margin: 10px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 0 8px 8px 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.document-item:hover {
    background: #e3f2fd !important;
    border-left-color: #2196f3 !important;
    transform: translateX(5px) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2) !important;
}

.document-item a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: block !important;
}

.document-item a:hover {
    color: #3498db !important;
    text-decoration: none !important;
}

.document-item i {
    margin-right: 8px !important;
}

/* ===== BADGES DE ESTADO ===== */
.status-badge {
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.status-vigente {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.status-finalizado {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* ===== ELEMENTOS FINALIZADOS CON ESTILO DANGER ===== */
.document-item.finalizado {
    border-left-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.document-item.finalizado:hover {
    background: #ffe6e6 !important;
    border-left-color: #c82333 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.document-item.finalizado a {
    color: #721c24 !important;
}

.document-item.finalizado a:hover {
    color: #dc3545 !important;
}

.document-item.finalizado .date-info {
    color: #dc3545 !important;
}

.document-item.finalizado .date-info i {
    color: #dc3545 !important;
}

/* ===== PANELES FINALIZADOS ===== */
.panel.finalizado .panel-heading {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

.panel.finalizado .document-item {
    border-left-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.panel.finalizado .document-item:hover {
    background: #ffe6e6 !important;
    border-left-color: #c82333 !important;
}

/* ===== TEXTO FINALIZADO EN GENERAL ===== */
.text-finalizado {
    color: #dc3545 !important;
}

.text-finalizado i {
    color: #dc3545 !important;
}

/* ===== BADGE DANGER MEJORADO ===== */
.status-finalizado {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #c82333 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.status-finalizado:hover {
    background: #c82333 !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

/* ===== INFORMACIÓN DE FECHAS ===== */
.date-info {
    color: #6c757d !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.date-info i {
    margin-right: 5px !important;
    color: #95a5a6 !important;
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.section-title {
    color: #2c3e50 !important;
    border-bottom: 3px solid #3498db !important;
    padding-bottom: 10px !important;
    margin-bottom: 25px !important;
    font-weight: 600 !important;
}

/* ===== CAJA INFORMATIVA ===== */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.info-box h3 {
    margin-top: 0 !important;
    font-weight: 600 !important;
}

.info-box h4 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
}

/* ===== BREADCRUMBS PERSONALIZADOS ===== */
.breadcrumb-custom {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.breadcrumb-custom li a {
    color: #3498db !important;
    font-weight: 500 !important;
}

.breadcrumb-custom li.active a {
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.breadcrumb-custom > li + li:before {
    color: #bdc3c7 !important;
}

/* ===== SIDEBAR ===== */
.panel-default .panel-heading {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.panel-default .panel-body {
    border-radius: 0 0 8px 8px !important;
}

.well-sm {
    border-radius: 8px !important;
    border: 1px solid #ecf0f1 !important;
    background: #f8f9fa !important;
    margin-bottom: 10px !important;
}

.well-sm h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

.btn-primary i {
    margin-right: 8px !important;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-card {
    animation: fadeInUp 0.6s ease-out;
}

.document-item {
    animation: fadeInUp 0.4s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .process-card {
        margin-bottom: 20px;
    }
    
    .document-item {
        padding: 12px;
    }
    
    .document-item .row {
        margin: 0;
    }
    
    .document-item .col-md-8,
    .document-item .col-md-2 {
        padding: 5px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-box .col-md-4 {
        text-align: center;
        margin-top: 15px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .card-header-custom {
        padding: 15px;
    }
    
    .card-header-custom h3 {
        font-size: 16px;
    }
    
    .document-item {
        padding: 10px;
    }
    
    .document-item a {
        font-size: 14px;
    }
    
    .date-info {
        font-size: 12px;
    }
}

/* ===== EFECTOS ESPECIALES ===== */
.document-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3498db;
    transition: all 0.3s ease;
}

.document-item:hover::before {
    background: #2196f3;
    width: 6px;
}

/* ===== ESTILOS PARA ICONOS ===== */
.fa-file-pdf-o {
    color: #e74c3c !important;
}

.fa-youtube-play {
    color: #e74c3c !important;
}

.fa-calendar-check-o {
    color: #4034eb;
}

.fa-folder-open {
    color: #f39c12;
}

.fa-history {
    color: #e74c3c;
}

.fa-chart-bar {
    color: #9b59b6;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.document-item:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn-primary:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== ESTILOS PARA ESTADÍSTICAS ===== */
.text-center .well-sm {
    text-align: center;
    padding: 15px 10px;
}

.text-center .well-sm h4 {
    margin-bottom: 10px;
    font-size: 13px;
}

/* ===== EFECTOS DE CARGA ===== */
.process-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.process-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CORRECCIÓN PARA TOPBAR ===== */
/* Asegurar que el topbar siempre permanezca visible */
.header-topbar {
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
}

/* Estilos para ocultar solo la navegación, no el topbar */
.header-main .navigation.hide-menu {
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
}

/* Asegurar que el topbar no se vea afectado por hide-menu */
.header-topbar.hide-menu {
    display: block !important;
    transform: none !important;
}

/* Mejorar la transición de la navegación */
.header-main .navigation {
    transition: transform 0.3s ease-in-out !important;
}

/* ===== NUEVA PRESENTACIÓN MODERNA PARA ACCESOS RÁPIDOS ===== */

/* Grid principal */
.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

/* Tarjetas de servicio */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Iconos de servicio */
.service-icon {
    text-align: center;
    margin-bottom: 25px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card:hover .icon-wrapper::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.icon-wrapper i {
    font-size: 2.2em;
    color: white;
    z-index: 2;
    position: relative;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

/* Contenido de servicio */
.service-content {
    text-align: center;
}

.service-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-description {
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 50px;
}

/* Botones de servicio */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-btn:hover::before {
    left: 100%;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.service-btn i {
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .icon-wrapper i {
        font-size: 2em;
    }
    
    .service-title {
        font-size: 1.2em;
    }
    
    .service-description {
        font-size: 0.9em;
    }
}

/* ===== MODERNIZACIÓN GENERAL DE LA PÁGINA ===== */

/* Mejorar títulos de sección */
.section-title {
    color: #2c3e50 !important;
    border-bottom: 3px solid #3498db !important;
    padding-bottom: 15px !important;
    margin-bottom: 30px !important;
    font-weight: 700 !important;
    font-size: 2.2em !important;
    text-align: center !important;
    position: relative !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}

/* Mejorar top-title */
.top-title {
    color: #7f8c8d !important;
    font-size: 1.1em !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

/* Mejorar botones generales */
.btn {
    border-radius: 25px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Mejorar cards de noticias */
.edugate-layout-1 {
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.edugate-layout-1:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.edugate-layout-1 .edugate-content {
    padding: 25px !important;
}

.edugate-layout-1 .title {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 1.2em !important;
    margin-bottom: 15px !important;
}

/* Mejorar staff items */
.staff-item {
    transition: all 0.3s ease !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

.staff-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Mejorar galería */
.picture-gallery-wrapper .nav-tabs {
    border: none !important;
    margin-bottom: 30px !important;
}

.picture-gallery-wrapper .nav-tabs li a {
    border: none !important;
    border-radius: 25px !important;
    margin: 0 5px !important;
    padding: 12px 25px !important;
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.picture-gallery-wrapper .nav-tabs li.active a,
.picture-gallery-wrapper .nav-tabs li a:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Mejorar grid items de galería */
.grid-item {
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.grid-item:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Mejorar estadísticas */
.progress-bar-number {
    transition: all 0.3s ease !important;
}

.progress-bar-number:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Mejorar info-box */
.info-box {
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.info-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4) !important;
}

/* Mejorar responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8em !important;
    }
    
    .process-card {
        margin-bottom: 20px !important;
    }
    
    .item-course {
        margin-bottom: 20px !important;
    }
}

/* ===== ESTILOS PARA MÓDULO NUESTRAS ACTIVIDADES ===== */

/* Contenedor principal de actividades */
.activities-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.01) 0%, rgba(139, 195, 74, 0.01) 50%, rgba(205, 220, 57, 0.01) 100%);
    border-radius: 20px;
    position: relative;
}

/* Efecto de fondo decorativo */
.activities-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 195, 74, 0.02) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

/* Categorías de actividades */
.activity-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Efecto de borde superior decorativo */
.activity-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.activity-category:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
}

/* Encabezado de categoría */
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Efecto de brillo en el icono */
.category-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.activity-category:hover .category-icon::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.category-icon i {
    font-size: 1.8em;
    color: white;
    z-index: 2;
    position: relative;
}

.activity-category:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.category-header h3 {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin: 0;
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

/* Línea decorativa bajo el título */
.category-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Lista de actividades */
.activities-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Personalizar scrollbar para la lista */
.activities-list::-webkit-scrollbar {
    width: 6px;
}

.activities-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.activities-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 3px;
}

.activities-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

/* Elementos de actividad */
.activity-item {
    background: rgba(248, 249, 250, 0.9);
    margin-bottom: 0;
    padding: 18px 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.activity-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(8px);
    border-left-width: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-item p {
    color: #2c3e50;
    margin: 0;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.5;
    text-indent: 15px;
    text-align: justify;
    position: relative;
    hyphens: auto;
    word-wrap: break-word;
}

/* Agregar sangría visual con pseudo-elemento */
.activity-item p::before {
    content: "▶";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -12px;
    top: 2px;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.activity-item:hover p::before {
    color: #2980b9;
    transform: translateX(2px);
}

/* Mejorar el espaciado entre líneas */
.activity-item p {
    padding-left: 15px;
    margin-bottom: 8px;
}


/* Estilo para elementos de lista anidados */
.activity-item .nested-item {
    margin-left: 30px;
    padding-left: 20px;
    border-left: 2px solid rgba(52, 152, 219, 0.3);
    margin-top: 8px;
    font-size: 0.9em;
    color: #5a6c7d;
}

.activity-item .nested-item::before {
    content: "◦";
    color: #7f8c8d;
    position: absolute;
    left: -10px;
}

/* Responsive para actividades */
@media (max-width: 768px) {
    .activities-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
        margin-top: 30px;
    }
    
    .activity-category {
        padding: 25px 20px;
        min-height: auto;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .category-icon i {
        font-size: 1.6em;
    }
    
    .activities-list {
        max-height: 300px;
        gap: 10px;
    }
    
    .activity-item {
        padding: 15px 18px;
    }
    
    .activity-item p {
        text-indent: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .activities-wrapper {
        padding: 10px;
        margin-top: 20px;
    }
    
    .activity-category {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .activities-list {
        gap: 8px;
    }
    
    .activity-item {
        padding: 12px 15px;
    }
    
    .activity-item p {
        font-size: 0.85em;
        text-indent: 12px;
        line-height: 1.5;
    }
    
    .category-header h3 {
        font-size: 1.1em;
        padding-left: 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.4em;
    }
}

/* ===== ESTILOS PARA CONTENEDOR DE TÍTULOS MICROREDES ===== */
.group-title-index {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.group-title-index .top-title {
    color: #34495e !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1) !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.group-title-index .section-title {
    color: #2c3e50 !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    font-size: 2.2em !important;
    letter-spacing: 1px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
} 