/* Logros y certificaciones — perfil público y panel empresa */

:root {
    --cert-green: #587360;
    --cert-green-dark: #2f4f44;
    --cert-gold: #c9a227;
    --cert-gold-light: #e8d48a;
    --cert-muted: #6b7280;
    --cert-surface: #f8faf9;
}

/* —— Tarjeta de logro (perfil público) —— */
.cert-logros-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ece9;
}
@media (max-width: 991.98px) {
    .cert-logros-section {
        margin-top: 1rem;
        padding-top: 1.15rem;
    }
}
.cert-logros-section__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cert-green);
    margin: 0 0 0.35rem;
}
.cert-logros-section__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a2e24;
    margin: 0 0 0.5rem;
}
.cert-logros-section__intro {
    font-size: 0.95rem;
    color: var(--cert-muted);
    max-width: 52rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}
.cert-logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.cert-logros-grid--minis {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

/* —— Mini certificado (perfil público) —— */
.cert-mini {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.22s ease;
}
.cert-mini:hover:not(:disabled),
.cert-mini:focus-visible {
    transform: translateY(-3px);
    outline: none;
}
.cert-mini:disabled {
    cursor: default;
    opacity: 0.65;
}
.cert-mini__viewport {
    display: block;
    width: 100%;
    aspect-ratio: 297 / 210;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #dde5df;
    box-shadow: 0 10px 28px rgba(45, 58, 48, 0.1);
    background: #f2eee5;
    position: relative;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.cert-mini:hover:not(:disabled) .cert-mini__viewport {
    box-shadow: 0 16px 40px rgba(45, 58, 48, 0.14);
    border-color: #b8c9bc;
}
.cert-mini:focus-visible .cert-mini__viewport {
    box-shadow: 0 14px 36px rgba(88, 115, 96, 0.18);
    border-color: #587360;
}
.cert-mini__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    background: #f2eee5;
}

/* —— Modal certificado público —— */
.cert-publico-modal .modal-dialog {
    max-width: min(96vw, 980px);
    margin-left: auto;
    margin-right: auto;
}
.cert-publico-modal__content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #f2eee5;
    box-shadow: 0 24px 64px rgba(31, 46, 40, 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
}
.cert-publico-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.15rem 0.35rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: #3d5248;
    opacity: 0.9;
    cursor: pointer;
}
.cert-publico-modal__close:hover,
.cert-publico-modal__close:focus {
    opacity: 1;
    color: #1a2e24;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.cert-publico-modal__close span {
    display: block;
    transform: translateY(-0.05em);
}
.cert-publico-modal__body {
    background: #f2eee5;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-publico-modal__viewport {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 297 / 210;
    height: auto;
    max-height: min(calc(88vh - 5rem), 680px);
    margin: 0;
    overflow: hidden;
    background: #f2eee5;
    border-radius: 6px;
    flex: 0 0 auto;
}
.cert-publico-modal__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f2eee5;
}

@media (max-width: 900px) {
    .cert-logros-grid--minis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cert-logros-grid--minis {
        grid-template-columns: 1fr;
    }
    .cert-publico-modal__viewport {
        max-height: min(calc(72vh - 4.5rem), 520px);
    }
    .cert-publico-modal__body {
        padding: 1rem;
    }
}
.cert-logro-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(31, 46, 40, 0.08);
    overflow: hidden;
    min-height: 280px;
    border: 1px solid #eef1ef;
}
.cert-logro-card__body {
    position: relative;
    flex: 1;
    padding: 1.45rem 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cert-logro-card__body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.15rem;
    right: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #587360 0%,
        #587360 18%,
        #8fa892 32%,
        #c9a64a 44%,
        #f4e8c4 50%,
        #c9a64a 56%,
        #8fa892 68%,
        #587360 82%,
        #587360 100%
    );
    background-size: 240% 100%;
    animation: cert-logro-top-shine 2.4s ease-in-out infinite;
}
.cert-logros-grid .cert-logro-card:nth-child(2) .cert-logro-card__body::before,
.cert-dash-grid .cert-dash-card:nth-child(2) .cert-logro-card__body::before {
    animation-delay: 0.55s;
}
.cert-logros-grid .cert-logro-card:nth-child(3) .cert-logro-card__body::before,
.cert-dash-grid .cert-dash-card:nth-child(3) .cert-logro-card__body::before {
    animation-delay: 1.1s;
}
.cert-logros-grid .cert-logro-card:nth-child(4) .cert-logro-card__body::before,
.cert-dash-grid .cert-dash-card:nth-child(4) .cert-logro-card__body::before {
    animation-delay: 1.65s;
}
@keyframes cert-logro-top-shine {
    0% { background-position: 115% 0; }
    100% { background-position: -115% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cert-logro-card__body::before {
        animation: none;
        background: linear-gradient(90deg, var(--cert-gold-light), var(--cert-gold), var(--cert-gold-light));
        background-size: 100% 100%;
    }
}
.cert-logro-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef4f0;
    color: var(--cert-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.cert-logro-card__type {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cert-muted);
    margin: 0 0 0.5rem;
}
.cert-logro-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.45rem;
    line-height: 1.15;
}
.cert-logro-card__empresa {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cert-green-dark);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    max-width: 100%;
    word-break: break-word;
}
.cert-logro-card__desc {
    font-size: 0.78rem;
    color: var(--cert-muted);
    margin: 0;
    line-height: 1.45;
}
.cert-logro-card__footer {
    background: var(--cert-green-dark);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}
