﻿/* =============================================================================
   CUSTOMER MODULES — Unified Stylesheet
   Pastel Blue Premium
   Prefixes:  ct- (CRUD Table)  |  cf- (Customer Form)
              cv- (Customer Verification)  |  vcs- (Verification Selector)
   ============================================================================= */


/* =============================================================================
   1.  CRUD TABLE  (ct-)
   ============================================================================= */

.ct-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.ct-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.ct-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #4a90d9;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.ct-header h1,
.ct-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-weight: 760;
}

.ct-header h1 {
    font-size: 1.65rem;
}

.ct-modal-header h2 {
    font-size: 1.12rem;
}

.ct-header p {
    margin: 6px 0 0;
    color: #718096;
    font-size: .9rem;
}

.ct-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ct-kpi,
.ct-card {
    background: #fff;
    border: 1px solid #e6edf5;
    box-shadow: 0 3px 14px rgba(30, 64, 96, .045);
}

.ct-kpi {
    border-radius: 13px;
    padding: 15px 17px;
}

    .ct-kpi span {
        display: block;
        color: #8a99aa;
        font-size: .74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .35px;
    }

    .ct-kpi strong {
        display: block;
        margin-top: 4px;
        color: #26364a;
        font-size: 1.35rem;
    }

.ct-card {
    border-radius: 15px;
    overflow: hidden;
}

.ct-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
}

.ct-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 430px;
    padding: 0 12px;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    background: #fff;
}

    .ct-search span {
        color: #8fa0b3;
    }

    .ct-search input {
        width: 100%;
        height: 38px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #334155;
    }

.ct-filter-check,
.ct-check-card {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ct-filter-check {
    gap: 8px;
    color: #64748b;
    font-size: .82rem;
}

.ct-list {
    display: grid;
}

.ct-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 110px 92px;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    transition: background .18s ease;
}

    .ct-row:last-child {
        border-bottom: 0;
    }

    .ct-row:hover {
        background: #fbfdff;
    }

.ct-row--inactive {
    opacity: .62;
}

.ct-position {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f0f7ff;
    color: #4a90d9;
    font-size: .82rem;
    font-weight: 800;
}

.ct-main {
    min-width: 0;
}

.ct-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

    .ct-title-row strong {
        color: #29384c;
        font-size: .92rem;
    }

.ct-main p {
    margin: 4px 0 0;
    color: #7a899b;
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-muted {
    color: #a1adba !important;
}

.ct-type-badge,
.ct-required-badge {
    border-radius: 999px;
    padding: 3px 7px;
    font-size: .66rem;
    font-weight: 750;
}

.ct-type-badge {
    background: #eff6ff;
    color: #3b82f6;
}

.ct-required-badge {
    background: #fff1f2;
    color: #e11d48;
}

.ct-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
}

    .ct-status span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }

.ct-status--active {
    color: #15803d;
}

    .ct-status--active span {
        background: #22c55e;
    }

.ct-status--inactive {
    color: #94a3b8;
}

    .ct-status--inactive span {
        background: #94a3b8;
    }

.ct-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.ct-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dfe7f0;
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all .18s ease;
}

    .ct-icon-btn:hover {
        border-color: #9fc6ee;
        color: #3d82ca;
        background: #f7fbff;
    }

.ct-icon-btn--danger:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff7f7;
}

.ct-icon-btn--success:hover {
    border-color: #bbf7d0;
    color: #16a34a;
    background: #f7fff9;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    border: 0;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

    .ct-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.ct-btn--primary {
    background: #4a90d9;
    color: #fff;
}

    .ct-btn--primary:hover:not(:disabled) {
        background: #3b7fc5;
        box-shadow: 0 4px 11px rgba(74, 144, 217, .24);
    }

.ct-btn--ghost {
    background: #f3f6fa;
    color: #526174;
}

.ct-loading,
.ct-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #7b8998;
}

.ct-empty {
    padding: 30px;
}

    .ct-empty strong {
        color: #344256;
    }

    .ct-empty span {
        font-size: .82rem;
    }

.ct-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #4a90d9;
    font-weight: 800;
}

