.oferta-page-mae h1,
.oferta-page-mae h2,
.oferta-page-mae h3,
.oferta-page-mae h4 {
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
}

.oferta-page-mae {
    --utsjr-blue: #004ABA !important;
    --utsjr-blue-dark: #002855 !important;
    --utsjr-green: #00A788 !important;
    --text-main: #1a2b4a !important;
    --text-light: #6c757d !important;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.07) !important;
    --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    font-size: 160% !important;
    color: #1a2b4a !important;
    line-height: 1.6 !important;
    background-color: #f0f2f7 !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    -webkit-text-size-adjust: 100% !important;
}

.oferta-page-mae *,
.oferta-page-mae *::before,
.oferta-page-mae *::after {
    box-sizing: border-box !important;
}

.oferta-page-mae .oferta-hero {
    background: white !important;
    padding: 30px 16px 24px !important;
    text-align: center !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    width: 100% !important;
}

.oferta-page-mae .nav-links {
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
}

.oferta-page-mae .nav-btn {
    background: var(--utsjr-green) !important;
    color: white !important;
    padding: 7px 21px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.25s ease !important;
    border: 1.5px solid var(--utsjr-green) !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.oferta-page-mae .nav-btn:hover,
.oferta-page-mae .nav-btn.active {
    background: var(--utsjr-blue) !important;
    border-color: var(--utsjr-blue) !important;
    color: white !important;
}

.pg-hero {
    /*background: linear-gradient(135deg, #002855 0%, #004ABA 60%, #0058d4 100%);*/
    padding: 40px 24px 0;
    position: relative;
    overflow: hidden;
    max-width: 980px;
    margin: auto;
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/*.pg-hero::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: 60%;
        width: 300px;
        height: 200px;
        border-radius: 50%;
        background: rgba(0, 167, 136, 0.12);
        pointer-events: none;
    }*/


.pg-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.pg-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--utsjr-green);
    flex-shrink: 0;
}

.pg-hero h1 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: rgb(0, 0, 0) !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}

.pg-hero-sub {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
    max-width: 520px;
    margin: 0;
}

.pg-accent-line {
    width: 48px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    margin: 14px 0 0;
}

.pg-ficha-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

.pg-ficha-inner {
    background: white;
    border-radius: 12px;
    border-left: 5px solid #00A788;
    padding: 16px 20px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pg-ficha-text {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.pg-ficha-text strong {
    color: #004ABA;
    font-weight: 700;
}

.pg-ficha-text span {
    color: #888;
    font-size: 12px;
}

.pg-ficha-btn {
    background: white;
    color: #004ABA;
    border: 1.5px solid #004ABA;
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}

.pg-ficha-btn:hover {
    background: #004ABA;
    color: white;
}


.pg-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 24px 20px;
}

.pg-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #004ABA;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d0d8ea;
}

.pg-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pg-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: transform .25s ease, box-shadow .25s ease;
    max-width: 980;
    width: 100%;
}

.pg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.pg-card-img {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.pg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.pg-card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.pg-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 40, 85, 0.45), transparent);
}

/* Badge sobre la imagen */
.pg-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(240, 192, 64, 0.95);
    color: #5a3800;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

/* --- Contenido --- */
.pg-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.pg-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pg-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #004ABA;
    background: #e8f0ff;
    border: 1px solid #c5d6f8;
    padding: 3px 10px;
    border-radius: 50px;
}

.pg-card-duration {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pg-card-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #1a2b4a !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

.pg-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
    border-left: 2px solid #eee;
    padding-left: 10px;
    text-align: justify;
}

/* --- Especializaciones --- */
.pg-card-specs-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 7px;
}

.pg-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pg-spec {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a2b4a;
    background: #f4f6fb;
    border: 1px solid #dde2ee;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: .18s;
    cursor: pointer;
}

.pg-spec:hover {
    background: #004ABA;
    color: white;
    border-color: #004ABA;
}

