/* CODE LA CASA Design System v1.0 — build 20260630b */

:root {
    --clc-primary: #7c3aed;
    --clc-primary-dark: #5b21b6;
    --clc-primary-light: #ede9fe;
    --clc-accent: #a855f7;
    --clc-bg: #f9fafb;
    --clc-card: #ffffff;
    --clc-text: #111827;
    --clc-muted: #6b7280;
    --clc-border: rgba(17, 24, 39, 0.08);
    --clc-success: #10b981;
    --clc-warning: #f59e0b;
    --clc-error: #ef4444;
    --clc-info: #3b82f6;
    --clc-radius: 16px;
    --clc-radius-sm: 12px;
    --clc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --clc-shadow-lg: 0 20px 25px -5px rgba(124, 58, 237, 0.12), 0 8px 10px -6px rgba(124, 58, 237, 0.08);
    --clc-glass: rgba(255, 255, 255, 0.72);
    --clc-content-max: 1600px;
}

[data-theme="dark"] {
    --clc-bg: #12101a;
    --clc-card: #1e1a2e;
    --clc-text: #f1f5f9;
    --clc-muted: #94a3b8;
    --clc-border: rgba(255, 255, 255, 0.08);
    --clc-glass: rgba(30, 27, 46, 0.85);
}

/* Grid 5 / 4 / 2 / 1 */
.clc-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .clc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .clc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .clc-grid { grid-template-columns: repeat(5, 1fr); } }

.clc-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .clc-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.clc-page {
    max-width: var(--clc-content-max);
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
}

.clc-page-title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.clc-page-sub {
    margin: 0 0 1.5rem;
    color: var(--clc-muted);
    font-size: 0.925rem;
}

.clc-card {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    padding: 1.25rem;
}

.clc-card--glass {
    background: var(--clc-glass);
    backdrop-filter: blur(12px);
}

.clc-flash {
    padding: 0.75rem 1rem;
    border-radius: var(--clc-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.clc-flash--ok { background: #d1fae5; color: #065f46; }
.clc-flash--err { background: #fee2e2; color: #991b1b; }

/* Buttons */
.clc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.clc-btn:hover { transform: translateY(-1px); }
.clc-btn--primary {
    background: linear-gradient(135deg, var(--clc-primary), var(--clc-accent));
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.clc-btn--ghost {
    background: transparent;
    border: 2px solid var(--clc-primary);
    color: var(--clc-primary);
}
.clc-btn--sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.clc-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Wallet hero */
.clc-wallet-hero {
    border-radius: var(--clc-radius);
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
    color: #fff;
    box-shadow: var(--clc-shadow-lg);
    margin-bottom: 1.5rem;
}
.clc-wallet-hero__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}
.clc-wallet-hero__amount {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 1.25rem;
}
.clc-wallet-hero__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.clc-wallet-hero__btn {
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.clc-wallet-hero__btn--white { background: #fff; color: var(--clc-primary); }
.clc-wallet-hero__btn--ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.35); }

/* Tabs */
.clc-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    margin-bottom: 1.5rem;
}
.clc-tabs__link {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--clc-muted);
}
.clc-tabs__link.is-active {
    background: var(--clc-primary);
    color: #fff;
}

/* Dashboard actions */
.clc-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.clc-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.clc-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}
.clc-action__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.clc-action__icon--purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.clc-action__icon--green { background: linear-gradient(135deg, #10b981, #059669); }
.clc-action__icon--blue { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.clc-action__icon--orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.clc-action__body { flex: 1; min-width: 0; }
.clc-action__title { margin: 0; font-weight: 700; font-size: 1rem; }
.clc-action__detail { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--clc-muted); }

/* Inventario card */
.clc-inv-card {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s;
}
.clc-inv-card:hover { transform: translateY(-3px); }
.clc-inv-card__head {
    padding: 1rem 1.15rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.clc-inv-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--clc-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}
.clc-inv-card__logo img { width: 32px; height: 32px; object-fit: contain; }
.clc-inv-card__name { margin: 0; font-weight: 800; font-size: 1rem; }
.clc-inv-card__email { margin: 0; font-size: 0.78rem; color: var(--clc-muted); word-break: break-all; }
.clc-inv-card__stars { color: #f59e0b; font-size: 0.75rem; letter-spacing: 0.1em; padding: 0 1.15rem; }
.clc-inv-card__slots {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 1.15rem 0.75rem;
    flex-wrap: wrap;
}
.clc-slot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}
.clc-slot--free { background: rgba(34,197,94,0.15); color: #16a34a; border: 1px solid rgba(34,197,94,0.35); }
.clc-slot--busy { background: rgba(239,68,68,0.12); color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }
.clc-inv-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 1.15rem 1.15rem;
    margin-top: auto;
    border-top: 1px solid var(--clc-border);
}

/* Monedero movement card */
.clc-mov-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius-sm);
    margin-bottom: 0.65rem;
}
.clc-mov-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.clc-mov-card__icon--in { background: rgba(34,197,94,0.12); }
.clc-mov-card__icon--out { background: rgba(239,68,68,0.12); }
.clc-mov-card__body { flex: 1; }
.clc-mov-card__title { font-weight: 600; font-size: 0.925rem; margin: 0; }
.clc-mov-card__meta { font-size: 0.78rem; color: var(--clc-muted); margin: 0.1rem 0 0; }
.clc-mov-card__amount { font-weight: 800; font-size: 1rem; }
.clc-mov-card__amount--in { color: #16a34a; }
.clc-mov-card__amount--out { color: #dc2626; }

/* OTP inbox */
.clc-otp-inbox { max-width: 560px; margin: 0 auto; }
.clc-otp-item {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    padding: 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--clc-shadow);
    text-align: center;
}
.clc-otp-item__platform { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.75rem; }
.clc-otp-item__code {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
    margin: 0.5rem 0;
    color: var(--clc-primary);
}
.clc-otp-item__time { font-size: 0.8125rem; color: var(--clc-muted); margin-bottom: 1rem; }

/* Auth login */
.clc-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99, 102, 241, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(168, 85, 247, 0.25), transparent 50%),
        linear-gradient(160deg, #0f0a1a 0%, #1a1033 40%, #0d1117 100%);
}
.clc-auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2.25rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
    color: #fff;
}
.clc-auth-brand { text-align: center; margin-bottom: 1.75rem; }
.clc-auth-brand__logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}
.clc-auth-brand h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.clc-auth-brand p { margin: 0.35rem 0 0; font-size: 0.875rem; opacity: 0.75; }
.clc-auth-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 1.5rem 0; }
.clc-auth-field { margin-bottom: 1rem; }
.clc-auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}
.clc-auth-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-family: inherit;
    font-size: 0.925rem;
}
.clc-auth-field input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.clc-auth-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-weight: 800;
    font-size: 0.9375rem;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.clc-auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.72rem; opacity: 0.55; }