.ct-spinner,
.ct-mini-spinner {
    border-radius: 50%;
    border: 3px solid #dfe8f2;
    border-top-color: #4a90d9;
    animation: shared-spin .7s linear infinite;
}

.ct-spinner {
    width: 28px;
    height: 28px;
}

.ct-mini-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .35);
    border-top-color: #fff;
}

/* ── ct- Modal ── */

.ct-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .38);
    backdrop-filter: blur(2px);
}

.ct-modal {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
}

.ct-modal-header,
.ct-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.ct-modal-header {
    border-bottom: 1px solid #edf2f7;
}

.ct-modal-footer {
    border-top: 1px solid #edf2f7;
    justify-content: flex-end;
}

.ct-modal-body {
    padding: 20px;
}

.ct-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f3f6fa;
    color: #718096;
    cursor: pointer;
}

.ct-field {
    margin-bottom: 16px;
}

    .ct-field label {
        display: block;
        margin-bottom: 6px;
        color: #4b5b6d;
        font-size: .76rem;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

.ct-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #d9e3ed;
    border-radius: 9px;
    padding: 11px 12px;
    outline: 0;
    background: #fbfdff;
    color: #28384b;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .ct-input:focus {
        border-color: #6da6df;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(74, 144, 217, .1);
    }

.ct-textarea {
    resize: vertical;
    min-height: 88px;
}

.ct-grid-2 {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 14px;
}

.ct-switches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ct-check-card {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e0e8f1;
    border-radius: 10px;
    background: #fbfdff;
}

    .ct-check-card input {
        margin-top: 3px;
    }

    .ct-check-card span {
        display: grid;
        gap: 2px;
    }

    .ct-check-card strong {
        color: #3c4b5f;
        font-size: .82rem;
    }

    .ct-check-card small {
        color: #8795a6;
        line-height: 1.35;
    }

.ct-error {
    margin-top: 16px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    padding: 10px 12px;
    background: #fef2f2;
    color: #dc2626;
    font-size: .8rem;
}


/* =============================================================================
   2.  CUSTOMER FORM — Formulario público  (cf-)
   ============================================================================= */

.cf-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    min-height: 100vh;
    background: #f0f5fb;
}

.cf-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.cf-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a90d9, #3a7bc8);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.cf-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

/* ── cf- Card ── */

.cf-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05), 0 10px 30px rgba(15, 23, 42, .05);
    border: 1px solid #e8eef4;
}

.cf-card-header {
    text-align: center;
    margin-bottom: 28px;
}

    .cf-card-header h1 {
        font-size: 1.35rem;
        font-weight: 750;
        color: #1e293b;
        margin: 0 0 8px;
    }

    .cf-card-header p {
        font-size: .92rem;
        color: #64748b;
        margin: 0;
        line-height: 1.55;
    }

.cf-card--success,
.cf-card--error {
    text-align: center;
    margin-top: 60px;
}

.cf-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cf-icon--success {
    background: #dcfce7;
    color: #22c55e;
}

.cf-icon--error {
    background: #fee2e2;
    color: #ef4444;
}

.cf-card--success h2,
.cf-card--error h2 {
    font-size: 1.2rem;
    margin: 0 0 12px;
}

.cf-card--success h2 {
    color: #166534;
}

.cf-card--error h2 {
    color: #991b1b;
}

.cf-card--success p,
.cf-card--error p {
    color: #4b5563;
    font-size: .92rem;
    line-height: 1.5;
    margin: 0;
}

/* ── cf- Secciones ── */

.cf-section {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eef2f7;
}

.cf-section--notification {
    padding-bottom: 20px;
    margin-bottom: 18px;
}

.cf-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .cf-section-title > span:first-child {
        font-size: .86rem;
        font-weight: 750;
        color: #334155;
        text-transform: uppercase;
        letter-spacing: .35px;
    }

