/* ============================================================
   RIDER BOX — capa "glass" (vidrio líquido)
   Se carga DESPUÉS de main.css y solo sobreescribe estilos.
   Para quitar el efecto: borra el <link> de este archivo.
   ============================================================ */
:root {
    --glass-bg:      rgba(255, 255, 255, 0.07);
    --glass-bg-hi:   rgba(255, 255, 255, 0.12);
    --glass-borde:   rgba(255, 255, 255, 0.14);
    --glass-brillo:  inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    --glass-blur:    blur(16px) saturate(150%);
}

/* ── Header ─────────────────────────────────────────────── */
.main-header {
    background: rgba(8, 8, 8, 0.94); /* respaldo sin soporte de blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .main-header {
        background: rgba(8, 8, 8, 0.58);
        -webkit-backdrop-filter: blur(20px) saturate(170%);
                backdrop-filter: blur(20px) saturate(170%);
    }
}
.nav-link.active { text-shadow: 0 0 18px rgba(223, 255, 0, 0.35); }

.cart-btn {
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-borde);
    box-shadow: var(--glass-brillo);
}

/* ── Categorías: foto completa + etiqueta de vidrio ─────── */
.category-card { border-color: rgba(255, 255, 255, 0.08); }
.category-card span {
    position: absolute;
    left: 7px; right: 7px; bottom: 7px;
    padding: 8px 4px;
    border: 1px solid var(--glass-borde);
    border-radius: 10px;
    background: rgba(12, 12, 12, 0.78);
    color: #eee;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .category-card span {
        background: rgba(20, 20, 20, 0.42);
        -webkit-backdrop-filter: blur(12px) saturate(160%);
                backdrop-filter: blur(12px) saturate(160%);
        box-shadow: var(--glass-brillo);
    }
}
.category-card .cat-img-wrapper { padding-bottom: 30px; box-sizing: border-box; }
.category-card.active span {
    background: var(--neon-yellow);
    border-color: var(--neon-yellow);
    color: #000;
    box-shadow: 0 6px 18px rgba(223, 255, 0, 0.28);
}
@media (max-width: 600px) {
    .category-card span { left: 5px; right: 5px; bottom: 5px; padding: 7px 2px; border-radius: 9px; }
    .category-card .cat-img-wrapper { padding-bottom: 26px; }
}

