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

.scc-wrap {
    font-family: 'Barlow', sans-serif;
    padding: 4px 0 16px;
}

.scc-titulo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #1a1f2e;
    margin: 0 0 14px 4px;
    letter-spacing: .01em;
}

/* Contenedor relativo para los botones */
.scc-outer {
    position: relative;
    overflow: hidden;
}

/* Track deslizable */
.scc-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding: 4px 4px 8px;
    cursor: grab;
    transition: scroll-behavior .3s;
}
.scc-track::-webkit-scrollbar { display: none; }
.scc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Tarjeta individual */
.scc-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.09);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.scc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.scc-item.scc-venc { opacity: .6; }

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

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

/* Badge Nuevo / Vencido */
.scc-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 9px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 5;
}
.scc-badge-new  { background: #3b82f6; color: #fff; }
.scc-badge-venc { background: #ef4444; color: #fff; }

/* Botón corazón */
.scc-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    z-index: 5;
    transition: background .2s, 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; }

/* Info debajo de la portada */
.scc-info {
    padding: 8px 10px 10px;
}
.scc-super {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1a1f2e;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scc-fecha {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}
.scc-fecha-venc { color: #ef4444; }

/* ── Flechas de navegación ── */
.scc-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-60%); /* un poco más arriba que el centro para apuntar a la imagen */
    background: rgba(255,255,255,.92);
    color: #1a1f2e;
    border: none;
    font-size: 28px;
    width: 38px;
    height: 38px;
    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; }

/* Ocultar flechas en móvil (swipe nativo) */
@media (max-width: 600px) {
    .scc-arr { display: none; }
    .scc-item { flex: 0 0 140px; }
    .scc-cover { height: 178px; }
}

/* Tamaño grande en desktop */
@media (min-width: 900px) {
    .scc-item { flex: 0 0 180px; }
    .scc-cover { height: 220px; }
}
