/* ==========================================================================
   Portada de la tienda (index.php)
   Todo va bajo el prefijo "sh-" para no chocar con styles.css.
   ========================================================================== */

.sh,
.sh-modal,
.sh-toast,
.sh-float-whatsapp {
    --sh-bg: #060d1f;
    --sh-surface: #0c1529;
    --sh-surface-2: #111d36;
    --sh-surface-3: #172544;
    --sh-border: rgba(148, 163, 184, .14);
    --sh-border-strong: rgba(148, 163, 184, .26);
    --sh-text: #e6ecf6;
    --sh-muted: #93a0b8;
    --sh-faint: #8290a8; /* contraste >= 4.5:1 sobre todos los fondos oscuros (WCAG AA) */
    --sh-primary: #1fd8ff;
    --sh-primary-hover: #74e7ff;
    --sh-primary-ink: #03121f;
    --sh-accent: #ff3eb5;
    --sh-sale: #ff4d6d;
    --sh-warn: #fbbf24;
    --sh-ok: #34d399;
    --sh-whatsapp: #25d366;
    --sh-radius: 18px;
    --sh-shadow: 0 20px 45px rgba(0, 0, 0, .35);
    --sh-ease: cubic-bezier(.2, .8, .2, 1);
}

.sh {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(64px, 8vw, 104px);
    color: var(--sh-text);
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.sh *,
.sh *::before,
.sh *::after,
.sh-modal *,
.sh-modal *::before,
.sh-modal *::after {
    box-sizing: border-box;
}

.sh h1,
.sh h2,
.sh h3,
.sh-modal h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    line-height: 1.15;
}

.sh p,
.sh-modal p {
    margin: 0;
}

.sh a {
    color: inherit;
}

.sh :focus-visible,
.sh-modal :focus-visible,
.sh-toast :focus-visible,
.sh-float-whatsapp:focus-visible {
    outline: 2px solid var(--sh-primary);
    outline-offset: 3px;
}

.sh-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

/* ---------- Botones ---------- */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--sh-ease), box-shadow .2s ease;
}

.sh-btn:hover {
    transform: translateY(-1px);
}

.sh-btn:active {
    transform: translateY(0);
}

.sh-btn-primary {
    background: var(--sh-primary);
    color: var(--sh-primary-ink) !important;
    box-shadow: 0 8px 22px rgba(31, 216, 255, .25);
}

.sh-btn-primary:hover {
    background: var(--sh-primary-hover);
    box-shadow: 0 12px 28px rgba(31, 216, 255, .32);
}

.sh-btn-outline {
    border-color: var(--sh-border-strong);
    background: rgba(255, 255, 255, .03);
    color: var(--sh-text) !important;
}

.sh-btn-outline:hover {
    border-color: var(--sh-primary);
    background: rgba(31, 216, 255, .06);
    color: #ffffff !important;
}

.sh-btn-glass {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.sh-btn-glass:hover {
    background: rgba(255, 255, 255, .16);
}

.sh-btn-whatsapp {
    background: var(--sh-whatsapp);
    color: #04260f !important;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .28);
}

.sh-btn-whatsapp:hover {
    background: #45e07e;
}

.sh-btn-lg {
    min-height: 52px;
    padding: 0 24px;
    font-size: .98rem;
}

.sh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-primary) !important;
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.sh-link i {
    transition: transform .2s var(--sh-ease);
}

.sh-link:hover i {
    transform: translateX(4px);
}

/* ---------- Encabezados de seccion ---------- */
.sh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--sh-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sh-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.sh-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.sh-section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.sh-section-head p {
    margin-top: 10px;
    color: var(--sh-muted);
}

.sh-section-head.is-center {
    justify-content: center;
    text-align: center;
}

.sh-section-head.is-center .sh-kicker::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* ---------- Colores por categoria ---------- */
.sh-cat-streaming_video { --cat: #ff4d6d; --cat-2: #b3123a; }
.sh-cat-streaming_musica { --cat: #34d399; --cat-2: #047857; }
.sh-cat-herramienta_disenio { --cat: #a78bfa; --cat-2: #6d28d9; }
.sh-cat-herramienta_ia { --cat: #1fd8ff; --cat-2: #0369a1; }
.sh-cat-productividad { --cat: #60a5fa; --cat-2: #1d4ed8; }
.sh-cat-educacion { --cat: #fbbf24; --cat-2: #b45309; }
.sh-cat-entretenimiento { --cat: #f472b6; --cat-2: #be185d; }
.sh-cat-otro { --cat: #94a3b8; --cat-2: #475569; }

/* ==========================================================================
   4. Categorias
   ========================================================================== */
.sh-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.sh-category {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 176px;
    padding: 20px 18px 18px;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--cat) 22%, transparent), transparent 60%),
        var(--sh-surface);
    text-decoration: none;
    transition: border-color .3s ease, transform .3s var(--sh-ease), box-shadow .3s ease;
}

.sh-category:hover,
.sh-category.is-active {
    border-color: color-mix(in srgb, var(--cat) 60%, transparent);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--cat) 18%, transparent);
    transform: translateY(-4px);
}

.sh-category-watermark {
    position: absolute;
    top: -10px;
    right: -12px;
    color: var(--cat);
    font-size: 5rem;
    opacity: .07;
    transform: rotate(-12deg);
    transition: opacity .3s ease, transform .4s var(--sh-ease);
    pointer-events: none;
}

.sh-category:hover .sh-category-watermark {
    opacity: .16;
    transform: rotate(-4deg) scale(1.06);
}

.sh-category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: auto;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cat), var(--cat-2));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--cat) 30%, transparent);
    color: #ffffff;
    font-size: 1.1rem;
}

.sh-category strong {
    margin-top: 22px;
    color: #ffffff;
    font-size: 1.02rem;
}

.sh-category small {
    margin-top: 4px;
    color: var(--sh-muted);
    font-size: .8rem;
    line-height: 1.35;
}

.sh-category-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--cat);
    font-size: .78rem;
    font-weight: 800;
}

.sh-category-count i {
    font-size: .7rem;
    transition: transform .2s var(--sh-ease);
}

.sh-category:hover .sh-category-count i {
    transform: translateX(4px);
}

/* ==========================================================================
   5. Franja de plataformas
   ========================================================================== */
.sh-marquee {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block: calc(clamp(64px, 8vw, 104px) * -0.4);
    padding: 18px 0;
    border-block: 1px solid var(--sh-border);
}

/* El desvanecido de los bordes va en el contenedor interno: asi no apaga el boton de pausa */
.sh-marquee-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sh-marquee-track {
    display: flex;
    width: max-content;
    animation: sh-marquee 30s linear infinite; /* antes 45s: el cliente la pidio un poco mas rapida (2026-10-07) */
}

/* Se detiene con el mouse encima, con el foco del teclado o con el boton de pausa */
.sh-marquee:hover .sh-marquee-track,
.sh-marquee:focus-within .sh-marquee-track,
.sh-marquee.is-paused .sh-marquee-track {
    animation-play-state: paused;
}

.sh-marquee ul {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0 12px 0 0;
    list-style: none;
}

.sh-marquee li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--sh-border);
    border-radius: 999px;
    background: var(--sh-surface);
    color: var(--sh-text);
    font-family: "Poppins", sans-serif;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}

.sh-marquee li i {
    color: var(--cat);
}

@keyframes sh-marquee {
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Tarjeta de producto
   ========================================================================== */
.sh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    background: var(--sh-surface);
    transition: border-color .3s ease, transform .3s var(--sh-ease), box-shadow .3s ease;
}

.sh-card:hover {
    border-color: color-mix(in srgb, var(--cat, var(--sh-primary)) 55%, transparent);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .4);
    transform: translateY(-5px);
}

.sh-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 11;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--sh-surface-2);
    cursor: pointer;
}

.sh-card-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--sh-ease);
}

.sh-card:hover .sh-card-media img {
    transform: scale(1.06);
}

/* Portada para productos sin imagen, con el color de su categoria. */
.sh-card-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 20% 10%, color-mix(in srgb, var(--cat, #1fd8ff) 55%, transparent), transparent 70%),
        radial-gradient(80% 80% at 100% 100%, color-mix(in srgb, var(--cat-2, #0369a1) 70%, transparent), transparent 70%),
        #0a1224;
    color: #ffffff;
    text-align: center;
}

.sh-card-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
    mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.sh-card-placeholder i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    font-size: 1.5rem;
    backdrop-filter: blur(6px);
}

.sh-card-placeholder b {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.sh-card-media:has(img) .sh-card-placeholder {
    display: none;
}

.sh-card-media.is-placeholder .sh-card-placeholder {
    display: grid;
}

.sh-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.sh-badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
}

.sh-badge.is-sale {
    background: #e11d48; /* rojo mas profundo: texto blanco legible (4.7:1) */
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(225, 29, 72, .4);
}

.sh-badge.is-hot {
    background: var(--sh-warn);
    color: #3b2400;
}

.sh-card-soldout {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(6, 13, 31, .78);
    color: #e2e8f0;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(6px);
}

/* Sin la etiqueta "Vista rápida" (pedido del cliente 2026-10-07): al pasar el mouse la imagen se agranda
   un poco y con un clic se abre la vista rapida. Con el teclado se marca con un contorno. */
.sh-card-media:focus-visible {
    outline: 2px solid var(--sh-primary);
    outline-offset: -2px;
}

.sh-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.sh-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cat, var(--sh-primary));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sh .sh-card-title {
    margin-top: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 1.08rem;
    font-weight: 600 !important;
    letter-spacing: -.01em !important;
}

.sh-card-title a {
    text-decoration: none;
    transition: color .2s ease;
}

.sh-card-title a:hover {
    color: var(--sh-primary);
}

.sh-card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    margin-top: 6px !important;
    color: var(--sh-muted);
    font-size: .84rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sh-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: auto;
    padding-top: 14px;
}

.sh-card-price strong {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.sh-card-price strong.is-consult {
    color: var(--sh-text);
    font-size: 1rem;
    font-weight: 600;
}

.sh-card-price small {
    color: var(--sh-muted);
    font-size: .8rem;
    font-weight: 700;
}

.sh-card-price del {
    color: var(--sh-faint);
    font-size: .85rem;
}

/* Precio principal + etiqueta con el equivalente en la otra moneda */
.sh-card-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sh-price-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}

.sh-price-main strong.is-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sh-warn);
    font-size: 1.05rem;
    font-weight: 700;
}

