.credito-pub {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 28%, #eff6ff 28%, #f8fafc 100%);
    color: #0f172a;
}

.credito-pub-nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.credito-pub-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
}

.credito-pub-nav .credito-pub-nav-links {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.credito-pub-nav .credito-pub-nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
}

.credito-pub-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.15rem 2rem;
    color: #fff;
}

.credito-pub-hero h1 {
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0.6rem;
}

.credito-pub-hero p {
    max-width: 34rem;
    color: #cbd5e1;
    margin: 0;
}

.credito-pub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
}

.credito-pub-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.15rem 3rem;
}

.credito-pub-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
}

.credito-pub-card-body {
    padding: 1.25rem 1.3rem 1.4rem;
}

.credito-pub-sim {
    background: #0f172a;
    color: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.3rem;
    position: sticky;
    top: 1rem;
}

.credito-pub-sim h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.credito-pub-sim li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #cbd5e1;
    font-size: 0.92rem;
}

.credito-pub-sim li strong {
    color: #fff;
}

.credito-pub-sim .is-total {
    border-bottom: none;
    margin-top: 0.4rem;
    font-size: 1.05rem;
}

.credito-pub-sim .is-total strong {
    color: #86efac;
    font-size: 1.25rem;
}

.credito-pub-legal {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 1rem 0 0;
}

.credito-pub .form-label {
    font-weight: 700;
    font-size: 0.86rem;
}

.credito-pub .form-control,
.credito-pub .form-select {
    min-height: 46px;
    border-radius: 12px;
}

.credito-pub-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.credito-pub-foot {
    text-align: center;
    color: #64748b;
    padding: 0 1rem 2rem;
    font-size: 0.9rem;
}

.credito-prod-search {
    position: relative;
}

.credito-prod-suggest {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    max-height: 280px;
    overflow: auto;
}

.credito-prod-option {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: #fff;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.credito-prod-option:hover,
.credito-prod-option:focus {
    background: #eff6ff;
}

.credito-prod-option strong {
    font-size: 0.92rem;
}

.credito-prod-option span {
    color: #64748b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.credito-prod-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.credito-prod-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}

.credito-prod-item-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.credito-prod-qty {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.credito-kyc-img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.credito-pagare {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
}

.credito-pagare h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.credito-pagare-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.35rem;
}

.credito-firma-wrap {
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    background: #fff;
    touch-action: none;
}

.credito-firma-canvas {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 12px;
}

.credito-firma-preview {
    max-width: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.kyc-steps {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
}

.kyc-steps li {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.35rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.kyc-steps li.is-active {
    background: #1d4ed8;
    color: #fff;
}

.kyc-steps li.is-done {
    background: #16a34a;
    color: #fff;
}

.kyc-intro-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.kyc-intro-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.45rem;
    color: #334155;
}

.kyc-intro-list i {
    color: #2563eb;
    margin-top: 0.15rem;
}

.kyc-hint,
.kyc-status {
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

.kyc-status {
    color: #2563eb;
    min-height: 1.4em;
}

.kyc-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    aspect-ratio: 3 / 4;
    max-height: 68vh;
}

.kyc-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kyc-app.is-face .kyc-video {
    transform: scaleX(-1);
}

.kyc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.kyc-frame-id {
    position: relative;
    width: min(88%, 440px);
    aspect-ratio: 1.586;
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.58);
    outline: 2px solid #f8fafc;
    outline-offset: 0;
}

.kyc-id-guide {
    position: absolute;
    inset: 10px;
    display: flex;
    gap: 10px;
    opacity: 0.92;
}

.kyc-frame-id .kyc-id-reverso {
    display: none;
}

.kyc-frame-id.is-reverso .kyc-id-frente {
    display: none;
}

.kyc-frame-id.is-reverso .kyc-id-reverso {
    display: flex;
}

.kyc-id-photo {
    width: 28%;
    border: 2px dashed rgba(248, 250, 252, 0.85);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.15);
}

.kyc-id-photo::after {
    content: "";
    display: block;
    width: 42%;
    aspect-ratio: 1;
    margin: 18% auto 0;
    border-radius: 50%;
    border: 2px dashed rgba(248, 250, 252, 0.8);
}

.kyc-id-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.kyc-id-lines i {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: rgba(248, 250, 252, 0.45);
}

.kyc-id-lines i:nth-child(2) { width: 92%; }
.kyc-id-lines i:nth-child(3) { width: 70%; }
.kyc-id-lines i:nth-child(4) { width: 58%; }

.kyc-id-badge {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
}

.kyc-id-lines em,
.kyc-id-back em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.kyc-id-back {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.kyc-id-stripe {
    height: 22%;
    margin-top: 8%;
    background: repeating-linear-gradient(
        90deg,
        rgba(248, 250, 252, 0.15) 0 8px,
        rgba(15, 23, 42, 0.35) 8px 12px
    );
    border-radius: 4px;
}

.kyc-id-barcode {
    height: 28%;
    border: 2px dashed rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    background: repeating-linear-gradient(
        90deg,
        rgba(248, 250, 252, 0.55) 0 3px,
        transparent 3px 6px
    );
}

.kyc-frame-face {
    position: relative;
    width: min(62%, 280px);
    aspect-ratio: 0.72;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.6);
    outline: 3px solid rgba(56, 189, 248, 0.95);
}

.kyc-frame-face::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(#38bdf8 var(--kyc-progress, 0%), rgba(148, 163, 184, 0.25) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    opacity: 0;
}

.kyc-frame-face.is-scanning::before {
    opacity: 1;
}

.kyc-scan-line {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7dd3fc, transparent);
    box-shadow: 0 0 12px #38bdf8;
    opacity: 0;
}

.kyc-frame-face.is-scanning .kyc-scan-line {
    opacity: 1;
    animation: kyc-scan 1.6s linear infinite;
}

@keyframes kyc-scan {
    0% { top: 10%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 86%; opacity: 0; }
}

.kyc-shutter {
    font-weight: 800;
}

.kyc-preview-img {
    max-height: 360px;
}

@media (max-width: 991.98px) {
    .credito-pub-sim {
        position: static;
        margin-bottom: 1rem;
    }
}
