/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.user-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Header */
.user-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.logo-container h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}

.user-nav ul {
    display: flex;
    list-style: none;
}

.user-nav ul li {
    margin-left: 30px;
}

.user-nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.user-nav ul li a:hover {
    color: #3498db;
}

.user-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s;
}

.user-nav ul li a:hover::after,
.user-nav ul li a.active::after {
    width: 100%;
}

.user-nav ul li a.active {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 5%;
    text-align: center;
}

.capacitaciones-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('img/capacitaciones-bg.jpg');
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.user-main {
    padding: 60px 5%;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 36px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

.filter-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    width: 300px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.filter-dropdown select,
.date-filter input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-dropdown select:focus,
.date-filter input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter label {
    font-weight: 600;
    color: #555;
}

/* Premiaciones Grid */
.premiaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Premiaciones Grid (continuación) */
.premiacion-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premiacion-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.premiacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.premiacion-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.indicador-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.card-alto .indicador-badge {
    background-color: #27ae60;
}

.card-medio .indicador-badge {
    background-color: #f39c12;
}

.card-bajo .indicador-badge {
    background-color: #e74c3c;
}

.premiacion-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.premiacion-avatar {
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.card-alto .avatar {
    background-color: #27ae60;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.card-medio .avatar {
    background-color: #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.card-bajo .avatar {
    background-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.premiacion-body h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 5px;
    text-align: center;
}

.cargo {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.puntaje-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.puntaje-stars {
    color: #f1c40f;
    font-size: 18px;
}

.puntaje-valor {
    font-weight: 700;
    font-size: 20px;
    color: #3498db;
}

.card-alto .puntaje-valor {
    color: #27ae60;
}

.card-medio .puntaje-valor {
    color: #f39c12;
}

.card-bajo .puntaje-valor {
    color: #e74c3c;
}

.puntaje-barra {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.puntaje-progreso {
    height: 100%;
    border-radius: 5px;
}

.card-alto .puntaje-progreso {
    background-color: #27ae60;
}

.card-medio .puntaje-progreso {
    background-color: #f39c12;
}

.card-bajo .puntaje-progreso {
    background-color: #e74c3c;
}

/* Capacitaciones Timeline */
.capacitaciones-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.capacitaciones-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ecf0f1;
    top: 0;
    bottom: 0;
    left: 50px;
    margin-left: -2px;
}

.timeline-year {
    margin: 40px 0;
    text-align: center;
}

.timeline-year h3 {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3498db;
    color: white;
    border-radius: 30px;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.timeline-month {
    margin: 25px 0;
    padding-left: 80px;
}

.timeline-month h4 {
    font-size: 20px;
    color: #7f8c8d;
    position: relative;
}

.timeline-month h4::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #7f8c8d;
    border-radius: 50%;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
}

.capacitacion-item {
    display: flex;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s forwards;
    position: relative;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.capacitacion-item.reveal {
    opacity: 1;
    transform: translateX(0);
}

.capacitacion-fecha {
    width: 70px;
    height: 70px;
    background-color: #3498db;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    z-index: 1;
}

.alta-efectividad .capacitacion-fecha {
    background-color: #27ae60;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.media-efectividad .capacitacion-fecha {
    background-color: #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.baja-efectividad .capacitacion-fecha {
    background-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.capacitacion-fecha .dia {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.capacitacion-fecha .mes {
    font-size: 14px;
    text-transform: uppercase;
}

.capacitacion-content {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.capacitacion-item:hover .capacitacion-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.capacitacion-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.capacitacion-impacto {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
}

.capacitacion-impacto i {
    color: #3498db;
}

.alta-efectividad .capacitacion-impacto i {
    color: #27ae60;
}

.media-efectividad .capacitacion-impacto i {
    color: #f39c12;
}

.baja-efectividad .capacitacion-impacto i {
    color: #e74c3c;
}

.capacitacion-efectividad {
    width: 150px;
}

.efectividad-valor {
    text-align: right;
    font-weight: 600;
    margin-bottom: 5px;
    color: #3498db;
}

.alta-efectividad .efectividad-valor {
    color: #27ae60;
}

.media-efectividad .efectividad-valor {
    color: #f39c12;
}

.baja-efectividad .efectividad-valor {
    color: #e74c3c;
}

.efectividad-barra {
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.efectividad-progreso {
    height: 100%;
    border-radius: 4px;
}

.alta-efectividad .efectividad-progreso {
    background-color: #27ae60;
}

.media-efectividad .efectividad-progreso {
    background-color: #f39c12;
}

.baja-efectividad .efectividad-progreso {
    background-color: #e74c3c;
}

.capacitacion-body {
    padding: 20px;
}

.capacitacion-body h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.descripcion {
    color: #7f8c8d;
    line-height: 1.7;
}

.capacitacion-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.capacitacion-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
}

.stat i {
    color: #3498db;
}

.alta-efectividad .stat i {
    color: #27ae60;
}

.media-efectividad .stat i {
    color: #f39c12;
}

.baja-efectividad .stat i {
    color: #e74c3c;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-results p {
    color: #7f8c8d;
    font-size: 18px;
}

/* Footer */
.user-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #3498db;
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-controls {
        width: 100%;
        margin-top: 20px;
    }
    
    .search-box input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .user-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-nav ul li {
        margin: 5px 10px;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-content h2 {
        font-size: 30px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .premiaciones-grid {
        grid-template-columns: 1fr;
    }
    
    .capacitaciones-timeline::before {
        left: 30px;
    }
    
    .timeline-month {
        padding-left: 60px;
    }
    
    .timeline-month h4::before {
        left: -35px;
    }
    
    .capacitacion-fecha {
        width: 60px;
        height: 60px;
    }
    
    .capacitacion-fecha .dia {
        font-size: 20px;
    }
    
    .capacitacion-fecha .mes {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .capacitacion-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .capacitacion-efectividad {
        width: 100%;
    }
    
    .capacitacion-stats {
        flex-direction: column;
        gap: 10px;
    }
}
.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}
.premiacion-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

/* Para asegurarnos de que la imagen no muestre su texto alternativo */
.avatar-img:not([src]), 
.avatar-img[src=""] {
    display: none;
}

 
        /* Footer */
        footer {
            background-color: var(--black);
            color: var(--white);
            padding: 3rem 10% 1rem;
            background-color: #333;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 2rem;
        }
        
        .footer-logo {
            flex: 1;
            min-width: 200px;
            margin-bottom: 1.5rem;
        }
        
        .footer-logo a {
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        
        .footer-logo i {
            font-size: 2rem;
            margin-right: 10px;
            color: var(--light-green);
        }
        
        .footer-logo h2 {
            font-size: 1.5rem;
        }
        
        .footer-logo p {
            margin-top: 1rem;
            line-height: 1.6;
            color: #ffffff;
        }
        
        .footer-links {
            flex: 1;
            min-width: 200px;
            margin-bottom: 1.5rem;
        }
        
        .footer-links h3 {
            color: var(--light-green);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links ul li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links ul li a {
            color: #aaa;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links ul li a:hover {
            color: var(--light-green);
        }
        .footer-bottom {
            border-top: 1px solid #ffffff;
            padding-top: 1.5rem;
            text-align: center;
            font-size: 0.9rem;
            color: #ffffff;
        }