:root {
    --verde-whatshub: #64bc6c;
    --bs-focus-ring-color: rgba(100, 188, 108, 0.25);
}

*:focus-visible {
    outline: 2px solid var(--verde-whatshub);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(100, 188, 108, 0.25);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Lo siguiente es para que se vea como un m�vil */
body {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
}

/* Contenedor visual tipo m�vil */
.mobile-frame {
    width: 100vw;
    max-width: 450px; /* ancho iPhone moderno */
    min-height: 100vh;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* Ajustes del contenido interno */
.main-content {
    flex: 1;
    overflow-y: auto;
}
/* ------------------------------- */

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-success {
    --bs-btn-bg: var(--verde-whatshub);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9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Tg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

// A�adido

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1rem;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emoji {
    font-size: 2rem;
}

.name {
    font-size: 1.05rem;
    margin-left: .5rem;
    font-weight: bold; 
}

.visits {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

.tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: .1rem .5rem;
    font-size: .8rem;
}

    .tag.region {
        background: #eef6ff;
        border-color: #cfe3ff;
    }

.icon-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #007bff;
    transition: color 0.3s ease;
}

    .icon-button:hover {
        color: #0056b3;
    }

.avatar-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin-right: 8px;
    line-height: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #f1f3f5;
    border: 1px solid #e5e7eb;
    font-size: .9rem;
}

.chip-close {
    border: 0;
    background: transparent;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
    color: #6c757d;
}

    .chip-close:hover {
        color: #343a40;
    }

.wh-no-border-box,
.wh-no-border-box *,
.wh-no-border-box *::before,
.wh-no-border-box *::after {
    box-sizing: content-box !important;
}

/* --- Skeleton base --- */
.skeleton {
    position: relative;
    display: inline-block;
    background: #e7e9ec;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-card {
    border-radius: 1rem;
    padding: 12px 14px;
}

/* Animaciones */
.anim-shimmer .skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 1.25s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.anim-pulse .skeleton {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

/* Piezas que imitan tu card */
.skeleton-emoji {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-name {
    height: 18px;
    width: clamp(120px, 24vw, 240px);
    border-radius: 6px;
}

.skeleton-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.skeleton-chip {
    height: 24px;
    border-radius: 999px;
}

.skeleton-counter {
    height: 18px;
    width: 80px;
    border-radius: 6px;
}

.skeleton-tag {
    display: inline-block;
    height: 22px;
    width: 90px;
    border-radius: 999px;
}

.skeleton-votes {
    width: 72px;
    height: 64px;
    border-radius: 12px;
}

/* Helpers */
.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

/* ──────────────────────────────────────────────────
   SISTEMA DE DISEÑO STRIPE PARA WHATSHUB
   ────────────────────────────────────────────────── */
:root {
    --stripe-brand: #64bc6c;
    --stripe-brand-dark: #4da655;
    --stripe-brand-light: #f0fdf4;
    --stripe-bg: #ffffff;
    --stripe-bg-app: #ffffff;
    --stripe-border: #eff2f5;
    --stripe-border-focus: #c5ecc8;
    --stripe-text-main: #0a2540;
    --stripe-text-muted: #4f5b66;
    --stripe-text-light: #adbdcc;
    --stripe-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
    --stripe-shadow-hover: 0 6px 12px rgba(100, 188, 108, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    --stripe-radius: 10px;
}

/* Aplicación del fondo global en el frame de la app */
.mobile-frame {
    background-color: var(--stripe-bg-app) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--stripe-text-main);
}

/* Tarjeta Stripe */
.stripe-card {
    background: var(--stripe-bg);
    border: 1px solid var(--stripe-border);
    border-radius: var(--stripe-radius);
    padding: 0.85rem;
    box-shadow: var(--stripe-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.stripe-card:hover {
    box-shadow: var(--stripe-shadow-hover);
    border-color: #e2e8f0;
}

/* Cabecera de Página */
.stripe-page-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.stripe-header-content {
    flex-grow: 1;
}
.stripe-page-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--stripe-text-main);
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}
.stripe-page-subtitle {
    font-size: 0.88rem;
    color: var(--stripe-text-muted);
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}
.stripe-header-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Badges Stripe */
.stripe-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}
.stripe-badge-primary {
    background-color: var(--stripe-brand-light);
    color: var(--stripe-brand-dark);
    border-color: rgba(100,188,108,0.15);
}
.stripe-badge-neutral {
    background-color: #f1f3f5;
    color: #495057;
    border-color: #e9ecef;
}
.stripe-badge-warning {
    background-color: #fff9db;
    color: #f08c00;
    border-color: rgba(240,140,0,0.15);
}
.stripe-badge-danger {
    background-color: #fff0f0;
    color: #e03131;
    border-color: rgba(224,49,49,0.15);
}
.stripe-badge-info {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: rgba(79,70,229,0.15);
}

/* Cuadrícula de KPIs */
.stripe-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Tarjeta de KPI Individual */
.stripe-kpi-card {
    background: var(--stripe-bg);
    border: 1px solid var(--stripe-border);
    border-radius: var(--stripe-radius);
    padding: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--stripe-shadow);
    transition: all 0.2s ease;
}
.stripe-kpi-card.clickable {
    cursor: pointer;
}
.stripe-kpi-card.clickable:hover {
    transform: translateY(-1px);
    box-shadow: var(--stripe-shadow-hover);
    border-color: var(--stripe-border-focus);
}
.stripe-kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.stripe-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--stripe-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stripe-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--stripe-text-main);
    margin-top: 0.15rem;
    line-height: 1.1;
}
.stripe-kpi-subtext {
    font-size: 0.7rem;
    color: var(--stripe-text-muted);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stripe-kpi-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.stripe-bg-primary-light { background-color: var(--stripe-brand-light); }
.stripe-bg-success-light { background-color: #ebfbee; }
.stripe-bg-warning-light { background-color: #fff9db; }
.stripe-bg-danger-light { background-color: #fff0f0; }
.stripe-bg-info-light { background-color: #e8f7ff; }
.stripe-bg-neutral-light { background-color: #f8f9fa; }

.stripe-text-primary { color: var(--stripe-brand-dark) !important; }
.stripe-text-success { color: #2b8a3e !important; }
.stripe-text-warning { color: #e8590c !important; }
.stripe-text-danger { color: #c92a2a !important; }
.stripe-text-info { color: #1c7ed6 !important; }
.stripe-text-neutral { color: #495057 !important; }

/* Controles de Filtros y Ordenación */
.stripe-filter-container {
    background: var(--stripe-bg);
    border: 1px solid var(--stripe-border);
    border-radius: var(--stripe-radius);
    padding: 0.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--stripe-shadow);
}
.stripe-filter-scroll {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.stripe-filter-scroll::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.stripe-filter-pill {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--stripe-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.stripe-filter-pill:hover {
    color: var(--stripe-text-main);
    background: #f8f9fa;
}
.stripe-filter-pill.active {
    background: var(--stripe-brand-light) !important;
    color: var(--stripe-brand-dark) !important;
    border-color: rgba(100,188,108,0.2) !important;
}
.stripe-pill-count {
    font-size: 0.68rem;
    background: rgba(0,0,0,0.04);
    color: inherit;
    padding: 0.05rem 0.35rem;
    border-radius: 10px;
}

/* Inputs Stripe */
.stripe-input, .stripe-select {
    width: 100%;
    background: var(--stripe-bg);
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    color: var(--stripe-text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.stripe-input::placeholder {
    color: #9ca3af;
}
.stripe-input:focus, .stripe-select:focus {
    border-color: var(--stripe-brand);
    box-shadow: 0 0 0 3px rgba(100, 188, 108, 0.15);
}

/* Botones Stripe */
.stripe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
}
.stripe-btn-primary {
    background-color: var(--stripe-brand);
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.stripe-btn-primary:hover:not(:disabled) {
    background-color: var(--stripe-brand-dark);
}
.stripe-btn-secondary {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: var(--stripe-text-main) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.stripe-btn-secondary:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #c0c4cc;
}
.stripe-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Timeline Stripe */
.stripe-timeline {
    position: relative;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.5rem;
    padding-left: 1.2rem;
}
.stripe-timeline-item {
    position: relative;
    margin-bottom: 1rem;
}
.stripe-timeline-item:last-child {
    margin-bottom: 0;
}
.stripe-timeline-icon {
    position: absolute;
    left: -1.72rem;
    top: 0.1rem;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}
.stripe-timeline-content {
    font-size: 0.82rem;
}
.stripe-timeline-title {
    font-weight: 700;
    color: var(--stripe-text-main);
}
.stripe-timeline-time {
    font-size: 0.72rem;
    color: var(--stripe-text-light);
}

/* Listas y Filas Stripe */
.stripe-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.stripe-list-row {
    background: var(--stripe-bg);
    border: 1px solid var(--stripe-border);
    border-radius: var(--stripe-radius);
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--stripe-shadow);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit;
}
.stripe-list-row:hover {
    border-color: #cbd5e1;
    box-shadow: var(--stripe-shadow-hover);
}

/* Botón Acción Flotante (FAB) */
.stripe-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--stripe-brand, #64bc6c);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(100, 188, 108, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.stripe-fab:hover {
    transform: scale(1.08);
    background-color: #53a35a;
    box-shadow: 0 6px 20px rgba(100, 188, 108, 0.45);
}
.stripe-fab:active {
    transform: scale(0.95);
}

/* Botón de acceso directo WhatsApp estilo Stripe */
.stripe-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #25D366;
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}
.stripe-whatsapp-btn:hover {
    background-color: #1ebd59;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}
.stripe-whatsapp-btn:active {
    transform: translateY(0);
}
.stripe-whatsapp-icon {
    font-size: 0.95rem;
}

/* Widget de Puntuación/Karma estilo Reddit/Stripe */
.stripe-karma {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 4px;
    min-width: 44px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.stripe-karma:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.stripe-karma-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 2px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.stripe-karma-btn:hover {
    background: #e2e8f0;
}
.stripe-karma-btn-up:hover, .stripe-karma-btn-up.active {
    color: var(--stripe-brand, #64bc6c);
    background: #dcfce7;
}
.stripe-karma-btn-down:hover, .stripe-karma-btn-down.active {
    color: #ef4444;
    background: #fee2e2;
}
.stripe-karma-score {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 2px 0;
    transition: color 0.15s ease;
}
.stripe-karma-score.positive {
    color: var(--stripe-brand, #64bc6c);
}
.stripe-karma-score.negative {
    color: #ef4444;
}
.stripe-karma-score.neutral {
    color: #64748b;
}
.stripe-karma-votes {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: -2px;
}


