/* CEBA Peruano Japonés — ajustes de marca que deben cargar después del CSS de cada página */

/* Fichas del héroe: primera en dorado, el resto en vidrio blanco (sin arcoíris sobre rojo).
   Clases repetidas para superar los selectores con !important de modalidades/matrícula/requisitos. */
.mod-hero.mod-hero .mod-hero-kpis.mod-hero-kpis li[class],
.matricula-hero-kpis.matricula-hero-kpis--brand li[class],
.req-hero__kpis.req-hero__kpis.req-hero__kpis li[class] {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.mod-hero.mod-hero .mod-hero-kpis.mod-hero-kpis li[class] i,
.matricula-hero-kpis.matricula-hero-kpis--brand li[class] i,
.req-hero__kpis.req-hero__kpis.req-hero__kpis li[class] i {
    color: #f2d675 !important;
}

.mod-hero.mod-hero .mod-hero-kpis.mod-hero-kpis li[class]:first-child,
.matricula-hero-kpis.matricula-hero-kpis--brand li[class]:first-child,
.req-hero__kpis.req-hero__kpis.req-hero__kpis li[class]:first-child {
    background: linear-gradient(135deg, #e3b745, #b08316) !important;
    border-color: transparent !important;
    color: #1f1300 !important;
}

.mod-hero.mod-hero .mod-hero-kpis.mod-hero-kpis li[class]:first-child i,
.matricula-hero-kpis.matricula-hero-kpis--brand li[class]:first-child i,
.req-hero__kpis.req-hero__kpis.req-hero__kpis li[class]:first-child i {
    color: #1f1300 !important;
}

/* Botones y cabeceras ámbar con texto blanco */
.btn-verificar,
.card-header-deberes {
    background: linear-gradient(135deg, #b8860b, #8a6100);
}

.btn-verificar:hover {
    background: #7a5600;
}

.btn-descargar-resolucion {
    background: #047857;
}

/* Migas de pan sobre héroes rojos */
.mpago-hero .mpago-breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

.mpago-hero .mpago-breadcrumb a:hover {
    color: #f2d675;
}

/* Textos secundarios grises demasiado claros sobre blanco */
.hero-v2__eyebrow,
.contacto-form-nota,
.req-case__tipo,
.cert-precio-sub,
.cert-proceso-title,
.cert-proceso small,
.cert-pago-item small,
.cert-fcard small,
.tp-doc-fecha {
    color: #64748b !important;
}

.stat-clean-live {
    color: #047857;
}

/* Crédito del desarrollador (pie de página) */
.footer-made .footer-dev-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-made .footer-dev-link strong {
    color: #f2d675;
    font-weight: 700;
}

.footer-made .footer-dev-link:hover,
.footer-made .footer-dev-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(242, 214, 117, 0.55);
    transform: translateY(-1px);
}

.footer-dev-link__avatar {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3b745, #b08316);
    color: #1f1300;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Modal del desarrollador */
html.dev-modal-open {
    overflow: hidden;
}

.dev-modal {
    width: min(26rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: #1e293b;
    overflow: visible;
}

.dev-modal::backdrop {
    background: rgba(26, 4, 9, 0.62);
    backdrop-filter: blur(4px);
}

.dev-modal[open] {
    animation: devModalIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes devModalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.dev-modal__card {
    position: relative;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(26, 4, 9, 0.45);
}

.dev-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dev-modal__close:hover,
.dev-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.dev-modal__head {
    position: relative;
    padding: 2rem 1.5rem 1.4rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(227, 183, 69, 0.35), transparent 55%),
        linear-gradient(150deg, #5c0714 0%, #c8102e 60%, #8b0a1e 100%);
    border-bottom: 3px solid #e3b745;
}

.dev-modal__avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, #e3b745, #b08316);
    color: #1f1300;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dev-modal__avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #16a34a;
    color: #fff;
    font-size: 0.6rem;
}

.dev-modal__eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2d675;
}

.dev-modal__eyebrow i {
    margin-right: 0.3rem;
}

.dev-modal__name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.dev-modal__role {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.dev-modal__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.dev-modal__summary {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    text-align: center;
}

.dev-modal__services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
}

.dev-modal__services li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid #f3d9dd;
    background: #fdf6f7;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #334155;
}

.dev-modal__services i {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    color: #c8102e;
}

.dev-modal__label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.dev-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.dev-modal__chip {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dev-modal__chip:hover {
    border-color: #c8102e;
    color: #c8102e;
}

.dev-modal__chip.is-active {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
}

.dev-modal__wa {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #25d366, #128c4a);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(18, 140, 74, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dev-modal__wa:hover,
.dev-modal__wa:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(18, 140, 74, 0.45);
}

.dev-modal__wa > .fa-whatsapp {
    font-size: 1.9rem;
}

.dev-modal__wa span {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
}

.dev-modal__wa strong {
    font-size: 1rem;
}

.dev-modal__wa small {
    font-size: 0.78rem;
    opacity: 0.9;
}

@media (max-width: 560px) {
    .dev-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 92dvh;
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }

    .dev-modal__card {
        max-height: 92dvh;
        border-radius: 22px 22px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .dev-modal[open] {
        animation-name: devSheetIn;
    }

    @keyframes devSheetIn {
        from { transform: translateY(100%); }
        to   { transform: none; }
    }

    .dev-modal__head {
        padding: 1.6rem 1.25rem 1.2rem;
    }

    .dev-modal__body {
        padding: 1.1rem 1.25rem 1.35rem;
    }

    .footer-made .footer-dev-link {
        font-size: 0.74rem;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dev-modal[open] {
        animation: none;
    }
}