.cert-logro-card__logo {
    height: 26px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.cert-logro-card__logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.04em;
}
.cert-logro-card--locked {
    opacity: 0.55;
    filter: grayscale(0.4);
    pointer-events: none;
}
.cert-logro-card--locked .cert-logro-card__body::before {
    animation: none;
    background: #d1d5db;
    background-size: 100% 100%;
}

/* —— Panel empresa —— */
.cert-dash {
    display: grid;
    gap: 1rem;
    padding-bottom: 2.5rem;
}
.cert-dash-hero {
    border: 1px solid #e8ece9;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: var(--cert-surface);
}
.cert-dash-hero--compact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
@media (min-width: 992px) {
    .cert-dash-hero--compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem 1.25rem;
    }
}
.cert-dash-hero__copy {
    min-width: 0;
    flex: 1 1 auto;
}
.cert-dash-hero h1 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2e24;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.cert-dash-hero p {
    font-size: 0.78rem;
    color: var(--cert-muted);
    margin: 0;
    line-height: 1.45;
    max-width: 42rem;
}
.cert-dash-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    flex-shrink: 0;
}
@media (min-width: 576px) {
    .cert-dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.6rem;
    }
}
@media (min-width: 992px) {
    .cert-dash-stats {
        width: min(100%, 460px);
        margin-top: 0;
    }
}
.cert-dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 4.25rem;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 11px;
    padding: 0.55rem 0.5rem 0.6rem;
    text-align: center;
}
.cert-dash-stat__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--cert-muted);
    text-transform: uppercase;
    letter-spacing: 0.045em;
    line-height: 1.25;
}
.cert-dash-stat__value {
    display: block;
    font-size: 1.08rem;
    color: var(--cert-green-dark);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cert-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.cert-dash-card {
    border: 1px solid #e8ece9;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-dash-card__desc {
    min-height: 2.35rem;
    margin: 0;
    line-height: 1.4;
}
.cert-dash-card__desc--empty {
    min-height: 2.35rem;
    margin: 0;
}
.cert-dash-card__progress-slot {
    flex-shrink: 0;
    padding: 8px 0;
}
.cert-dash-card__progress-slot--paths {
    padding: 8px 0;
}
.cert-dash-progress-block {
    width: 100%;
}
.cert-dash-progress-block--idle {
    opacity: 0.55;
}
.cert-dash-paths {
    display: grid;
    gap: 0.4rem;
    width: 100%;
}
.cert-dash-path {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid #e8ece9;
    background: #fff;
}
.cert-dash-path--premium {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}
.cert-dash-path--solo {
    border-color: #c8ddd0;
    background: linear-gradient(135deg, #f4faf6 0%, #eef6f0 100%);
}
.cert-dash-path__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 0.85rem;
}
.cert-dash-path--premium .cert-dash-path__ico {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}
.cert-dash-path--solo .cert-dash-path__ico {
    background: rgba(88, 115, 96, 0.14);
    color: var(--cert-green-dark);
}
.cert-dash-path__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.cert-dash-path__text strong {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e3229;
    line-height: 1.25;
}
.cert-dash-path__text span {
    font-size: 0.66rem;
    color: #6b7f74;
    line-height: 1.3;
}
.cert-dash-card__foot {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 4.85rem;
}
.cert-dash-card__footnote {
    min-height: 2.35rem;
    font-size: 0.74rem;
    line-height: 1.4;
}
.cert-dash-card__footnote--empty {
    min-height: 2.35rem;
    margin: 0;
}
.cert-dash-card .cert-dash-actions {
    margin-top: 0;
    min-height: 2.35rem;
    align-items: stretch;
}
.cert-dash-card.is-unlocked {
    border-color: #c5d9cb;
    box-shadow: 0 4px 18px rgba(88, 115, 96, 0.08);
}
.cert-dash-card.is-locked {
    background: #fafbfa;
}
.cert-dash-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.cert-dash-card__type {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cert-muted);
    margin: 0;
}
.cert-dash-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.15rem 0 0;
    color: #111827;
}
.cert-dash-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cert-dash-pill--ok { background: #dcfce7; color: #15803d; }
.cert-dash-pill--lock { background: #f3f4f6; color: #4b5563; }
.cert-dash-pill--wait { background: #fef3c7; color: #b45309; }
.cert-dash-pill--premium { background: #e0e7ff; color: #3730a3; }
.cert-dash-pill--pedir { background: #dcfce7; color: #047857; }
.cert-dash-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    min-height: 168px;
    padding: 0.15rem 0 0.2rem;
    overflow: visible;
}
.cert-dash-preview .cert-logro-card {
    width: 100%;
    max-width: 236px;
    min-height: auto;
    box-shadow: 0 6px 20px rgba(31, 46, 40, 0.07);
}
.cert-dash-preview .cert-logro-card__body {
    padding: 1.25rem 1rem 0.85rem;
}
.cert-dash-preview .cert-logro-card__title {
    font-size: 1.15rem;
}
.cert-dash-preview .cert-logro-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.65rem;
}
.cert-dash-preview .cert-logro-card__footer {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
}
.cert-dash-progress {
    height: 6px;
    border-radius: 999px;
    background: #e8ece9;
    overflow: hidden;
}
.cert-dash-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cert-green), #6f8f77);
    border-radius: 999px;
    transition: width 0.3s;
}
.cert-dash-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--cert-muted);
    margin-bottom: 4px;
}
.cert-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.cert-dash-actions--verificado .cert-dash-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
}
.cert-dash-btn--premium-link {
    background: #fff;
    color: var(--cert-green-dark) !important;
    border: 1px solid #c5d9cb;
}
.cert-dash-btn--premium-link:hover {
    background: #f4faf6;
    color: var(--cert-green-dark) !important;
}
.cert-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}
.cert-dash-btn:hover { opacity: 0.9; color: inherit; }
.cert-dash-btn--primary {
    background: var(--cert-green);
    color: #fff !important;
}
.cert-dash-btn--ghost {
    background: #f3f4f6;
    color: #374151 !important;
}
.cert-dash-btn--wa {
    background: linear-gradient(135deg, #057a55 0%, #04644b 100%);
    color: #fff !important;
}
.cert-dash-btn--wa:hover { color: #fff !important; opacity: 0.92; }

/* —— Oferta Verificado (card proveedor) —— */
.cert-dash-offer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #f4faf6 0%, #eef6f0 100%);
    border: 1px solid #c8ddd0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.cert-dash-offer__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}
.cert-dash-offer__price-block {
    min-width: 0;
}
.cert-dash-offer__price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 0;
    white-space: nowrap;
    line-height: 1;
}
.cert-dash-offer__currency {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3229;
    line-height: 1;
}
.cert-dash-offer__amount {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1e3229;
    line-height: 1;
}
.cert-dash-offer__price-sub {
    margin: 0.3rem 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7f74;
    line-height: 1.35;
}
.cert-dash-offer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.cert-dash-offer__lead {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #2f4f44;
}
.cert-dash-offer__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #047857;
    background: rgba(220, 252, 231, 0.95);
    border: 1px solid rgba(5, 122, 85, 0.22);
}
.cert-dash-offer__badge--forever {
    color: #1e3229;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(88, 115, 96, 0.35);
}
.cert-dash-offer__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}
.cert-dash-offer__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #3d5248;
}
.cert-dash-offer__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(88, 115, 96, 0.12);
    color: var(--cert-green-dark);
    font-size: 0.85rem;
}
.cert-dash-offer__cta {
    width: 100%;
    padding: 0.62rem 0.85rem !important;
    margin-top: 0.1rem;
    box-shadow: 0 4px 14px rgba(5, 122, 85, 0.22);
}
.cert-dash-offer__cta span { font-size: 0.82rem; }
.cert-dash-offer__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.68rem;
    color: #6b7f74;
    text-align: center;
}
.cert-dash-offer__hint i { font-size: 0.85rem; opacity: 0.85; }

