/* public/css/supermercados.css */

:root {
    --verde:  #25a244;
    --verde2: #1a7a32;
    --gris:   #f4f6f4;
}

/* ── HERO ── */
.hero-super {
    background: linear-gradient(135deg, #0a2e14 0%, #0f4020 60%, #1a5c2e 100%);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}
.hero-super::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: var(--gris);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-titulo {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hero-titulo span { color: #6ddc8b; }

/* ── SLIDER ── */
.slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    aspect-ratio: 16/6;
}
@media (max-width: 640px) {
    .slider-wrap { aspect-ratio: 4/3; }
}
.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.slide-item.activo { opacity: 1; z-index: 2; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
    z-index: 3;
}
.slide-info {
    position: absolute;
    bottom: 20px; left: 24px; right: 24px;
    z-index: 4;
    color: #fff;
}
.slide-info h2 {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.slide-info p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0; }
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--verde);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.slide-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
}
.slide-btn:hover { background: rgba(255,255,255,0.3); }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }
.slide-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a2e14, #1a5c2e);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 5rem;
}

/* ── DOTS ── */
.dots-wrap { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.dot.activo { background: var(--verde); transform: scale(1.3); }

/* ── THUMBNAILS ── */
.thumbs-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0 4px;
    scrollbar-width: none;
}
.thumbs-wrap::-webkit-scrollbar { display: none; }
.thumb-item {
    flex-shrink: 0;
    width: 90px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}
.thumb-item.activo { border-color: var(--verde); transform: translateY(-3px); }
.thumb-item img { width: 90px; height: 65px; object-fit: cover; display: block; }
.thumb-nombre {
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thumb-placeholder {
    width: 90px; height: 65px;
    background: linear-gradient(135deg, #1a5c2e, #25a244);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
}

/* ── SECCIÓN NEGOCIOS ── */
.seccion-negocios {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-top: 28px;
}
.super-titulo-seccion {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}
.super-titulo-seccion span { color: var(--verde); }

/* Cards negocios internos */
.neg-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.neg-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.09); }
.neg-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.neg-placeholder {
    width: 100%; height: 130px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex; align-items: center; justify-content: center;
    color: #81c784; font-size: 2rem;
}
.neg-body { padding: 12px; }
.neg-nombre {
    font-weight: 700; font-size: 14px; color: #1a1a1a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.neg-cat {
    font-size: 11px; color: var(--verde);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px;
}
.neg-detalle {
    font-size: 12px; color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}
.btn-neg-wsp {
    width: 100%;
    background: #25D366; color: #fff;
    border: none; border-radius: 8px;
    padding: 7px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    text-decoration: none; transition: background 0.2s;
}
.btn-neg-wsp:hover { background: #1fb855; color: #fff; }

.cat-separador {
    font-family: 'Syne', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--verde2);
    border-left: 4px solid var(--verde);
    padding-left: 10px;
    margin: 20px 0 12px;
}
.empty-neg { text-align: center; padding: 40px 20px; color: #bbb; }
.empty-neg i { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.empty-super { text-align: center; padding: 60px 20px; color: #888; }
