/* Mi Cuenta (/cuenta/). Se carga DESPUÉS de style.css: reusa sus inputs, botones, estados y
   banners, y suma el layout del panel, el editor tipo "página pública" y los gráficos. */

:root {
    --font-brand: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --card-radius: 18px;
    --shadow-card: 0 1px 2px rgba(18, 32, 47, 0.05), 0 8px 24px -12px rgba(24, 49, 89, 0.18);

    /* Gráficos: NFC = turquesa de marca, QR = naranja. Par validado para daltonismo
       (ΔE CVD 15.3). El turquesa no llega a 3:1 sobre blanco, por eso todos los valores van
       escritos en texto al lado (leyenda, tooltip y tabla), nunca solo con color. */
    --series-nfc: #1FA9A2;
    --series-qr: #EB6834;
    --grid: #E8EDF3;
}

body.cuenta-page {
    font-family: var(--font-brand);
    background: #F5F8FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* style.css no fija la tipografía de botones/campos: acá heredan la de la marca. */
.cuenta-page button,
.cuenta-page input,
.cuenta-page textarea {
    font-family: inherit;
}

body.has-sheet {
    overflow: hidden;
}

.cuenta-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Barra superior ---------- */

.cuenta-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.cuenta-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.cuenta-logo {
    height: 28px;
    width: auto;
    display: block;
}

.cuenta-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cuenta-user-email {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40vw;
}

.cuenta-main {
    flex: 1;
    padding-top: 28px;
    padding-bottom: 48px;
}

.cuenta-footer {
    padding: 24px 16px 36px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.cuenta-footer a {
    color: var(--color-text-muted);
}

/* ---------- Entrar ---------- */

.auth-view {
    max-width: 440px;
    margin: 12px auto 0;
}

.auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
}

.auth-kicker,
.dash-kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.auth-footnote {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.auth-footnote a {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* ---------- Panel ---------- */

.dash-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dash-title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2rem);
    letter-spacing: -0.02em;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state h2 {
    margin: 0 0 8px;
}

/* Selector de carteles (solo con 2 o más) */

.tag-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}

.tag-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 240px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    font: inherit;
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
}

.tag-chip[aria-pressed="true"] {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 206, 198, 0.2);
}