/* —— Banner Verificado (ancho completo sobre el grid) —— */
.cert-dash-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #f4faf6 0%, #eef6f0 100%);
    border: 1px solid #c8ddd0;
    box-shadow: 0 4px 18px rgba(88, 115, 96, 0.08);
}
@media (min-width: 768px) {
    .cert-dash-featured {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) auto;
        align-items: center;
        padding: 1.1rem 1.25rem;
    }
}
.cert-dash-featured__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #587360;
}
.cert-dash-featured__title {
    margin: 0 0 0.45rem;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    font-weight: 800;
    line-height: 1.25;
    color: #1e3229;
}
.cert-dash-featured__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.35rem;
}
.cert-dash-featured__copy {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #3d5248;
    max-width: 34rem;
}
.cert-dash-featured__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.cert-dash-featured__perks li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #2f4f44;
}
.cert-dash-featured__perks i {
    font-size: 1rem;
    color: var(--cert-green-dark);
}
.cert-dash-featured__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 0;
}
@media (min-width: 768px) {
    .cert-dash-featured__cta-wrap {
        align-items: flex-end;
        min-width: 168px;
    }
}
.cert-dash-featured__cta {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}
.cert-dash-featured__hint {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7f74;
    text-align: center;
}
@media (min-width: 768px) {
    .cert-dash-featured__hint { text-align: right; }
}