.clc-auth-error {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(239,68,68,0.2);
    border: 1px solid rgba(239,68,68,0.35);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.clc-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--clc-radius);
    border: 2px dashed var(--clc-border);
    color: var(--clc-muted);
}
.clc-empty p { margin: 0 0 1rem; }

.clc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.clc-chip {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--clc-muted);
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
}
.clc-chip.is-active, .clc-chip:hover {
    background: var(--clc-primary);
    color: #fff;
    border-color: var(--clc-primary);
}

/* —— Mockup v1: Dashboard —— */
.clc-dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .clc-dash-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .clc-dash-stats { grid-template-columns: repeat(5, 1fr); } }

.clc-stat-card {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius-sm);
    box-shadow: var(--clc-shadow);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.clc-stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.clc-stat-card__icon--purple { background: var(--clc-primary-light); color: var(--clc-primary); }
.clc-stat-card__icon--green { background: #dcfce7; color: #16a34a; }
.clc-stat-card__icon--blue { background: #dbeafe; color: #2563eb; }
.clc-stat-card__icon--orange { background: #ffedd5; color: #ea580c; }
.clc-stat-card__icon--red { background: #fee2e2; color: #dc2626; }
.clc-stat-card__label { font-size: 0.72rem; font-weight: 600; color: var(--clc-muted); }
.clc-stat-card__value { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }

.clc-dash-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 992px) { .clc-dash-columns { grid-template-columns: 1fr 1fr; } }

.clc-panel {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    padding: 1.25rem;
}
.clc-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.clc-panel__title { margin: 0; font-size: 1rem; font-weight: 800; }
.clc-panel__link { font-size: 0.8125rem; font-weight: 600; color: var(--clc-primary); text-decoration: none; }

.clc-renew-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--clc-border);
}
.clc-renew-item:last-child { border-bottom: none; padding-bottom: 0; }
.clc-renew-item__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--clc-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 800;
    font-size: 0.85rem;
}
.clc-renew-item__logo img { width: 28px; height: 28px; object-fit: contain; }
.clc-renew-item__body { flex: 1; min-width: 0; }
.clc-renew-item__name { margin: 0; font-weight: 700; font-size: 0.925rem; }
.clc-renew-item__meta { margin: 0.1rem 0 0; font-size: 0.78rem; color: var(--clc-muted); }
.clc-badge {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.clc-badge--warn { background: #ffedd5; color: #c2410c; }
.clc-badge--danger { background: #fee2e2; color: #b91c1c; }
.clc-badge--ok { background: #d1fae5; color: #047857; }

.clc-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--clc-border);
}
.clc-activity-item:last-child { border-bottom: none; }
.clc-activity-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.35rem;
    flex-shrink: 0;
}
.clc-activity-item__dot--in { background: #22c55e; }
.clc-activity-item__dot--out { background: #ef4444; }
.clc-activity-item__dot--sale { background: var(--clc-primary); }
.clc-activity-item__text { flex: 1; font-size: 0.875rem; margin: 0; }
.clc-activity-item__time { font-size: 0.72rem; color: var(--clc-muted); white-space: nowrap; }

.clc-quick-bar {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 90;
}
@media (max-width: 1200px) { .clc-quick-bar { display: none; } }
.clc-quick-bar__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    box-shadow: var(--clc-shadow-lg);
    text-decoration: none;
    color: var(--clc-text);
    font-size: 0.8125rem;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}
.clc-quick-bar__btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
    color: var(--clc-primary);
}
.clc-quick-bar__btn--primary {
    background: linear-gradient(135deg, var(--clc-primary), var(--clc-accent));
    color: #fff;
    border: none;
}

/* —— Inventario horizontal —— */
.clc-inv-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clc-inv-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    transition: transform 0.15s;
}
.clc-inv-row:hover { transform: translateY(-2px); }
.clc-inv-row__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--clc-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-weight: 800;
}
.clc-inv-row__logo img { width: 32px; height: 32px; object-fit: contain; }
.clc-inv-row__info { flex: 1; min-width: 180px; }
.clc-inv-row__name { margin: 0; font-weight: 800; font-size: 0.95rem; }
.clc-inv-row__email { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--clc-muted); }
.clc-inv-row__slots { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.clc-inv-row__meta { text-align: right; min-width: 100px; }
.clc-inv-row__date { font-size: 0.78rem; color: var(--clc-muted); margin: 0.25rem 0 0; }
.clc-inv-row__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; }