.cf-section-count {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.cf-section-help {
    margin: 0 0 16px;
    color: #7b8797;
    font-size: .83rem;
    line-height: 1.45;
}

/* ── cf- Campos de contacto ── */

.cf-contact-list {
    display: grid;
    gap: 12px;
}

.cf-contact-item {
    border: 1px solid #e5ecf4;
    background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    border-radius: 13px;
    padding: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .cf-contact-item:focus-within {
        border-color: #9bc5ef;
        box-shadow: 0 0 0 3px rgba(74, 144, 217, .08);
    }

.cf-contact-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .cf-contact-heading > div {
        min-width: 0;
    }

.cf-contact-label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #26364a;
    margin: 0;
}

.cf-contact-description {
    font-size: .77rem;
    line-height: 1.4;
    color: #8492a5;
    margin: 3px 0 0;
}

/* ── cf- Badges ── */

.cf-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #7c8a9c;
    font-size: .69rem;
    font-weight: 700;
}

.cf-badge--required {
    background: #fff1f2;
    color: #e11d48;
}

.cf-badge--verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

/* ── cf- Inputs ── */

.cf-input {
    width: 100%;
    padding: 12px 13px;
    border: 1.5px solid #d1dbe6;
    border-radius: 10px;
    font-size: .96rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

    .cf-input:focus {
        border-color: #4a90d9;
        box-shadow: 0 0 0 3px rgba(74, 144, 217, .12);
    }

    .cf-input::placeholder {
        color: #a7b2c1;
    }

    .cf-input:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.cf-input--error {
    border-color: #ef4444;
    background: #fffafa;
}

    .cf-input--error:focus {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
    }

.cf-input--verified {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.cf-field-error {
    display: block;
    font-size: .75rem;
    color: #dc2626;
    margin: 6px 0 0 2px;
}

/* ── cf- Toggle (notificaciones) ── */

.cf-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .cf-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.cf-toggle-slider {
    width: 46px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
}

    .cf-toggle-slider::after {
        content: '';
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 50%;
        position: absolute;
        top: 3px;
        left: 3px;
        transition: transform .2s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    }

.cf-toggle input:checked + .cf-toggle-slider {
    background: #4a90d9;
}

    .cf-toggle input:checked + .cf-toggle-slider::after {
        transform: translateX(20px);
    }

.cf-toggle input:focus-visible + .cf-toggle-slider {
    box-shadow: 0 0 0 3px rgba(74, 144, 217, .16);
}

.cf-toggle-label {
    font-size: .88rem;
    color: #475569;
    line-height: 1.4;
}

/* ── cf- Botones ── */

.cf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

    .cf-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.cf-btn--primary {
    background: #4a90d9;
    color: #fff;
    margin-top: 8px;
}

    .cf-btn--primary:hover:not(:disabled) {
        background: #3a7bc8;
        box-shadow: 0 4px 12px rgba(74, 144, 217, .28);
    }

    .cf-btn--primary:active:not(:disabled) {
        transform: scale(.985);
    }

.cf-btn--outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    margin-top: 8px;
}

    .cf-btn--outline:hover:not(:disabled) {
        background: #f8fafc;
        border-color: #94a3b8;
    }

    .cf-btn--outline:active:not(:disabled) {
        transform: scale(.985);
    }

.cf-btn--sm {
    width: auto;
    padding: 8px 14px;
    font-size: .84rem;
    min-height: unset;
    border-radius: 9px;
    margin-top: 0;
}

/* ── cf- Verificación por campo (código inline) ── */

.cf-field-code {
    margin-top: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    animation: shared-fade-in .2s ease;
}

.cf-field-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

    .cf-field-code-row .cf-code-input {
        flex: 0 0 120px;
        max-width: 120px;
        text-align: center;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: 6px;
        padding: 10px 8px;
    }

    .cf-field-code-row .cf-btn {
        flex-shrink: 0;
    }

/* ── cf- Mensajes de estado ── */

.cf-error {
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #dc2626;
    font-size: .86rem;
    text-align: center;
    margin-bottom: 8px;
}

.cf-info {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .82rem;
    text-align: center;
}

.cf-contact-item > .cf-info,
.cf-contact-item > .cf-error {
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── cf- Empty state ── */

.cf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 28px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}

    .cf-empty strong {
        color: #334155;
    }

    .cf-empty span {
        font-size: .84rem;
    }

.cf-empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 800;
    margin-bottom: 3px;
}

/* ── cf- Footer ── */

.cf-footer {
    text-align: center;
    font-size: .76rem;
    color: #94a3b8;
    margin-top: 20px;
    line-height: 1.5;
    padding: 0 12px;
}