.cert-dash-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.cert-dash-note {
    font-size: 0.78rem;
    color: var(--cert-muted);
    margin: 0;
    line-height: 1.45;
}
.cert-dash-alert {
    border-radius: 12px;
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
    border: 1px solid #e8ece9;
    background: #fff;
}
.cert-dash-alert a { color: var(--cert-green-dark); font-weight: 600; }

/* —— Admin —— */
.cert-admin-shell { display: grid; gap: 1.35rem; }
.cert-admin-shell--page {
    gap: 0.85rem;
    max-width: none;
}
.cert-admin-grid {
    display: grid;
    gap: 0.85rem;
    align-items: stretch;
}
.cert-admin-grid--2 {
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1100px) {
    .cert-admin-grid--2 {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }
}
.cert-admin-hero {
    background: linear-gradient(135deg, #243d34 0%, #2f4f44 45%, var(--cert-green) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 10px 32px rgba(47, 79, 68, 0.18);
    position: relative;
    overflow: hidden;
}
.cert-admin-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.cert-admin-hero__inner { position: relative; z-index: 1; }
.cert-admin-hero__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 0.4rem;
}
.cert-admin-hero h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff !important;
    letter-spacing: -0.01em;
}
.cert-admin-hero p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 52rem;
}
.cert-admin-hero p strong {
    color: #fff !important;
    font-weight: 700;
}
.cert-admin-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.cert-admin-kpi {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    backdrop-filter: blur(4px);
}
.cert-admin-kpi small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.2rem;
}
.cert-admin-kpi strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.1;
}
.cert-admin-hero--compact {
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
}
.cert-admin-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    align-items: center;
}
@media (min-width: 992px) {
    .cert-admin-hero__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    }
}
.cert-admin-hero__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 36rem;
}
.cert-admin-hero--compact h2 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.cert-admin-hero--compact .cert-admin-hero__eyebrow {
    margin-bottom: 0.25rem;
}
.cert-admin-kpis--inline {
    margin-top: 0;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .cert-admin-kpis--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .cert-admin-kpis--inline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.cert-admin-kpis--inline .cert-admin-kpi {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
}
.cert-admin-kpis--inline .cert-admin-kpi strong {
    font-size: 1.15rem;
}
.cert-admin-card {
    border: 1px solid #e8ece9;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31, 46, 40, 0.04);
    min-width: 0;
}
.cert-admin-card__head--compact {
    padding: 0.65rem 0.9rem;
}
.cert-admin-card__head--compact h3 {
    font-size: 0.88rem;
}
.cert-admin-card__head--compact .cert-admin-card__sub {
    font-size: 0.72rem;
    margin-top: 0.1rem;
}
.cert-admin-card__section {
    border-top: 1px solid #eef1ef;
}
.cert-admin-card__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem 0.35rem;
}
.cert-admin-card__section-head h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cert-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cert-admin-card__head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef1ef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: #fafbfa;
}
.cert-admin-card__head h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: #1a2e24;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.cert-admin-card__head h3 i {
    color: var(--cert-green);
    font-size: 1.1rem;
}
.cert-admin-card__sub {
    font-size: 0.8rem;
    color: var(--cert-muted);
    margin: 0.15rem 0 0;
    width: 100%;
}
.cert-admin-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eef4f0;
    color: var(--cert-green-dark);
    border: 1px solid #d8e5dc;
}
.cert-admin-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cert-admin-toolbar .form-select,
.cert-admin-toolbar .form-control {
    font-size: 0.82rem;
    border-radius: 10px;
    border-color: #dde3df;
    min-height: 36px;
}
.cert-admin-toolbar .form-select {
    min-width: 9rem;
    padding-left: 0.65rem;
    padding-right: 2rem;
    background-position: right 0.55rem center;
    background-size: 12px 9px;
    min-height: 32px;
    font-size: 0.78rem;
}
.cert-admin-toolbar .form-control { min-width: 200px; }

