#wispro-consulta-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 680px;
    margin: 0 auto;
    color: #1a1a2e;
}

/* ── Search box ── */
.wc-search-box {
    background: #fff;
    border-radius: 14px;
    padding: 40px 32px 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    text-align: center;
}
.wc-search-box h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: #1a1a2e;
}
.wc-search-box > p {
    color: #777;
    margin: 0 0 24px;
    font-size: .95rem;
}
.wc-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.wc-form input {
    padding: 13px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
    transition: border-color .2s;
    text-align: center;
}
.wc-form input:focus {
    outline: none;
    border-color: #0056b3;
}
.wc-form button {
    padding: 13px 36px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
    max-width: 320px;
}
.wc-form button:hover { background: #003d80; }

.wc-error {
    margin-top: 14px;
    padding: 11px 16px;
    background: #fff3f3;
    border-left: 4px solid #d32f2f;
    border-radius: 6px;
    color: #c62828;
    font-size: .9rem;
    text-align: left;
}
.wc-legal {
    margin-top: 18px;
    font-size: .75rem;
    color: #aaa;
    text-align: center;
}
.wc-legal a { color: #0056b3; text-decoration: underline; }

/* ── Loading ── */
.wc-loading {
    text-align: center;
    padding: 48px;
    color: #888;
}
.wc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #0056b3;
    border-radius: 50%;
    animation: wc-spin .7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes wc-spin { to { transform: rotate(360deg); } }

/* ── Barra cliente ── */
.wc-cliente-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 22px;
    border-radius: 12px 12px 0 0;
    gap: 12px;
    flex-wrap: wrap;
}
.wc-cliente-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wc-cliente-nombre {
    font-weight: 700;
    font-size: 1rem;
}
.wc-cliente-cedula {
    font-size: .8rem;
    opacity: .65;
}
#wc-nueva-busqueda {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
#wc-nueva-busqueda:hover { background: rgba(255,255,255,.12); }

/* ── Tabs ── */
.wc-tabs-nav {
    display: flex;
    background: #f7f7f7;
    border-bottom: 2px solid #e8e8e8;
    overflow-x: auto;
}
.wc-tab-btn {
    padding: 11px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.wc-tab-btn:hover { color: #0056b3; }
.wc-tab-btn.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
    background: #fff;
}

/* ── Panel contrato ── */
#wc-tabs-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.wc-panel { display: none; padding: 24px; }
.wc-panel.active { display: block; }

/* Estado badge */
.wc-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 20px;
}
.wc-estado-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.wc-estado-badge.enabled  { background: #e8f5e9; color: #2e7d32; }
.wc-estado-badge.disabled { background: #fce4ec; color: #c62828; }
.wc-estado-badge.alerted  { background: #fff8e1; color: #e65100; }
.wc-estado-badge.degraded { background: #f3e5f5; color: #6a1b9a; }

/* Grid de datos */
.wc-datos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}
.wc-dato-item {
    background: #f9f9f9;
    border-radius: 9px;
    padding: 14px 16px;
}
.wc-dato-item .wc-dato-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #999;
    margin-bottom: 5px;
}
.wc-dato-item .wc-dato-valor {
    font-size: .97rem;
    font-weight: 600;
    color: #1a1a2e;
}
.wc-dato-item.wc-saldo .wc-dato-valor {
    font-size: 1.3rem;
    color: #0056b3;
}
.wc-dato-item.wc-full { grid-column: 1 / -1; }

/* Botón PDF */
.wc-btn-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #f0f6ff;
    color: #0056b3;
    border: 2px solid #0056b3;
    border-radius: 9px;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.wc-btn-pdf:hover {
    background: #0056b3;
    color: #fff;
}
.wc-btn-pdf svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .wc-search-box { padding: 28px 18px 22px; }
    .wc-datos-grid { grid-template-columns: 1fr; }
    .wc-dato-item.wc-full { grid-column: 1; }
}