:root {
    --vx-acento: #00e08f;
    --vx-acento-oscuro: #00b874;
    --vx-cian: #22d3ee;
    --vx-whatsapp: #25d366;
    --vx-nav: #0a1120;
}

[data-bs-theme="dark"] {
    --vx-fondo: #070c16;
    --vx-superficie: #0e1626;
    --vx-borde: #1d2a42;
    --vx-texto-suave: #93a4bd;
}

[data-bs-theme="light"] {
    --vx-fondo: #f2f5f9;
    --vx-superficie: #ffffff;
    --vx-borde: #dfe6ef;
    --vx-texto-suave: #5b6b82;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--vx-fondo);
    transition: background .25s ease, color .25s ease;
}

.barra-vexa { background: var(--vx-nav); }

.texto-suave { color: var(--vx-texto-suave) !important; }
.texto-neon { color: var(--vx-acento); text-shadow: 0 0 18px rgba(0, 224, 143, .55); }

.superficie {
    background: var(--vx-superficie);
    border-color: var(--vx-borde);
}

.barra-confianza {
    background: linear-gradient(90deg, #05231c 0%, #062033 50%, #05231c 100%);
    color: #7cf5cd;
    font-size: .78rem;
    letter-spacing: .02em;
}
.barra-confianza .container { gap: 2rem; }

.hero-vexa {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    background: radial-gradient(circle at 85% 15%, rgba(34, 211, 238, .16), transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(0, 224, 143, .14), transparent 45%),
                linear-gradient(135deg, #0a1120 0%, #0d2137 60%, #073048 100%);
    color: #fff;
    border: 1px solid #16283f;
}
.hero-vexa::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 180, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to top, black, transparent 65%);
    pointer-events: none;
}
.hero-vexa > .row { position: relative; z-index: 1; }

.hero-chip {
    display: inline-block;
    padding: .35rem .9rem;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    color: var(--vx-acento);
    border: 1px solid rgba(0, 224, 143, .45);
    background: rgba(0, 224, 143, .08);
}

.hero-dato { border-left: 2px solid rgba(0, 224, 143, .5); padding-left: .9rem; }
.hero-dato dt { font-size: 1.25rem; font-weight: 700; color: #fff; }
.hero-dato dd { font-size: .74rem; margin: 0; color: #9fb4cc; letter-spacing: .06em; text-transform: uppercase; }

.marco-hero {
    border-radius: 1.2rem;
    border: 1px solid rgba(34, 211, 238, .35);
    box-shadow: 0 25px 70px rgba(3, 12, 24, .6), 0 0 40px rgba(34, 211, 238, .12);
    transform: rotate(2deg);
}

.btn-compra {
    background: linear-gradient(135deg, var(--vx-acento) 0%, #17e5b8 100%);
    border: none;
    color: #04120c;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(0, 224, 143, .35);
}
.btn-compra:hover, .btn-compra:focus {
    background: linear-gradient(135deg, #22f0a4 0%, #2ceec9 100%);
    color: #04120c;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 224, 143, .45);
}

.btn-wa {
    background: var(--vx-whatsapp);
    border: none;
    color: #06281a;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(37, 211, 102, .35);
}
.btn-wa:hover, .btn-wa:focus {
    background: #2ee277;
    color: #06281a;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .5);
}

.btn-outline-neon {
    border: 1px solid var(--vx-acento);
    color: var(--vx-acento);
    border-radius: 999px;
}
.btn-outline-neon:hover {
    background: rgba(0, 224, 143, .12);
    color: var(--vx-acento);
}

.contenido-principal { flex: 1 0 auto; width: 100%; }

.tarjeta-producto {
    background: var(--vx-superficie);
    border: 1px solid var(--vx-borde);
    border-radius: 1.1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tarjeta-producto:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 224, 143, .45);
    box-shadow: 0 18px 44px rgba(2, 8, 20, .35);
}
[data-bs-theme="light"] .tarjeta-producto:hover { box-shadow: 0 16px 38px rgba(13, 33, 55, .12); }

.marco-imagen-producto { overflow: hidden; }
.imagen-producto {
    height: 200px;
    width: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .25s ease;
}
.tarjeta-producto:hover .imagen-producto { transform: scale(1.06); }

.badge-flotante {
    position: absolute;
    top: .75rem;
    z-index: 2;
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: .68rem;
    letter-spacing: .04em;
}
.badge-categoria { left: .75rem; background: rgba(10, 17, 32, .72); color: #7dd3fc; border: 1px solid rgba(125, 211, 252, .35); }
.badge-estado { right: .75rem; }

.etiqueta-envio {
    display: inline-block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vx-acento);
    border: 1px dashed rgba(0, 224, 143, .55);
    border-radius: 999px;
    padding: .12rem .55rem;
}

.precio-producto {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--vx-acento);
    margin-bottom: .75rem;
}
[data-bs-theme="light"] .precio-producto { color: #0b8f63; }

.chip-confianza {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .76rem;
    color: var(--vx-texto-suave);
    border: 1px solid var(--vx-borde);
    border-radius: 999px;
    padding: .3rem .8rem;
    background: var(--vx-superficie);
}

.imagen-detalle {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    background: var(--vx-superficie);
    border: 1px solid var(--vx-borde);
    border-radius: 1.2rem;
    padding: 1.5rem;
}

.sombra-suave { box-shadow: 0 10px 30px rgba(2, 8, 20, .18); }
[data-bs-theme="light"] .sombra-suave { box-shadow: 0 10px 30px rgba(13, 33, 55, .08); }

.card { background: var(--vx-superficie); border-color: var(--vx-borde); }

.cupon-aplicado {
    border: 1px dashed rgba(0, 224, 143, .6);
    background: rgba(0, 224, 143, .07);
    border-radius: .9rem;
}
.fila-descuento { color: var(--vx-acento); font-weight: 600; }
[data-bs-theme="light"] .fila-descuento { color: #0b8f63; }

.tabla-carrito img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--vx-borde);
    border-radius: .6rem;
    padding: 4px;
}

.barra-movil-compra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--vx-superficie);
    border-top: 1px solid var(--vx-borde);
    box-shadow: 0 -10px 30px rgba(2, 8, 20, .25);
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
}
@media (max-width: 767.98px) {
    .pagina-producto .contenido-principal { padding-bottom: 96px; }
}