/* ≈ US$ 4.11 (o ≈ S/ 13.90): destacado y pulsable para cambiar la moneda */
.sh-price-alt {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 12px 5px 14px;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, .45);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(31, 216, 255, .14));
    color: #6ee7b7;
    font: inherit;
    font-family: "Poppins", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 6px 18px -8px rgba(52, 211, 153, .55);
    transition: transform .2s var(--sh-ease), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.sh-price-alt.is-pen {
    border-color: rgba(31, 216, 255, .45);
    background: linear-gradient(135deg, rgba(31, 216, 255, .18), rgba(124, 58, 237, .14));
    color: #7dd3fc;
    box-shadow: 0 6px 18px -8px rgba(31, 216, 255, .55);
}

/* Brillo que recorre la etiqueta */
.sh-price-alt::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg);
    animation: sh-price-shine 4.5s ease-in-out infinite;
    pointer-events: none;
}

.sh-price-alt i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: .68rem;
    transition: transform .3s var(--sh-ease);
}

.sh-price-alt:hover {
    border-color: currentColor;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px currentColor;
}

.sh-price-alt:hover i {
    transform: rotate(180deg);
}

.sh-price-alt:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sh-price-alt:active {
    transform: scale(.97);
}

/* Animacion al cambiar de moneda */
.is-switching {
    display: inline-block;
    animation: sh-price-switch .38s var(--sh-ease);
}

@keyframes sh-price-switch {
    0% { opacity: 0; transform: translateY(8px); filter: blur(2px); }
    100% { opacity: 1; transform: none; filter: none; }
}

@keyframes sh-price-shine {
    0%, 65% { left: -60%; }
    100% { left: 130%; }
}

.sh-stock.is-soon { color: var(--sh-warn); }

.sh .sh-card-add.is-ghost:hover {
    border-color: var(--sh-primary);
    background: rgba(31, 216, 255, .08);
    color: var(--sh-primary) !important;
}

/* Vista rapida */
.sh-modal-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sh-modal-price .sh-price-alt {
    font-size: 1.1rem;
}

.sh-modal-price strong.is-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sh-warn);
    font-size: 1.3rem;
}

.sh-modal-unavailable {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(251, 191, 36, .3);
    border-radius: 16px;
    background: rgba(251, 191, 36, .07);
}

.sh-modal-unavailable-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(251, 191, 36, .16);
    color: var(--sh-warn);
    font-size: 1.1rem;
}

.sh-modal-unavailable strong {
    color: #ffffff;
}

.sh-modal-unavailable p {
    margin: 2px 0 0;
    color: var(--sh-muted);
    font-size: .88rem;
}

.sh-modal-unavailable .sh-btn {
    grid-column: 1 / -1;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .sh-price-alt::after,
    .is-switching {
        animation: none;
    }
}

.sh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sh-border);
}

.sh-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: .78rem;
    font-weight: 800;
}

.sh-stock i {
    flex: 0 0 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.sh-stock.is-in { color: var(--sh-ok); }
.sh-stock.is-low { color: var(--sh-warn); }
.sh-stock.is-out { color: var(--sh-faint); }

.sh .sh-card-add {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--sh-primary);
    box-shadow: none;
    color: var(--sh-primary-ink) !important;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s var(--sh-ease), box-shadow .2s ease;
}

.sh .sh-card-add:hover {
    background: var(--sh-primary-hover);
    box-shadow: 0 8px 20px rgba(31, 216, 255, .3);
    transform: translateY(-1px);
}

.sh .sh-card-add.is-ghost {
    border-color: var(--sh-border-strong);
    background: transparent;
    color: var(--sh-text) !important;
}

.sh .sh-card-add.is-ghost:hover {
    border-color: var(--sh-whatsapp);
    background: rgba(37, 211, 102, .08);
    box-shadow: none;
    color: #ffffff !important;
}

.sh .sh-card-add.is-added {
    background: var(--sh-ok);
}

.sh-card.is-unavailable .sh-card-media img,
.sh-card.is-unavailable .sh-card-placeholder {
    filter: grayscale(.35) brightness(.85);
}

/* ==========================================================================
   6. Carrusel de productos
   ========================================================================== */
.sh-carousel {
    position: relative;
}

.sh-carousel-viewport {
    display: grid;
    grid-auto-columns: calc((100% - 3 * 18px) / 4);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    margin: -10px -4px 0;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.sh-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.sh-carousel-viewport > .sh-card {
    scroll-snap-align: start;
}

.sh-carousel-viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.sh-carousel-viewport.is-dragging .sh-card {
    pointer-events: none;
}

.sh-carousel-btn {
    position: absolute;
    top: calc(50% - 30px);
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--sh-border-strong);
    border-radius: 50%;
    background: rgba(12, 21, 41, .92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    color: #ffffff;
    font-size: .95rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: opacity .25s ease, transform .25s var(--sh-ease), border-color .2s ease, background-color .2s ease;
}

.sh-carousel-btn.is-prev { left: -22px; }
.sh-carousel-btn.is-next { right: -22px; }

.sh-carousel-btn:hover {
    border-color: var(--sh-primary);
    background: var(--sh-primary);
    color: var(--sh-primary-ink);
}

.sh-carousel-btn:disabled {
    opacity: 0;
    pointer-events: none;
    transform: scale(.8);
}

.sh-carousel-progress {
    position: relative;
    overflow: hidden;
    width: min(240px, 50%);
    height: 4px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: var(--sh-border);
}

.sh-carousel-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sh-primary), var(--sh-accent));
    transition: transform .15s linear;
}

.sh-carousel.is-static .sh-carousel-progress,
.sh-carousel.is-static .sh-carousel-btn {
    display: none;
}

/* ==========================================================================
   7. Catalogo
   ========================================================================== */
.sh-catalog {
    scroll-margin-top: 110px;
    transition: opacity .2s ease;
}

.sh-catalog.is-loading {
    opacity: .45;
    pointer-events: none;
}

.sh-catalog-bar {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sh-border);
}

.sh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    min-width: 0;
    padding: 2px;
    scrollbar-width: none;
}

.sh-chips::-webkit-scrollbar {
    display: none;
}

.sh-chips a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid var(--sh-border);
    border-radius: 999px;
    background: var(--sh-surface);
    color: var(--sh-muted);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.sh-chips a:hover {
    border-color: var(--sh-border-strong);
    color: #ffffff;
}

.sh-chips a.is-active {
    border-color: var(--sh-primary);
    background: var(--sh-primary);
    color: var(--sh-primary-ink);
}

.sh-catalog-tools {
    display: flex;
    gap: 10px;
}

.sh-field {
    position: relative;
    display: flex;
    align-items: center;
}

.sh-field > i {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: var(--sh-muted);
    font-size: .85rem;
    pointer-events: none;
}

.sh-field input,
.sh-field select {
    width: 100%;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 14px 0 38px !important;
    border: 1px solid var(--sh-border) !important;
    border-radius: 11px !important;
    background: var(--sh-surface) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font: inherit;
    font-size: .88rem;
}

.sh-field-search {
    flex: 1;
}

/* Interruptor "Solo disponibles" */
/* Tarjetas de productos agotados: atenuadas, al final del catalogo */
.sh-card.is-unavailable .sh-card-media img {
    filter: grayscale(.85) brightness(.75);
}

.sh .sh-card.is-unavailable .sh-card-price strong[data-pen] {
    color: var(--sh-muted);
}

/* En agotados la etiqueta de moneda se atenua: lo que destaca es lo que se puede comprar */
.sh .sh-card.is-unavailable .sh-price-alt {
    border-color: var(--sh-border-strong);
    background: rgba(148, 163, 184, .08);
    color: var(--sh-muted);
    box-shadow: none;
}

.sh .sh-card.is-unavailable .sh-price-alt::after {
    content: none;
}

.sh-field-sort {
    width: 220px;
}

.sh-field select {
    cursor: pointer;
}

.sh-field select option {
    background: #0c1529;
    color: #ffffff;
}

.sh-field input:focus,
.sh-field select:focus {
    border-color: var(--sh-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 216, 255, .14) !important;
}

.sh-results {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 16px 0 20px !important;
    color: var(--sh-muted);
    font-size: .88rem;
}

.sh-results strong {
    color: #ffffff;
}

.sh-results a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 4px 10px;
    border: 1px solid var(--sh-border-strong);
    border-radius: 999px;
    color: var(--sh-text);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.sh-results a:hover {
    border-color: var(--sh-sale);
    color: #ffffff;
}

.sh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sh-grid.is-collapsed > .sh-card:nth-child(n + 13) {
    display: none;
}

.sh-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.sh-more span {
    color: var(--sh-muted);
}

.sh-empty {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 64px 20px;
    border: 1px dashed var(--sh-border-strong);
    border-radius: var(--sh-radius);
    text-align: center;
}

.sh-empty > span {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    place-items: center;
    border-radius: 50%;
    background: rgba(31, 216, 255, .1);
    color: var(--sh-primary);
    font-size: 1.5rem;
}