/* ── cf- Loader / Spinners ── */

.cf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 16px;
}

    .cf-loader p {
        color: #64748b;
        font-size: .95rem;
    }

.cf-loader-spinner,
.cf-btn-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: shared-spin .7s linear infinite;
}

.cf-btn-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .3);
    border-top-color: #fff;
}

.cf-btn--outline .cf-btn-spinner {
    border-color: rgba(0, 0, 0, .1);
    border-top-color: #334155;
}

/* ── cf- Verificación OTP — Identidad (WhatsApp) ── */

.cf-card--verification {
    margin-top: 12px;
}

.cf-verification-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

    .cf-verification-summary > .material-symbols-outlined {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        border-radius: 11px;
        background: #e8f3ff;
        color: #4a90d9;
    }

    .cf-verification-summary > div {
        display: grid;
        gap: 3px;
    }

    .cf-verification-summary strong {
        color: #26364a;
        font-size: .9rem;
    }

    .cf-verification-summary span:not(.material-symbols-outlined) {
        color: #718096;
        font-size: .82rem;
    }

.cf-code-section {
    display: grid;
    gap: 10px;
}

.cf-code-input {
    max-width: 220px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 10px;
}

.cf-resend-btn {
    border: 0;
    background: transparent;
    color: #4a90d9;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
}

    .cf-resend-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }


/* =============================================================================
   3.  CUSTOMER VERIFICATION — Asesor Page  (cv-)
   ============================================================================= */

.cv-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 20px;
}

.cv-header {
    text-align: center;
    margin-bottom: 12px;
}

    .cv-header h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 8px;
    }

.cv-subtitle {
    font-size: .95rem;
    color: #64748b;
    margin: 0;
}

.cv-code {
    color: #94a3b8;
    font-size: .85rem;
}

/* ── cv- Selected customer ── */

.cv-selected-customer {
    max-width: 520px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid #dce8f4;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f8fe 100%);
    text-align: left;
}

.cv-selected-customer__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e8f3ff;
    color: #4a90d9;
}

    .cv-selected-customer__icon .material-symbols-outlined {
        font-size: 22px;
    }

.cv-selected-customer__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .cv-selected-customer__info strong {
        overflow: hidden;
        color: #1e293b;
        font-size: .87rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cv-selected-customer__info span {
        color: #64748b;
        font-size: .76rem;
        font-weight: 550;
    }

.cv-selected-customer__change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #4a90d9;
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

    .cv-selected-customer__change:hover {
        background: #e6f2ff;
    }

    .cv-selected-customer__change .material-symbols-outlined {
        font-size: 17px;
    }

/* ── cv- Stepper ── */

.cv-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 32px;
}

.cv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cv-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    background: #fff;
    transition: all .3s ease;
}

.cv-step-label {
    font-size: .78rem;
    color: #94a3b8;
    font-weight: 500;
    transition: color .3s ease;
}

.cv-step-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background .3s ease;
}

.cv-step-line--active {
    background: #4a90d9;
}

.cv-step--active .cv-step-circle {
    border-color: #4a90d9;
    background: #4a90d9;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, .15);
}

.cv-step--active .cv-step-label {
    color: #4a90d9;
    font-weight: 600;
}

.cv-step--completed .cv-step-circle {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.cv-step--completed .cv-step-label {
    color: #22c55e;
}

/* ── cv- Card ── */

.cv-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
    border: 1px solid #e8eef4;
}

.cv-card--customer-search {
    padding: 28px;
}