/* ── Barra de confianza: tarjetas de vidrio ─────────────── */
.trust-bar {
    background:
        radial-gradient(ellipse 60% 140% at 8% 0%,   rgba(223, 255, 0, 0.10), transparent 60%),
        radial-gradient(ellipse 55% 140% at 96% 100%, rgba(255, 70, 40, 0.10), transparent 60%),
        var(--black-soft);
    padding: 26px 0;
}
.trust-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-borde);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--glass-brillo);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .trust-item { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.trust-icon {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem;
    background: rgba(223, 255, 0, 0.10);
    border: 1px solid rgba(223, 255, 0, 0.28);
}
.t-corto { display: none; }

@media (max-width: 640px) {
    .trust-bar { padding: 18px 0; }
    .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .trust-item {
        flex-direction: column; align-items: center; text-align: center;
        gap: 8px; padding: 14px 6px 12px; border-radius: 14px;
    }
    .trust-icon { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 12px; }
    .t-largo { display: none; }
    .t-corto { display: inline; }
    .trust-item h3 { font-size: 0.7rem; line-height: 1.2; letter-spacing: 0.2px; }
    .trust-item p  { font-size: 0.66rem; line-height: 1.25; margin-top: 3px; }
}

/* ── Filtros nuevos ─────────────────────────────────────── */
.filtros-section.fx-listo .filtros-fila,
.filtros-section.fx-listo .filtros-fila * { /* los <select> originales siguen existiendo (main.js los usa) */ }
.filtros-section.fx-listo .filtros-fila {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.filtros-section.fx-listo { margin: 18px auto 22px; display: block; }

.fx-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.fx-btn, .fx-orden select {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    background: var(--glass-bg); border: 1px solid var(--glass-borde); box-shadow: var(--glass-brillo);
    color: #fff; font: inherit; font-size: 0.82rem; font-weight: 800; letter-spacing: .4px;
    text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: border-color .2s, background .2s, transform .15s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .fx-btn, .fx-orden select { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.fx-btn:hover, .fx-orden select:hover { border-color: rgba(223, 255, 0, .6); }
.fx-btn:active { transform: scale(.97); }
.fx-btn:focus-visible, .fx-orden select:focus-visible, .fx-chip:focus-visible, .fx-quitar:focus-visible {
    outline: 2px solid var(--neon-yellow); outline-offset: 2px;
}
.fx-n {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--neon-yellow); color: #000; font-size: .72rem; font-weight: 900;
}
.fx-n[hidden] { display: none; }
.fx-orden { position: relative; display: inline-flex; }
.fx-orden select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; max-width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23dfff00' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.fx-orden select option { background: #141414; color: #fff; text-transform: none; }

.fx-activos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.fx-activos:empty { display: none; }
.fx-quitar {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 14px;
    border-radius: 999px; background: rgba(223, 255, 0, .10); border: 1px solid rgba(223, 255, 0, .45);
    color: var(--neon-yellow); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.fx-quitar::after { content: '✕'; font-size: .7rem; opacity: .8; }

/* Hoja (celular: desde abajo · escritorio: panel a la derecha) */
.fx-fondo { position: fixed; inset: 0; z-index: 3499; background: rgba(0, 0, 0, .62); }
.fx-hoja {
    position: fixed; z-index: 3500; left: 0; right: 0; bottom: 0; max-height: 88vh;
    display: flex; flex-direction: column;
    background: rgba(16, 16, 16, 0.96);
    border: 1px solid var(--glass-borde); border-bottom: 0; border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .6), var(--glass-brillo);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .fx-hoja {
        background: rgba(18, 18, 18, 0.66);
        -webkit-backdrop-filter: blur(28px) saturate(170%);
                backdrop-filter: blur(28px) saturate(170%);
    }
}
.fx-hoja[hidden], .fx-fondo[hidden] { display: none; }
.fx-cab { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.fx-cab h2 { margin: 0; font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.fx-cerrar { width: 44px; height: 44px; border: 0; background: transparent; color: #bbb; font-size: 1.3rem; cursor: pointer; }
.fx-cuerpo { overflow-y: auto; padding: 4px 20px 12px; overscroll-behavior: contain; }
.fx-sec { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.fx-sec:first-child { border-top: 0; }
.fx-sec h3 { margin: 0 0 10px; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-gray); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip {
    min-height: 40px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16); color: #e8e8e8; font: inherit; font-size: .85rem; font-weight: 700;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s;
}
.fx-chip[aria-pressed="true"] { background: var(--neon-yellow); border-color: var(--neon-yellow); color: #000; }
.fx-pie {
    display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.fx-limpiar {
    flex: 0 0 auto; min-height: 48px; padding: 0 18px; border-radius: 12px; background: transparent; color: #fff;
    border: 1px solid rgba(255, 255, 255, .22); font: inherit; font-weight: 800; cursor: pointer;
}
.fx-ver {
    flex: 1 1 auto; min-height: 48px; border-radius: 12px; border: 0; background: var(--neon-yellow); color: #000;
    font: inherit; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; cursor: pointer;
}
body.fx-bloqueado { overflow: hidden; }

@media (min-width: 768px) {
    .fx-hoja {
        left: auto; top: 0; width: 400px; max-height: none; border-radius: 22px 0 0 22px;
        border: 1px solid var(--glass-borde); border-right: 0;
    }
}
@media (max-width: 600px) {
    .filtros-section.fx-listo { margin: 12px auto 18px; }
    .fx-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .fx-btn, .fx-orden, .fx-orden select { width: 100%; justify-content: center; }
    .fx-orden select { text-align: center; text-align-last: center; padding: 0 34px 0 14px; font-size: .76rem; }
    .fx-activos {
        grid-column: 1 / -1; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
        scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; width: auto;
    }
    .fx-activos::-webkit-scrollbar { display: none; }
}

/* ── Botón de WhatsApp: aro de vidrio ───────────────────── */
.whatsapp-float { box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 0 5px rgba(255, 255, 255, .08); }

@media (prefers-reduced-motion: reduce) {
    .fx-btn, .fx-chip { transition: none; }
}