/* Certificaciones — banner limpio + tarjetas profesionales */

/* —— Hero automático (sin miniaturas) —— */
.dpc-hero-cinema--certs .dpc-hero-cinema__overlay--certs {
    background: linear-gradient(
        180deg,
        rgb(0 0 0 / 0.28) 0%,
        rgb(0 0 0 / 0.45) 50%,
        rgb(0 0 0 / 0.68) 100%
    );
}

.dpc-cert-hero__accent {
    color: #b8d433;
}

.dpc-cert-hero__progress {
    pointer-events: none;
}

.dpc-cert-hero__progress-dot {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.35);
    transition: width 0.35s ease, background 0.35s ease;
}

.dpc-cert-hero__progress-dot.is-active {
    width: 1.75rem;
    background: #b8d433;
}

/* —— Sección —— */
.dpc-page--certificaciones .dpc-section--certs {
    background: linear-gradient(180deg, #f6faf7 0%, #fff 8rem);
}

/* —— Grid de tarjetas —— */
.dpc-cert-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .dpc-cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

@media (min-width: 1100px) {
    .dpc-cert-grid {
        gap: 2rem;
    }
}

/* —— Tarjeta profesional —— */
.dpc-cert-pro {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2ebe6;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 8px 32px rgb(47 107 79 / 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.dpc-cert-pro:hover {
    border-color: #c5dcc8;
    box-shadow: 0 16px 48px rgb(47 107 79 / 0.11);
    transform: translateY(-3px);
}

.dpc-cert-pro__media {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eeea;
}

.dpc-cert-pro__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.dpc-cert-pro:hover .dpc-cert-pro__media img {
    transform: scale(1.04);
}

.dpc-cert-pro__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem 1.35rem 1.35rem;
}

@media (min-width: 768px) {
    .dpc-cert-pro__body {
        padding: 1.65rem 1.5rem 1.5rem;
    }
}

.dpc-cert-pro__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    color: #1a2e28;
}

.dpc-cert-pro__code {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c74b1f;
}

.dpc-cert-pro__text {
    flex: 1;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.68;
    color: #4b6358;
}

.dpc-cert-pro__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #eef3ef;
}

.dpc-cert-pro__logo {
    width: auto;
    max-width: 5.5rem;
    max-height: 3.25rem;
    object-fit: contain;
}

.dpc-cert-pro__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #E8792F, #3d8262);
    color: #fff;
}

.dpc-cert-pro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

/* Última tarjeta impar: ancho completo en desktop */
@media (min-width: 768px) {
    .dpc-cert-pro--wide {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .dpc-cert-pro--wide .dpc-cert-pro__media {
        flex: 0 0 42%;
        aspect-ratio: auto;
        min-height: 16rem;
    }

    .dpc-cert-pro--wide .dpc-cert-pro__body {
        flex: 1;
        justify-content: center;
        padding: 2rem 2.25rem;
    }
}

/* —— Tarjetas showcase (otras páginas) —— */
.dpc-cert-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 52rem;
    margin: 0 auto;
}

.dpc-cert-card--showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e2ebe6;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 40px rgb(47 107 79 / 0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dpc-cert-card--showcase:hover {
    box-shadow: 0 16px 48px rgb(47 107 79 / 0.12);
    transform: translateY(-2px);
}

@media (min-width: 640px) {
    .dpc-cert-card--showcase {
        grid-template-columns: 11rem minmax(0, 1fr);
        align-items: start;
        gap: 1.75rem;
        padding: 2rem;
    }
}

.dpc-cert-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #f8fcf9 0%, #eef6f0 100%);
    border: 1px solid #dfece4;
}

.dpc-cert-card--showcase .dpc-cert-card__logo {
    width: auto;
    height: auto;
    max-width: 9rem;
    max-height: 9rem;
    object-fit: contain;
}

.dpc-cert-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #E8792F, #3d8262);
    color: #fff;
}

.dpc-cert-card__content {
    min-width: 0;
}

.dpc-cert-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a2e28;
}

.dpc-cert-card__code {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c74b1f;
}

.dpc-cert-card__body {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b6358;
}

.dpc-cert-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.dpc-cert-card__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 0.55rem;
    background: #E8792F;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dpc-cert-card__link:hover {
    background: #C44A1A;
}

.dpc-cert-card__link--muted {
    background: #fff;
    border: 1px solid #c5d9cc;
    color: #E8792F;
}

.dpc-cert-card__link--muted:hover {
    background: #f4faf6;
}

/* Home — badges */
.dpc-cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 8.5rem;
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid #e2ebe6;
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dpc-cert-badge:hover {
    border-color: #b8d433;
    box-shadow: 0 8px 24px rgb(47 107 79 / 0.1);
}

.dpc-cert-logo {
    width: auto;
    height: 4.5rem;
    max-width: 100%;
    object-fit: contain;
}
