/* Tienda pública — estilos propios (lo demás lo pone Tailwind).
   Los colores salen de --b-* (derivados del color de botones de "Perfil de empresa"). */

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }

.fade-in { animation: fadeIn .25s ease both; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Carrusel de tarjetas (categorías) ----------
   2 tarjetas visibles en móvil y 4 en PC; se mueve solo y también con el dedo. */
.cards-track {
    --per: 2;
    --gap: 12px;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.cards-track > * {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    min-width: 0;
    scroll-snap-align: start;
}
.cards-track > * > a { display: flex; }
@media (min-width: 768px) {
    .cards-track { --per: 4; --gap: 16px; }
}

/* ---------- Carrusel de banners: animación "desvanecer" (la de "deslizar" es el valor por defecto) ---------- */
[data-hero][data-effect="fade"] [data-hero-track] { display: block; position: relative; transform: none !important; transition: none; }
[data-hero][data-effect="fade"] [data-hero-slide] {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .9s ease;
}
[data-hero][data-effect="fade"] [data-hero-slide].is-active { opacity: 1; pointer-events: auto; z-index: 1; }

/* ---------- Menú flotante de vidrio ---------- */
.liquid-glass-dock {
    background: linear-gradient(135deg, rgba(255, 255, 255, .82) 0%, rgba(240, 247, 255, .62) 100%);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, .85);
    box-shadow:
        0 20px 50px -10px rgb(var(--b-600) / .22),
        0 4px 16px rgba(15, 23, 42, .08),
        inset 0 1px 2px rgba(255, 255, 255, .95),
        inset 0 -1px 2px rgb(var(--b-600) / .12);
}

.liquid-glass-btn {
    background: linear-gradient(145deg, rgba(255, 255, 255, .9) 0%, rgba(241, 245, 249, .6) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06), inset 0 1px 1px rgba(255, 255, 255, .9);
    transition: all .28s cubic-bezier(.34, 1.56, .64, 1);
}
.liquid-glass-btn:active { transform: scale(.94); }

@media (min-width: 768px) {
    .liquid-glass-btn:hover {
        transform: scale(1.12) translateX(-2px);
        background: linear-gradient(145deg, rgba(255, 255, 255, .95) 0%, rgb(var(--b-100) / .85) 100%);
        border-color: rgb(var(--b-600) / .45);
        box-shadow: 0 10px 25px -4px rgb(var(--b-600) / .3), inset 0 1px 2px rgba(255, 255, 255, 1);
        color: rgb(var(--b-600));
    }
}

.liquid-glass-btn.active-dock {
    background: linear-gradient(135deg, rgb(var(--b-600)) 0%, rgb(var(--b-700)) 100%);
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 8px 20px -2px rgb(var(--b-600) / .45), inset 0 1px 1px rgba(255, 255, 255, .4);
}

/* Botón de vidrio sobre los banners */
.liquid-pill-banner {
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(255, 255, 255, .6);
    transition: all .3s ease;
}
.liquid-pill-banner:hover {
    background: rgb(var(--b-600) / .85);
    border-color: rgba(255, 255, 255, .8);
    transform: translateY(-2px);
}

/* ---------- Tarjetas y controles ---------- */
.product-card-shadow {
    box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .14);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.product-card-shadow:hover {
    box-shadow: 0 22px 40px -16px rgb(var(--b-600) / .28);
    transform: translateY(-3px);
    border-color: rgb(var(--b-200));
}

.fav-btn { background: #fff; border-color: #e2e8f0; color: #94a3b8; }
.fav-btn:hover { color: #f43f5e; border-color: #fecdd3; }
.fav-btn[data-on="1"] { background: #fff1f2; border-color: #fecdd3; color: #f43f5e; }

.variant-btn { background: #fff; border-color: #e2e8f0; color: #334155; }
.variant-btn:hover:not(:disabled) { border-color: rgb(var(--b-400)); }
.variant-btn.is-selected {
    border-color: rgb(var(--b-600));
    background: rgb(var(--b-50));
    color: rgb(var(--b-700));
    box-shadow: 0 0 0 3px rgb(var(--b-600) / .15);
}

input[type="range"] { accent-color: rgb(var(--b-600)); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(var(--b-600));
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgb(var(--b-600) / .45);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(var(--b-600));
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgb(var(--b-600) / .45);
    cursor: pointer;
}

:focus-visible { outline: 3px solid rgb(var(--b-400)); outline-offset: 2px; }

/* ---------- Modo edición (solo super administrador) ---------- */
.edit-pencil {
    display: none;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 10px;
    border: 2px dashed rgba(255, 255, 255, .7);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .35);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.edit-pencil:hover { background: rgb(var(--b-600)); transform: scale(1.05); }
body.is-editor:not(.edit-off) .edit-pencil { display: inline-flex; }
body.edit-off .edit-pencil { display: none !important; }

/* Todo lo que solo ve quien edita se oculta al apagar el modo edición */
body.edit-off .edit-only { display: none !important; }

/* Barra sobre cada sección de la portada */
.section-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 6px 8px 6px 12px; border-radius: 14px;
    background: #0f172a; color: #fff; font-size: 12px; font-weight: 700;
}
.section-bar.is-hidden { background: #475569; }
.section-bar-label { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.section-bar-label i { opacity: .6; }
.section-bar-off { font-style: normal; font-size: 10px; background: #fbbf24; color: #0f172a; padding: 2px 8px; border-radius: 999px; }
.section-bar-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.section-bar-flags { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-right: auto; }
.section-bar-flags .section-bar-off i { margin-right: 2px; font-size: 9px; }
.section-bar-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700;
    transition: background .15s ease;
}
.section-bar-btn:hover { background: rgb(var(--b-600)); }
.section-bar-btn.is-main { background: rgb(var(--b-600)); padding: 0 12px; }
.section-bar-btn.is-main:hover { background: rgb(var(--b-700)); }
@media (max-width: 480px) { .section-bar-btn.is-main span { display: none; } .section-bar-btn.is-main { padding: 0 8px; } }
@media (max-width: 480px) {
    /* En celular las etiquetas («Oculta», «Oculta en Móvil, Tablet») bajan a una segunda fila para leerse completas. */
    .section-bar { flex-wrap: wrap; }
    .section-bar-label { flex: 1 1 0; }
    .section-bar-flags { order: 3; flex: 0 0 100%; flex-wrap: wrap; }
}
.home-block.is-hidden .home-block-dim { opacity: .45; filter: grayscale(.6); }

/* Barra gris «Añadir sección» */
.section-add {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 14px; border-radius: 14px;
    background: #e2e8f0; color: #475569; font-size: 12px; font-weight: 800;
    border: 2px dashed #cbd5e1; transition: all .15s ease;
}
.section-add:hover { background: rgb(var(--b-50)); border-color: rgb(var(--b-600)); color: rgb(var(--b-700)); }

/* Asistente «Añadir sección» */
.sec-type, .sec-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    padding: 14px 10px; border-radius: 16px; border: 2px solid #e2e8f0; background: #fff;
    transition: all .15s ease; cursor: pointer;
}
.sec-type:hover, .sec-tile:hover { border-color: rgb(var(--b-600)); background: rgb(var(--b-50)); }
.sec-type > i { font-size: 26px; color: rgb(var(--b-600)); }
.sec-type-title, .sec-tile-title { font-size: 13px; font-weight: 800; color: #0f172a; }
.sec-type-desc, .sec-tile-desc { font-size: 11px; line-height: 1.35; color: #64748b; }
.sec-tile-pic { width: 100%; padding: 6px; border-radius: 10px; background: #f1f5f9; }
.sec-tile-size { font-size: 10px; font-weight: 700; color: rgb(var(--b-700)); background: rgb(var(--b-50)); padding: 2px 8px; border-radius: 999px; }

/* «Mostrar en»: Móvil · Tablet · Laptop · PC (ventana de configurar sección) */
.dev-set { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 12px 12px; min-width: 0; border: 1px solid #e2e8f0; border-radius: 14px; }
.dev-legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: #334155; }
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .dev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dev-chip {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
    padding: 10px 6px 8px; border-radius: 12px; border: 2px solid #e2e8f0; background: #f8fafc; color: #64748b;
    cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dev-chip > i { font-size: 20px; }
.dev-name { font-size: 12px; font-weight: 800; }
.dev-range { font-size: 10px; font-weight: 600; line-height: 1.25; }
.dev-chip::after { content: "Oculto"; margin-top: 2px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dev-chip.is-on { border-color: rgb(var(--b-600)); background: rgb(var(--b-50)); color: rgb(var(--b-700)); }
.dev-chip.is-on::after { content: "Visible"; }
.dev-chip:focus-within { outline: 2px solid rgb(var(--b-600)); outline-offset: 2px; }
.dev-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

/* Pestañas del editor de categorías */
.cat-tab { flex: 1; padding: 8px 6px; border-radius: 9px; font-size: 12px; font-weight: 700; color: #475569; transition: all .15s ease; }
.cat-tab.is-on { background: #fff; color: rgb(var(--b-700)); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }

/* Pie de página: colores editables (las variables --ft-* se ponen en el <footer>; estas son las de un fondo oscuro) */
.store-footer {
    --ft-text: #CBD5E1; --ft-muted: #94A3B8; --ft-title: #fff; --ft-accent: #93C5FD; --ft-icon: #60A5FA;
    --ft-line: rgba(203, 213, 225, .16); --ft-chip: rgba(255, 255, 255, .12);
    --ft-badge-bg: rgba(255, 255, 255, .08); --ft-badge-line: rgba(203, 213, 225, .22);
}
.ft-text { color: var(--ft-text); }
.ft-muted { color: var(--ft-muted); }
.ft-title { color: var(--ft-title); }
.ft-icon { color: var(--ft-icon); }
.ft-line { border-color: var(--ft-line); }
.ft-hover { transition: color .15s ease; }
.ft-hover:hover { color: var(--ft-accent); }
.ft-chip { background: var(--ft-chip); color: var(--ft-title); }
.ft-chip:hover { background: rgb(var(--b-600)); color: #fff; }
.ft-badge { background: var(--ft-badge-bg); border-color: var(--ft-badge-line); color: var(--ft-text); }

.icon-opt { background: #fff; border-color: #e2e8f0; color: #475569; transition: all .15s ease; }
.icon-opt:hover { border-color: rgb(var(--b-400)); color: rgb(var(--b-600)); }
.icon-opt.is-on { background: rgb(var(--b-600)); border-color: rgb(var(--b-600)); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .fade-in, .liquid-glass-btn, .product-card-shadow, [data-hero-track] { animation: none !important; transition: none !important; }
}

/* ---------- Opciones del producto (color, talla…) ---------- */
.opt-swatch {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--swatch, #cccccc);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e1;
    transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}
.opt-swatch:hover:not(:disabled) { transform: scale(1.1); }
.opt-swatch.is-selected { box-shadow: 0 0 0 2px rgb(var(--b-600)), 0 0 0 6px rgb(var(--b-600) / .18); }
.opt-swatch.is-alt, .variant-btn.is-alt { opacity: .5; }
.variant-btn.is-alt { border-style: dashed; }
.opt-swatch:disabled, .variant-btn:disabled { cursor: not-allowed; opacity: .35; }
.opt-swatch:disabled::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px; top: 50%;
    height: 2px;
    background: #475569;
    transform: rotate(-45deg);
}
.variant-btn:disabled { text-decoration: line-through; }

/* ---------- Ventanas emergentes (fase 12B) ---------- */
.sp-root { position: fixed; z-index: 75; font-family: inherit; }
.sp-box {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55), 0 6px 20px rgba(15, 23, 42, .12);
}
.sp-img-link { display: block; min-height: 0; background: #F1F5F9; overflow: hidden; }
.sp-img { display: block; width: 100%; height: auto; object-fit: contain; }
a.sp-img-link { cursor: pointer; }
.sp-close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(15, 23, 42, .68); color: #fff; font-size: 22px; line-height: 1;
    display: grid; place-items: center; padding: 0 0 2px;
    transition: background .2s ease, transform .2s ease;
}
.sp-close:hover { background: rgba(15, 23, 42, .9); transform: scale(1.06); }
.sp-close:focus-visible, .sp-btn:focus-visible { outline: 3px solid rgb(var(--b-600) / .6); outline-offset: 2px; }
.sp-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: #0F172A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 4px 10px; border-radius: 999px;
}
.sp-foot { display: grid; gap: 12px; padding: 14px 16px 16px; }
.sp-title { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.25; color: #0F172A; text-align: center; }
.sp-btn {
    display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 15px;
    padding: 12px 18px; border-radius: 999px; color: #fff; background: rgb(var(--b-600));
    box-shadow: 0 10px 22px -10px rgb(var(--b-600) / .7); transition: background .2s ease, transform .2s ease;
}
.sp-btn:hover { background: rgb(var(--b-700)); transform: translateY(-1px); }

/* Centro: fondo oscuro y tarjeta */
.sp-center {
    inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(15, 23, 42, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .25s ease; overscroll-behavior: contain;
}
.sp-center.is-in { opacity: 1; }
.sp-center .sp-box {
    width: 100%; max-width: 460px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sp-center.is-in .sp-box { transform: none; }
.sp-center .sp-img { max-height: 68vh; max-height: 68dvh; }

/* Esquinas: tarjeta sin fondo oscuro, no bloquea la página */
.sp-corner {
    width: min(340px, calc(100vw - 24px)); bottom: 24px;
    opacity: 0; transform: translateY(18px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sp-corner.is-in { opacity: 1; transform: none; }
.sp-corner .sp-box { border-radius: 16px; }
.sp-corner .sp-img { max-height: 230px; }
.sp-corner .sp-title { font-size: 15px; text-align: left; }
.sp-br { right: 96px; }          /* a la izquierda del menú flotante */
.sp-bl { left: 20px; }
.sp-bl.sp-wa { bottom: 92px; }   /* encima del botón de WhatsApp */

@media (max-width: 767px) {
    .sp-corner, .sp-bl, .sp-br, .sp-bl.sp-wa { left: 12px; right: 12px; width: auto; bottom: 84px; } /* encima del menú de abajo */
    .sp-corner .sp-img { max-height: 28vh; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-center, .sp-center .sp-box, .sp-corner { transition: none; transform: none; }
}

/* ---------- Fase 29: tarjeta de producto «Completa» ---------- */
.pc-fav, .pc-add {
    background: rgba(255, 255, 255, .92);
    color: #334155;
    border: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
    backdrop-filter: blur(4px);
    transition: transform .15s ease, color .15s ease, background-color .15s ease;
}
.pc-fav:hover, .pc-add:hover { transform: scale(1.08); }
.pc-add:hover { background: rgb(var(--b-600)); color: #fff; }
.pc-fav .pc-heart-on { display: none; }
.pc-fav[data-on="1"] .pc-heart-on { display: block; color: #f43f5e; }
.pc-fav[data-on="1"] .pc-heart-off { display: none; }
.pc-fav:hover .pc-heart-off { color: #f43f5e; }
.pc-dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(100, 116, 139, .45);
}
@media (min-width: 640px) { .pc-dot { width: 16px; height: 16px; } }

/* ---------- Fase 29: categorías «Completa» y «En círculo» ---------- */
.cards-track.is-circle { --per: 3; --gap: 10px; }
@media (min-width: 768px) { .cards-track.is-circle { --per: 6; --gap: 18px; } }

.cards-track .cat-complete, .tax-grid .cat-complete, .tax-list .cat-complete {
    position: relative;
    display: block;
    height: 9rem;
    overflow: hidden;
    border-radius: 1rem;
    isolation: isolate;
    background: linear-gradient(135deg, rgb(var(--b-600)) 0%, rgb(var(--b-700)) 100%);
    box-shadow: 0 10px 26px -16px rgba(15, 23, 42, .45);
}
@media (min-width: 640px) { .cards-track .cat-complete, .tax-grid .cat-complete { height: 11rem; border-radius: 1.25rem; } }
.cat-complete .cat-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-complete:hover .cat-cover { transform: scale(1.06); }
.cat-complete::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(15, 23, 42, .74) 0%, rgba(15, 23, 42, .2) 52%, rgba(15, 23, 42, 0) 100%);
}
.cat-complete-name {
    position: absolute; left: 12px; right: 48px; bottom: 11px;
    color: #fff; font-weight: 800; font-size: .875rem; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
@media (min-width: 640px) { .cat-complete-name { left: 16px; right: 56px; bottom: 14px; font-size: 1rem; } }
/* Tablet: 4 columnas con el dock a la derecha dejan tarjetas de unos 150 px; con letra y márgenes un poco menores «Tecnología» ya no se corta. */
@media (min-width: 768px) and (max-width: 1023.98px) { .cat-complete-name { left: 12px; right: 44px; bottom: 12px; font-size: .875rem; } }
.cat-arrow {
    position: absolute; right: 10px; bottom: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: #0f172a; font-size: 11px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.cat-complete:hover .cat-arrow { background: rgb(var(--b-600)); color: #fff; transform: translateX(2px); }

/* Ícono o SVG propio cuando no hay foto: sobre el degradado de la marca, centrado en la parte de arriba. */
.cat-glyph {
    position: absolute; left: 0; right: 0; top: 0; bottom: 34%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .92); font-size: 2.2rem;
}
.cat-glyph-svg img { width: 3.6rem; height: 3.6rem; object-fit: contain; padding: .55rem; border-radius: 1rem; background: #fff; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .5); }

.cat-circle-box { max-width: 10rem; margin-inline: auto; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.cat-circle-img {
    position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
    border-radius: 999px; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, rgb(var(--b-600)) 0%, rgb(var(--b-700)) 100%);
    box-shadow: 0 0 0 1px rgba(100, 116, 139, .25), 0 10px 22px -14px rgba(15, 23, 42, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cat-circle:hover .cat-circle-img { transform: translateY(-2px); box-shadow: 0 0 0 3px rgb(var(--b-600) / .55), 0 14px 26px -14px rgba(15, 23, 42, .5); }
.cat-circle-img .cat-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-circle-img .cat-glyph { bottom: 0; font-size: 1.9rem; }
@media (min-width: 640px) { .cat-circle-img .cat-glyph { font-size: 2.6rem; } }
.cat-circle-img .cat-glyph-svg { background: #fff; }
.cat-circle-img .cat-glyph-svg img { width: 62%; height: 62%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cat-circle-name {
    max-width: 100%; font-style: italic; font-weight: 500; font-size: .78rem; line-height: 1.25; color: #475569; overflow-wrap: anywhere; word-break: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .cat-circle-name { font-size: .9rem; } }
.cat-circle:hover .cat-circle-name { color: rgb(var(--b-600)); }

@media (prefers-reduced-motion: reduce) {
    .cat-complete .cat-cover, .cat-arrow, .cat-circle-img { transition: none !important; }
}

/* ---------- Fase 32: categorías y marcas en cuadrícula y en lista (y la inicial de una marca sin imagen) ----------
   Son las mismas tarjetas del carrusel (Estándar, Completa, En círculo): cambia cómo se acomodan. Los colores salen de las clases
   de Tailwind de la tarjeta, así que el modo oscuro ya los cubre. */
.tax-grid { --per: 2; --gap: 12px; display: grid; gap: var(--gap); grid-template-columns: repeat(var(--per), minmax(0, 1fr)); }
.tax-grid > * { min-width: 0; }
.tax-grid > * > a { display: flex; }
@media (min-width: 640px) { .tax-grid { --per: 3; } }
@media (min-width: 768px) { .tax-grid { --per: 4; --gap: 16px; } }
.tax-grid.is-circle { --per: 3; --gap: 10px; }
@media (min-width: 640px) { .tax-grid.is-circle { --per: 4; } }
@media (min-width: 768px) { .tax-grid.is-circle { --per: 6; --gap: 18px; } }

.tax-list { display: flex; flex-direction: column; gap: 10px; }
.tax-list > * { min-width: 0; }
.tax-list .cat-complete { height: 6.5rem; border-radius: 1rem; }
@media (min-width: 640px) { .tax-list .cat-complete { height: 7.5rem; } }
.tax-row {
    display: flex; align-items: center; gap: .85rem; min-width: 0;
    padding: .7rem 3.25rem .7rem .85rem; border-radius: 1rem;
    transition: background-color .2s ease, border-color .2s ease;
}
.tax-row-name {
    flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s ease;
}
.tax-row-arrow {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 999px; font-size: 10px;
    position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tax-row { position: relative; }
body.is-editor .tax-row { padding-right: 5.5rem; }
.tax-row-round .cat-circle-img { flex: none; width: 3.5rem; }
.tax-row-round .cat-circle-img .cat-glyph { font-size: 1.35rem; }
.tax-row-round:hover .cat-circle-img { transform: none; box-shadow: 0 0 0 2px rgb(var(--b-600) / .55); }

/* Marca sin imagen ni ícono: su inicial en grande sobre el degradado de la marca. */
.cat-mono { font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; }
.cat-circle-img .cat-mono { font-size: 2.1rem; }
@media (min-width: 640px) { .cat-circle-img .cat-mono { font-size: 2.9rem; } }
.tax-row-round .cat-circle-img .cat-mono { font-size: 1.5rem; }

/* ---------- Fase 32: tarjeta de producto «Galería» ----------
   Foto grande y, debajo del nombre, miniaturas de la galería: al elegir una (con el dedo, el clic o el mouse) cambia la foto grande. */
.pc-gallery .pc-thumbs { position: relative; z-index: 10; display: flex; flex-wrap: wrap; gap: 5px; margin-top: .5rem; }
.pc-thumb {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, .55);
    transition: box-shadow .15s ease, transform .15s ease;
}
@media (min-width: 640px) { .pc-thumb { width: 40px; height: 40px; border-radius: 10px; } }
.pc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-thumb:hover { transform: translateY(-1px); }
.pc-thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px rgb(var(--b-600)); }
.pc-thumb:focus-visible { outline: 2px solid rgb(var(--b-600)); outline-offset: 2px; }
.pc-gal-main { transition: transform .5s ease; }
.pc-gallery:hover .pc-gal-main { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .pc-gal-main, .pc-thumb { transition: none !important; } .pc-gallery:hover .pc-gal-main { transform: none; } }
