/* VigilantCam — UI Marketplace Dark */
:root {
    --vc-bg: #0D1117;
    --vc-surface: #161B22;
    --vc-border: #30363d;
    --vc-blue: #2F81F7;
    --vc-yellow: #FFD700;
    --vc-cyan: #00ADEF;
    --vc-navy: #1B365D;
    --vc-muted: #8b949e;
}

body {
    background-color: var(--vc-bg);
}

/* Wordmark estilo SYSCOM — bold italic blanco */
.vc-wordmark {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transform: skewX(-6deg);
    display: inline-block;
}

.vc-wordmark span {
    color: var(--vc-cyan);
    font-style: italic;
}

.vc-wordmark:hover {
    opacity: 0.9;
}

/* Barra de búsqueda central */
.vc-search {
    display: flex;
    align-items: center;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: 9999px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vc-search:focus-within {
    border-color: var(--vc-blue);
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.15);
}

.vc-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.vc-search input::placeholder {
    color: var(--vc-muted);
}

.vc-search__icon {
    color: var(--vc-muted);
    flex-shrink: 0;
}

.vc-search__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: var(--vc-muted);
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.vc-search__action:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Botón azul (acciones secundarias) */
.vc-btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--vc-blue);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}

.vc-btn-blue:hover {
    background: #1f6feb;
}

/* Botón carrito amarillo */
.vc-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: var(--vc-yellow);
    color: #0D1117;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    position: relative;
    white-space: nowrap;
}

.vc-btn-cart:hover {
    background: #e6c200;
}

.vc-btn-cart [data-cart-count] {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--vc-red, #DA3633);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-btn-cart [data-cart-count].hidden {
    display: none;
}

/* Sub-navegación horizontal */
.vc-subnav {
    background: var(--vc-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-subnav__inner {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.vc-subnav__inner::-webkit-scrollbar {
    display: none;
}

.vc-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--vc-muted);
    border-radius: 9999px;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}

.vc-nav-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.vc-nav-pill--active {
    color: #fff;
    border-color: var(--vc-blue);
    box-shadow: 0 0 0 1px rgba(47, 129, 247, 0.35), 0 0 16px rgba(47, 129, 247, 0.12);
    background: rgba(47, 129, 247, 0.08);
}

/* Tarjetas superficie */
.vc-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: 16px;
    overflow: hidden;
}

.vc-card:hover {
    border-color: rgba(47, 129, 247, 0.3);
}

/* Hero banner */
.vc-hero-banner {
    position: relative;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #161B22 0%, #1B365D 50%, #0D1117 100%);
    border: 1px solid var(--vc-border);
}

.vc-hero-banner__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vc-hero-banner__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(47, 129, 247, 0.2), transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(0, 173, 239, 0.12), transparent 50%);
}

/* Panel lateral tipo feed */
.vc-feed-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-feed-item:last-child {
    border-bottom: none;
}

.vc-feed-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--vc-blue), var(--vc-cyan));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

/* Badge live */
.vc-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(218, 54, 51, 0.15);
    color: #f85149;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.vc-badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #DA3633;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Botón primario CTA */
.vc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: var(--vc-blue);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.vc-btn-primary:hover {
    background: #1f6feb;
}

/* Product card */
.vc-product-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.vc-product-card:hover {
    border-color: rgba(47, 129, 247, 0.35);
    transform: translateY(-2px);
}

/* Categoría thumbnail */
.vc-cat-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    transition: border-color 0.2s;
}

.vc-cat-thumb:hover {
    border-color: var(--vc-blue);
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--vc-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--vc-border);
    border-radius: 3px;
}