/* Tablas compactas — panel certificaciones admin */
.cert-admin-shell--page .cert-admin-table--sm {
    font-size: 0.78rem;
    margin-bottom: 0;
}
.cert-admin-shell--page .cert-admin-table--sm thead th {
    font-size: 0.65rem;
    padding: 0.4rem 0.65rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8faf9;
    box-shadow: 0 1px 0 #eef1ef;
}
.cert-admin-shell--page .cert-admin-table--sm td {
    padding: 0.38rem 0.65rem;
    vertical-align: middle;
    line-height: 1.35;
}
.cert-admin-shell--page .cert-admin-table--sm .empresa-cell strong {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
}
.cert-admin-shell--page .cert-admin-table--sm .empresa-cell__meta,
.cert-admin-shell--page .cert-admin-table--sm .text-muted {
    font-size: 0.7rem;
}
.cert-admin-shell--page .cert-admin-table--sm .cert-admin-badge {
    font-size: 0.62rem;
    padding: 0.16rem 0.42rem;
}
.cert-admin-shell--page .cert-admin-btn {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    border-radius: 7px;
}
.cert-admin-shell--page .cert-admin-actions {
    gap: 0.25rem;
}
.empresa-cell--compact .empresa-cell__meta {
    display: block;
    color: var(--cert-muted);
    margin-top: 0.05rem;
}
.empresa-cell--compact .empresa-cell__meta a {
    color: var(--cert-green-dark);
    font-weight: 600;
    text-decoration: none;
}
.empresa-cell--compact .empresa-cell__meta a:hover {
    text-decoration: underline;
}
.cert-admin-cell-truncate {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cert-admin-table-scroll {
    overflow: auto;
    width: 100%;
}
.cert-admin-table-scroll--sm { max-height: 220px; }
.cert-admin-table-scroll--md { max-height: 340px; }
.cert-admin-table-scroll--lg { max-height: 420px; }
.cert-admin-dt-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}
.cert-admin-dt-wrap .dataTables_wrapper {
    font-size: 0.85rem;
    width: 100%;
    min-width: 0;
}
.cert-admin-dt-wrap table.dataTable,
.cert-admin-dt-wrap table.cert-admin-table {
    display: table !important;
    visibility: visible !important;
    width: 100% !important;
}
.cert-admin-dt-wrap .dataTables_wrapper {
    display: block !important;
    visibility: visible !important;
}
.cert-admin-dt-wrap .dataTables_length,
.cert-admin-dt-wrap .dataTables_filter {
    margin-bottom: 0.65rem;
    color: var(--cert-muted);
}
.cert-admin-dt-wrap .dataTables_length label,
.cert-admin-dt-wrap .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-weight: 500;
}
.cert-admin-dt-wrap .dataTables_filter input {
    margin-left: 0.35rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dde3df;
    border-radius: 6px;
    font-size: 0.85rem;
}
.cert-admin-dt-wrap .dataTables_info {
    padding-top: 0.65rem;
    color: var(--cert-muted);
    font-size: 0.8rem;
}
.cert-admin-dt-wrap .dataTables_paginate {
    padding-top: 0.65rem;
}
.cert-admin-col-actions,
.cert-admin-table th.cert-admin-col-actions,
.cert-admin-table td.cert-admin-col-actions {
    text-align: center !important;
}
.cert-admin-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}
.cert-admin-catalog-toggle-center,
.cert-admin-col-actions .cert-catalog-toggle {
    justify-content: center;
}
.cert-admin-table {
    width: 100%;
    font-size: 0.85rem;
    margin: 0;
}
.cert-admin-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cert-muted);
    font-weight: 700;
    background: #f8faf9;
    border-bottom: 1px solid #eef1ef;
    white-space: nowrap;
}
.cert-admin-table tbody tr {
    transition: background 0.15s;
}
.cert-admin-table tbody tr:hover {
    background: #f9fbfa;
}
.cert-admin-table td,
.cert-admin-table th {
    padding: 0.8rem 1.15rem;
    vertical-align: middle;
}
.cert-admin-table .empresa-cell strong {
    color: #111827;
    font-weight: 700;
}
.cert-admin-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--cert-muted);
}
.cert-admin-empty i {
    font-size: 2rem;
    color: #c5d0c8;
    display: block;
    margin-bottom: 0.5rem;
}
.cert-admin-check {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--cert-green);
    cursor: pointer;
}
.cert-admin-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.cert-admin-badge--ok { background: #dcfce7; color: #15803d; }
.cert-admin-badge--wait { background: #fef3c7; color: #b45309; }
.cert-admin-badge--done { background: #e0f2e8; color: #2f4f44; }
.cert-admin-badge--no { background: #f3f4f6; color: #6b7280; }
.cert-admin-badge--revoked { background: #fee2e2; color: #b91c1c; }
.cert-admin-btn {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}
.cert-admin-btn--primary {
    background: var(--cert-green) !important;
    border-color: var(--cert-green) !important;
    color: #fff !important;
}
.cert-admin-btn--ghost {
    background: #fff !important;
    border: 1px solid #dde3df !important;
    color: #374151 !important;
}
.cert-admin-btn--ghost:hover,
.cert-admin-btn--ghost:focus,
.cert-admin-btn--ghost:active {
    background: #f3f6f4 !important;
    border-color: #b8c4bc !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.cert-admin-btn--danger {
    background: #fff !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
}
.cert-admin-btn--danger:hover,
.cert-admin-btn--danger:focus {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}
.cert-admin-btn--restore {
    background: #fff !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
}
.cert-admin-btn--restore:hover,
.cert-admin-btn--restore:focus {
    background: #f0fdf4 !important;
    border-color: #4ade80 !important;
    color: #166534 !important;
}
.cert-admin-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}
.cert-admin-catalog {
    border: 1px solid #e8ece9;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.cert-admin-catalog summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    background: #fafbfa;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.cert-admin-catalog summary::-webkit-details-marker { display: none; }
.cert-admin-catalog[open] summary {
    border-bottom-color: #eef1ef;
}
.cert-admin-catalog summary h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: #1a2e24;
}
.cert-admin-catalog__hint {
    font-size: 0.78rem;
    color: var(--cert-muted);
}
.cert-admin-meta-hint {
    font-size: 0.72rem;
    color: var(--cert-muted);
    display: block;
    margin-top: 0.1rem;
}
.cert-catalog-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cert-catalog-toggle .form-check-input {
    width: 2.4rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--cert-green);
}
.cert-catalog-toggle .form-check-input:checked {
    background-color: var(--cert-green);
    border-color: var(--cert-green);
}
.cert-catalog-toggle__label {
    min-width: 4.5rem;
    text-align: center;
}
.cert-catalog-row--off {
    opacity: 0.72;
    background: #fafafa;
}
.cert-catalog-row--off td strong {
    color: var(--cert-muted);
}

/* DataTables — Verificación Premium (compacta) */
.cert-admin-dt-wrap .dataTables_wrapper {
    padding: 0 1rem 0.75rem;
}
.cert-admin-dt-wrap .cert-admin-table--sm {
    font-size: 0.78rem;
}
.cert-admin-dt-wrap .cert-admin-table--sm thead th {
    font-size: 0.65rem;
    padding: 0.45rem 0.75rem;
    letter-spacing: 0.05em;
}
.cert-admin-dt-wrap .cert-admin-table--sm td {
    padding: 0.4rem 0.75rem;
    vertical-align: middle;
    line-height: 1.35;
}
.cert-admin-dt-wrap .cert-admin-table--sm .empresa-cell strong {
    font-size: 0.8rem;
    font-weight: 700;
}
.cert-admin-dt-wrap .cert-admin-table--sm .empresa-cell .small,
.cert-admin-dt-wrap .cert-admin-table--sm .text-muted {
    font-size: 0.7rem !important;
}
.cert-admin-dt-wrap .cert-admin-table--sm .cert-admin-check {
    width: 1rem;
    height: 1rem;
}
.cert-admin-dt-wrap .cert-admin-table--sm .cert-admin-badge {
    font-size: 0.62rem;
    padding: 0.18rem 0.45rem;
}
.cert-admin-dt-wrap .dataTables_length,
.cert-admin-dt-wrap .dataTables_info {
    font-size: 0.72rem;
    color: var(--cert-muted);
    padding-top: 0.5rem;
}
.cert-admin-dt-wrap .dataTables_length select {
    border-radius: 6px;
    border-color: #dde3df;
    padding: 0.15rem 1.5rem 0.15rem 0.4rem;
    margin: 0 0.3rem;
    font-size: 0.72rem;
    min-height: 28px;
}
.cert-admin-dt-wrap .dataTables_paginate {
    padding-top: 0.5rem;
}
.cert-admin-dt-wrap .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid #dde3df !important;
    padding: 0.2rem 0.5rem !important;
    margin-left: 0.15rem !important;
    font-size: 0.72rem !important;
    background: #fff !important;
    color: #374151 !important;
    min-height: 28px;
    line-height: 1.2;
}
.cert-admin-dt-wrap .dataTables_paginate .paginate_button.current,
.cert-admin-dt-wrap .dataTables_paginate .paginate_button.current:hover {
    background: #f3f6f4 !important;
    border-color: #b8c9be !important;
    color: var(--cert-green-dark) !important;
    font-weight: 700;
    box-shadow: none !important;
}
.cert-admin-dt-wrap .dataTables_paginate .paginate_button.disabled {
    opacity: 0.45;
}
.cert-admin-dt-wrap .cert-admin-btn {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
    line-height: 1.25;
}
.cert-admin-dt-wrap .cert-catalog-toggle {
    justify-content: center;
}
.cert-admin-dt-wrap .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: #f3f6f4 !important;
    color: #1a2e24 !important;
}
.cert-admin-search-input {
    min-width: 240px;
}
.cert-verif-row--done {
    opacity: 0.88;
}
.cert-admin-catalog summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cert-admin-modal .modal-content {
    border: 1px solid #e8ece9;
    border-radius: 14px;
    overflow: hidden;
}
.cert-admin-modal .modal-header {
    background: #fafbfa;
    border-bottom: 1px solid #eef1ef;
}
.cert-admin-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.cert-admin-modal .modal-title i {
    font-size: 1.25rem;
}
.cert-admin-modal__hint {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
}
.cert-admin-modal .modal-footer {
    border-top: 1px solid #eef1ef;
    background: #fafbfa;
}
.cert-admin-modal .btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.cert-admin-empty--compact {
    padding: 1rem 0.9rem;
    text-align: center;
    font-size: 0.82rem;
}

/* —— Verificación manual admin —— */
.cert-admin-card--manual {
    border-color: #c5d9cb;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.cert-admin-card--manual.is-search-open {
    position: relative;
    z-index: 120;
}
.cert-admin-card--manual .cert-admin-card__section {
    position: relative;
    z-index: 10;
    background: #fff;
    flex: 1 1 auto;
    min-width: 0;
}
.cert-admin-manual-search {
    padding: 0 0.9rem 0.75rem;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}
.cert-admin-manual-search.is-open {
    z-index: 50;
}
.cert-admin-manual-search--compact {
    padding-top: 0.15rem;
}
.cert-admin-manual-search__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cert-muted);
    margin-bottom: 0.45rem;
}
.cert-admin-manual-search__row {
    position: relative;
    width: 100%;
}
.cert-admin-manual-search__results {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid #dde3df;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(31, 46, 40, 0.12);
}
.cert-admin-manual-search__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-bottom: 1px solid #eef1ef;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 0.78rem;
}
.cert-admin-manual-search__item.is-active,
.cert-admin-manual-search__item:hover,
.cert-admin-manual-search__item:focus {
    background: #eef4f0;
    outline: none;
}
.cert-admin-manual-search__item-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
}
.cert-admin-manual-search__item-main strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2e24;
}
.cert-admin-manual-search__item-meta {
    display: block;
    font-size: 0.7rem;
    color: var(--cert-muted);
    line-height: 1.35;
}
.cert-admin-manual-search__item:last-child {
    border-bottom: 0;
}
.cert-admin-manual-search__match {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--cert-green-dark);
    background: #eef4f0;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}
