/* NegocioGo storefront v2 — catálogo primero, menos cajas y una cabecera sobria. */

body:has(.sfv-store) {
    background: #f3f7f5;
}

.sfv-store {
    --sfv-layout-max: 1180px;
    --sfv-layout-gutter: clamp(1rem, 4vw, 2.5rem);
    --sfv-layout-width: min(var(--sfv-layout-max), calc(100% - (var(--sfv-layout-gutter) * 2)));
    --sfv-v2-ink: #102a2a;
    --sfv-v2-muted: #667b78;
    --sfv-v2-line: rgba(16, 42, 42, 0.1);
    --sfv-v2-shadow: 0 18px 45px -32px rgba(7, 25, 30, 0.4);
    background: var(--sfv-bg, #f3f7f5);
}

/* Hero integrado: la identidad vive sobre la portada, sin tarjeta flotante. */
.sfv-hero {
    position: relative;
    min-height: clamp(18rem, 38vw, 25rem);
    display: grid;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 8%, color-mix(in srgb, var(--sfv-accent, #02a504) 52%, transparent), transparent 34%),
        linear-gradient(125deg, #111111 0%, #0c3332 56%, #0e5a48 100%);
}

.sfv-hero-cover,
.sfv-hero--has-cover .sfv-hero-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 100%;
    background: transparent;
}

.sfv-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.015);
}

.sfv-hero-cover-shade,
.sfv-hero--has-cover .sfv-hero-cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 18, 22, 0.93) 0%, rgba(4, 25, 28, 0.75) 48%, rgba(4, 23, 26, 0.38) 100%),
        linear-gradient(0deg, rgba(4, 18, 22, 0.64) 0%, transparent 60%);
}

.sfv-hero-top {
    top: 0;
    width: var(--sfv-layout-width);
    padding: 1.1rem 0;
}

.sfv-brand-link {
    padding: 0.45rem 0.75rem;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(4, 18, 22, 0.38);
    backdrop-filter: blur(14px);
}

.sfv-hero-card,
.sfv-hero.sfv-hero--has-cover .sfv-hero-card {
    position: relative;
    z-index: 1;
    width: var(--sfv-layout-width);
    margin: 0 auto;
    padding: 5.4rem 0 2rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff;
    overflow: visible;
    backdrop-filter: none;
}

.sfv-hero.sfv-hero--has-cover .sfv-hero-card::before,
.sfv-hero.sfv-hero--has-cover .sfv-hero-card::after {
    display: none;
}

.sfv-hero-main {
    align-items: center;
    gap: 1.1rem;
}

.sfv-logo,
.sfv-hero.sfv-hero--has-cover .sfv-logo {
    width: 5.25rem;
    height: 5.25rem;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 84%, #111111) !important;
    box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.75);
    font-size: 1.8rem;
}

.sfv-hero-copy h1 {
    color: #fff;
    font-size: clamp(1.9rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    text-wrap: balance;
}

.sfv-hero-tagline {
    max-width: 42rem;
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.9rem, 1.5vw, 1.03rem);
}

.sfv-hero-stats,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stats {
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

.sfv-hero-stats > li,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li {
    min-height: 1.85rem;
    padding: 0.32rem 0.65rem;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(5, 25, 27, 0.78);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 8px 20px -13px rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
}

.sfv-hero-stats > .sfv-hero-stat--open,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stat--open {
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 58%, #fff 42%);
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 34%, #082d28 66%);
    color: #fff;
}

.sfv-hero-stats > .sfv-hero-stat--closed {
    border-color: rgba(254, 202, 202, 0.34);
    background: rgba(127, 29, 29, 0.55);
    color: #fee2e2;
}

.sfv-hero-actions {
    align-self: end;
    min-width: min(100%, 15rem);
}

.sfv-hero-actions .sfv-btn--whatsapp {
    min-height: 46px;
    border-color: transparent;
    background: #fff;
    color: #075e54;
    box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.8);
}

.sfv-hero-actions .sfv-btn--whatsapp:hover {
    background: #ecfdf5;
    color: #064e3b;
}