/* —— Renovaciones cards —— */
.clc-ren-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "logo body side"
        "actions actions actions";
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 1.15rem 1.35rem;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .clc-ren-card {
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: "logo body side actions";
        align-items: center;
    }
}
.clc-ren-card__logo { grid-area: logo; }
.clc-ren-card__body { grid-area: body; min-width: 0; }
.clc-ren-card__side {
    grid-area: side;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.clc-ren-card__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}
.clc-ren-card__title { margin: 0; font-weight: 800; font-size: 0.975rem; }
.clc-ren-card__sub { margin: 0.1rem 0 0.35rem; font-size: 0.8rem; color: var(--clc-muted); }
.clc-ren-card__meta {
    margin: 0.12rem 0 0;
    font-size: 0.78rem;
    color: var(--clc-text);
    line-height: 1.45;
}
.clc-ren-card__meta--cliente strong { font-weight: 700; }
.clc-ren-card__label {
    display: inline-block;
    min-width: 6.5rem;
    font-weight: 700;
    color: var(--clc-muted);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
}
.clc-ren-card__missing { color: var(--clc-muted); font-style: italic; }
.clc-ren-card__urgency { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.clc-ren-card__urgency--warn { color: #ea580c; }
.clc-ren-card__urgency--danger { color: #dc2626; }
.clc-ren-card__price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.clc-btn--wa {
    background: #25d366;
    color: #fff;
    border: none;
    font-weight: 700;
}
.clc-btn--wa:hover { background: #1ebe5d; color: #fff; }
.clc-btn--wa.clc-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* —— Monedero resumen —— */
.clc-mono-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .clc-mono-stats { grid-template-columns: repeat(4, 1fr); } }

/* —— OTP Centro —— */
.clc-otp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 992px) { .clc-otp-layout { grid-template-columns: 1.4fr 1fr; } }

.clc-otp-hero {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    padding: 2rem 1.75rem;
    text-align: center;
}
.clc-otp-hero__code {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.clc-otp-hero__digit {
    width: 52px;
    height: 64px;
    border-radius: 14px;
    background: var(--clc-primary-light);
    color: var(--clc-primary);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.clc-otp-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.clc-otp-timer {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--clc-primary-light);
    border-top-color: var(--clc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--clc-primary);
}
.clc-otp-side { display: flex; flex-direction: column; gap: 1rem; }
.clc-otp-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clc-muted);
    margin-bottom: 0.35rem;
}
.clc-otp-field select,
.clc-otp-field input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--clc-border);
    font-family: inherit;
    font-size: 0.925rem;
    background: var(--clc-card);
}

