/* =========================================================================
   Portal de Financiación — encabezado y pie de página rediseñados
   (página de Requisitos / Simulador / Comprobante / Formulario).
   Colores de marca: UNIAJS #03386b, UNITECNAR #004563 — se aplican vía
   t-attf-style directamente en el template, estas clases solo dan forma.
   ========================================================================= */

/* ---------------------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------------------- */
.cph-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 22px 0 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.cph-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(480px 200px at 88% -20%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(320px 180px at 102% 90%, rgba(255, 255, 255, .10), transparent 60%);
    pointer-events: none;
}

.cph-header-inner {
    position: relative;
}

.cph-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cph-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cph-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 5px;
    border: 2px solid rgba(255, 255, 255, .5);
}

.cph-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cph-eyebrow {
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.cph-brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.cph-subtitle {
    font-size: 13px;
    color: #a1d6ff;
    font-weight: 600;
    letter-spacing: .03em;
}

.cph-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cph-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
}

.cph-crumbs a {
    color: #fff;
    text-decoration: none;
    opacity: .85;
}

.cph-crumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.cph-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cph-back:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.cph-tabs {
    position: relative;
    display: flex;
    gap: 6px;
    margin-top: 20px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 5px;
    border-radius: 14px;
    width: fit-content;
    flex-wrap: wrap;
}

.cph-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 12.8px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cph-tab:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.cph-tab.active,
.cph-tab[aria-expanded="true"] {
    background: #fff;
    color: var(--cph-brand-ink, #03386b);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

@media (max-width: 767px) {
    .cph-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .cph-header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ---------------------------------------------------------------------
   PIE DE PÁGINA
   --------------------------------------------------------------------- */
.cpf-footer {
    margin-top: 34px;
    color: rgba(255, 255, 255, .86);
}

.cpf-footer-top {
    padding: 34px 15px 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto;
}

.cpf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cpf-brand .cpf-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    flex: none;
}

.cpf-brand .cpf-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cpf-brand span {
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    letter-spacing: .02em;
}

.cpf-footer p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .68);
    margin: 0;
}

.cpf-footer h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 12px;
}

.cpf-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cpf-footer ul li,
.cpf-footer ul a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: 12.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpf-footer ul a:hover {
    text-decoration: underline;
    color: #fff;
}

.cpf-footer .cpf-ic {
    width: 16px;
    text-align: center;
    color: #d99a2b;
    flex: none;
}

.cpf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1140px;
    margin: 0 auto;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .55);
    flex-wrap: wrap;
}

.cpf-social {
    display: flex;
    gap: 8px;
}

.cpf-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
}

.cpf-social a:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

@media (max-width: 767px) {
    .cpf-footer-top {
        grid-template-columns: 1fr;
    }
}