.pg-spec svg {
    width: 10px;
    height: 10px;
    opacity: .6;
}

.pg-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: .5px solid #eaecf0;
}

.pg-horario-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.pg-horario-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.pg-horario-badge.matutino {
    background: #FFF7E6;
    color: #92500a;
    border: .5px solid #f5c26a;
}

.pg-horario-badge.vespertino {
    background: #EEF2FF;
    color: #3730a3;
    border: .5px solid #a5b4fc;
}

.pg-btn-plan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #e0e4ed !important;
    background: #f7f8fb !important;
    color: rgb(0, 0, 0);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: .2s;
}

.pg-btn-plan:hover {
    background: #004ABA !important;
    color: white;
    transform: translateY(-1px) !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s;
    align-items: center;
    justify-content: center;
}

.modal .modal-content {
    display: block;
    width: auto;
    max-width: 92%;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.28s ease;
}

.modal .close {
    position: absolute;
    top: 18px;
    right: 28px;
    color: white;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal .close:hover {
    background: #00A788;
    color: white;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.cert-secihti {
    margin: auto;
    padding: 0 32px 24px 24px;
    max-width: 980px;
}

.cert-secihti-card {
    background: white;
    border-radius: 16px;
    border: .5px solid #e4e8f0;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Línea dorada lateral */
.cert-secihti-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #58e2c9, #00A788);
}

/* ── Lado izquierdo ── */
.cert-secihti-left {}

.cert-secihti-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.cert-secihti-eyebrow-line {
    width: 24px;
    height: 2px;
    background: #00A788;
    border-radius: 2px;
    flex-shrink: 0;
}

.cert-secihti-eyebrow-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #14816d;
}

.cert-secihti-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b4a;
    line-height: 1.25;
    margin-bottom: 12px;
}

.cert-secihti-title span {
    color: #004ABA;
}

.cert-secihti-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    max-width: 420px;
    margin: 0 0 20px 0;
}

.cert-secihti-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cert-secihti-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 6px;
}

.cert-secihti-chip svg {
    width: 10px;
    height: 10px;
    opacity: .75;
    flex-shrink: 0;
}

.cert-secihti-chip.gold {
    background: #e8fffb;
    color: #00705c;
    border: .5px solid #00A788;
}

.cert-secihti-chip.blue {
    background: #eef2ff;
    color: #3730a3;
    border: .5px solid #c7d2fe;
}

/* ── Lado derecho: sello ── */
.cert-secihti-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cert-secihti-seal {
    width: 380px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid #f0e8c0;
    background: #fffdf0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

/* Círculo punteado interior */
.cert-secihti-seal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed #e8d080;
}

.cert-secihti-seal-logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.cert-secihti-seal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.cert-secihti-seal-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: .5;
}

.cert-secihti-seal-placeholder span {
    font-size: 10px;
    font-weight: 700;
    color: #b07d00;
    letter-spacing: .04em;
}

.cert-secihti-seal-label {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    line-height: 1.4;
    max-width: 120px;
}

.oferta-nav-instruccion {
    margin: 80px 0 0 0 !important;
    text-align: center !important;
}

.oferta-nav-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--azulFuerte) !important;
    /*background: rgba(0, 40, 85, 0.06) !important;*/
    padding: 6px 14px !important;
    border-radius: 50px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
}



/* responsive */
@media (max-width: 680px) {
    .pg-card {
        grid-template-columns: 1fr;
    }

    .pg-card-img,
    .pg-card-img-placeholder {
        min-height: 180px;
    }

    .pg-hero h1 {
        font-size: 22px !important;
    }

    .oferta-page-mae .nav-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .cert-secihti-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .cert-secihti-right {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .cert-secihti-seal {
        width: 300px;
        height: 150px;
    }

    .cert-secihti-seal-logo {
        width: 85%;
        height: 85%;
    }

    .cert-secihti-seal-label {
        text-align: center;
        max-width: 100%;
    }
}