.cert-admin-search-mark {
    padding: 0;
    background: #fef3c7;
    color: inherit;
    border-radius: 2px;
}
.cert-admin-manual-search__empty {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    color: var(--cert-muted);
}
.cert-admin-manual-selected {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d8e5dc;
    border-radius: 10px;
    background: #f8faf9;
}
.cert-admin-manual-selected__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.cert-admin-manual-selected__info {
    min-width: 0;
}
.cert-admin-manual-selected__info strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.25;
}
.cert-admin-manual-selected__info span {
    display: block;
    font-size: 0.72rem;
    margin-top: 0.1rem;
}
.cert-admin-manual-selected__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.cert-admin-manual-selected__actions .form-control {
    flex: 1 1 220px;
    min-width: 180px;
}
.cert-admin-manual-block {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #eef1ef;
}
.cert-admin-manual-block__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a2e24;
    margin: 1rem 0 0.75rem;
}
.cert-admin-catalog summary {
    padding: 0.65rem 0.9rem;
}
.cert-admin-catalog summary h3 {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cert-admin-catalog__hint {
    font-size: 0.72rem;
}
.cert-admin-meta-hint {
    font-size: 0.68rem;
}
.cert-catalog-toggle .form-check-input {
    width: 2rem;
    height: 1.05rem;
}
.cert-catalog-toggle__label {
    min-width: 3.8rem;
    font-size: 0.62rem;
}

/* —— Oferta Verificado promocional (guía + certificaciones) —— */
.cert-verificado-offer-wrap {
    margin-bottom: 1rem;
}
.gp-shell .cert-verificado-offer-wrap {
    margin-bottom: 0;
}

.cert-vpromo {
    margin-bottom: 1rem;
}

.cert-vpromo__shell {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c8ddd0;
    box-shadow: 0 8px 24px rgba(30, 50, 41, 0.1);
}

@media (min-width: 768px) {
    .cert-vpromo__shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: stretch;
    }
}