.sh-empty strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.sh-empty p {
    max-width: 440px;
    color: var(--sh-muted);
}

.sh-empty div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================================================
   8. Pasos
   ========================================================================== */
.sh-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    counter-reset: sh-step;
    list-style: none;
}

/* Linea que une los pasos en escritorio. */
.sh-steps::before {
    content: "";
    position: absolute;
    top: 34px;
    right: 12%;
    left: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sh-border-strong) 15%, var(--sh-border-strong) 85%, transparent);
}

.sh-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 12px;
    text-align: center;
    counter-increment: sh-step;
}

.sh-step-icon {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
    place-items: center;
    border: 1px solid var(--sh-border-strong);
    border-radius: 50%;
    background: var(--sh-surface);
    color: var(--sh-primary);
    font-size: 1.35rem;
    box-shadow: 0 0 0 8px var(--sh-bg);
}

.sh-step-icon::after {
    content: counter(sh-step);
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sh-primary), var(--sh-accent));
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: .74rem;
    font-weight: 700;
}

.sh-steps strong {
    color: #ffffff;
    font-size: 1.02rem;
}

.sh-steps p {
    max-width: 240px;
    color: var(--sh-muted);
    font-size: .88rem;
    line-height: 1.55;
}

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.sh-faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.sh-faq-intro {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.sh-faq-intro h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.sh-faq-intro > p {
    color: var(--sh-muted);
    line-height: 1.6;
}

.sh-payments {
    display: grid;
    gap: 10px;
    margin: 8px 0 6px;
}

.sh-payments small {
    color: var(--sh-faint);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sh-payments div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-payments span {
    display: flex;
    overflow: hidden;
    width: 72px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: #ffffff;
}

.sh-payments img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 28px !important;
    object-fit: contain;
}

.sh-faq {
    display: grid;
    gap: 10px;
}

.sh-faq details {
    overflow: hidden;
    border: 1px solid var(--sh-border);
    border-radius: 14px;
    background: var(--sh-surface);
    transition: border-color .2s ease, background-color .2s ease;
}

.sh-faq details[open] {
    border-color: rgba(31, 216, 255, .35);
    background: var(--sh-surface-2);
}

.sh-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.sh-faq summary::-webkit-details-marker {
    display: none;
}

.sh-faq summary i {
    display: grid;
    flex: 0 0 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--sh-muted);
    font-size: .75rem;
    transition: transform .3s var(--sh-ease), background-color .2s ease, color .2s ease;
}

.sh-faq details[open] summary i {
    background: var(--sh-primary);
    color: var(--sh-primary-ink);
    transform: rotate(180deg);
}

.sh-faq details p {
    padding: 0 20px 20px;
    color: var(--sh-muted);
    line-height: 1.65;
}

/* ==========================================================================
   10. CTA final
   ========================================================================== */
.sh-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(37, 211, 102, .28);
    border-radius: 24px;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(37, 211, 102, .22), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(31, 216, 255, .12), transparent 60%),
        var(--sh-surface);
}

.sh-cta-icon {
    display: grid;
    flex: 0 0 72px;
    height: 72px;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 16px 34px rgba(37, 211, 102, .35);
    color: #ffffff;
    font-size: 2.2rem;
}

.sh-cta-copy {
    flex: 1;
}

.sh-cta-copy .sh-kicker {
    color: var(--sh-whatsapp);
}

.sh-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.sh-cta p {
    max-width: 560px;
    margin-top: 8px !important;
    color: var(--sh-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Elementos flotantes: WhatsApp, aviso del carrito
   ========================================================================== */
.sh-float-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--sh-whatsapp);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
    color: #ffffff !important;
    font-size: 1.9rem;
    text-decoration: none;
    transition: transform .25s var(--sh-ease);
}

.sh-float-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--sh-whatsapp);
    animation: sh-ping 2.4s ease-out infinite;
}

.sh-float-whatsapp:hover {
    transform: scale(1.08);
}

@keyframes sh-ping {
    0% { opacity: .55; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(1.6); }
}

.sh-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    padding: 12px 12px 12px 16px;
    border: 1px solid rgba(52, 211, 153, .35);
    border-radius: 14px;
    background: rgba(12, 21, 41, .96);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: .9rem;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity .3s ease, transform .3s var(--sh-ease);
    backdrop-filter: blur(10px);
}

.sh-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sh-toast > i {
    color: var(--sh-ok);
    font-size: 1.15rem;
}

.sh-toast.is-warning {
    border-color: rgba(251, 191, 36, .4);
}

.sh-toast.is-warning > i {
    color: var(--sh-warn);
}

.sh-toast a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--sh-primary);
    color: var(--sh-primary-ink) !important;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

/* ==========================================================================
   Vista rapida (modal)
   ========================================================================== */
.sh-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(2, 6, 18, .75);
    opacity: 0;
    transition: opacity .2s ease;
    backdrop-filter: blur(8px);
}

.sh-modal.is-open {
    opacity: 1;
}

.sh-modal[hidden] {
    display: none;
}

body.sh-modal-open {
    overflow: hidden;
}

.sh-modal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    width: min(900px, 100%);
    max-height: calc(100vh - 32px);
    border: 1px solid var(--sh-border-strong);
    border-radius: 24px;
    background: var(--sh-surface);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
    color: var(--sh-text);
    font-family: "Manrope", sans-serif;
    transform: translateY(14px) scale(.98);
    transition: transform .3s var(--sh-ease);
}

.sh-modal.is-open .sh-modal-dialog {
    transform: none;
}

.sh-modal-media {
    position: relative;
    min-height: 340px;
    background: var(--sh-surface-2);
}

.sh-modal-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-modal-media .sh-card-placeholder {
    display: grid;
}

.sh-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 36px 30px 28px;
}

.sh-modal-body .sh-kicker {
    margin: 0;
}

.sh-modal-body h2 {
    font-size: 1.75rem;
}

.sh-modal-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sh-modal-price strong {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.sh-modal-price del {
    color: var(--sh-faint);
}

.sh-modal-body > p {
    color: var(--sh-muted);
    line-height: 1.6;
}

.sh-modal-buy {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.sh-modal-buy[hidden],
.sh-modal [hidden] {
    display: none !important;
}

.sh-modal-buy .sh-btn {
    flex: 1;
}

.sh-modal .sh-btn-whatsapp {
    width: 100%;
}

.sh-modal-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--sh-muted) !important;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.sh-modal-more:hover {
    color: #ffffff !important;
}

/* Vista rapida: caracteristicas y condiciones de uso, estilo ficha de Mercado Libre (index.php, .sh-mdetails).
   Si el texto es largo se desplaza el cuerpo del modal y "Agregar al carrito" queda fijo abajo. */
.sh-modal-body {
    --mpad: 30px;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    scrollbar-width: thin;
}

@media (min-width: 761px) {
    /* El cuerpo se limita a la altura de la pantalla y se desplaza (antes el texto largo quedaba cortado) */
    .sh-modal-body {
        max-height: calc(100vh - 34px);
        max-height: calc(100dvh - 34px);
    }
}

.sh-modal-buy {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 calc(-1 * var(--mpad));
    padding: 18px var(--mpad) 12px;
    background: linear-gradient(to bottom, transparent, var(--sh-surface) 18px);
}

.sh-mdetails {
    display: grid;
    gap: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sh-border);
}

.sh-mdetail h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Tabla de caracteristicas: filas alternadas, dato a la izquierda y valor a la derecha */
.sh-mspec {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .875rem;
    line-height: 1.45;
}

.sh-mspec tr:nth-child(odd) {
    background: rgba(255, 255, 255, .055);
}

