* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.header-spacing {
    height: 100px; /* Ajusta este valor según sea necesario */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.capacitacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.capacitacion-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.capacitacion-image {
    height: 200px;
    overflow: hidden;
}

.capacitacion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.capacitacion-card:hover .capacitacion-image img {
    transform: scale(1.05);
}

.capacitacion-content {
    padding: 25px;
}

.capacitacion-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.clase-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.class-a {
    background-color: #27ae60;
}

.class-b {
    background-color: #e74c3c;
}

.class-c {
    background-color: #2980b9;
}

.class-d {
    background-color: #f39c12;
}

.class-k {
    background-color: #8e44ad;
}

.capacitacion-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-more:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

@media (max-width: 992px) {
    .capacitacion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .capacitacion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-more {
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 20px;
    }
    
    .capacitacion-content {
        padding: 20px 15px;
    }
    
    .capacitacion-content h3 {
        font-size: 18px;
    }
    
    .capacitacion-content p {
        font-size: 14px;
    }
    
    .capacitacion-image {
        height: 180px;
    }
}