.cv-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.cv-hint {
    font-size: .88rem;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ── cv- Substeps ── */

.cv-substep {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cv-substep-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f7ff;
    color: #4a90d9;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cv-substep-content {
    flex: 1;
    min-width: 0;
}

    .cv-substep-content h3 {
        font-size: .95rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 4px;
    }

.cv-divider {
    height: 1px;
    background: #e8eef4;
    margin: 24px 0;
}

/* ── cv- Success card ── */

.cv-card--success {
    text-align: center;
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}

.cv-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cv-status-icon--success {
    background: #22c55e;
    color: #fff;
}

.cv-card--success h2 {
    color: #166534;
}

.cv-card--success p {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── cv- Form fields ── */

.cv-field {
    margin-bottom: 16px;
}

.cv-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.cv-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1dbe6;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

    .cv-input:focus {
        border-color: #4a90d9;
        box-shadow: 0 0 0 3px rgba(74, 144, 217, .12);
        background: #fff;
    }

    .cv-input::placeholder {
        color: #a0aec0;
    }

.cv-input--code {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 12px;
    max-width: 220px;
    margin: 0 auto;
    display: block;
}

/* ── cv- Buttons ── */

.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    min-width: 160px;
    text-decoration: none;
}

    .cv-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.cv-btn--primary {
    background: #4a90d9;
    color: #fff;
    width: 100%;
}

    .cv-btn--primary:hover:not(:disabled) {
        background: #3a7bc8;
        box-shadow: 0 2px 8px rgba(74, 144, 217, .3);
    }

.cv-btn--whatsapp {
    background: #25D366;
    color: #fff;
    width: 100%;
    font-size: .95rem;
}

    .cv-btn--whatsapp:hover {
        background: #1da851;
        box-shadow: 0 2px 8px rgba(37, 211, 102, .3);
        color: #fff;
    }

.cv-btn--ghost {
    background: transparent;
    color: #4a90d9;
    padding: 8px 16px;
    min-width: auto;
    width: 100%;
}

    .cv-btn--ghost:hover:not(:disabled) {
        background: #f0f7ff;
    }

.cv-btn--outline {
    background: #fff;
    color: #4a90d9;
    border: 1.5px solid #4a90d9;
    padding: 10px 18px;
    min-width: auto;
    flex-shrink: 0;
}

    .cv-btn--outline:hover:not(:disabled) {
        background: #f0f7ff;
    }

/* ── cv- Link box ── */

.cv-link-box {
    margin: 20px 0;
    text-align: left;
}

.cv-link-row {
    display: flex;
    gap: 8px;
}

    .cv-link-row .cv-input {
        flex: 1;
        min-width: 0;
        font-size: .85rem;
        color: #64748b;
    }

/* ── cv- Error ── */

.cv-error {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: .88rem;
    text-align: center;
}

/* ── cv- Loader ── */

.cv-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 16px;
}

    .cv-loader p {
        color: #64748b;
        font-size: .95rem;
    }

.cv-loader-spinner,
.cv-btn-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #4a90d9;
    border-radius: 50%;
    animation: shared-spin .7s linear infinite;
}

.cv-btn-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .3);
    border-top-color: #fff;
}

/* ── cv- Phone group ── */

.cv-phone-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

    .cv-phone-group--focus,
    .cv-phone-group:focus-within {
        border-color: #5b9bd5;
        box-shadow: 0 0 0 3px rgba(91, 155, 213, .15);
    }

.cv-phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #f8f9fb;
    border-right: 1px solid #e4e7ec;
    cursor: pointer;
    min-width: 108px;
    user-select: none;
    transition: background .12s;
}

    .cv-phone-prefix:hover {
        background: #eef1f5;
    }

.cv-phone-flag {
    font-size: 20px;
    line-height: 1;
}

.cv-phone-code {
    font-size: 14px;
    font-weight: 600;
    color: #1d2939;
    letter-spacing: .02em;
}

.cv-phone-chevron {
    font-size: 18px;
    color: #98a2b3;
    margin-left: auto;
    transition: transform .15s;
}

.cv-phone-group--focus .cv-phone-chevron {
    transform: rotate(180deg);
}

.cv-phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 15px;
    height: 46px;
    background: transparent;
    color: #1d2939;
    letter-spacing: .04em;
}

    .cv-phone-input::placeholder {
        color: #98a2b3;
        letter-spacing: 0;
    }

/* ── cv- Phone dropdown ── */

.cv-phone-dropdown {
    margin-top: 6px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
    animation: cv-dropdown-in .12s ease-out;
}

@keyframes cv-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-phone-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .1s;
}

    .cv-phone-dropdown-item:hover {
        background: #f2f4f7;
    }

.cv-phone-dropdown-item--active {
    background: #eff4fb;
}

.cv-phone-country {
    flex: 1;
    font-size: 14px;
    color: #1d2939;
}