.sh-mspec th,
.sh-mspec td {
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.sh-mspec th {
    width: 40%;
    color: #ffffff;
    font-weight: 700;
}

.sh-mspec td {
    color: rgba(235, 242, 255, .82);
}

/* Texto justificado (pedido del cliente), con guiones para que no queden huecos grandes entre palabras */
.sh-mspec td,
.sh-mbullets li,
.sh-mempty {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.sh-mspec + .sh-mbullets {
    margin-top: 14px;
}

/* Lista simple con punto pequeño */
.sh-mbullets {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-mbullets li {
    position: relative;
    padding-left: 16px;
    color: rgba(235, 242, 255, .82);
    font-size: .875rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sh-mbullets li::before {
    content: "";
    position: absolute;
    top: .62em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(235, 242, 255, .55);
}

.sh-mempty {
    margin: 0;
    color: var(--sh-muted);
    font-size: .875rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    /* Celular: el recuadro se reparte la altura; la imagen queda fija y el texto se desplaza debajo */
    .sh-modal-dialog {
        display: flex;
        flex-direction: column;
        max-height: 92vh;
        max-height: 92dvh;
    }

    .sh-modal-media {
        flex: none;
        max-height: 30vh;
    }

    .sh-modal-body {
        --mpad: 20px;
        flex: 1 1 auto;
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .sh-mspec th,
    .sh-mspec td {
        padding: 10px 12px;
    }

    .sh-mspec th {
        width: 42%;
    }
}

.sh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--sh-border-strong);
    border-radius: 50%;
    background: rgba(6, 13, 31, .8);
    color: #ffffff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.sh-modal-close:hover {
    background: var(--sh-sale);
}

.sh-qty {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--sh-border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.sh-modal .sh-qty button {
    width: 38px;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sh-text) !important;
    font-size: 1.15rem;
    cursor: pointer;
}

.sh-modal .sh-qty button:hover {
    background: rgba(255, 255, 255, .08) !important;
}

.sh-modal .sh-qty input {
    width: 38px;
    height: 46px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font: inherit;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.sh-modal .sh-qty input::-webkit-outer-spin-button,
.sh-modal .sh-qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Animacion del contador del carrito del header al agregar un producto. */
.cart-count.is-bumped {
    animation: sh-bump .45s ease;
}

@keyframes sh-bump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.45); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .sh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sh-carousel-viewport {
        grid-auto-columns: calc((100% - 2 * 18px) / 3);
    }

    .sh-carousel-btn.is-prev { left: -12px; }
    .sh-carousel-btn.is-next { right: -12px; }
}

@media (max-width: 900px) {
    .sh-faq-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .sh-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }

    .sh-steps::before {
        display: none;
    }

    .sh-cta {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .sh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sh-carousel-viewport {
        grid-auto-columns: 70%;
        gap: 12px;
    }

    .sh-carousel-btn {
        display: none;
    }

    .sh-section-head .sh-link {
        display: none;
    }

    .sh-modal {
        align-items: end;
        padding: 0;
    }

    .sh-modal-dialog {
        grid-template-columns: minmax(0, 1fr);
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
    }

    .sh-modal-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .sh-modal-body {
        padding: 22px 20px 24px;
    }
}

@media (max-width: 560px) {
    .sh {
        gap: 56px;
    }

    .sh-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sh-category {
        min-height: 160px;
        padding: 16px 14px 14px;
    }

    .sh-category small {
        display: none;
    }

    .sh-marquee {
        margin-block: -20px;
        padding: 12px 0;
    }

    .sh-marquee li {
        padding: 8px 14px;
        font-size: .84rem;
    }

    .sh-card-body {
        padding: 12px;
    }

    .sh .sh-card-title {
        font-size: .96rem;
    }

    .sh-card-desc {
        display: none;
    }

    .sh-card-price {
        padding-top: 8px;
    }

    .sh-card-price strong {
        font-size: 1.15rem;
    }

    .sh-card-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .sh .sh-card-add {
        width: 100%;
    }

    .sh-catalog-tools {
        flex-direction: column;
    }

    .sh-chips {
        flex-wrap: nowrap;
    }

    .sh-field-sort {
        width: 100%;
    }

    .sh-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .sh-cta-icon {
        display: none;
    }

    .sh-cta .sh-btn {
        width: 100%;
    }

    .sh-float-whatsapp {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .sh-toast {
        bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh *,
    .sh *::before,
    .sh *::after,
    .sh-modal *,
    .sh-float-whatsapp::before {
        animation: none !important;
        transition: none !important;
    }

    /* Sin animacion: la franja queda quieta y se desliza a mano */
    .sh-marquee-track {
        width: auto;
    }

    .sh-marquee-viewport {
        overflow-x: auto;
    }

    .sh-marquee-track ul[aria-hidden] {
        display: none;
    }
}

/* ==========================================================================
   Stock en vivo: la tarjeta avisa cuando su stock cambia sin recargar
   ========================================================================== */
.sh-card.is-restocked {
    border-color: color-mix(in srgb, var(--sh-ok) 70%, transparent);
    animation: sh-restock-glow 1.8s ease-out 2;
}

.sh-card.is-restocked::after {
    content: "¡Nuevo stock!";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--sh-ok);
    color: #042f1f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    animation: sh-restock-pop .45s var(--sh-ease, ease) both;
    pointer-events: none;
}

.sh-card.is-updated .sh-stock {
    animation: sh-stock-blink 1.2s ease-out 2;
}

.sh-card.is-leaving {
    opacity: 0;
    transform: scale(.96);
    transition: opacity .3s ease, transform .3s ease;
}

@keyframes sh-restock-glow {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sh-ok) 55%, transparent); }
    100% { box-shadow: 0 0 0 14px transparent; }
}

@keyframes sh-restock-pop {
    from { opacity: 0; transform: translateY(-6px) scale(.9); }
    to { opacity: 1; transform: none; }
}

@keyframes sh-stock-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .sh-card.is-restocked,
    .sh-card.is-restocked::after,
    .sh-card.is-updated .sh-stock { animation: none; }
}

/* ---------- Catalogo ordenado: disponibles primero, lo demas plegado ---------- */
.sh-chip-count {
    display: inline-grid;
    min-width: 22px;
    height: 20px;
    margin-left: 2px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, .16);
    color: inherit;
    font-size: .72rem;
    font-weight: 800;
}

.sh-chips a.is-active .sh-chip-count {
    background: rgba(3, 18, 31, .25);
}

/* ==========================================================================
   Pulido visual y accesibilidad (2026-09-25)
   ========================================================================== */

/* Filtros de categoria en UNA fila: si no caben, se desplazan de lado (con barra fina
   visible para el mouse y un degradado que avisa que hay mas), en vez de dejar una sola
   categoria suelta en una segunda fila. */
.sh-chips {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .35) transparent;
}

.sh-chips::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.sh-chips::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .35);
}

.sh-chips.is-scrollable {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}

.sh-chips.is-scrollable.is-end {
    -webkit-mask-image: none;
    mask-image: none;
}

.sh-chips a {
    padding: 9px 13px;
    scroll-snap-align: start;
}

@media (hover: none) {
    /* En pantallas tactiles se desliza con el dedo: la barra sobra. */
    .sh-chips { scrollbar-width: none; }
    .sh-chips::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
    /* Buscar y ordenar en una sola fila. */
    .sh-catalog-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .sh-field-sort {
        width: auto;
    }
}

@media (max-width: 380px) {
    .sh-catalog-tools {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* ---------- Destacados: carrusel automatico ---------- */
.sh-featured-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sh-featured-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--sh-border-strong);
    border-radius: 50%;
    background: rgba(12, 21, 41, .9);
    color: #ffffff;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.sh-featured-toggle:hover {
    border-color: var(--sh-primary);
    background: var(--sh-primary);
    color: var(--sh-primary-ink);
}

.sh-featured-toggle[hidden] {
    display: none;
}

/* En bucle las flechas siempre sirven (no hay "principio" ni "final") */
.sh-carousel.is-looping .sh-carousel-btn:disabled {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* Barra de posicion: se desliza suave al cambiar de producto */
.sh-carousel.is-looping .sh-carousel-progress span {
    transition: transform .45s var(--sh-ease), width .2s ease;
}

@media (max-width: 760px) {
    .sh-featured-actions .sh-link {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-carousel.is-looping .sh-carousel-progress span {
        transition: none;
    }
}
/* Flechas a la altura de la foto: asi no tapan el nombre ni el precio */
.sh-featured .sh-carousel-btn {
    top: 82px;
}
/* ---------- Franja de plataformas: solo iconos grandes (cuadrados redondeados) que llevan a su producto ----------
   El logo es la imagen subida en Configuración → Franja de plataformas o, si no hay, el logo automatico.
   Tamano pedido por el cliente (referencia log.jpg, 2026-10-06): ~140 px en escritorio. */
.sh-marquee {
    padding: 18px 0;
    border-block-color: rgba(148, 163, 184, .1);
}

/* Espacio arriba y abajo para que la sombra y el levantar al pasar el mouse no se corten */
.sh-marquee ul {
    gap: 20px;
    padding: 6px 20px 22px 0;
}

.sh-marquee li {
    flex-direction: column;
    gap: 10px;
    width: 140px;
    padding: 0;
    border: 0;
    background: none;
    white-space: normal;
}

/* Icono con aro dorado (referencia log.jpg, pedido del cliente 2026-10-06): cuadro negro redondeado y, encima,
   un aro dorado brillante cortado en 4 tramos. El logo va dentro del aro, recortado en circulo. */
.sh-logo {
    --logo: var(--cat, var(--sh-primary));
    --gold: #ffc400;
    --gold-light: #ffe066;
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 26px;
    background: radial-gradient(circle at 50% 50%, #15130c 0%, #050506 70%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
    color: var(--logo);
    font-size: 2.6rem;
    transition: transform .25s var(--sh-ease, ease), box-shadow .25s ease;
}

/* El aro: un anillo dibujado con un degradado radial (nucleo claro y resplandor alrededor),
   con 4 cortes (arriba, abajo y a los lados) hechos con una mascara conica. */
.sh-logo::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 1;
    border-radius: 50%;
    background: radial-gradient(circle closest-side,
        transparent 68%,
        rgba(255, 196, 0, .28) 74%,
        var(--gold) 79%,
        var(--gold-light) 82%,
        var(--gold) 85%,
        rgba(255, 196, 0, .28) 90%,
        transparent 100%);
    -webkit-mask-image: repeating-conic-gradient(from 3deg, #000 0deg 84deg, transparent 84deg 90deg);
    mask-image: repeating-conic-gradient(from 3deg, #000 0deg 84deg, transparent 84deg 90deg);
    pointer-events: none;
    transition: filter .25s ease;
}

/* Brillo leve en la parte superior del cuadro */
.sh-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%);
    pointer-events: none;
}

/* Cada icono lleva a su producto */
.sh-plat {
    display: block;
    border-radius: 26px;
    text-decoration: none;
}

.sh-plat:hover .sh-logo,
.sh-plat:focus-visible .sh-logo {
    box-shadow: 0 16px 30px rgba(0, 0, 0, .6), 0 6px 24px rgba(255, 196, 0, .22);
    transform: translateY(-4px);
}

.sh-plat:hover .sh-logo::before,
.sh-plat:focus-visible .sh-logo::before {
    filter: brightness(1.2) saturate(1.1);
}

.sh-plat:focus-visible {
    outline: 2px solid var(--gold, #ffc400);
    outline-offset: 4px;
}

.sh-logo svg {
    width: 46px;
    height: 46px;
    fill: currentColor;
}

.sh-logo.is-text {
    font-family: "Poppins", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* Logo subido por el administrador: dentro del aro, en circulo */
.sh-logo.is-image {
    background: #000000;
}

.sh-logo.is-image img {
    display: block;
    width: 68%;
    height: 68%;
    border-radius: 50%;
    object-fit: cover;
}

/* Los logos de Font Awesome usan el color de su marca (la regla antigua .sh-marquee li i los pintaba de la categoria) */
.sh-marquee li .sh-logo i {
    color: inherit;
}

/* Pocos iconos (caben en la pantalla): la franja queda quieta y centrada, sin la copia que se veia repetida.
   La pone el script de index.php al medir; sin script la franja pasa como siempre. */
.sh-marquee.is-static .sh-marquee-track {
    width: auto;
    justify-content: center;
    animation: none;
}

.sh-marquee.is-static .sh-marquee-track ul[aria-hidden] {
    display: none;
}

.sh-marquee.is-static ul {
    padding-inline: 0;
}

.sh-marquee.is-static .sh-marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
}

@media (max-width: 560px) {
    .sh-marquee ul {
        gap: 14px;
        padding: 4px 14px 16px 0;
    }

    .sh-marquee li {
        gap: 8px;
        width: 96px;
        padding: 0;
    }

    .sh-logo {
        width: 96px;
        height: 96px;
        border-radius: 20px;
        font-size: 1.8rem;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .55);
    }

    .sh-logo::before {
        inset: 3px;
    }

    .sh-logo svg {
        width: 32px;
        height: 32px;
    }

    .sh-logo.is-text {
        font-size: 1.3rem;
    }

    .sh-plat {
        border-radius: 20px;
    }
}

/* ==========================================================================
   Marketing y promociones: fin de la oferta en la tarjeta y sección Combos
   ========================================================================== */
.sh-card-price .sh-card-until {
    margin-top: -2px;
    color: var(--sh-warn);
    font-size: .74rem;
    font-weight: 700;
}

.sh-combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 18px;
}

.sh-combo {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(31, 216, 255, .10), transparent 55%),
        var(--sh-surface);
    transition: border-color .3s ease, transform .3s var(--sh-ease), box-shadow .3s ease;
}

