.program-hero {
    padding: 24px 16px 0;
}

.program-hero .program-hero-card {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
}

.program-hero .program-hero-media {
    height: 260px;
    overflow: hidden;
    /* necesario para parallax con escala */
}

.program-hero .program-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    display: block;
    transform: none;
    will-change: transform;
}

.program-hero .program-hero-placeholder {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #444, #222);
}

.program-hero .program-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
}

.program-hero .program-hero-content {
    position: absolute;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    padding: 0;
    max-width: 720px;
}

.program-hero .program-hero-title {
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #fff !important;
}

.program-hero .program-hero-desc {
    margin: 0 0 8px 0;
    font-weight: bolder;
    font-size: 14px;
    color: rgba(255, 255, 255, .95);
    max-width: 500px;
}

.program-hero .program-hero-open {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #fff;
}

@media (min-width: 768px) {
    .program-hero {
        z-index: 1;
        margin-top: -70px;
    }

    .program-hero .program-hero-media {
        height: 500px;
    }

    .program-hero .program-hero-title {
        font-size: 36px;
    }

    .program-hero .program-hero-desc {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .program-hero {
        padding: 0;
        margin: 8px 12px 16px;
    }

    .program-hero .program-hero-media {
        height: 70vh;
    }

    .program-hero .program-hero-title {
        font-size: 36px;
        text-align: center;
    }

    .program-hero .program-hero-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 12px;
        width: 80vw;
        max-width: 98vw;
        /* centrado vertical, más ancho en móvil */
    }

    .program-hero .program-quality-seal {
        right: 10px;
        top: 10px;
        width: 76px;
        height: 76px;
        border-radius: 16px;
    }
}

/* Referente: breadcrumb naranja y chip SNIES */
.program-breadcrumb {
    background: var(--color-primary-600);
    color: #fff;
    padding: 20px 0 60px;
}

.program-breadcrumb .crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    font-weight: 600;
}
.program-breadcrumb .crumbs .crumb { display: inline-flex; gap: 6px; align-items: center; font-weight: bolder; }
.program-breadcrumb .crumbs .crumb-current { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.program-breadcrumb .crumbs .crumb-section { opacity: .9; font-weight: bolder; }
.program-breadcrumb .crumbs .crumb-sep { opacity: .75; font-weight: bolder; }

.program-breadcrumb .crumbs a {
    color: #fff;
    text-decoration: none;
    opacity: .95;
}

.program-breadcrumb .crumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Breadcrumb: versión móvil simplificada */
@media (max-width: 767px) {
    .program-breadcrumb { padding: 10px 0; }
    .program-breadcrumb .crumbs { gap: 8px; }
    .program-breadcrumb .crumbs .crumb-label { display: none; }
    .program-breadcrumb .crumbs .crumb-section { display: none; }
    .program-breadcrumb .crumbs .crumb-sep:nth-of-type(2) { display: none; }
    .program-breadcrumb .crumbs .crumb-current { max-width: 65vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.program-hero .program-snies {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    margin: 8px 0 4px;
    backdrop-filter: saturate(120%);
}

.program-hero .program-quality-seal {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 92px;
    height: 72px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.program-hero .program-quality-seal img {
    max-width: 100%;
    height: auto;
}

/* ===== CTA inferior (similar al referente) ===== */
.program-cta {
    padding-top: 20px;
}

.program-cta .cta-bar {
    background: var(--color-primary-900);
    color: #fff;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 64px;
    align-items: stretch;
}

.program-cta .cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.program-cta .cta-item .bi {
    font-size: 22px;
    line-height: 1;
    color: var(--color-primary-600);
}

.program-cta .cta-sep {
    display: none;
    opacity: .6;
}

.program-cta .cta-action {
    align-self: center;
}

.program-cta .cta-action .btn-white {
    background: #fff;
    color: var(--color-primary-900);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

@media (min-width: 992px) {
    .program-cta {
        margin: 0 24px 32px;
    }

    .program-cta .cta-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 28px;
        gap: 22px;
    }

    .program-cta .cta-sep {
        display: block;
        height: 32px;
        width: 1px;
        background: rgba(255, 255, 255, .35);
    }
}

/* Ajustes móviles CTA */
@media (max-width: 767px) {
    .program-cta {
        padding: 12px 12px 0;
    }

    .program-cta .cta-bar {
        border-radius: 18px;
        padding: 16px;
        align-items: center;
    }

    .program-cta .cta-item {
        gap: 12px;
        font-size: 16px;
        padding: 6px 0;
        align-items: center;
    }

    .program-cta .cta-item .bi {
        font-size: 22px;
    }

    .program-cta .cta-sep {
        display: none;
    }

    .program-cta .cta-action {
        align-self: stretch;
        width: 100%;
    }

    .program-cta .cta-action .btn-white {
        width: 100%;
        padding: 12px 18px;
        font-size: 16px;
    }
}