.cv-phone-dial {
    font-size: 13px;
    color: #667085;
    font-variant-numeric: tabular-nums;
}


/* =============================================================================
   4.  VERIFICATION CUSTOMER SELECTOR  (vcs-)
   ============================================================================= */

.vcs {
    width: 100%;
}

/* ── vcs- Header ── */

.vcs-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.vcs-header__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef6ff 0%, #e4f0ff 100%);
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

    .vcs-header__icon .material-symbols-outlined {
        font-size: 24px;
    }

.vcs-header__content {
    min-width: 0;
}

.vcs-header h2 {
    margin: 0 0 5px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.vcs-header p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    color: #64748b;
}

/* ── vcs- Search ── */

.vcs-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.vcs-search__icon {
    position: absolute;
    left: 14px;
    z-index: 2;
    color: #94a3b8;
    pointer-events: none;
    font-size: 21px;
}

.vcs-search__input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 44px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid #d8e2ec;
    background: #f8fafc;
    color: #1e293b;
    font-size: .93rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .vcs-search__input::placeholder {
        color: #94a3b8;
    }

    .vcs-search__input:hover {
        border-color: #bfd0e1;
    }

    .vcs-search__input:focus {
        background: #fff;
        border-color: #4a90d9;
        box-shadow: 0 0 0 3px rgba(74, 144, 217, .12);
    }

.vcs-search__clear {
    position: absolute;
    right: 9px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

    .vcs-search__clear:hover {
        background: #eef2f7;
        color: #475569;
    }

    .vcs-search__clear .material-symbols-outlined {
        font-size: 19px;
    }

/* ── vcs- Help ── */

.vcs-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding-left: 4px;
    font-size: .78rem;
    color: #94a3b8;
}

    .vcs-help .material-symbols-outlined {
        font-size: 16px;
    }

/* ── vcs- Results ── */

.vcs-results {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #e4ebf2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

.vcs-results__header {
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
    color: #64748b;
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.vcs-results__count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #eaf3fc;
    color: #3b82f6;
    font-size: .75rem;
    font-weight: 700;
}

/* ── vcs- List ── */

.vcs-list {
    max-height: 410px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ── vcs- Customer ── */

.vcs-customer {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: none;
    border-bottom: 1px solid #f0f3f7;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .vcs-customer:last-child {
        border-bottom: none;
    }

    .vcs-customer:hover {
        background: #f6faff;
    }

    .vcs-customer:active {
        background: #eef6ff;
    }

/* ── vcs- Avatar ── */

.vcs-customer__avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf6ff, #dcecff);
    color: #3b76b8;
    border: 1px solid #d9e9f9;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .3px;
}

/* ── vcs- Body ── */

.vcs-customer__body {
    min-width: 0;
}

.vcs-customer__name {
    overflow: hidden;
    margin-bottom: 5px;
    color: #1e293b;
    font-size: .9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcs-customer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    color: #64748b;
    font-size: .75rem;
}

.vcs-customer__code,
.vcs-customer__email {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.vcs-customer__code {
    color: #64748b;
    font-weight: 600;
}

.vcs-customer__email {
    overflow: hidden;
    color: #94a3b8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcs-customer__meta .material-symbols-outlined {
    font-size: 15px;
}

/* ── vcs- Action ── */

.vcs-customer__action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bcc9;
    transition: color .15s ease, transform .15s ease;
}

.vcs-customer:hover .vcs-customer__action {
    color: #4a90d9;
    transform: translateX(2px);
}

.vcs-customer__action .material-symbols-outlined {
    font-size: 21px;
}

/* ── vcs- Empty ── */

.vcs-empty {
    min-height: 180px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vcs-empty__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
}

    .vcs-empty__icon .material-symbols-outlined {
        font-size: 24px;
    }

.vcs-empty strong {
    margin-bottom: 4px;
    color: #475569;
    font-size: .9rem;
}

.vcs-empty span:not(.material-symbols-outlined) {
    color: #94a3b8;
    font-size: .8rem;
}

/* ── vcs- Scrollbar ── */

.vcs-list::-webkit-scrollbar {
    width: 6px;
}

.vcs-list::-webkit-scrollbar-track {
    background: transparent;
}

.vcs-list::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d8e1eb;
}

    .vcs-list::-webkit-scrollbar-thumb:hover {
        background: #c0ccd8;
    }