.sh-combo:hover {
    border-color: rgba(31, 216, 255, .45);
    box-shadow: var(--sh-shadow);
    transform: translateY(-3px);
}

.sh-combo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sh-combo-logos {
    display: flex;
}

.sh-combo-logos span {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 3px solid var(--sh-surface);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cat, #1fd8ff), var(--cat-2, #0369a1));
    color: #ffffff;
    font-weight: 800;
}

.sh-combo-logos span + span {
    margin-left: -12px;
}

.sh-combo-logos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    object-fit: cover;
}

.sh-combo-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sh-combo-title a {
    color: #ffffff;
    text-decoration: none;
}

.sh-combo-title a:hover {
    color: var(--sh-primary);
}

.sh-combo-items {
    margin-top: 6px !important;
    color: var(--sh-primary);
    font-size: .88rem;
    font-weight: 700;
}

.sh-combo-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px !important;
    color: var(--sh-muted);
    font-size: .84rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sh-combo-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin-top: auto;
    padding-top: 16px;
}

.sh-combo-price strong {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.sh-combo-price del {
    color: var(--sh-faint);
    font-size: .9rem;
}

.sh-combo-save {
    margin-top: 4px !important;
    color: var(--sh-ok);
    font-size: .8rem;
    font-weight: 700;
}

.sh-combo-save i {
    margin-right: 5px;
}

.sh-combo .sh-btn {
    margin-top: 16px;
}

/* ==========================================================================
   Portadas completas (2026-10-06): la imagen del producto se ve entera
   (cuadrada, 16:9 o vertical) sobre un fondo difuminado de ella misma,
   en la tarjeta y en la vista rapida. Antes se recortaba para llenar el marco.
   ========================================================================== */
.sh-card-media {
    aspect-ratio: 4 / 3;
    isolation: isolate;
    background: #0a1224;
}

.sh-modal-media {
    overflow: hidden;
    isolation: isolate;
}

.sh-card-media .sh-card-backdrop,
.sh-modal-media .sh-card-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.35) brightness(.6);
    transform: scale(1.3);
    transition: none;
}

.sh-card:hover .sh-card-media .sh-card-backdrop {
    transform: scale(1.3);
}

.sh-card-media .sh-card-cover,
.sh-modal-media .sh-card-cover {
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45));
}

.sh-card:hover .sh-card-media .sh-card-cover {
    transform: scale(1.04);
}

.sh-card.is-unavailable .sh-card-media .sh-card-backdrop {
    filter: blur(22px) grayscale(.85) brightness(.45);
}

.sh-card.is-unavailable .sh-card-media .sh-card-cover {
    filter: grayscale(.85) brightness(.75);
}

/* Filete sutil entre la portada y el texto de la tarjeta */
.sh-card-media::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .3), transparent);
    pointer-events: none;
}

/* Vista rapida abierta: la barra inferior del celular (z-index 150), "volver arriba" y el boton
   flotante de WhatsApp quedaban encima de la ventana y tapaban "Agregar al carrito". */
body.sh-modal-open .bn,
body.sh-modal-open .to-top,
body.sh-modal-open .sh-float-whatsapp {
    visibility: hidden;
}

/* Vista rapida abierta: el encabezado y el pie de la tienda se ocultan (pedido del cliente 2026-10-08) para que
   solo se vea el producto. visibility conserva su espacio: la pagina no salta al abrir o cerrar. */
.hd {
    transition: padding .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility .2s; /* padding: el de store-ui.css */
}

.sf {
    transition: opacity .2s ease, visibility .2s;
}