.sfv-hero-actions-secondary {
    justify-content: flex-end;
}

.sfv-hero-actions .sfv-action-btn,
.sfv-hero-actions .sfv-icon-btn,
.sfv-hero-actions .sfv-network-btn {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(4, 18, 22, 0.76);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 10px 24px -15px rgba(0, 0, 0, 0.76);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
}

/* Contenido principal */
.sfv-shell {
    width: var(--sfv-layout-width);
    margin: 1.25rem auto 0;
}

.sfv-owner-banner {
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-left: 3px solid var(--sfv-accent, #02a504);
    border-radius: 10px;
    background: color-mix(in srgb, var(--sfv-card-bg, #fff) 94%, var(--sfv-accent, #02a504) 6%);
    box-shadow: var(--sfv-v2-shadow);
}

.sfv-owner-banner__copy strong {
    color: var(--sfv-text, var(--sfv-v2-ink));
}

.sfv-owner-banner__copy p {
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-badges {
    margin-bottom: 0.7rem;
}

.sfv-badge {
    min-height: 1.8rem;
    border-color: var(--sfv-card-border, var(--sfv-v2-line));
    background: var(--sfv-card-bg, #fff);
}

.sfv-catalog-toolbar {
    margin: 0 0 0.7rem;
}

.sfv-search {
    max-width: 34rem;
}

.sfv-search input {
    min-height: 44px;
    border: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    border-radius: 12px;
    background: var(--sfv-card-bg, #fff);
    box-shadow: 0 8px 24px -22px rgba(7, 25, 30, 0.5);
}

.sfv-tabs {
    gap: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sfv-tab {
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-tab.is-active {
    border-color: var(--sfv-accent, #02a504);
    background: transparent;
    color: var(--sfv-text, var(--sfv-v2-ink));
}

.sfv-tab__count,
.sfv-tab.is-active .sfv-tab__count {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 13%, transparent);
    color: var(--sfv-accent, #02a504);
}

.sfv-panels,
.sfv-panel {
    margin: 0;
}

.sfv-panel-head {
    align-items: end;
    margin-bottom: 0.9rem;
}

.sfv-panel-head h2 {
    color: var(--sfv-text, var(--sfv-v2-ink));
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    letter-spacing: -0.035em;
}

.sfv-panel-head span {
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-panel-filters {
    margin-bottom: 1rem;
}

.sfv-filter-chip,
.sfv-view-btn {
    border-color: var(--sfv-card-border, var(--sfv-v2-line));
    background: var(--sfv-card-bg, #fff);
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-filter-chip.is-active,
.sfv-view-btn.is-active {
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 42%, transparent);
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 13%, var(--sfv-card-bg, #fff));
    color: var(--sfv-text, var(--sfv-v2-ink));
}

/* Productos */
.sfv-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.sfv-product-card {
    min-width: 0;
    border: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    border-radius: 16px;
    background: var(--sfv-card-bg, #fff);
    box-shadow: var(--sfv-v2-shadow);
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sfv-product-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 35%, var(--sfv-card-border, #e2e8f0));
    box-shadow: 0 22px 46px -30px color-mix(in srgb, var(--sfv-accent, #02a504) 38%, rgba(7, 25, 30, 0.5));
}

.sfv-product-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 8%, #eef4f2);
}

.sfv-product-media img {
    transition: transform 300ms ease;
}

.sfv-product-card:hover .sfv-product-media img {
    transform: scale(1.035);
}

.sfv-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.55rem;
    padding: 1rem;
    text-align: center;
    background:
        radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--sfv-accent, #02a504) 24%, transparent), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--sfv-accent, #02a504) 9%, #fff), color-mix(in srgb, var(--sfv-accent, #02a504) 18%, #e5efec));
}

.sfv-product-placeholder__mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 35%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--sfv-card-bg, #fff) 76%, transparent);
    color: var(--sfv-accent, #02a504);
    font-size: 1.2rem;
    font-weight: 850;
    box-shadow: 0 10px 24px -18px rgba(7, 25, 30, 0.5);
}

.sfv-product-placeholder small {
    max-width: 12rem;
    color: color-mix(in srgb, var(--sfv-text, #102a2a) 76%, transparent);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.3;
}

.sfv-product-body {
    padding: 0.9rem;
}

.sfv-product-card__title {
    font-size: 0.95rem;
    line-height: 1.3;
}

.sfv-product-card__title a {
    color: var(--sfv-text, var(--sfv-v2-ink));
}

.sfv-product-card__desc {
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-product-card__amount {
    color: var(--sfv-text, var(--sfv-v2-ink));
    font-size: 1.08rem;
}

.sfv-product-card__actions {
    gap: 0.45rem;
}

.sfv-product-card__actions .sfv-btn--card {
    min-height: 40px;
    border-radius: 10px;
}

.sfv-branch-availability {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 20%, transparent);
    border-radius: 14px 14px 14px 6px;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 7%, var(--sfv-card-bg, #fff));
}

.sfv-branch-availability__label {
    color: var(--sfv-accent, #02a504);
    font-size: 0.67rem;
    font-weight: 820;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.sfv-branch-availability a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 12%, transparent);
    color: var(--sfv-text, #102a2a);
    text-decoration: none;
}

.sfv-branch-availability a span { overflow: hidden; font-size: 0.76rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.sfv-branch-availability a small { grid-column: 1; color: var(--sfv-muted, #64748b); font-size: 0.65rem; }
.sfv-branch-availability a b { grid-column: 2; grid-row: 1 / span 2; color: var(--sfv-accent, #02a504); }

/* Servicios */
.sfv-service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.sfv-service-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    border-radius: 16px;
    background: var(--sfv-card-bg, #fff);
    box-shadow: var(--sfv-v2-shadow);
}

.sfv-service-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 34%, var(--sfv-card-border, #e2e8f0));
}

.sfv-service-card__media {
    width: 4.5rem;
    height: 4.5rem;
    border: 0;
    border-radius: 14px;
    background:
        radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--sfv-accent, #02a504) 30%, transparent), transparent 38%),
        color-mix(in srgb, var(--sfv-accent, #02a504) 13%, var(--sfv-card-bg, #fff));
}

.sfv-service-card__placeholder {
    color: var(--sfv-accent, #02a504);
    font-size: 1.35rem;
    font-weight: 850;
}

.sfv-service-card__head {
    gap: 0.65rem;
}

.sfv-service-card__title,
.sfv-service-card__price {
    color: var(--sfv-text, var(--sfv-v2-ink));
}

.sfv-service-card__description,
.sfv-service-card__category {
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-service-card__actions {
    grid-column: 1 / -1;
    padding-top: 0.15rem;
}

.sfv-service-card__actions .sfv-btn {
    min-height: 40px;
}

/* Información y estados vacíos */
.sfv-info-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sfv-info-section,
.sfv-info-section--contact {
    margin: 0;
}

.sfv-info-section:first-child,
.sfv-info-section--contact {
    grid-column: 1 / -1;
}

.sfv-info-card,
.sfv-info-block {
    border: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    border-radius: 15px;
    background: var(--sfv-card-bg, #fff);
    box-shadow: var(--sfv-v2-shadow);
}

.sfv-empty-block {
    margin: 1rem 0;
}

.sfv-empty {
    min-height: 18rem;
    border: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--sfv-accent, #02a504) 15%, transparent), transparent 48%),
        var(--sfv-card-bg, #fff);
    box-shadow: var(--sfv-v2-shadow);
}

.sfv-empty-icon {
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 16%, var(--sfv-card-bg, #fff));
}

.sfv-empty h2 {
    color: var(--sfv-text, var(--sfv-v2-ink));
}

.sfv-empty > p,
.sfv-empty-note {
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

.sfv-foot {
    margin-top: 2.5rem;
    padding: 1.4rem 0 2rem;
    border-top: 1px solid var(--sfv-card-border, var(--sfv-v2-line));
    color: var(--sfv-muted, var(--sfv-v2-muted));
}

@media (max-width: 980px) {
    .sfv-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sfv-service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .sfv-hero {
        min-height: 24rem;
    }

    .sfv-hero-card,
    .sfv-hero.sfv-hero--has-cover .sfv-hero-card {
        padding: 5.1rem 0 1.25rem;
        gap: 1rem;
    }

    .sfv-hero-main {
        align-items: flex-start;
    }

    .sfv-logo,
    .sfv-hero.sfv-hero--has-cover .sfv-logo {
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 15px;
    }

    .sfv-hero-copy h1 {
        font-size: clamp(1.65rem, 8vw, 2.3rem);
    }

    .sfv-hero-actions {
        width: 100%;
    }

    .sfv-hero-actions-secondary {
        justify-content: flex-start;
    }

    .sfv-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .sfv-info-stack {
        grid-template-columns: 1fr;
    }

    .sfv-info-section,
    .sfv-info-section:first-child,
    .sfv-info-section--contact {
        grid-column: auto;
    }
}

@media (max-width: 540px) {
    .sfv-store {
        --sfv-layout-gutter: 0.8rem;
    }

    .sfv-hero {
        min-height: 27rem;
    }

    .sfv-hero-cover-shade,
    .sfv-hero--has-cover .sfv-hero-cover-shade {
        background:
            linear-gradient(0deg, rgba(4, 18, 22, 0.94) 0%, rgba(4, 23, 26, 0.67) 70%, rgba(4, 18, 22, 0.5) 100%);
    }

    .sfv-hero-main {
        gap: 0.75rem;
    }

    .sfv-logo,
    .sfv-hero.sfv-hero--has-cover .sfv-logo {
        width: 3.65rem;
        height: 3.65rem;
        border-radius: 13px;
    }

    .sfv-hero-tagline {
        font-size: 0.82rem;
    }

    .sfv-hero-stats {
        gap: 0.3rem;
    }

    .sfv-hero-stats > li {
        padding: 0.25rem 0.5rem;
        font-size: 0.66rem;
    }

    .sfv-owner-banner__actions {
        width: 100%;
    }

    .sfv-owner-banner__actions .sfv-btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .sfv-search {
        max-width: none;
    }

    .sfv-product-grid {
        grid-template-columns: 1fr;
    }

    .sfv-product-media {
        aspect-ratio: 16 / 9;
    }

    .sfv-service-card {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        padding: 0.85rem;
    }

    .sfv-service-card__media {
        width: 3.75rem;
        height: 3.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfv-product-card,
    .sfv-product-media img,
    .sfv-service-card {
        transition: none;
    }
}

/* Storefront clarity pass: fewer pills, one action per item and denser catalog flow. */
.sfv-hero-stats,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stats {
    gap: 0.3rem 0;
    max-width: 48rem;
}

.sfv-hero-stats > li,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li,
.sfv-store.is-dark-theme .sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li {
    min-height: 0;
    padding: 0.1rem 0.55rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: none;
}

.sfv-hero-stats > li:first-child {
    padding-left: 0;
}

.sfv-hero-stats > li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.sfv-hero-stats > .sfv-hero-stat--open,
.sfv-hero.sfv-hero--has-cover .sfv-hero-stats > .sfv-hero-stat--open {
    border-color: rgba(255, 255, 255, 0.34);
    background: transparent;
    color: #bff8dc;
}

.sfv-badges {
    gap: 0;
    margin-bottom: 0.8rem;
    padding: 0.15rem 0;
}

.sfv-badge,
.sfv-badge--ok,
.sfv-badge--neutral {
    position: relative;
    min-height: 0;
    padding: 0.2rem 0.7rem 0.2rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--sfv-muted, #667b78);
    font-size: 0.72rem;
}

.sfv-badge::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 50%;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--sfv-accent, #02a504);
    transform: translateY(-50%);
}

.sfv-badge + .sfv-badge {
    border-left: 1px solid var(--sfv-card-border, rgba(16, 42, 42, 0.1));
}

.sfv-badge:hover {
    transform: none;
    box-shadow: none;
}

.sfv-catalog-toolbar {
    width: min(100%, 36rem);
    margin-bottom: 0.7rem;
    padding: 0;
    background: transparent;
}

.sfv-search {
    width: 100%;
    max-width: none;
}

.sfv-search input,
.sfv-search input:focus,
.sfv-search input:focus-visible {
    min-height: 42px;
    border-radius: 12px;
    outline: 0 !important;
    transform: none;
}

.sfv-search input {
    box-shadow: none;
}

.sfv-search input:focus,
.sfv-search input:focus-visible {
    border-color: var(--sfv-accent, #02a504);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfv-accent, #02a504) 10%, transparent);
}

.sfv-tabs {
    margin-bottom: 0.85rem;
}

.sfv-panels {
    margin-top: 0;
}

.sfv-panel-head {
    margin: 0 0 0.65rem;
}

.sfv-panel-head h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.sfv-panel-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.8rem;
}

.sfv-panel-filters .sfv-catalog-filters,
.sfv-panel-filters .sfv-catalog-sorts,
.sfv-panel-filters .sfv-catalog-categories {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.sfv-filter-chip {
    min-height: 1.85rem;
    padding: 0.28rem 0.62rem;
    font-size: 0.72rem;
}

.sfv-product-card__actions,
.sfv-service-card__actions {
    gap: 0;
}

.sfv-product-card__actions .sfv-btn--card,
.sfv-service-card__actions .sfv-btn {
    min-height: 36px;
}

.sfv-service-card__badges {
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.sfv-service-card__badge {
    padding: 0.16rem 0.4rem;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 650;
}

@media (max-width: 540px) {
    .sfv-hero {
        min-height: 0;
    }

    .sfv-hero-card,
    .sfv-hero.sfv-hero--has-cover .sfv-hero-card {
        padding: 4.8rem 0 1rem;
    }

    .sfv-hero-main {
        align-items: center;
    }

    .sfv-hero-copy h1 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .sfv-hero-stats > li,
    .sfv-hero.sfv-hero--has-cover .sfv-hero-stats > li {
        padding-inline: 0.4rem;
        font-size: 0.63rem;
    }

    .sfv-badges {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sfv-badges::-webkit-scrollbar {
        display: none;
    }

    .sfv-tabs {
        margin-bottom: 0.7rem;
    }

    .sfv-panel-filters {
        display: block;
    }

    .sfv-panel-filters .sfv-catalog-filters,
    .sfv-panel-filters .sfv-catalog-sorts,
    .sfv-panel-filters .sfv-catalog-categories {
        width: 100%;
        margin-bottom: 0.35rem;
    }
}

/* v2.1 — profundidad, formas orgánicas y movimiento discreto */
@keyframes sfv-rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sfv-cover-breathe {
    from { transform: scale(1.015); }
    to { transform: scale(1.055); }
}

@keyframes sfv-ambient-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.52; }
    50% { transform: translate3d(-18px, 12px, 0) scale(1.08); opacity: 0.72; }
}

@keyframes sfv-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body:has(.sfv-store) {
    background:
        radial-gradient(circle at 7% 46%, color-mix(in srgb, var(--sfv-accent, #02a504) 7%, transparent), transparent 24rem),
        radial-gradient(circle at 94% 78%, color-mix(in srgb, var(--sfv-accent, #02a504) 5%, transparent), transparent 28rem),
        var(--sfv-bg, var(--sfv-v2-bg));
}

.sfv-hero {
    isolation: isolate;
}

.sfv-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: clamp(-5rem, -4vw, -2rem);
    bottom: -7rem;
    width: clamp(15rem, 30vw, 27rem);
    aspect-ratio: 1;
    border-radius: 43% 57% 64% 36% / 45% 40% 60% 55%;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 24%, transparent);
    filter: blur(52px);
    pointer-events: none;
    animation: sfv-ambient-drift 10s ease-in-out infinite;
}

.sfv-hero-cover img {
    animation: sfv-cover-breathe 14s ease-in-out infinite alternate;
}

.sfv-logo {
    animation: sfv-rise-in 520ms cubic-bezier(.2, .75, .25, 1) 80ms both;
}

.sfv-hero-copy {
    animation: sfv-rise-in 560ms cubic-bezier(.2, .75, .25, 1) 150ms both;
}

.sfv-hero-stats {
    animation: sfv-rise-in 580ms cubic-bezier(.2, .75, .25, 1) 220ms both;
}

.sfv-hero-actions {
    animation: sfv-rise-in 600ms cubic-bezier(.2, .75, .25, 1) 290ms both;
}

.sfv-owner-banner {
    border-left-width: 4px;
    border-radius: 20px 20px 20px 8px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.78) inset,
        0 18px 44px -34px rgba(7, 25, 30, 0.5);
    animation: sfv-rise-in 460ms ease-out 90ms both;
}

.sfv-badges {
    animation: sfv-rise-in 460ms ease-out 150ms both;
}

.sfv-badge {
    border-radius: 999px;
    box-shadow: 0 10px 25px -23px rgba(7, 25, 30, 0.62);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.sfv-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -22px rgba(7, 25, 30, 0.58);
}

.sfv-catalog-toolbar {
    animation: sfv-rise-in 480ms ease-out 190ms both;
}

.sfv-search input {
    border-radius: 16px 16px 16px 7px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 16px 34px -29px rgba(7, 25, 30, 0.52);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sfv-search input:focus {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--sfv-accent, #02a504) 15%, transparent),
        0 20px 36px -28px rgba(7, 25, 30, 0.55);
}

.sfv-tabs {
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.32rem;
    border: 1px solid color-mix(in srgb, var(--sfv-card-border, var(--sfv-v2-line)) 78%, transparent);
    border-radius: 19px 19px 19px 8px;
    background: color-mix(in srgb, var(--sfv-card-bg, #fff) 94%, transparent);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 20px 42px -34px rgba(7, 25, 30, 0.54);
    backdrop-filter: blur(12px);
    animation: sfv-rise-in 500ms ease-out 230ms both;
}

.sfv-tab {
    min-height: 40px;
    border: 0;
    border-radius: 13px 13px 13px 6px;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sfv-tab:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 7%, transparent);
}

.sfv-tab.is-active {
    border: 0;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 13%, var(--sfv-card-bg, #fff));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.82) inset,
        0 8px 18px -14px color-mix(in srgb, var(--sfv-accent, #02a504) 60%, rgba(7, 25, 30, 0.35));
}

.sfv-panels {
    animation: sfv-rise-in 540ms ease-out 280ms both;
}

.sfv-product-card {
    border-radius: 23px 23px 23px 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 42px -34px rgba(7, 25, 30, 0.58);
    animation: sfv-card-in 500ms cubic-bezier(.2, .75, .25, 1) both;
}

.sfv-product-card:nth-child(2),
.sfv-service-card:nth-child(2) { animation-delay: 55ms; }
.sfv-product-card:nth-child(3),
.sfv-service-card:nth-child(3) { animation-delay: 110ms; }
.sfv-product-card:nth-child(4),
.sfv-service-card:nth-child(4) { animation-delay: 165ms; }
.sfv-product-card:nth-child(n+5),
.sfv-service-card:nth-child(n+5) { animation-delay: 220ms; }

.sfv-product-card:hover {
    transform: translateY(-6px) rotate(-0.15deg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.86) inset,
        0 28px 56px -34px color-mix(in srgb, var(--sfv-accent, #02a504) 32%, rgba(7, 25, 30, 0.58));
}

.sfv-product-placeholder__mark {
    border-radius: 18px 18px 22px 8px;
    transform: rotate(-3deg);
}

.sfv-service-card {
    border-radius: 22px 22px 22px 9px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 42px -34px rgba(7, 25, 30, 0.58);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    animation: sfv-card-in 500ms cubic-bezier(.2, .75, .25, 1) both;
}

.sfv-service-card:hover {
    transform: translateY(-5px) rotate(0.12deg);
    box-shadow: 0 26px 52px -34px color-mix(in srgb, var(--sfv-accent, #02a504) 30%, rgba(7, 25, 30, 0.56));
}

.sfv-service-card__media {
    border-radius: 18px 18px 22px 8px;
}

.sfv-empty {
    position: relative;
    isolation: isolate;
    min-height: 16rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sfv-card-border, var(--sfv-v2-line)) 74%, transparent);
    border-radius: 32px 32px 32px 12px;
    background:
        radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--sfv-accent, #02a504) 18%, transparent), transparent 52%),
        linear-gradient(145deg, color-mix(in srgb, var(--sfv-card-bg, #fff) 98%, var(--sfv-accent, #02a504) 2%), var(--sfv-card-bg, #fff));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 28px 58px -44px rgba(7, 25, 30, 0.58);
}

.sfv-empty::before,
.sfv-empty::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.sfv-empty::before {
    width: 13rem;
    height: 13rem;
    top: -7rem;
    right: 7%;
    background: color-mix(in srgb, var(--sfv-accent, #02a504) 9%, transparent);
}

.sfv-empty::after {
    width: 9rem;
    height: 9rem;
    left: 4%;
    bottom: -5.5rem;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 17%, transparent);
}

.sfv-empty-icon {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 1px solid color-mix(in srgb, var(--sfv-accent, #02a504) 22%, transparent);
    border-radius: 20px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--sfv-accent, #02a504) 22%, #fff), color-mix(in srgb, var(--sfv-accent, #02a504) 10%, #fff));
    color: var(--sfv-accent, #02a504);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 20px 34px -22px color-mix(in srgb, var(--sfv-accent, #02a504) 50%, rgba(7, 25, 30, 0.45));
    animation: sfv-card-in 620ms cubic-bezier(.2, .75, .25, 1) 340ms both;
}

.sfv-empty-icon svg {
    display: block;
    width: 1.9rem;
    height: 1.9rem;
    stroke: currentColor;
}

.sfv-info-card,
.sfv-info-block {
    border-color: color-mix(in srgb, var(--sfv-card-border, var(--sfv-v2-line)) 76%, transparent);
    border-radius: 23px 23px 23px 9px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.86) inset,
        0 20px 44px -36px rgba(7, 25, 30, 0.55);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sfv-info-card:hover,
.sfv-info-block:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--sfv-accent, #02a504) 24%, var(--sfv-card-border, #e2e8f0));
    box-shadow: 0 26px 50px -38px color-mix(in srgb, var(--sfv-accent, #02a504) 23%, rgba(7, 25, 30, 0.54));
}

@media (max-width: 540px) {
    .sfv-tabs {
        width: 100%;
        overflow-x: auto;
        border-radius: 17px 17px 17px 7px;
    }

    .sfv-tab {
        flex: 1 0 auto;
    }

    .sfv-empty {
        min-height: 14rem;
        border-radius: 25px 25px 25px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sfv-hero::after,
    .sfv-hero-cover img,
    .sfv-logo,
    .sfv-hero-copy,
    .sfv-hero-stats,
    .sfv-hero-actions,
    .sfv-owner-banner,
    .sfv-badges,
    .sfv-catalog-toolbar,
    .sfv-tabs,
    .sfv-panels,
    .sfv-product-card,
    .sfv-service-card,
    .sfv-empty-icon {
        animation: none;
    }

    .sfv-badge,
    .sfv-search input,
    .sfv-tab,
    .sfv-info-card,
    .sfv-info-block {
        transition: none;
    }
}

/* Keep compact controls authoritative after the decorative motion layer. */
.sfv-badge,
.sfv-badge--ok,
.sfv-badge--neutral,
.sfv-badge:hover {
    min-height: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.sfv-catalog-toolbar {
    width: min(100%, 36rem);
}

.sfv-search input,
.sfv-search input:focus,
.sfv-search input:focus-visible {
    border-radius: 12px;
    outline: 0 !important;
    transform: none;
}

.sfv-search input {
    box-shadow: none;
}

.sfv-search input:focus,
.sfv-search input:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfv-accent, #02a504) 10%, transparent);
}

.sfv-tabs {
    margin-bottom: 0.85rem;
    padding: 0.32rem;
}

.sfv-product-card__actions .sfv-btn--card,
.sfv-service-card__actions .sfv-btn {
    min-height: 36px;
}