.tag-chip-name {
    font-weight: 700;
    font-size: 0.92rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-chip-sub {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Encabezado del cartel */

.tag-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.tag-head-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-head-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.tag-head-sub {
    margin: 4px 0 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.tag-head-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(26, 158, 107, 0.12);
    color: var(--color-success);
    font-weight: 700;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill.is-off {
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
}

.tag-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

/* minmax(0, 1fr) y min-width: 0: sin esto, en celular cada tarjeta de la grilla se estira al
   ancho mínimo de su contenido (KPIs, barras, marco del celular) y empuja la página de costado. */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.card {
    min-width: 0;
}

.account-card {
    margin-top: 16px;
}

.account-card summary,
.stats-table summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.password-form {
    max-width: 360px;
    display: flex;
    flex-direction: column;
}

.password-form .btn {
    margin-top: 14px;
    align-self: flex-start;
}

@media (min-width: 900px) {
    .tag-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .tag-head-actions {
        justify-content: flex-end;
    }

    .dash-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: start;
    }

    .editor-card {
        position: sticky;
        top: 76px;
    }
}

/* ---------- Estadísticas ---------- */

.kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: #F7FAFB;
    border: 1px solid var(--grid);
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.chart-block {
    margin-top: 22px;
}

.chart-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.chart-title .hint {
    font-weight: 400;
    font-size: 0.8rem;
}

/* Barra partida NFC / QR: 2px de separación entre segmentos, extremos redondeados. */
.split-bar {
    display: flex;
    gap: 2px;
    height: 14px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--grid);
}

.split-seg {
    flex-basis: 0;
    min-width: 6px;
    height: 100%;
}

.split-nfc {
    background: var(--series-nfc);
}

.split-qr {
    background: var(--series-qr);
}

.legend {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.legend-text strong {
    color: var(--color-text);
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-value {
    margin-left: auto;
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

/* Columnas (visitas por día / por hora): una sola serie, sin leyenda. Cada columna ocupa
   toda la altura como zona de hover/foco; la barra dibujada es más chica. */
.bars {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 120px;
    padding-top: 18px;
    border-bottom: 1px solid var(--grid);
}

.bars::before {
    content: attr(data-max);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.bar-col {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    border-radius: 4px 4px 0 0;
    cursor: default;
    outline: none;
}

.bar-col:hover,
.bar-col:focus-visible {
    background: rgba(31, 169, 162, 0.08);
}

.bar {
    display: block;
    width: 100%;
    max-width: 24px;
    background: var(--series-nfc);
    border-radius: 4px 4px 0 0;
}

.bars-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

/* Barras horizontales (qué botón tocan) */
.hbars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hbar-row {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.hbar-label {
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hbar-track {
    height: 12px;
}

.hbar-fill {
    display: block;
    height: 100%;
    background: var(--series-nfc);
    border-radius: 0 4px 4px 0;
}

.hbar-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.stats-table {
    margin-top: 22px;
    font-size: 0.88rem;
}

.data-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--grid);
    text-align: left;
}

.data-table td:last-child,
.data-table th:last-child {
    text-align: right;
}

.chart-tooltip {
    position: absolute;
    z-index: 60;
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #12202F;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(18, 32, 47, 0.25);
}

/* ---------- Editor de la tarjeta ---------- */

.mode-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.mode-note.is-card {
    background: var(--color-info-bg);
    color: var(--color-primary-dark);
}

/* Marco tipo celular con el mismo fondo punteado que la tarjeta pública real (r.php). */
.phone {
    max-width: 360px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 34px;
    background: #12202F;
    box-shadow: 0 24px 50px -24px rgba(24, 49, 89, 0.5);
}

.phone-screen {
    --pv-brand: transparent;
    --pv-tint: #FBFDFD;
    --pv-dots: rgba(46, 206, 198, 0.28);
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 28px 16px 24px;
    text-align: center;
    background-color: var(--pv-tint);
    background-image: radial-gradient(circle, var(--pv-dots) 1.4px, transparent 1.4px);
    background-size: 24px 24px;
    min-height: 420px;
}

/* Franja de color de marca (igual que .card-band en r.php, a escala del celular). */
.pv-band {
    height: 104px;
    margin: -28px -16px 0;
    background: var(--pv-brand);
    border-radius: 0 0 22px 22px;
}

/* Logo: círculo con borde blanco montado sobre la franja. Vacío, es un círculo punteado
   que invita a subirlo (solo existe en el editor, nunca en la tarjeta pública). */
.pv-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
    padding: 0;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(18, 32, 47, 0.18);
    overflow: hidden;
    cursor: pointer;
    font: inherit;
}

.has-band .pv-logo {
    margin-top: -44px;
}

.pv-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv-logo.is-empty {
    border: 2px dashed #B8C4D2;
    background: rgba(255, 255, 255, 0.92);
    color: #7A8899;
    box-shadow: none;
}

.pv-logo.is-empty span {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
}

.pv-logo:hover,
.pv-logo:focus-visible {
    box-shadow: 0 0 0 4px rgba(46, 206, 198, 0.4), 0 8px 20px rgba(18, 32, 47, 0.18);
    outline: none;
}

/* Muestras de color */
.theme-row {
    margin: 0 0 18px;
}

.theme-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch {
    --swatch: #FFFFFF;
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: var(--swatch);
    box-shadow: 0 0 0 1px var(--color-border);
    cursor: pointer;
}

.swatch[aria-checked="true"] {
    box-shadow: 0 0 0 2px var(--color-text);
}

.swatch:focus-visible,
.swatch-custom:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* "Sin color": blanco con una diagonal. */
.swatch-none {
    background: linear-gradient(135deg, transparent 45%, #DC3D3D 45%, #DC3D3D 55%, transparent 55%), #FFFFFF;
}

/* Color libre: arcoíris hasta que se elige uno; el <input type="color"> nativo queda
   invisible encima, ocupando toda la muestra, para que el toque abra el selector. */
.swatch-custom {
    background: conic-gradient(#e63946, #f77f00, #f4b400, #2e7d32, #0284c7, #7c3aed, #db2777, #e63946);
    overflow: hidden;
}

.swatch-custom.is-set {
    background: var(--swatch);
}

.swatch-custom input {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.pv-name {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #12202F;
    overflow-wrap: anywhere;
}

.pv-description {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 8px 10px;
    border: 1px dashed transparent;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5B6B7F;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.pv-description:hover,
.pv-description:focus-visible {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8);
}

.pv-description.is-empty {
    border-color: #C9D3DE;
    color: #8B98A8;
    font-style: italic;
}

.pv-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #FFFFFF;
    border: 2px solid #F2C94C;
    box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.2), 0 10px 22px rgba(242, 201, 76, 0.35);
    font-weight: 700;
    font-size: 0.9rem;
    color: #12202F;
}

/* Más chico que en la tarjeta real: el marco del celular es más angosto y con el tamaño
   original el texto se partía en tres líneas. */
.pv-review-badge {
    height: 18px;
    width: auto;
    flex-shrink: 0;
}

.pv-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.pv-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    color: #FFFFFF;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(18, 32, 47, 0.14);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button.pv-link:hover,
button.pv-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(46, 206, 198, 0.35), 0 8px 18px rgba(18, 32, 47, 0.16);
}

.pv-link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.pv-link-label {
    flex: 1;
    min-width: 0;
}

.pv-link-action {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.85;
}

/* Mismos colores de marca que la tarjeta pública (r.php). */
.pv-link-whatsapp { background: #25D366; }
.pv-link-instagram { background: linear-gradient(135deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5); }
.pv-link-facebook { background: #1877F2; }
.pv-link-website { background: #24A8A1; }
.pv-link-wifi { background: #5B5BD6; }
.pv-link-maps { background: #EA4335; }

/* Botón apagado: gris claro, ícono gris, con un "+" para activarlo. */
.pv-link.is-off {
    background: #EEF2F6;
    color: #7A8899;
    box-shadow: none;
    border: 1px dashed #C9D3DE;
}

.pv-link.is-off .pv-link-icon {
    filter: grayscale(1) opacity(0.45);
}

.pv-link.is-off .pv-link-action {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 700;
    opacity: 1;
}

.pv-link-static {
    cursor: default;
}

.editor-hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.82rem;
}

/* ---------- Recortador de logo (assets/js/logo-cropper.js) ---------- */

.cropper-holder {
    margin-top: 8px;
}

.cropper-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #0B1729;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    outline: none;
}

.cropper-stage.is-dragging {
    cursor: grabbing;
}

.cropper-stage:focus-visible {
    box-shadow: 0 0 0 3px rgba(46, 206, 198, 0.6);
}

.cropper-canvas {
    display: block;
}

.cropper-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    margin: 14px auto 0;
}

.cropper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
}

.cropper-btn:hover,
.cropper-btn:focus-visible {
    border-color: var(--color-primary);
    outline: none;
}

.cropper-btn[data-rotate] {
    margin-left: 6px;
}

.cropper-range {
    flex: 1;
    min-width: 0;
    height: 28px;
    accent-color: var(--color-primary-dark);
    cursor: pointer;
}

.cropper-hint {
    max-width: 380px;
    margin: 10px auto 4px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.logo-sheet-preview {
    display: flex;
    justify-content: center;
    margin: 12px 0 8px;
}

.logo-sheet-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 8px 20px rgba(18, 32, 47, 0.18);
}

/* ---------- Hoja inferior ---------- */

.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(11, 23, 41, 0.55);
}

.sheet {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: var(--color-bg);
    box-shadow: 0 -10px 40px rgba(11, 23, 41, 0.25);
    animation: sheet-in 0.18s ease-out;
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.sheet-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.sheet-form {
    display: flex;
    flex-direction: column;
}

.sheet-form .input-group,
.sheet-form > input,
.sheet-form > textarea {
    margin-top: 4px;
}

.sheet-form .sheet-label {
    margin: 14px 0 0;
    font-weight: 600;
}

.sheet-remove {
    margin-top: 10px;
    color: var(--color-error);
}

@media (min-width: 640px) {
    .sheet-overlay {
        align-items: center;
    }

    .sheet {
        border-radius: 20px;
    }
}

@keyframes sheet-in {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .sheet {
        animation: none;
    }

    .pv-link {
        transition: none;
    }
}

@media (max-width: 420px) {
    .kpi-value {
        font-size: 1.3rem;
    }

    .cuenta-user-email {
        display: none;
    }
}

/* ---------- Modo soporte (admin viendo la cuenta de un cliente) ---------- */

.support-banner {
    background: #B4790A;
    color: #FFFFFF;
    font-size: 0.88rem;
}

.support-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.support-banner-inner > span {
    overflow-wrap: anywhere;
}

.support-banner-btn {
    background: #FFFFFF;
    color: #12202F;
    border: none;
}