/* =============================================================================
   5.  SHARED — Animaciones y keyframes unificados
   ============================================================================= */

@keyframes shared-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shared-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =============================================================================
   6.  RESPONSIVE — Media queries consolidadas
   ============================================================================= */

/* ── Tablet & below (≤780px) — ct- ── */
@media (max-width: 780px) {
    .ct-page {
        padding: 20px 14px 36px;
    }

    .ct-header {
        align-items: stretch;
        flex-direction: column;
    }

        .ct-header .ct-btn {
            width: 100%;
        }

    .ct-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .ct-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ct-search {
        max-width: none;
    }

    .ct-row {
        grid-template-columns: 40px minmax(0, 1fr) 78px;
    }

    .ct-status {
        display: none;
    }

    .ct-grid-2,
    .ct-switches {
        grid-template-columns: 1fr;
    }
}

/* ── Small mobile (≤520px) — vcs- ── */
@media (max-width: 520px) {
    .vcs-header__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .vcs-customer {
        grid-template-columns: 38px minmax(0, 1fr) 24px;
        gap: 10px;
        padding: 10px;
    }

    .vcs-customer__avatar {
        width: 38px;
        height: 38px;
    }

    .vcs-customer__email {
        display: none;
    }
}

/* ── Small mobile (≤480px) — cf- + cv- ── */
@media (max-width: 480px) {
    /* cf- */
    .cf-page {
        padding: 18px 12px 32px;
    }

    .cf-card {
        padding: 24px 16px;
        border-radius: 15px;
    }

    .cf-contact-item {
        padding: 13px 12px;
    }

    .cf-contact-heading {
        gap: 8px;
    }

    .cf-card-header h1 {
        font-size: 1.22rem;
    }

    .cf-field-code {
        padding: 12px;
    }

    .cf-field-code-row {
        flex-wrap: wrap;
    }

        .cf-field-code-row .cf-code-input {
            flex: 1 1 100px;
        }

        .cf-field-code-row .cf-btn {
            flex: 1;
        }

    /* cv- */
    .cv-page {
        padding: 20px 16px;
    }

    .cv-card {
        padding: 24px 20px;
    }

    .cv-card--customer-search {
        padding: 20px 16px;
    }

    .cv-step-line {
        width: 40px;
    }

    .cv-substep {
        flex-direction: column;
        gap: 8px;
    }

    .cv-selected-customer {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .cv-selected-customer__icon {
        width: 38px;
        height: 38px;
    }

    .cv-selected-customer__change {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        margin-top: 2px;
        background: #edf6ff;
    }

    .cv-link-row {
        flex-direction: column;
    }

    .cv-btn--outline {
        width: 100%;
    }
}

/* ============================================================
   CUSTOMER CONTACT FORM — OTP DE ACCESO
   Agregar al final de CustomerContactFormContent.razor.css
   ============================================================ */

.cf-verification {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.cf-verification-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 16px;
    background: #e8f3ff;
    color: #4a90d9;
}

    .cf-verification-icon .material-symbols-outlined {
        font-size: 30px;
    }

.cf-verification-copy {
    text-align: center;
}

.cf-verification-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #4a90d9;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cf-verification-copy h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 700;
}

.cf-verification-copy p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.55;
}

.cf-verification-copy strong {
    color: #334155;
}

.cf-verification-form {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

    .cf-verification-form .cf-code-input {
        height: 52px;
        text-align: center;
        font-size: 1.35rem;
        font-weight: 700;
        letter-spacing: .35em;
        font-variant-numeric: tabular-nums;
    }

    .cf-verification-form .cf-btn {
        margin-top: 12px;
    }

.cf-security-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.45;
}

    .cf-security-hint .material-symbols-outlined {
        flex-shrink: 0;
        margin-top: 1px;
        color: #4a90d9;
        font-size: 18px;
    }

@media (max-width: 480px) {
    .cf-verification {
        padding: 18px 16px;
    }

    .cf-verification-form {
        max-width: none;
    }
}