body.sh-modal-open .hd,
body.sh-modal-open .sf {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   Inicio negro con cian y morado (2026-10-06). Pedido del cliente: formato llamativo y
   profesional como la referencia que envio (secciones en paneles, titulos grandes en
   mayusculas, tarjetas cuadradas con "Comprar ahora"), con los colores de su logo.
   Nuevo: "Los mas vendidos" (#mas-vendidos). Se quitaron "Compra en 4 pasos" y las
   preguntas frecuentes.
   ========================================================================== */
.sh,
.sh-modal,
.sh-toast,
.sh-float-whatsapp {
    --sh-bg: #07080c;
    --sh-surface: #0f1118;
    --sh-surface-2: #161923;
    --sh-surface-3: #1d2130;
    --sh-border: rgba(148, 163, 184, .13);
    --sh-border-strong: rgba(148, 163, 184, .28);
    --sh-text: #eef1f7;
    --sh-muted: #9ca5b8;
    --sh-faint: #8b94a8; /* >= 4.5:1 sobre las superficies negras */
    --sh-primary: #1fd8ff;
    --sh-primary-hover: #74e7ff;
    --sh-primary-ink: #05060a;
    --sh-accent: #a855f7;
    --sh-violet-soft: #c4b5fd;
    --sh-grad: linear-gradient(135deg, #1fd8ff 0%, #a78bfa 100%);
    --sh-grad-hover: linear-gradient(135deg, #74e7ff 0%, #c4b5fd 100%);
    --sh-radius: 20px;
}

/* ---------- Botones ---------- */
.sh-btn-primary {
    background: var(--sh-grad);
    box-shadow: 0 10px 26px rgba(31, 216, 255, .22), 0 0 30px rgba(168, 85, 247, .15);
}

.sh-btn-primary:hover {
    background: var(--sh-grad-hover);
    box-shadow: 0 14px 32px rgba(168, 85, 247, .3);
}

.sh-btn-outline:hover {
    border-color: var(--sh-violet-soft);
    background: rgba(168, 85, 247, .1);
}

/* ---------- Paneles: cada seccion en un bloque redondeado ---------- */
.sh-panel {
    position: relative;
    padding: clamp(26px, 3.6vw, 46px) clamp(16px, 2.6vw, 34px) clamp(22px, 3vw, 38px);
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(17, 19, 27, .9), rgba(9, 10, 15, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 80px -50px rgba(0, 0, 0, .9);
}

.sh-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 18%;
    left: 18%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #1fd8ff, #a855f7, transparent);
    box-shadow: 0 0 18px rgba(31, 216, 255, .5);
}

/* ---------- Titulos de seccion: grandes, en mayusculas y cursiva, con brillo ---------- */
.sh-section-head.is-center {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(24px, 3vw, 34px);
    text-align: center;
}

.sh-section-head.is-center > div {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.sh .sh-section-head h2 {
    background: linear-gradient(90deg, #1fd8ff 0%, #8fe9ff 45%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-style: italic;
    font-weight: 900 !important;
    letter-spacing: -.01em !important;
    line-height: 1.05;
    text-transform: uppercase;
    filter: drop-shadow(0 0 22px rgba(31, 216, 255, .32));
}

.sh-section-head.is-center p {
    color: var(--sh-muted);
    font-size: .95rem;
}

.sh-head-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    place-items: center;
    border-radius: 18px;
    background: var(--sh-grad);
    box-shadow: 0 0 0 6px rgba(31, 216, 255, .08), 0 0 40px rgba(168, 85, 247, .5);
    color: var(--sh-primary-ink);
    font-size: 1.45rem;
    transform: rotate(-6deg);
}

.sh-section-head.is-center .sh-featured-actions {
    justify-content: center;
}

/* ---------- Tarjeta de producto ---------- */
.sh-card {
    border-color: rgba(148, 163, 184, .12);
    background: linear-gradient(180deg, #12141c 0%, #0c0d13 100%);
}

.sh-card:hover {
    border-color: rgba(31, 216, 255, .55);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, .25), 0 26px 50px rgba(0, 0, 0, .6), 0 0 44px rgba(31, 216, 255, .12);
    transform: translateY(-6px);
}

/* Portada cuadrada como la referencia (la imagen se ve completa sobre su fondo difuminado) */
.sh-card-media {
    aspect-ratio: 1 / 1;
    background: #0a0b10;
}

.sh-card-media::after {
    background: linear-gradient(90deg, transparent, rgba(31, 216, 255, .45), rgba(168, 85, 247, .45), transparent);
}

.sh-card-body {
    padding: 14px 16px 16px;
}

.sh-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.sh-card-meta .sh-card-category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh-card-units {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: var(--sh-muted);
    font-size: .76rem;
    font-weight: 800;
}

.sh .sh-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 800 !important;
    letter-spacing: .005em !important;
    line-height: 1.25;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sh-card-title a:hover {
    color: var(--sh-primary);
}

.sh-card-desc {
    min-height: 0;
    margin-top: 4px !important;
    font-size: .8rem;
    -webkit-line-clamp: 1;
}

.sh-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.sh-card-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 800;
}

.sh-renew.is-yes {
    color: #34d399;
}

.sh-renew.is-no {
    color: var(--sh-muted);
}

/* Duracion del servicio bajo el nombre: etiqueta sobria; las permanentes en dorado (como los aros de la franja) */
.sh .sh-card-facts li.sh-duration {
    padding: 3px 9px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.sh-duration i {
    color: var(--sh-primary);
    font-size: .7rem;
}

.sh-duration span {
    color: var(--sh-muted);
    font-weight: 600;
}

.sh .sh-card-facts li.sh-duration.is-forever {
    border-color: rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .08);
    color: #fcd34d;
}

.sh-duration.is-forever i {
    color: #fbbf24;
}

@media (max-width: 560px) {
    /* Tarjetas angostas: solo "1 año" o "Permanente" (el reloj de arena ya indica que es la duracion) */
    .sh-duration span {
        display: none;
    }
}

.sh-card .sh-card-price {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding-top: 12px;
}

.sh-card .sh-card-price .sh-card-until {
    flex-basis: 100%;
}

.sh-card .sh-card-price strong {
    font-size: 1.4rem;
    font-weight: 800;
}

.sh-card .sh-price-alt {
    min-height: 28px;
    padding: 3px 10px 3px 12px;
    font-size: .86rem;
}

/* Compra: boton grande "Comprar ahora" + carrito al lado */
.sh-card-footer {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

.sh .sh-card-buy {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 13px;
    background: var(--sh-grad);
    box-shadow: 0 10px 24px rgba(31, 216, 255, .2);
    color: var(--sh-primary-ink) !important;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s ease, box-shadow .2s ease, transform .2s var(--sh-ease);
}

.sh .sh-card-buy:hover {
    background: var(--sh-grad-hover);
    box-shadow: 0 14px 32px rgba(168, 85, 247, .32);
    transform: translateY(-1px);
}

.sh .sh-card-buy.is-ghost {
    background: rgba(148, 163, 184, .12);
    box-shadow: none;
    color: var(--sh-text) !important;
    letter-spacing: .03em;
}

.sh .sh-card-add {
    flex: 0 0 48px;
    width: 48px;
    min-height: 46px;
    padding: 0;
    border: 1px solid rgba(31, 216, 255, .45);
    border-radius: 13px;
    background: rgba(31, 216, 255, .08);
    color: var(--sh-primary) !important;
    font-size: 1.02rem;
}

.sh .sh-card-add:hover {
    border-color: var(--sh-primary);
    background: rgba(31, 216, 255, .18);
}

.sh .sh-card-add.is-added {
    border-color: var(--sh-ok);
    background: var(--sh-ok);
    color: #03251a !important;
}

/* Etiquetas sobre la portada */
.sh-badge.is-new {
    background: #10b981;
    color: #03251a;
}

.sh-badge.is-offer {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(124, 58, 237, .4);
}

.sh-badge.is-hot {
    background: var(--sh-grad);
    color: var(--sh-primary-ink);
}

/* ---------- Los mas vendidos (sin numero de puesto, pedido del cliente) ---------- */
.sh-best-item {
    position: relative;
    display: flex;
    min-width: 0;
}

.sh-best-item > .sh-card {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- Destacados, catalogo y combos ---------- */
.sh-featured .sh-carousel-btn {
    top: 30%;
}

.sh-chips a.is-active {
    border-color: transparent;
    background: var(--sh-grad);
    color: var(--sh-primary-ink);
}

.sh-field input,
.sh-field select {
    background: #0b0c12 !important;
}

.sh-combo {
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #13151e, #0c0d13) padding-box,
        linear-gradient(140deg, rgba(31, 216, 255, .5), rgba(168, 85, 247, .5)) border-box;
}

/* ---------- Llamado final ---------- */
.sh-cta {
    border: 1px solid transparent;
    background:
        radial-gradient(600px 240px at 10% 0%, rgba(37, 211, 102, .14), transparent 70%),
        linear-gradient(120deg, #11131b, #0b0c12) padding-box,
        linear-gradient(115deg, rgba(37, 211, 102, .6), rgba(31, 216, 255, .4), rgba(168, 85, 247, .6)) border-box;
}

.sh .sh-cta h2 {
    font-style: italic;
    font-weight: 900 !important;
    text-transform: uppercase;
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
    .sh-panel {
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    .sh-panel {
        padding: 24px 10px 18px;
    }

    .sh .sh-section-head h2 {
        font-size: 1.75rem;
    }

    .sh-head-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .sh-card-body {
        padding: 12px 10px 12px;
    }

    .sh .sh-card-title {
        font-size: .86rem;
    }

    .sh-card-facts li {
        font-size: .7rem;
    }

    .sh-card .sh-card-price strong {
        font-size: 1.12rem;
    }

    .sh-card .sh-price-alt {
        font-size: .76rem;
    }

    .sh-card-footer {
        flex-direction: row;
        gap: 6px;
    }

    .sh-buy-more {
        display: none;
    }

    .sh .sh-card-buy {
        min-height: 42px;
        padding: 0 8px;
        font-size: .78rem;
        letter-spacing: .05em;
    }

    .sh .sh-card-add {
        flex: 0 0 42px;
        width: 42px;
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh .sh-card-buy {
        transition: none;
    }
}

/* ==========================================================================
   Tarjeta de producto profesional (pedido del cliente 2026-10-07): superficie plana, titulo en tipo
   oracion, precio estilo Mercado Libre (anterior tachado, actual con "% OFF" en verde, periodo debajo y
   la otra moneda en texto gris) y botones de un solo color. Reemplaza los brillos, mayusculas y
   degradados de los estilos anteriores de la tarjeta. Aplica al catalogo y a Los mas vendidos.
   ========================================================================== */
.sh .sh-card {
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: #0f1117;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sh .sh-card:hover {
    border-color: rgba(148, 163, 184, .34);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
    transform: none;
}

.sh .sh-card-media::after {
    background: rgba(148, 163, 184, .14);
}

.sh .sh-card:hover .sh-card-media .sh-card-cover {
    transform: scale(1.03);
}

/* Etiquetas sobre la imagen: pequenas, en mayusculas y sin sombras */
.sh .sh-card-badges {
    top: 10px;
    left: 10px;
    gap: 6px;
}

.sh .sh-badge {
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: none;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sh .sh-badge.is-new {
    background: #0f766e;
    color: #ffffff;
}

.sh .sh-badge.is-offer {
    background: #2563eb;
    color: #ffffff;
}

.sh .sh-badge.is-hot {
    background: #f59e0b;
    color: #1f1300;
}

.sh .sh-card-soldout {
    top: 10px;
    right: 10px;
    border-radius: 6px;
    font-size: .66rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Cuerpo: categoria, nombre, descripcion y renovable */
.sh .sh-card-body {
    padding: 14px 16px 16px;
}

.sh .sh-card-meta .sh-card-category {
    color: var(--sh-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
}

.sh .sh-card-category i {
    color: var(--cat, var(--sh-primary));
}

.sh .sh-card-units {
    color: var(--sh-faint);
    font-size: .72rem;
    font-weight: 700;
}

.sh .sh-card-title {
    min-height: 2.7em;
    margin-top: 6px;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: .98rem;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    text-transform: none;
}

.sh .sh-card-title a {
    color: #e6ecf6;
}

.sh .sh-card-title a:hover {
    color: var(--sh-primary);
}

.sh .sh-card-desc {
    min-height: 0;
    margin-top: 2px !important;
    color: var(--sh-faint);
    font-size: .8rem;
    -webkit-line-clamp: 1;
}

.sh .sh-card-facts {
    margin-top: 8px;
}

.sh .sh-card-facts li {
    font-size: .74rem;
    font-weight: 700;
}

/* Precio estilo Mercado Libre */
[data-price-rich] {
    display: inline-block;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.1;
    white-space: nowrap;
}

[data-price-rich] .pr-cur {
    margin-right: .22em;
}

.sh .sh-card .sh-card-price {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
}

.sh .sh-price-main,
.sh-modal .sh-price-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
}

.sh .sh-price-main del,
.sh-modal .sh-price-main del {
    flex-basis: 100%;
    color: var(--sh-faint);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration-thickness: 1px;
}

.sh-modal .sh-price-main del:empty {
    display: none;
}

.sh .sh-card .sh-card-price strong[data-price-rich] {
    font-size: 1.6rem;
    font-weight: 500;
}

.sh-price-off {
    color: #34d399;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}

.sh-price-off[hidden] {
    display: none;
}

.sh .sh-price-cycle {
    color: var(--sh-muted);
    font-size: .78rem;
    font-weight: 600;
}

/* Otra moneda (≈ US$ 3.71): texto gris, sin recuadro; al pulsarlo cambia la moneda de la tienda */
.sh .sh-price-alt,
.sh-modal .sh-price-alt,
.sh .sh-price-alt.is-pen,
.sh-modal .sh-price-alt.is-pen {
    min-height: 0;
    margin-top: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    box-shadow: none;
    color: var(--sh-faint);
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: color .2s ease;
}

.sh .sh-price-alt::after,
.sh-modal .sh-price-alt::after,
.sh .sh-price-alt i,
.sh-modal .sh-price-alt i {
    display: none;
}

.sh .sh-price-alt:hover,
.sh-modal .sh-price-alt:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    transform: none;
}

/* Botones: "Comprar ahora" de un solo color y el carrito con borde */
.sh .sh-card-footer {
    margin-top: 14px;
    gap: 8px;
}

.sh .sh-card-buy {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--sh-primary);
    box-shadow: none;
    color: #03121f !important;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.sh .sh-card-buy:hover {
    background: #6be6ff;
    box-shadow: none;
    transform: none;
}

.sh .sh-card-buy.is-ghost {
    border-color: var(--sh-border-strong);
    background: transparent;
    color: var(--sh-text) !important;
    letter-spacing: 0;
}

.sh .sh-card-buy.is-ghost:hover {
    border-color: rgba(148, 163, 184, .5);
    background: rgba(148, 163, 184, .08);
}

.sh .sh-card-add {
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
    border: 1px solid var(--sh-border-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--sh-text) !important;
    font-size: .95rem;
}

.sh .sh-card-add:hover {
    border-color: var(--sh-primary);
    background: transparent;
    box-shadow: none;
    color: var(--sh-primary) !important;
    transform: none;
}

/* Agotados: el precio se atenua */
.sh .sh-card.is-unavailable [data-price-rich] {
    color: var(--sh-muted);
}

/* Vista rapida y combos: mismo formato de precio, mas grande */
.sh-modal .sh-modal-price {
    gap: 4px;
}

.sh-modal .sh-modal-price strong[data-price-rich]:not(.is-soon) {
    font-size: 2.2rem;
}

.sh .sh-combo-price strong[data-price-rich] {
    font-size: 1.8rem;
}

@media (max-width: 560px) {
    .sh .sh-card-body {
        padding: 12px 10px 12px;
    }

    .sh .sh-card-title {
        font-size: .88rem;
    }

    .sh .sh-card .sh-card-price strong[data-price-rich] {
        font-size: 1.3rem;
    }

    .sh-price-off {
        font-size: .74rem;
    }

    .sh .sh-card-buy {
        font-size: .8rem;
    }

    .sh .sh-card-add {
        flex-basis: 42px;
    }

    .sh-modal .sh-modal-price strong[data-price-rich]:not(.is-soon) {
        font-size: 1.9rem;
    }
}

/* ==========================================================================
   1. Banner principal estilo Mercado Libre (pedido del cliente 2026-10-07): banners horizontales de
   1920×600 px que llenan todo el ancho del carrusel, nitidos (en pantallas grandes se carga la imagen original).
   Una promocion a la vez; al entrar, la imagen se acomoda con un zoom suave y la cruza un brillo (llamativo y
   sobrio). Flechas blancas a los costados (aparecen al pasar el mouse) y puntos abajo sobre una capsula oscura.
   Una imagen que no sea horizontal se recorta al centro para llenar el ancho (el panel avisa cual).
   Mismo ancho, borde y esquinas que el resto de la pagina.
   ========================================================================== */
.sh-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    background: #0b0c10;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    isolation: isolate;
    touch-action: pan-y;
}

/* Misma proporcion que el banner (1920×600): se ve completo, de borde a borde */
.sh-hero-stage {
    position: relative;
    aspect-ratio: 1920 / 600;
}

.sh-hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
    transition: opacity .7s ease, visibility .7s ease;
    -webkit-user-drag: none;
}

.sh-hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.sh-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Al entrar: la imagen se acomoda desde un poco mas cerca (queda nitida a su tamano real) */
.sh-hero-slide.is-active img {
    animation: sh-hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes sh-hero-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* Brillo que cruza el banner una vez al entrar */
.sh-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .2) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
}

.sh-hero-slide.is-active::after {
    animation: sh-hero-shine 1.3s ease .35s both;
}

@keyframes sh-hero-shine {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}

.sh-hero-slide:focus-visible {
    outline: 3px solid var(--sh-primary);
    outline-offset: -3px;
}

/* Sombra suave abajo: los puntos se leen sobre cualquier imagen */
.sh-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 26%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .35));
    pointer-events: none;
}

/* Flechas blancas pegadas a los costados, como Mercado Libre */
.sh-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 54px;
    height: 100px;
    place-items: center;
    padding: 0;
    border: 0;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    color: #07080c;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, color .2s ease;
}

.sh-hero-arrow.is-prev {
    left: 0;
    padding-right: 8px;
    border-radius: 0 50px 50px 0;
}

.sh-hero-arrow.is-next {
    right: 0;
    padding-left: 8px;
    border-radius: 50px 0 0 50px;
}

.sh-hero:hover .sh-hero-arrow,
.sh-hero-arrow:focus-visible {
    opacity: 1;
}

.sh-hero-arrow:hover {
    color: #0891b2;
}

.sh-hero-arrow:focus-visible {
    outline: 3px solid var(--sh-primary);
    outline-offset: 2px;
}

/* Puntos abajo al centro, sobre una capsula oscura */
.sh-hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(7, 8, 12, .45);
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
}

.sh-hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .25s ease, background-color .2s ease;
}

.sh-hero-dots button:hover {
    background: rgba(255, 255, 255, .75);
}

.sh-hero-dots button.is-active {
    width: 22px;
    background: #ffffff;
}

.sh-hero-dots button:focus-visible {
    outline: 2px solid var(--sh-primary);
    outline-offset: 3px;
}

/* Pantallas tactiles: se desliza con el dedo, las flechas sobran */
@media (hover: none) {
    .sh-hero-arrow {
        display: none;
    }
}

/* Celular: el banner completo a todo el ancho y los puntos debajo (el banner es bajo y no se taparia) */
@media (max-width: 640px) {
    .sh-hero {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .sh-hero::after {
        display: none;
    }

    .sh-hero-stage {
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, .14);
        border-radius: 12px;
    }

    .sh-hero-dots {
        position: static;
        justify-content: center;
        width: max-content;
        margin: 10px auto 0;
        transform: none;
    }

    .sh-hero-arrow {
        top: calc(50% - 14px);
        width: 34px;
        height: 60px;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-hero-slide {
        transition: none;
    }

    .sh-hero-slide.is-active img,
    .sh-hero-slide.is-active::after {
        animation: none;
    }
}

/* Secciones de productos seguidas (Los mas vendidos, Combos y Todos los productos) mas juntas: 28 px entre ellas,
   como con el pie (pedido del cliente 2026-10-07). El resto de la pagina conserva su separacion. */
.sh > .sh-panel:not([hidden]) + .sh-panel {
    margin-top: calc(28px - clamp(64px, 8vw, 104px));
}

@media (max-width: 560px) {
    .sh > .sh-panel:not([hidden]) + .sh-panel {
        margin-top: -28px;
    }
}
/* Franja de plataformas y la primera seccion de productos (Los mas vendidos) mas juntas: 28 px desde el borde
   de la franja (pedido del cliente 2026-10-07). La franja ya trae -0.4 de la separacion general como margen. */
.sh > .sh-marquee + .sh-panel,
.sh > .sh-marquee + .sh-panel[hidden] + .sh-panel {
    margin-top: calc(28px - clamp(64px, 8vw, 104px) * .6);
}

@media (max-width: 560px) {
    .sh > .sh-marquee + .sh-panel,
    .sh > .sh-marquee + .sh-panel[hidden] + .sh-panel {
        margin-top: -8px;
    }
}

/* ==========================================================================
   Imagenes de las tarjetas (pedido del cliente 2026-10-08): llamativas, que el producto nunca se pierda
   (siempre visible y completo: sin ocultarla mientras carga ni recorrerla con zoom) e interactivas.
   El script de index.php pone is-fill (la imagen tiene casi la forma del recuadro), is-loaded,
   --rx/--ry (inclinacion de la tarjeta) y --gx/--gy (reflejo de luz) segun el mouse.
   ========================================================================== */
.sh .sh-card {
    transition: transform .35s var(--sh-ease), border-color .3s ease, box-shadow .3s ease;
}

/* Imagen: siempre visible; acercamiento suave al pasar el mouse (sin cortar el producto) */
.sh .sh-card-media .sh-card-cover {
    transition: transform .5s var(--sh-ease), filter .3s ease;
}

/* Imagen con la forma del recuadro: lo llena, sin bandas a los lados */
.sh .sh-card-media.is-fill .sh-card-cover {
    object-fit: cover;
    filter: none;
}

.sh .sh-card-media.is-fill .sh-card-backdrop {
    visibility: hidden;
}

.sh .sh-card.is-unavailable .sh-card-media.is-fill .sh-card-cover {
    filter: grayscale(.85) brightness(.75);
}

/* Imagen de otra forma (banner o vertical): se ve completa sobre un fondo de la misma imagen, mas vivo,
   con un foco de luz al centro, para que el producto destaque */
.sh .sh-card-media:not(.is-fill) .sh-card-backdrop {
    filter: blur(26px) saturate(1.6) brightness(.85);
}

.sh .sh-card-media:not(.is-fill)::after {
    top: 0;
    height: auto;
    background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, .35) 100%);
}