.btn-whatsapp-flotante {
    position: fixed;
    right: 1.1rem;
    bottom: calc(1.1rem + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--vx-whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(37, 211, 102, .45);
    z-index: 1050;
    animation: pulso-whatsapp 2.6s ease-in-out infinite;
}
.btn-whatsapp-flotante svg { width: 30px; height: 30px; fill: #fff; }
.btn-whatsapp-flotante:hover { transform: scale(1.08); }
@keyframes pulso-whatsapp {
    0%, 100% { box-shadow: 0 12px 32px rgba(37, 211, 102, .45); }
    50%      { box-shadow: 0 12px 40px rgba(37, 211, 102, .75); }
}

.check-circulo {
    width: 88px;
    height: 88px;
    line-height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(0, 224, 143, .12);
    border: 1px solid rgba(0, 224, 143, .5);
    color: var(--vx-acento);
    font-size: 2.5rem;
}

.miniatura {
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--vx-borde);
    border-radius: .4rem;
}

.pie-vexa {
    background: #060b14;
    border-top: 1px solid #14213a;
    margin-top: auto;
}
.link-pie { color: #9fb0c3; text-decoration: none; }
.link-pie:hover { color: #fff; text-decoration: underline; }

.nav-pills .nav-link { border-radius: 999px; color: var(--vx-texto-suave); }
.nav-pills .nav-link.active { background: var(--vx-acento); color: #04120c; font-weight: 700; }

.login-panel { max-width: 420px; margin: 8vh auto 4rem; }

.boton-tema { min-width: 92px; }

.logo-marca { height: 40px; width: auto; display: block; }
.logo-pie { height: 52px; width: auto; }
@media (max-width: 575.98px) {
    .logo-marca { height: 32px; }
    .boton-carrito { padding-left: .65rem; padding-right: .65rem; font-size: .8rem; }
}

.celda-acciones .btn { min-width: 92px; }

@media (max-width: 767.98px) {
    .tabla-admin th,
    .tabla-admin td {
        white-space: nowrap;
        vertical-align: middle;
    }
    .tabla-admin .btn {
        --bs-btn-padding-y: .5rem;
        --bs-btn-font-size: .85rem;
    }
    .card-body .form-control-lg { font-size: 1.05rem; }
}

.admin-sidebar {
    width: 256px;
    flex: 0 0 256px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0a1120 0%, #0c1729 100%);
    border-right: 1px solid #182742;
}
.marca-sidebar { padding: 1.1rem 1.25rem .6rem; border-bottom: 1px solid #16233d; }
.enlace-lateral {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .18rem .75rem;
    padding: .68rem 1rem;
    border-radius: .7rem;
    color: #93a4bd;
    text-decoration: none;
    font-size: .93rem;
    transition: background .15s ease, color .15s ease;
}
.enlace-lateral svg { width: 20px; height: 20px; flex: 0 0 20px; }
.enlace-lateral:hover { background: rgba(0, 224, 143, .07); color: #e8f2ff; }
.enlace-lateral.activo {
    background: linear-gradient(90deg, rgba(0, 224, 143, .16), rgba(0, 224, 143, .02));
    color: var(--vx-acento);
    font-weight: 600;
}
.separador-lateral { border-top: 1px solid #16233d; margin: .8rem 1.25rem; }

.admin-topbar {
    background: rgba(10, 17, 32, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #182742;
}

.min-vw-0 { min-width: 0; }

.metrica-card {
    border-radius: 1rem;
    border: 1px solid var(--vx-borde);
}
.metrica-card .icono-metrica {
    width: 48px;
    height: 48px;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 224, 143, .12);
    color: var(--vx-acento);
}
.metrica-card .icono-metrica svg { width: 24px; height: 24px; }
.metrica-card .valor-metrica { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }

.offcanvas-admin { background: #0a1120; border-right: 1px solid #182742; max-width: 285px; }

.fila-tabla-pedidos:hover { cursor: pointer; }

.icono-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: rgba(0, 224, 143, .12);
    color: var(--vx-acento);
    font-size: 1.5rem;
}

.pulgar-stock {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--vx-borde);
    border-radius: .5rem;
    padding: 3px;
}
@media (max-width: 575.98px) {
    .lista-stock-bajo li { padding-left: .75rem; padding-right: .75rem; gap: .6rem !important; }
    .pulgar-stock { width: 36px; height: 36px; }
}