/* —— Login split-screen —— */
.clc-auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: #5b21b6;
}
@media (min-width: 900px) { .clc-auth-split { grid-template-columns: 1fr 1fr; } }

.clc-auth-split__form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}
@media (min-width: 900px) {
    .clc-auth-split__form { border-radius: 0 32px 32px 0; }
}
.clc-auth-split__panel {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: #fff;
    background: linear-gradient(145deg, #6d28d9 0%, #7c3aed 40%, #9333ea 100%);
}
@media (min-width: 900px) { .clc-auth-split__panel { display: flex; } }

.clc-auth-split__brand { margin-bottom: 2rem; }
.clc-auth-split__brand h1 { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: #1e1b2e; }
.clc-auth-split__brand p { margin: 0.35rem 0 0; color: var(--clc-muted); font-size: 0.925rem; }
.clc-auth-split__logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.clc-auth-split__field { margin-bottom: 1rem; }
.clc-auth-split__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}
.clc-auth-split__field input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-family: inherit;
    font-size: 0.9375rem;
}
.clc-auth-split__field input:focus {
    outline: none;
    border-color: var(--clc-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.clc-auth-split__submit {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    font-weight: 800;
    font-size: 0.9375rem;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.clc-auth-split__error {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}
.clc-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.clc-auth-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.clc-auth-feature h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.clc-auth-feature p { margin: 0.2rem 0 0; font-size: 0.875rem; opacity: 0.85; }
.clc-auth-split__panel h2 { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 800; }

.clc-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .clc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .clc-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* —— Admin: toolbar, forms, list rows —— */
.clc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.clc-input,
.clc-select {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--clc-border);
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--clc-card);
    color: var(--clc-text);
    min-width: 0;
}
.clc-input:focus,
.clc-select:focus {
    outline: none;
    border-color: var(--clc-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.clc-input--search { min-width: 180px; flex: 1; max-width: 280px; }

.clc-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.clc-admin-list { display: flex; flex-direction: column; gap: 0.65rem; }
.clc-admin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.clc-admin-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}
.clc-admin-row__logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.9rem;
    overflow: hidden;
}
.clc-admin-row__logo img { width: 30px; height: 30px; object-fit: contain; }
.clc-admin-row__main { flex: 1; min-width: 160px; }
.clc-admin-row__title { margin: 0; font-weight: 800; font-size: 0.975rem; }
.clc-admin-row__sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--clc-muted); }
.clc-admin-row__col {
    min-width: 90px;
    font-size: 0.8125rem;
}
.clc-admin-row__col-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clc-muted);
    margin-bottom: 0.15rem;
}
.clc-admin-row__col-value { font-weight: 700; }
.clc-admin-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
}

.clc-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clc-primary), var(--clc-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.clc-config-form { max-width: 920px; }
.clc-form-section {
    background: var(--clc-card);
    border: 1px solid var(--clc-border);
    border-radius: var(--clc-radius);
    box-shadow: var(--clc-shadow);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
}
.clc-form-section__title {
    margin: 0 0 1.15rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.clc-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .clc-form-grid { grid-template-columns: repeat(2, 1fr); }
    .clc-form-grid--full .clc-field--full { grid-column: 1 / -1; }
}
.clc-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--clc-text);
    margin-bottom: 0.35rem;
}
.clc-field input[type="text"],
.clc-field input[type="email"],
.clc-field input[type="date"],
.clc-field input[type="file"],
.clc-field input[type="number"],
.clc-field textarea,
.clc-field select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--clc-border);
    font-family: inherit;
    font-size: 0.925rem;
    background: var(--clc-card);
    color: var(--clc-text);
}
.clc-field input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--clc-border);
    cursor: pointer;
}
.clc-field input:focus,
.clc-field textarea:focus,
.clc-field select:focus {
    outline: none;
    border-color: var(--clc-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.clc-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0;
}
.clc-check input { width: 18px; height: 18px; accent-color: var(--clc-primary); }
.clc-check label { margin: 0; font-size: 0.925rem; font-weight: 500; cursor: pointer; }

.clc-badge--muted { background: #f1f5f9; color: #64748b; }
.clc-badge--role { background: var(--clc-primary-light); color: var(--clc-primary); }
