/* CAPACITACIONES*/

#capacitaciones .capacitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,  minmax(340px, 390px));
    justify-content: center;
    align-items: start;
    gap: 30px;
    margin-top: 38px;
}

/* TARJETA PRINCIPAL */
#capacitaciones .capacitacion-card {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eee9e1;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
    transition: transform .25s ease, box-shadow .25s ease;
}

#capacitaciones .capacitacion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.085);
}

/* IMAGEN */
#capacitaciones .capacitacion-imagen {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 17px;
    background: #faf8f4;
    border: 1px solid #eee9e1;
    border-radius: 13px;
}

#capacitaciones .capacitacion-imagen img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box;
}

/* CONTENIDO */
#capacitaciones .capacitacion-contenido {
    width: 100%;
}

/* DESTACADO */
#capacitaciones .curso-destacado {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    margin-bottom: 8px;
    border-radius: 30px;
    background: #d1b187;
    color: #ffffff;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* TÍTULO */
#capacitaciones .capacitacion-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 600;
    color: #292723;
    margin: 0 0 10px;
}

/* DESCRIPCIÓN */
#capacitaciones .curso-descripcion {
    font-size: .80rem;
    line-height: 1.5;
    color: #625d57;
    margin: 0 0 14px;
}

/* TEMAS GENERALES */
#capacitaciones .curso-temas {
    width: 100%;
    margin: 14px 0 16px;
    text-align: left;
}

#capacitaciones .curso-temas h4 {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 600;
    color: #332f2b;
}

#capacitaciones .curso-temas-lista {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

#capacitaciones .curso-tema {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    font-size: .75rem;
    line-height: 1.35;
    color: #66605a;
}

#capacitaciones .curso-tema-punto {
    flex: 0 0 auto;
    color: #c3a17a;
    font-size: .86rem;
    line-height: 1.2;
}

#capacitaciones .curso-tema > span:last-child {
    flex: 1;
}

/* DATOS GENERALES */
#capacitaciones .curso-datos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 12px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eeeae4;
    font-size: .69rem;
    color: #6d6760;
}

#capacitaciones .curso-datos span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

#capacitaciones .curso-datos i {
    color: #b29670;
    font-size: .71rem;
}

/* CURSO COMPLETO */
#capacitaciones .curso-completo-publico {
    margin-top: 17px;
    padding: 14px;
    background: linear-gradient(180deg,  #faf7f1 0%, #fdfbf8 100%);
    border: 1px solid #e8ded0;
    border-radius: 13px;
}

#capacitaciones .curso-completo-publico-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

#capacitaciones .curso-completo-publico-titulo > span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #d1b187;
    color: #ffffff;
    font-size: .75rem;
}

#capacitaciones .curso-completo-publico-titulo strong {
    display: block;
    font-size: .82rem;
    color: #302c28;
    font-weight: 600;
}

#capacitaciones .curso-completo-publico-titulo small {
    display: block;
    margin-top: 2px;
    font-size: .68rem;
    color: #817a72;
}

/* BOTÓN CURSO COMPLETO */
#capacitaciones .btn-curso-completo {
    width: 100%;
    margin-top: 0 !important;
    padding: 10px 16px;
    border-radius: 9px;
    background: #302d29;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 500;
    text-align: center;
}

#capacitaciones .btn-curso-completo:hover {
    background: #4a4641;
    transform: translateY(-1px);
}

/* PROGRAMA */
#capacitaciones .curso-programa {
    margin-top: 18px;
}

#capacitaciones .curso-programa-titulo {
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid #eeeae4;
}

#capacitaciones .curso-programa-titulo span {
    font-size: .78rem;
    font-weight: 600;
    color: #332f2b;
}

/* MÓDULO */
#capacitaciones .curso-modulo {
    padding: 13px 0;
    border-bottom: 1px solid #f0ece7;
}

#capacitaciones .curso-modulo:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

#capacitaciones .curso-modulo-cabecera {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 7px;
}

#capacitaciones .curso-modulo-numero {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 20px;
    background: #f0ebe3;
    color: #776957;
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}

#capacitaciones .curso-modulo h4 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.1;
    color: #332f2b;
    font-weight: 600;
}

#capacitaciones .curso-modulo-fecha {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #817970;
    font-size: .66rem;
    white-space: nowrap;
}

#capacitaciones .curso-modulo-fecha i {
    color: #b29670;
}

/* DESCRIPCIÓN DEL MÓDULO */
#capacitaciones .curso-modulo-descripcion {
    margin: 0 0 10px;
    font-size: .73rem;
    line-height: 1.45;
    color: #66605a;
}

/* OPCIONES DEL MÓDULO */
#capacitaciones .modulo-opciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 9px;
}

#capacitaciones .modulo-opcion {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 7px 5px;
    border: 1px solid #e5ded4;
    border-radius: 8px;
    background: #ffffff;
    color: #655e56;
    text-decoration: none;
    text-align: center;
    font-size: .64rem;
    line-height: 1.2;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

#capacitaciones .modulo-opcion i {
    font-size: .74rem;
    color: #b29670;
}

#capacitaciones .modulo-opcion:hover {
    background: #faf7f1;
    border-color: #d3c2ad;
    color: #403b35;
    transform: translateY(-1px);
}

/* BOTÓN GENÉRICO */
#capacitaciones .btn-capacitacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    margin-top: 14px;
    border-radius: 30px;
    background: #d1b187;
    color: #ffffff;
    font-size: .74rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

#capacitaciones .btn-capacitacion:hover {
    background: #bd9d72;
    transform: translateY(-1px);
}

/* PRÓXIMAMENTE */
#capacitaciones .capacitacion-proximamente {
    max-width: 500px;
    margin: 38px auto 0;
    padding: 30px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eee9e1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

#capacitaciones .capacitacion-proximamente > i {
    margin-bottom: 12px;
    color: #b29670;
    font-size: 1.7rem;
}

#capacitaciones .capacitacion-proximamente h3 {
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    color: #332f2b;
}

#capacitaciones .capacitacion-proximamente p {
    font-size: .8rem;
    line-height: 1.5;
    color: #68625b;
}

#capacitaciones .capacitacion-proximamente .texto-aviso {
    margin-top: 8px;
}

/* MOBILE */
@media (max-width: 700px) {

    #capacitaciones .capacitaciones-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 28px;
    }

    #capacitaciones .capacitacion-card {
        max-width: 390px;
        padding: 17px;
    }

    #capacitaciones .capacitacion-imagen {
        height: 110px;
        margin-bottom: 14px;
    }

    #capacitaciones .capacitacion-imagen img {
        width: 100% !important;
        height: 100% !important;
        padding: 8px !important;
        object-fit: contain !important;
    }

    #capacitaciones .capacitacion-card h3 {
        font-size: 1.5rem;
    }

    #capacitaciones .curso-datos {
        gap: 5px 9px;
    }

    #capacitaciones .curso-modulo-fecha {
        width: 100%;
        margin-left: 0;
    }

    #capacitaciones .modulo-opciones {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5px;
    }

    #capacitaciones .modulo-opcion {
        min-height: 46px;
        font-size: .60rem;
    }

    #capacitaciones .curso-completo-publico {
        padding: 12px;
    }
}