/* GB-1143 — Estilos del flujo customer-facing SEOGA. */

.text-purple  { color: #850f7d !important; }
.text-warning { color: #ffb547 !important; }

.seoga-container { padding: 24px 12px 80px; }

/*
 * Todas las cards SEOGA sobre fondo blanco puro con sombra clara para
 * destacar sobre el fondo verde del body (#b5e1c0). Alineado con el
 * look del .card original de la app pero con radio 8px.
 */
.seoga-container .card,
.seoga-card,
.seoga-info-card,
.seoga-cost-card {
    border-radius: 8px !important;
    padding: 22px 24px;
    margin-bottom: 18px;
    background: #fff !important;
    border: 0;
    box-shadow: 0 4px 14px 0 rgba(30,40,50,.10) !important;
}
.seoga-container .card h4 { margin-top: 0; }

.seoga-landing-header h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.seoga-landing-subtitle  { color: #6b7a83; margin-bottom: 22px; }

.seoga-block-title { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.seoga-block-hint  { color: #6b7a83; font-size: 13px; margin-bottom: 12px; }

.seoga-amount-big { font-size: 46px; font-weight: 700; text-align: center; margin: 8px 0 4px; }
.seoga-slider {
    width: 100%;
    height: 6px;
    accent-color: #2ab27b;
    background: linear-gradient(90deg, #2ab27b, #d1e6d1);
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}
.seoga-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px;
    background: #fff; border: 3px solid #2ab27b; border-radius: 50%; cursor: pointer;
}
.seoga-slider-range { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: #6b7a83; }
.seoga-slider-max strong { color: #2ab27b; }

.seoga-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seoga-term-card {
    border: 2px solid #e2e7eb;
    border-radius: 8px;
    padding: 14px 12px;
    cursor: pointer;
    text-align: left;
    background: #fff;
    transition: border-color .1s ease, background .1s ease;
}
.seoga-term-card input { display: none; }
.seoga-term-card.active { border-color: #2ab27b; background: rgba(42,178,123,.06); }
.seoga-term-icon   { color: #2ab27b; margin-bottom: 6px; }
.seoga-term-days   { font-size: 20px; font-weight: 700; }
.seoga-term-return { font-size: 12px; color: #6b7a83; }

.seoga-info-card {
    background: #eef6f0;
    border-left: 4px solid #2ab27b;
}
.seoga-info-icon  { color: #2ab27b; font-size: 18px; margin-bottom: 4px; }
.seoga-info-title { font-weight: 600; margin-bottom: 4px; }
.seoga-info-body  { font-size: 13px; color: #405058; }

.seoga-cost-card {
    background: #fbf6ff;
    border-left: 4px solid #850f7d;
}
.seoga-cost-label { color: #6b7a83; font-size: 13px; }
.seoga-cost-big   { font-size: 32px; font-weight: 700; color: #d64545; margin: 4px 0 6px; }
.seoga-cost-disclaimer { font-size: 12px; color: #6b7a83; }

.seoga-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 18px; }

/* Wrapper para que .purple/.seoga-btn-green ocupen todo el ancho (CTAs de columna). */
.seoga-cta-block { display: block; width: 100%; text-align: center; margin-top: 10px; }

/*
 * Variantes verde y azul del mismo look que .purple (pill 50px, uppercase,
 * bold, sombra). Usar segun el mockup:
 *   .seoga-btn-green         CTA principal de progresion positiva
 *   .seoga-btn-green-outline Cancelar / secundaria neutra
 *   .seoga-btn-blue          Upload y "Anadir archivo" en documentacion
 */
.seoga-btn-green,
.seoga-btn-green-outline,
.seoga-btn-blue {
    display: inline-block;
    padding: 13px 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 50px;
    -webkit-box-shadow: 0 0 10px 0 #424242;
    box-shadow: 0 0 10px 0 #424242;
    outline: 0 !important;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.seoga-btn-green         { background-color: #2ab27b; color: #fff; border: 2px solid #fff; }
.seoga-btn-green:hover,
.seoga-btn-green:focus   { background-color: #38c68a; color: #fff; }
.seoga-btn-green:active  { background-color: #fff; color: #2ab27b; border: 2px solid #2ab27b; }

.seoga-btn-green-outline         { background-color: #fff; color: #405058; border: 2px solid #d7dde1; box-shadow: none; }
.seoga-btn-green-outline:hover,
.seoga-btn-green-outline:focus   { background-color: #f4faf6; color: #2ab27b; border-color: #2ab27b; }

.seoga-btn-blue          { background-color: #3097D1; color: #fff; border: 2px solid #fff; }
.seoga-btn-blue:hover,
.seoga-btn-blue:focus    { background-color: #4bacdd; color: #fff; }

/* Enlace textual ("Reenviar SMS"). */
.seoga-link-btn { background: none; border: 0; padding: 6px 0; margin-top: 8px; color: #850f7d; font-weight: 600; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.seoga-link-btn:hover { color: #c17abc; }

.seoga-otp-input { margin-top: 8px; margin-bottom: 12px; text-align: center; letter-spacing: 6px; font-weight: 700; }

.seoga-help-block {
    background: #eef6f0;
    border-radius: 8px;
    padding: 18px 24px;
    display: flex; align-items: center; gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.seoga-help-icon  { color: #2ab27b; font-size: 22px; flex-shrink: 0; }
.seoga-help-body  { flex: 1 1 260px; min-width: 200px; }
.seoga-help-title { font-weight: 600; }
.seoga-help-text  { font-size: 13px; color: #405058; }
.seoga-help-cta   { margin-left: auto; padding: 10px 22px !important; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
    .seoga-help-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* Status */
.seoga-status-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.seoga-status-header h1 { text-transform: uppercase; letter-spacing: .5px; font-size: 22px; }
.seoga-status-illustration i { font-size: 42px; }

.seoga-status-card { text-align: center; padding: 32px 40px; }
.seoga-status-card .seoga-status-icon i { font-size: 46px; }
.seoga-status-card .seoga-status-title { font-size: 22px; margin: 12px 0 6px; letter-spacing: .5px; }
.seoga-status-card .seoga-status-body  { color: #405058; margin-bottom: 14px; }
.seoga-status-approved .seoga-status-icon i { color: #2ab27b; }
.seoga-status-review   .seoga-status-icon i { color: #ffb547; }

.seoga-status-note { padding: 10px 14px; border-radius: 6px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.seoga-note-success { background: #eaf6ef; color: #1f6c47; }
.seoga-note-warning { background: #fff4d8; color: #7a5b00; }
.seoga-note-info    { background: #eef6f0; color: #405058; padding: 10px 14px; border-radius: 6px; margin-top: 10px; font-size: 13px; }

.seoga-loan-summary { display: block; margin: 18px 0; text-align: left; }
.seoga-loan-summary > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f4; }
.seoga-loan-summary > div:last-child { border-bottom: 0; }
.seoga-loan-summary > div > i { flex-shrink: 0; }
.seoga-loan-summary > div > strong { margin-left: auto; text-align: right; white-space: nowrap; }

.seoga-status-disclaimer {
    background: #eef2fb; border-left: 4px solid #850f7d;
    padding: 10px 14px; font-size: 13px; text-align: left; border-radius: 6px; margin-bottom: 18px;
}

.seoga-info-block { display: flex; align-items: center; gap: 14px; padding: 16px; flex-wrap: nowrap; }
.seoga-info-block > div:not(.seoga-info-icon) { flex: 1 1 auto; min-width: 0; }
.seoga-info-block .seoga-info-icon { flex-shrink: 0; }
.seoga-link-more  { margin-left: auto; color: #850f7d; font-weight: 600; text-transform: uppercase; font-size: 12px; flex-shrink: 0; white-space: nowrap; }

/* En pre-approved, el "¿Por que este resultado?" gana look de card verde
   (paridad con .seoga-help-block por peticion cliente 22/jul). */
.seoga-status-footer .seoga-info-block {
    background: #eef6f0;
    border-radius: 8px;
    padding: 18px 24px;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 18px;
}
.seoga-status-footer .seoga-info-icon {
    color: #2ab27b; font-size: 22px; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    background: #2ab27b; color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.seoga-status-footer .seoga-info-title { font-weight: 600; }
.seoga-status-footer .seoga-info-body  { font-size: 13px; color: #405058; }

/* Stepper (Mockup 2 — flechas > entre steps, no encima). */
.seoga-stepper { display: flex; align-items: stretch; margin: 20px 0 28px; gap: 8px; }
.seoga-step { flex: 1; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid #e2e7eb; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(30,40,50,.06); min-width: 0; }
.seoga-step-badge {
    width: 28px; height: 28px; border-radius: 50%;
    background: #d7dde1; color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.seoga-step.done .seoga-step-badge    { background: #2ab27b; }
.seoga-step.current .seoga-step-badge { background: #2ab27b; }
.seoga-step-body { min-width: 0; }
.seoga-step-label { font-weight: 700; font-size: 13px; color: #405058; margin-bottom: 4px; }
.seoga-step-desc  { font-size: 11px; color: #6b7a83; line-height: 1.35; }
.seoga-step.done .seoga-step-label, .seoga-step.current .seoga-step-label { color: #2ab27b; }
.seoga-step-arrow { display: flex; align-items: center; color: #b8c2c8; flex-shrink: 0; }

/* Documents */
.seoga-documents-hero { padding: 24px 28px; background: #e6f2e6; border-radius: 8px; margin-bottom: 22px; }

/* Ocultar de verdad los file inputs dentro de labels que actuan como boton. */
.seoga-doc-icon-btn input[type="file"],
.seoga-add-file-btn input[type="file"] {
    display: none !important;
}
.seoga-back-link { color: #6b7a83; margin-bottom: 8px; display: inline-block; text-decoration: none; }
.seoga-hero-title { margin: 0; text-transform: uppercase; letter-spacing: .5px; }
.seoga-hero-subtitle { margin-top: 4px; font-size: 18px; font-weight: 600; }
.seoga-hero-intro { color: #405058; margin-top: 10px; }
.seoga-documents-hero-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.seoga-documents-summary { padding: 22px 24px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(30,40,50,.08); }
.seoga-status-mini { font-weight: 700; text-align: center; margin-bottom: 12px; color: #2ab27b; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.seoga-status-mini i { margin-right: 6px; }

.seoga-documents-next-steps h3 { margin-bottom: 4px; }

.seoga-analysis-result { text-align: center; margin: 10px 0 18px; padding: 14px 8px; }
.seoga-analysis-result .seoga-status-icon i { font-size: 40px; color: #2ab27b; }
.seoga-analysis-title  { font-weight: 700; font-size: 18px; letter-spacing: .5px; color: #2ab27b; margin: 8px 0 6px; }
.seoga-analysis-note   { font-size: 12px; color: #405058; margin-top: 6px; }
.seoga-analysis-details h5 { margin-top: 16px; margin-bottom: 8px; }
.seoga-availability-note {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #b8dfc7;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}
.seoga-availability-note i { color: #2ab27b; margin-top: 2px; flex-shrink: 0; font-size: 15px; }

/* En la col izquierda de documents, el help-block va vertical: icono+texto
   arriba, boton centrado abajo (col-md-4 es estrecha para el banner horizontal). */
.seoga-documents-info .seoga-help-block {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon body"
        "cta  cta";
    gap: 12px 14px;
    align-items: start;
}
.seoga-documents-info .seoga-help-icon { grid-area: icon; }
.seoga-documents-info .seoga-help-body { grid-area: body; flex: none; min-width: 0; }
.seoga-documents-info .seoga-help-cta  {
    grid-area: cta;
    justify-self: center;
    margin: 8px 0 0 !important;
    text-align: center;
}

/* Documentacion — 3 cols: [label] [Obligatorio] [input-group]. */
.seoga-doc-item {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) auto minmax(320px, 2fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f4;
}
.seoga-doc-item:last-of-type { border-bottom: 0; }
.seoga-doc-label-col { font-size: 14px; min-width: 0; }
.seoga-doc-required-col { justify-self: start; }
.seoga-doc-input-col { min-width: 0; }
.seoga-doc-required { background: #ffe0dd; color: #d64545; font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 1199px) {
    .seoga-doc-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label required"
            "input input";
        gap: 8px 12px;
    }
    .seoga-doc-label-col     { grid-area: label; }
    .seoga-doc-required-col  { grid-area: required; justify-self: end; }
    .seoga-doc-input-col     { grid-area: input; }
}
.seoga-doc-icon-btn { padding: 6px 12px !important; }
.seoga-doc-icon-btn i { font-size: 13px; }
.seoga-doc-kyc-btn { text-transform: none !important; letter-spacing: 0 !important; }
.seoga-doc-kyc-btn i { margin-right: 6px; }
.seoga-doc-hint-link { display: inline-block; margin-top: 6px; color: #3097D1; font-size: 12px; }
.seoga-doc-hint-link:hover { color: #276f9c; text-decoration: underline; }

/* "Otros documentos" — area drop-like con boton azul + placeholder. */
.seoga-other-docs { margin-top: 24px; }
.seoga-other-docs-drop {
    border: 2px dashed #c9d1d6;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}
.seoga-other-docs-hint { color: #b8c2c8; font-weight: 600; margin-top: 12px; font-size: 13px; }
.seoga-add-file-btn { padding: 8px 20px !important; text-transform: none !important; letter-spacing: 0 !important; }
.seoga-add-file-btn i { margin-right: 6px; }

/* Modal KYC embebido (iframe hacia /kyc-form). */
.seoga-kyc-modal .modal-dialog { width: 90%; max-width: 1100px; }
.seoga-kyc-modal .modal-body.seoga-kyc-modal-body { padding: 0; height: 80vh; }
.seoga-kyc-iframe { width: 100%; height: 100%; border: 0; display: block; }

.seoga-other-docs { margin-top: 16px; }
.seoga-privacy-note { background: #eef6f0; padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 16px 0; }
.seoga-why-docs { display: flex; align-items: center; gap: 14px; margin-top: 16px; }

/* Sign */
.seoga-contract-preview { background: #fff; width: 100%; height: 520px; border: 1px solid #e2e7eb; border-radius: 8px; }
.seoga-contract-placeholder {
    background: #f6f9fa;
    border: 1px dashed #b8c2c8;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    color: #6b7a83;
}
.seoga-contract-placeholder i { font-size: 48px; color: #850f7d; margin-bottom: 16px; }
.seoga-contract-placeholder-title { font-weight: 700; color: #405058; font-size: 16px; margin-bottom: 8px; }
.seoga-contract-placeholder-body { font-size: 13px; max-width: 400px; margin: 0 auto; }

/* Show */
.seoga-show-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 26px 28px; margin-bottom: 22px; background: #e6f2e6; border-radius: 8px; box-shadow: none; }
.seoga-show-hero-right { background: #fff; border-radius: 8px; padding: 18px 22px; box-shadow: 0 2px 8px rgba(30,40,50,.08); }
.seoga-show-hero-left h1 { margin: 0 0 4px; }
.seoga-show-hero-meta { margin-top: 12px; }
.seoga-op-number { margin-top: 4px; }
.seoga-show-hero-right { display: grid; gap: 6px; align-content: center; background: #fff; padding: 16px; border-radius: 8px; }
.seoga-show-hero-right div { display: flex; justify-content: space-between; }

.seoga-timeline { display: grid; grid-template-columns: repeat(11, 1fr); align-items: center; margin: 20px 0; }
.seoga-timeline-node { grid-column: span 1; text-align: center; }
.seoga-timeline-connector { grid-column: span 1; height: 3px; background: #d7dde1; }
.seoga-timeline-connector.done { background: #2ab27b; }
.seoga-timeline-date { font-size: 11px; color: #6b7a83; margin-bottom: 6px; }
.seoga-timeline-date-pending { color: #2ab27b; font-weight: 600; }
.seoga-timeline-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #d7dde1; color: #fff; font-weight: 700;
}
.seoga-timeline-node.done .seoga-timeline-dot    { background: #2ab27b; }
.seoga-timeline-node.current .seoga-timeline-dot { background: #2ab27b; }
.seoga-timeline-label { margin-top: 6px; font-size: 11px; color: #405058; }

.seoga-show-details div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e2e7eb; }
.seoga-total-box { background: #f4faf6; padding: 14px; border-radius: 8px; text-align: center; margin: 14px 0; }
.seoga-total-value { font-size: 22px; font-weight: 700; color: #2ab27b; }
.seoga-total-note { font-size: 11px; color: #6b7a83; }
.seoga-deadline { display: flex; justify-content: space-between; font-size: 14px; margin: 10px 0; }
.seoga-bank-info div { display: flex; justify-content: space-between; padding: 4px 0; }
.seoga-late-payment { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; padding: 18px 22px; margin-top: 18px; align-items: center; }
.seoga-late-icon { width: 56px; height: 56px; border-radius: 50%; background: #2ab27b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.seoga-history { margin-top: 10px; }
.seoga-history th { color: #6b7a83; font-weight: 600; border-bottom: 1px solid #e2e7eb; }
.seoga-history td { border-top: 1px solid #f0f3f5; padding: 10px 8px; font-size: 13px; }
.seoga-history td:first-child { color: #6b7a83; }

/* Bloque ayuda con circulo grande verde en el detalle (Mockup 1). */
.seoga-help-block .seoga-help-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: #2ab27b; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}

.seoga-block-hint-inline { color: #6b7a83; font-weight: normal; font-size: 13px; }

/* Ilustracion lateral en las pantallas de resultado (Mockups 3 y 4). */
.seoga-status-illustration {
    position: relative;
    min-width: 260px;
    padding: 0 20px;
}
.seoga-status-illustration svg,
.seoga-status-illustration img { max-width: 100%; }
.seoga-status-illustration-badge {
    position: absolute;
    right: 12px; top: 46px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    font-size: 22px;
}
.seoga-status-illustration-badge.badge-warning { color: #ffb547; }
.seoga-status-illustration-badge.badge-success { color: #2ab27b; }

/* HOME card */
.seoga-home-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px; align-items: center;
    padding: 16px; background: #eef6f0; border-left: 4px solid #2ab27b;
    border-radius: 8px; margin-bottom: 18px;
}
.seoga-home-icon { width: 44px; height: 44px; border-radius: 50%; background: #2ab27b; color: #fff; display: flex; align-items: center; justify-content: center; }
.seoga-home-body .title  { font-weight: 700; }
.seoga-home-body .status { font-size: 13px; color: #405058; }
.seoga-home-card .btn    { background: #850f7d; color: #fff; border: none; }

/* ==========================================================================
   Responsive mobile — SEOGA pantallas (feedback GB-1143 22/jul).
   Apila los layouts side-by-side en 1 columna para <768px.
   ========================================================================== */
@media (max-width: 767px) {
    /* Pantalla pre-approved / in-review: cabecera con ilustracion → 1 col */
    .seoga-status-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .seoga-status-header h1 { font-size: 20px; line-height: 1.2; }

    /* Card interior: padding mas ajustado */
    .seoga-status-card { padding: 22px 18px; }
    .seoga-status-card .seoga-status-title { font-size: 18px; }

    /* Info block ("por que este resultado" + "Saber mas") apilado */
    .seoga-info-block { flex-direction: column; align-items: flex-start; }
    .seoga-info-block .seoga-link-more { margin-left: 0; }

    /* Documents hero (col-md-8 / col-md-4) — bootstrap ya apila, pero
       reducimos padding para mas espacio util */
    .seoga-documents-hero { padding: 18px 16px; }
    .seoga-documents-hero-row { display: block; }
    .seoga-documents-summary { margin-top: 14px; }

    /* Hero titulo mas pequeno */
    .seoga-hero-title { font-size: 22px; }
    .seoga-hero-subtitle { font-size: 16px; }

    /* Stepper de 4 pasos → 1 col en mobile; flechas debajo apuntando hacia abajo. */
    .seoga-stepper { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
    .seoga-step { flex-basis: auto; width: 100%; }
    .seoga-step-arrow { justify-content: center; padding: 4px 0; transform: rotate(90deg); }
}