.cert-vpromo__hero {
    position: relative;
    padding: 0.75rem 0.95rem;
    background: linear-gradient(135deg, #1e3229 0%, #2f4f44 42%, #587360 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .cert-vpromo__hero {
        display: flex;
        align-items: center;
        gap: 0.85rem 1rem;
        padding: 0.7rem 1.05rem;
        min-height: 0;
    }
}

.cert-vpromo__hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 8% 50%, rgba(168, 212, 184, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 65% at 92% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 50% 60% at 75% 90%, rgba(88, 115, 96, 0.35), transparent 52%);
    pointer-events: none;
}

.cert-vpromo__hero > *:not(.cert-vpromo__hero-glow) {
    position: relative;
    z-index: 1;
}

.cert-vpromo__hero-top {
    min-width: 0;
    flex: 1;
}

.cert-vpromo__badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-bottom: 0.35rem;
}

.cert-vpromo__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cert-vpromo__pill i {
    font-size: 0.78rem;
}

.cert-vpromo__deadline {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.cert-vpromo__brand {
    margin: 0 0 0.1rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.cert-vpromo__title {
    margin: 0;
    font-size: clamp(0.82rem, 1.8vw, 0.98rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
}

.cert-vpromo__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.4rem 0.65rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .cert-vpromo__price-row {
        margin-top: 0.45rem;
    }
}

.cert-vpromo__price {
    display: flex;
    align-items: baseline;
    gap: 0.08rem;
    line-height: 1;
}

.cert-vpromo__price-symbol {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.cert-vpromo__price-val {
    font-size: clamp(1.65rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.cert-vpromo__price-side {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    padding-bottom: 0.12rem;
}

.cert-vpromo__was {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.cert-vpromo__meta {
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
}

.cert-vpromo__save {
    font-size: 0.62rem;
    font-weight: 800;
    color: #bbf7d0;
}

.cert-vpromo__body {
    background: #fff;
    padding: 0.7rem 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    border-top: 1px solid #dce8e0;
}

@media (min-width: 768px) {
    .cert-vpromo__body {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem 1rem;
        padding: 0.65rem 1rem;
        border-top: none;
        border-left: 1px solid #dce8e0;
    }
}

.cert-vpromo__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 992px) {
    .cert-vpromo__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem 0.65rem;
    }
}

.cert-vpromo__features li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
    color: #3d5248;
}

.cert-vpromo__features strong {
    color: #1e3229;
    font-weight: 700;
}

.cert-vpromo__feat-ico {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 115, 96, 0.14);
    color: #587360;
}

.cert-vpromo__feat-ico i {
    font-size: 0.82rem;
}

.cert-vpromo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0;
    padding: 0.58rem 1.1rem;
    border-radius: 999px;
    background: #1e3229;
    color: #fff !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(30, 50, 41, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cert-vpromo__cta i {
    font-size: 0.95rem;
}

.cert-vpromo__cta:hover {
    color: #fff !important;
    background: #2f4f44;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30, 50, 41, 0.28);
}

/* Legacy aliases */
.empresa-certificados-section { margin-top: 0; padding-top: 0; border-top: 0; }
.empresa-certificados-title { display: none; }
.empresa-certificados-grid { display: contents; }

@media (max-width: 640px) {
    .cert-logros-grid { grid-template-columns: 1fr; }
    .cert-dash-grid { grid-template-columns: 1fr; }
}
