/* ══════════════════════════════════════════════════
   Super Catálogos — Carrusel Horizontal v2
   ══════════════════════════════════════════════════ */

.scc-wrap { padding: 4px 0 16px; }

.scc-titulo {
    font-weight: 800;
    font-size: 20px;
    color: #141a18;
    margin: 0 0 12px 4px;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contenedor relativo para los botones */
.scc-outer { position: relative; overflow: hidden; width: 100% !important; display: block !important; }

/* Track deslizable */
.scc-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 11px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 10px;
    cursor: grab;
    width: 100% !important;
    box-sizing: border-box !important;
}
.scc-track::-webkit-scrollbar { display: none; }
.scc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* ── Tarjeta individual ── */
.scc-item {
    flex: 0 0 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(0,0,0,.09);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    cursor: pointer;
    display: block !important;
}
.scc-item:active { transform: scale(.96); }
.scc-item.scc-venc { opacity: .55; }

/* Imagen de portada */
.scc-cover {
    position: relative;
    width: 100%;
    height: 192px;
    background: #e8ede8;
    overflow: hidden;
}
.scc-cover img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .4s;
}
.scc-item:hover .scc-cover img { transform: scale(1.04); }

/* Gradiente sobre imagen */
.scc-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,.6));
    pointer-events: none;
}

/* Info superpuesta sobre la imagen */
.scc-overlay-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 9px 10px 8px;
    z-index: 2;
}
.scc-super {
    font-size: 13px; font-weight: 700;
    color: white;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    margin: 0;
}
.scc-fecha {
    font-size: 10.5px;
    color: rgba(255,255,255,.8);
    margin: 2px 0 0;
}
.scc-fecha-venc { color: #fca5a5; }

.scc-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: #ccc;
}

/* ── Badges ── */
.scc-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    font-weight: 800; font-size: 9px;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 8px; border-radius: 50px;
    pointer-events: none; z-index: 5;
}
.scc-badge-new  {
    background: #1a9e7a; color: #fff;
    box-shadow: 0 2px 8px rgba(26,158,122,.45);
}
.scc-badge-venc { background: #ef4444; color: #fff; }

/* Badge días */
.scc-badge-days {
    position: absolute;
    top: 9px; right: 9px;
    font-size: 10px; font-weight: 700;
    color: white; padding: 3px 7px; border-radius: 50px;
    backdrop-filter: blur(4px); z-index: 5;
}
.scc-badge-days.hot  { background: rgba(224,82,82,.85); }
.scc-badge-days.warn { background: rgba(245,166,35,.85); }
.scc-badge-days.ok   { background: rgba(26,158,122,.8); }

/* ── Botón corazón ── */
.scc-fav {
    position: absolute; top: 9px; left: 9px;
    background: rgba(255,255,255,.88);
    border: none; border-radius: 50%;
    width: 29px; height: 29px;
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,.18); z-index: 5;
    transition: background .18s, transform .15s;
    line-height: 1; padding: 0; color: #555;
}
.scc-fav:hover  { background:#fff; transform:scale(1.15); color:#e63946; }
.scc-fav.active { color: #e63946; }

/* ── Flechas de navegación ── */
.scc-arr {
    position: absolute; top: 50%; transform: translateY(-60%);
    background: rgba(255,255,255,.92); color: #141a18;
    border: none; font-size: 26px;
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; display: flex; align-items:center; justify-content:center;
    z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.18);
    padding: 0; line-height: 1; transition: background .2s, transform .15s;
}
.scc-arr:hover { background:#fff; transform:translateY(-60%) scale(1.1); }
.scc-prev { left: 2px; }
.scc-next { right: 2px; }

@media (max-width: 600px) {
    .scc-arr { display: none; }
    .scc-item { flex: 0 0 140px; }
    .scc-cover { height: 185px; }
}
@media (min-width: 900px) {
    .scc-item { flex: 0 0 168px; }
    .scc-cover { height: 215px; }
}

/* ══════════════════════════════════════════════════
   VISOR MODAL (carrusel de páginas)
   ══════════════════════════════════════════════════ */
.scc-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 99999;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity .22s;
}
.scc-modal-overlay.scc-open {
    opacity: 1; pointer-events: all;
}

/* Header */
.scc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px; flex-shrink: 0;
}
.scc-modal-store { display: flex; align-items: center; gap: 10px; }
.scc-modal-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: #1a9e7a; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0; color: white; font-weight: 700;
}
.scc-modal-logo img { width:100%; height:100%; object-fit:cover; }
.scc-modal-name  { font-size: 14px; font-weight: 700; color: white; }
.scc-modal-sub   { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 1px; }
.scc-modal-close {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: none;
    color: white; font-size: 17px; cursor: pointer;
    display: flex; align-items:center; justify-content:center;
}

/* Visor carrusel */
.scc-viewer-wrap {
    flex: 1; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.scc-viewer-slides {
    flex: 1; display: flex;
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.scc-viewer-slide {
    flex: 0 0 100%; width: 100%;
    overflow-y: auto; padding: 0 10px;
    scrollbar-width: none;
}
.scc-viewer-slide::-webkit-scrollbar { display: none; }
.scc-viewer-slide img {
    width: 100%; border-radius: 12px; display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* Contador */
.scc-viewer-counter {
    position: absolute; top: 10px; right: 12px; z-index: 3;
    background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
    color: white; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 50px;
}

/* Flechas visor */
.scc-viewer-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.18);
    color: white; font-size: 22px; cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    z-index: 3; transition: background .18s;
}
.scc-viewer-arrow:hover { background: rgba(255,255,255,.22); }
.scc-viewer-arrow.prev { left: 12px; }
.scc-viewer-arrow.next { right: 12px; }
.scc-viewer-arrow:disabled { opacity: .2; pointer-events: none; }

/* Dots */
.scc-viewer-dots {
    display: flex; justify-content: center; gap: 5px;
    padding: 8px 0 2px; flex-shrink: 0;
}
.scc-viewer-dot {
    height: 5px; border-radius: 3px;
    background: rgba(255,255,255,.28);
    transition: all .22s; cursor: pointer; width: 5px;
}
.scc-viewer-dot.active { background: white; width: 18px; }

/* Footer modal */
.scc-modal-footer {
    padding: 12px 16px 18px; flex-shrink: 0;
}
.scc-share-btn {
    width: 100%; padding: 13px;
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    color: white;
    border: 1.5px solid rgba(255,255,255,.2);
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
    transition: background .18s;
}
.scc-share-btn:hover { background: rgba(255,255,255,.18); }