.sh .sh-card-media:not(.is-fill) .sh-card-cover {
    padding: 4%;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
}

/* Brillo suave mientras carga (queda detras de la imagen: nunca la tapa) */
.sh .sh-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: sh-img-shimmer 1.3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sh-img-shimmer {
    to {
        transform: translateX(100%);
    }
}

/* Ya cargada: la misma capa pasa a ser el reflejo de luz que sigue al mouse */
.sh .sh-card-media.is-loaded::before {
    z-index: 2;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 55%);
    opacity: 0;
    transform: none;
    animation: none;
    transition: opacity .3s ease;
    mix-blend-mode: soft-light;
}

.sh .sh-card-media:not(:has(img))::before {
    display: none;
}

/* Con mouse: la tarjeta se levanta y se inclina hacia el cursor, borde en degradado de la marca y reflejo */
@media (hover: hover) and (pointer: fine) {
    .sh .sh-card:hover {
        border-color: rgba(31, 216, 255, .55);
        box-shadow: 0 0 0 1px rgba(168, 85, 247, .3), 0 28px 50px -12px rgba(0, 0, 0, .7), 0 0 40px -6px rgba(31, 216, 255, .28);
        transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-6px);
    }

    .sh .sh-card:hover .sh-card-media .sh-card-cover {
        transform: scale(1.05);
    }

    .sh .sh-card:hover .sh-card-media.is-loaded::before {
        opacity: 1;
    }

    .sh .sh-card:hover .sh-card-title a {
        color: var(--sh-primary);
    }
}

/* Pantallas tactiles: al tocar, la tarjeta responde con una leve presion antes de abrir la vista rapida */
@media (hover: none) {
    .sh .sh-card:active {
        transform: scale(.985);
        transition-duration: .12s;
    }
}

.sh .sh-card:focus-within {
    border-color: rgba(31, 216, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
    .sh .sh-card,
    .sh .sh-card:hover,
    .sh .sh-card:active {
        transform: none;
    }

    .sh .sh-card-media::before {
        animation: none;
    }

    .sh .sh-card:hover .sh-card-media .sh-card-cover {
        transform: none;
    }
}

/* ==========================================================================
   Etiquetas Nuevo / Oferta / Top con su icono, debajo del nombre del producto (pedido del cliente 2026-10-09):
   pildoras de color con degradado, brillo de su color y movimiento. Fuera de la foto: no tapan la imagen.
   - aparecen con un rebote cuando carga la foto del producto (is-loaded, del script de index.php);
   - un destello de luz las recorre cada pocos segundos y su icono se mueve (fuego, chispa, etiqueta);
   - al pasar el mouse por la tarjeta suben y se encienden; en celular responden al tocar.
   ========================================================================== */
/* El nombre ya no reserva una segunda linea vacia: las etiquetas quedan pegadas a el. Precio y botones siguen
   alineados entre tarjetas porque el precio va al fondo (margin-top: auto). */
.sh .sh-card-title {
    min-height: 0;
}

.sh-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 26px; /* tambien sin etiquetas: precios y botones alineados entre tarjetas */
    margin-top: 8px;
}

.sh-ctag {
    --glow: rgba(16, 185, 129, .55);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 6px 16px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    white-space: nowrap;
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, filter .3s ease;
}

.sh-ctag.is-offer {
    --glow: rgba(244, 63, 94, .6);
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.sh-ctag.is-hot {
    --glow: rgba(245, 158, 11, .65);
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #2a1600;
    text-shadow: none;
}

.sh-ctag i {
    font-size: .7rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

/* Iconos con vida: el fuego titila, la chispa destella y la etiqueta se balancea */
.sh-ctag.is-hot i {
    transform-origin: 50% 90%;
    animation: sh-ctag-flame 1.4s ease-in-out infinite;
}

.sh-ctag.is-new i {
    animation: sh-ctag-twinkle 2.4s ease-in-out infinite;
}

.sh-ctag.is-offer i {
    transform-origin: 20% 20%;
    animation: sh-ctag-swing 2.2s ease-in-out infinite;
}

/* Destello de luz que pasa cada pocos segundos (la segunda etiqueta un poco despues) */
.sh-ctag::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
    transform: translateX(-130%);
    animation: sh-ctag-shine 5s ease-in-out infinite;
    pointer-events: none;
}

.sh-ctag + .sh-ctag::after {
    animation-delay: .45s;
}

/* Aparecen con un rebote cuando carga la foto del producto */
.sh-card:has(.sh-card-media.is-loaded) .sh-card-tags {
    animation: sh-ctag-pop .7s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes sh-ctag-shine {
    0%, 68% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

@keyframes sh-ctag-flame {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.18, .92) rotate(-6deg); }
    60% { transform: scale(.94, 1.12) rotate(5deg); }
}

@keyframes sh-ctag-twinkle {
    0%, 70%, 100% { transform: scale(1) rotate(0deg); }
    80% { transform: scale(1.35) rotate(25deg); }
    90% { transform: scale(.9) rotate(-10deg); }
}

@keyframes sh-ctag-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-14deg); }
    75% { transform: rotate(10deg); }
}

@keyframes sh-ctag-pop {
    0% { transform: translateY(6px) scale(.7); }
    100% { transform: none; }
}

/* Con mouse: al pasar por la tarjeta suben con rebote y se encienden con el brillo de su color */
@media (hover: hover) and (pointer: fine) {
    .sh .sh-card:hover .sh-ctag {
        box-shadow: 0 0 18px -2px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
        filter: brightness(1.08);
        transform: translateY(-2px) scale(1.06);
    }

    .sh .sh-card:hover .sh-ctag + .sh-ctag {
        transition-delay: .06s;
    }
}

/* Pantallas tactiles: al tocar la tarjeta, las etiquetas se encienden */
@media (hover: none) {
    .sh .sh-card:active .sh-ctag {
        box-shadow: 0 0 14px -2px var(--glow);
        transform: scale(1.08);
        transition-duration: .15s;
    }
}

@media (max-width: 560px) {
    .sh-card-tags {
        gap: 4px;
        min-height: 22px;
        margin-top: 6px;
    }

    .sh-ctag {
        gap: 4px;
        height: 22px;
        padding: 0 8px 0 7px;
        font-size: .54rem;
        letter-spacing: .05em;
    }

    .sh-ctag i {
        font-size: .6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sh-ctag::after,
    .sh-ctag i,
    .sh-card:has(.sh-card-media.is-loaded) .sh-card-tags {
        animation: none;
    }

    .sh .sh-card:hover .sh-ctag {
        transform: none;
    }
}

/* Producto agotado en el catalogo (pedido del cliente 2026-10-09: se muestra al final, en gris, y solo dice "Agotado").
   El boton no lleva a ningun lado: solo avisa. La foto queda en gris con la etiqueta "Agotado" arriba a la derecha. */
.sh .sh-card-buy.is-soldout {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px dashed rgba(148, 163, 184, .38);
    border-radius: 10px;
    background: rgba(148, 163, 184, .07);
    color: #94a3b8 !important;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: not-allowed;
}

.sh .sh-card-buy.is-soldout:hover {
    background: rgba(148, 163, 184, .07);
    transform: none;
}

.sh .sh-card.is-unavailable .sh-card-soldout {
    border-color: rgba(251, 113, 133, .45);
    background: rgba(190, 18, 60, .82);
    color: #ffffff;
}

/* Agotado: la foto en gris tambien con el estilo nuevo de imagenes (llene o no el recuadro) */
.sh .sh-card.is-unavailable .sh-card-media .sh-card-cover,
.sh .sh-card.is-unavailable .sh-card-media:not(.is-fill) .sh-card-cover {
    filter: grayscale(.9) brightness(.7);
}

.sh .sh-card.is-unavailable .sh-card-media .sh-card-backdrop {
    filter: blur(26px) grayscale(.9) brightness(.45);
}

/* ==========================================================================
   Botones en azul (pedido del cliente 2026-10-10: el celeste no quedaba). Un solo azul en toda la tienda:
   #2563eb con letra blanca; al pasar el mouse, un azul un poco mas claro (#3b82f6).
   ========================================================================== */
.sh-btn-primary,
.sh .sh-btn-primary,
.sh-modal .sh-btn-primary,
.sh .sh-card-buy:not(.is-ghost):not(.is-soldout) {
    border-color: transparent;
    background: #2563eb;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8);
    color: #ffffff !important;
}

.sh-btn-primary:hover,
.sh .sh-btn-primary:hover,
.sh-modal .sh-btn-primary:hover,
.sh .sh-card-buy:not(.is-ghost):not(.is-soldout):hover {
    background: #3b82f6;
    color: #ffffff !important;
}

/* Boton del carrito de la tarjeta y flechas de los carruseles: al pasar el mouse, en azul */
.sh .sh-card-add:hover {
    border-color: #3b82f6;
    color: #93c5fd !important;
}

.sh-carousel-btn:hover {
    border-color: #3b82f6;
    background: #2563eb;
    color: #ffffff;
}

/* Celulares (pedido del cliente 2026-10-10, Samsung A06 = 360 px de ancho): la categoria de la tarjeta se
   cortaba sin puntos suspensivos ("INTELIGENC") y en pantallas de 320 px el boton del carrito quedaba fuera. */
@media (max-width: 560px) {
    .sh .sh-card-meta .sh-card-category {
        display: block;
        min-width: 0;
        font-size: .62rem;
        letter-spacing: .03em;
    }

    .sh .sh-card-units {
        gap: 3px;
        font-size: .66rem;
    }
}

@media (max-width: 380px) {
    .sh .sh-card-footer {
        gap: 6px;
    }

    .sh .sh-card-buy {
        min-width: 0;
        padding: 0 6px;
    }

    .sh .sh-card-add {
        flex: 0 0 38px;
        width: 38px;
    }

    /* Vista rapida: "Agregar al carrito" se cortaba a la derecha */
    .sh-modal-buy {
        gap: 8px;
    }

    .sh-modal-buy .sh-btn {
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
        font-size: .86rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .sh-modal-buy .sh-qty input {
        width: 32px;
    }
}
