/* NegocioGo — tema claro (blanco / gris) */
html.negociogo-light,
html:not(.dark),
body.negociogo-light {
    background-color: #f9fafb;
    color: #111827;
}

.card {
    background: #ffffff;
}

/* NegocioGo — minimal design system */
.input {
    @apply w-full rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 px-4 py-3 text-sm
           focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500 transition;
}

.btn-primary {
    @apply inline-flex items-center justify-center rounded-xl bg-gray-900 dark:bg-white text-white dark:text-gray-900
           px-5 py-2.5 font-medium text-sm hover:opacity-90 transition shadow-soft;
}

.btn-secondary {
    @apply inline-flex items-center justify-center rounded-xl border border-gray-200 dark:border-gray-700
           px-5 py-2.5 font-medium text-sm hover:bg-gray-50 dark:hover:bg-gray-800 transition;
}

.btn-brand {
    @apply inline-flex items-center justify-center rounded-xl bg-brand-600 text-white
           px-5 py-2.5 font-medium text-sm hover:bg-brand-700 transition shadow-soft;
}

.card {
    @apply bg-white dark:bg-gray-900 rounded-2xl p-6 shadow-soft border border-gray-100 dark:border-gray-800;
}

.stat-card {
    @apply card flex flex-col gap-1;
}

.sidebar-link {
    @apply block rounded-xl px-4 py-2.5 text-sm text-gray-600 dark:text-gray-400
           hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-white transition;
}

.checkbox {
    @apply rounded border-gray-300 text-brand-600 focus:ring-brand-500;
}

/* Fix Tailwind @apply in plain CSS - use direct rules when CDN doesn't process @apply */
.input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
.dark .input {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}
.input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 143, 102, 0.2);
    border-color: #02a504;
}

select.input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding-right: 2.25rem;
    cursor: pointer;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

select.input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 143, 102, 0.2);
    border-color: #02a504;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgb(17 24 39);
    color: white;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 2px 15px -3px rgba(0,0,0,0.07);
    transition: opacity 0.2s;
}
.dark .btn-primary {
    background: white;
    color: rgb(17 24 39);
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.dark .btn-secondary { border-color: rgb(55 65 81); }
.btn-secondary:hover { background: rgb(249 250 251); }
.dark .btn-secondary:hover { background: rgb(31 41 55); }

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgb(2 132 199);
    color: white;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s;
}
.btn-brand:hover { background: rgb(3 105 161); }

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 15px -3px rgba(0,0,0,0.07);
    border: 1px solid rgb(243 244 246);
}
.dark .card {
    background: rgb(17 24 39);
    border-color: rgb(31 41 55);
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 15px -3px rgba(0,0,0,0.07);
    border: 1px solid rgb(243 244 246);
}

[x-cloak] { display: none !important; }

.sidebar-link {
    display: block;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: rgb(75 85 99);
    transition: all 0.2s;
}
.sidebar-link:hover {
    background: rgb(243 244 246);
    color: rgb(17 24 39);
}
.dark .sidebar-link { color: rgb(156 163 175); }
.dark .sidebar-link:hover {
    background: rgb(31 41 55);
    color: white;
}

.sidebar-link-active {
    background: rgb(240 249 255);
    color: rgb(3 105 161);
    font-weight: 500;
}

.sidebar-link-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55 65 81);
    margin-bottom: 0.375rem;
}

.form-hint {
    font-size: 0.75rem;
    color: rgb(107 114 128);
    margin-top: 0.375rem;
}

.form-error {
    font-size: 0.75rem;
    color: rgb(220 38 38);
    margin-top: 0.375rem;
}

.form-field {
    margin-bottom: 0;
}

.slug-input-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 0.75rem;
    border: 1px solid rgb(229 231 235);
    background: white;
    overflow: hidden;
}

.slug-input-wrap:focus-within {
    border-color: rgb(14 165 233);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.slug-prefix {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0.65rem;
    font-size: 0.8125rem;
    color: rgb(107 114 128);
    background: rgb(249 250 251);
    border-right: 1px solid rgb(229 231 235);
    white-space: nowrap;
}

.slug-input-wrap .input {
    flex: 1 1 6rem;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.slug-input-wrap .input:focus {
    box-shadow: none;
    border: none;
}

.file-input {
    font-size: 0.875rem;
    color: rgb(75 85 99);
}

details summary::-webkit-details-marker {
    display: none;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 55%, #070d18 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.site-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 1.75rem;
}

@media (min-width: 640px) {
    .site-footer-inner { padding-inline: 2rem; }
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.75rem;
}

@media (min-width: 640px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
        gap: 2rem 2.5rem;
        align-items: start;
    }
}

.site-footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .site-footer-brand {
        grid-column: auto;
    }
}

.site-footer-logo {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.site-footer-social__link {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}

.site-footer-social__link:hover,
.site-footer-social__link:focus-visible {
    color: #fff;
    border-color: rgba(14, 143, 102, 0.5);
    background: rgba(14, 143, 102, 0.14);
    transform: translateY(-1px);
}

.site-footer-desc {
    margin-top: 1rem;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
}

.site-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    font-size: 0.84rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.site-footer-contact strong {
    color: #e2e8f0;
    font-weight: 600;
    margin-right: 0.25rem;
}

.site-footer-contact:hover {
    color: #fff;
    border-color: rgba(14, 143, 102, 0.35);
    background: rgba(14, 143, 102, 0.08);
}

.site-footer-tagline {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin: 0 0 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #02a504;
}

.site-footer-col-desc {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.footer-link-emphasis {
    font-weight: 600;
    color: #02a504 !important;
}

.footer-link-emphasis:hover {
    color: #028f03 !important;
}

.footer-soon {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.8125rem;
    color: #64748b;
}

.footer-bottom-copy {
    margin: 0;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.65rem;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: #02a504;
}

.footer-bottom-tagline {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    text-align: left;
}

@media (min-width: 768px) {
    .footer-bottom-tagline {
        text-align: right;
        max-width: 14rem;
    }
}

.site-footer-compact {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
}

.footer-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-compact-brand {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-compact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.footer-compact-links a {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-compact-links a:hover {
    color: #02a504;
}

@media (max-width: 640px) {
    .footer-compact-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer-compact-links {
        justify-content: flex-start;
    }
}

/* Menú perfil */
.profile-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-sizing: border-box;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.7rem 0 0.5rem;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.profile-menu-link {
    text-decoration: none;
    color: inherit;
}

.profile-menu-link:hover {
    border-color: #d4d4d8;
}

.profile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    line-height: 0;
    color: #71717a;
}

.profile-menu-icon svg {
    display: block;
}

.profile-menu-avatar,
.profile-menu-initials {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.profile-menu-initials {
    display: grid;
    place-items: center;
    background: #ecfdf5;
    color: #015501;
    font-size: 0.6875rem;
    font-weight: 700;
}

.profile-menu-name {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #71717a;
}

.profile-menu-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    min-width: 14.5rem;
    max-width: 18rem;
    padding: 0.4rem 0;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px -12px rgba(24, 24, 27, 0.12);
    z-index: 60;
}

.profile-menu-dropdown form {
    margin: 0;
}

.profile-menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #374151;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    background: #f4f4f5;
    color: #18181b;
    outline: none;
}

/* ——— Seller app (tienda / productos) ——— */
body.seller-app {
    background: #fafafa;
    color: #18181b;
}

.seller-layout {
    display: flex;
    min-height: 100vh;
}

.seller-sidebar {
    width: 15.5rem;
    flex-shrink: 0;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.seller-sidebar.is-open {
    transform: translateX(0);
}

.seller-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 35;
}

.seller-sidebar-backdrop:not([hidden]) {
    display: block;
}

@media (min-width: 1024px) {
    .seller-sidebar {
        transform: none;
        position: sticky;
        height: 100vh;
    }
    .seller-sidebar-backdrop {
        display: none !important;
    }
}

.seller-sidebar-brand {
    padding: 0 0.5rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 1rem;
}

.seller-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.seller-store-name {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.seller-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.seller-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.seller-nav-link-active {
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
}

.seller-nav-link-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.seller-nav-icon {
    display: flex;
    opacity: 0.85;
}

.seller-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.seller-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 1024px) {
    .seller-layout {
        flex-direction: row;
    }
    .seller-sidebar {
        position: sticky;
        height: 100vh;
        flex-shrink: 0;
    }
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.seller-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .seller-menu-btn {
        display: none;
    }
}

.seller-header-title {
    flex: 1;
    min-width: 0;
}

.seller-header-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.seller-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller-copy-btn,
.seller-preview-btn {
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.seller-copy-btn {
    border: none;
    background: #0f172a;
    color: white;
    cursor: pointer;
}

.seller-copy-btn:hover {
    opacity: 0.9;
}

.seller-preview-btn {
    border: 1px solid #e2e8f0;
    color: #475569;
    background: white;
}

.seller-preview-btn:hover {
    background: #f8fafc;
}

.seller-content {
    flex: 1;
    padding: 1.5rem 1.25rem 2.5rem;
    max-width: 72rem;
}

@media (min-width: 640px) {
    .seller-content {
        padding: 1.75rem 2rem 3rem;
    }
}

.seller-messages {
    margin-bottom: 1.25rem;
}

.seller-alert {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.seller-alert-success {
    background: #ecfdf5;
    color: #02a504;
}

.seller-alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

.seller-alert-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.seller-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .seller-page-title {
        font-size: 1.75rem;
    }
}

.seller-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.375rem;
}

.seller-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.seller-empty-hero {
    text-align: center;
    padding: 3rem 1rem 4rem;
    max-width: 28rem;
    margin: 0 auto;
}

.seller-empty-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.seller-link-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (min-width: 640px) {
    .seller-link-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.seller-link-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.seller-link-url {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0284c7;
    margin-top: 0.25rem;
    word-break: break-all;
    text-decoration: none;
}

.seller-link-url:hover {
    text-decoration: underline;
}

.seller-link-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.375rem;
}

.seller-link-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.seller-quick-actions {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .seller-quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seller-action-card {
    display: block;
    padding: 1.125rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.seller-action-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.seller-action-card-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-color: #bae6fd;
}

.seller-action-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f172a;
}

.seller-action-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.seller-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.seller-stat {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    text-align: center;
}

.seller-stat-value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
}

.seller-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.seller-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.seller-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.seller-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.seller-panel-empty,
.seller-panel-empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.seller-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seller-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.seller-order-row:first-child {
    border-top: none;
}

.seller-order-row:hover {
    color: #0284c7;
}

.seller-order-name {
    font-size: 0.875rem;
    color: #334155;
}

.seller-order-amount {
    font-weight: 600;
    font-size: 0.875rem;
}

.seller-setup,
.seller-form-page {
    max-width: 32rem;
}

.seller-setup-intro {
    margin-bottom: 1.5rem;
}

.seller-form-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.seller-form-card.space-y-4 > * + * {
    margin-top: 1rem;
}

.seller-form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.seller-form-grid-2 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .seller-form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.seller-back-link {
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.seller-back-link:hover {
    color: #0f172a;
}

.seller-product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.seller-product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.seller-product-img {
    width: 100%;
    height: 9rem;
    object-fit: cover;
    background: #f1f5f9;
}

.seller-product-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.seller-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.seller-product-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f172a;
}

.seller-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.seller-product-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.seller-product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.875rem;
}

.seller-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.seller-table thead th {
    padding: 0.75rem 1.25rem;
}

.seller-table tbody td {
    padding: 0.875rem 1.25rem;
}

/* Local marketplace */
.market-page {
    padding: 1.5rem 0 3rem;
}

.market-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.market-hero-compact {
    align-items: center;
}

.market-kicker {
    color: #02a504;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.market-hero h1 {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 0.98;
    max-width: 44rem;
}

.market-hero p:not(.market-kicker) {
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 39rem;
}

.market-map-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.market-search {
    position: static;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(9rem, 0.8fr) minmax(10rem, 0.9fr) auto;
    gap: 0.55rem;
    padding: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px -32px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px);
}

.market-search input,
.market-search select {
    min-width: 0;
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.9rem 1rem;
    outline: none;
}

.market-search button {
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    padding: 0.9rem 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.market-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
}

.market-tabs a {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.market-tabs a.is-active {
    background: #ecfdf5;
    color: #02a504;
    border-color: rgba(5, 150, 105, 0.18);
}

.market-results {
    display: grid;
    gap: 1rem;
}

.market-card {
    display: grid;
    grid-template-columns: 15rem 1fr;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #fff;
    box-shadow: 0 20px 58px -42px rgba(15, 23, 42, 0.34);
}

.market-card-media {
    position: relative;
    min-height: 13rem;
    background:
        radial-gradient(circle at 22% 28%, rgba(14, 143, 102, 0.28), transparent 5rem),
        radial-gradient(circle at 85% 18%, rgba(14, 165, 233, 0.24), transparent 6rem),
        linear-gradient(135deg, #f8fafc, #eef2ff);
}

.market-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-type-badge {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}

.market-card-body {
    padding: 1.15rem;
}

.market-card-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.market-logo {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-weight: 850;
    overflow: hidden;
}

.market-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card h2 {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 850;
}

.market-card h2 a {
    color: inherit;
    text-decoration: none;
}

.market-card-head p,
.market-card-copy {
    color: #64748b;
    font-size: 0.88rem;
}

.market-card-copy {
    margin-top: 0.9rem;
    line-height: 1.55;
}

.market-badges,
.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.market-badges span {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
}

.market-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.58rem 0.82rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}

.market-actions a + a {
    background: #f1f5f9;
    color: #0f172a;
}

.market-empty {
    padding: 1.25rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: #64748b;
}

.map-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
}

.map-canvas {
    position: relative;
    min-height: 38rem;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at 26% 26%, rgba(14, 143, 102, 0.24), transparent 14rem),
        radial-gradient(circle at 80% 60%, rgba(14, 165, 233, 0.2), transparent 14rem),
        #eef2f7;
    box-shadow: 0 24px 64px -44px rgba(15, 23, 42, 0.42);
}

.map-grid {
    position: absolute;
    inset: -4rem;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    transform: rotate(-8deg);
}

.map-marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem 0.4rem 0.42rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.6);
    transform: translate(-50%, -50%);
}

.map-marker span {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: #02a504;
    box-shadow: 0 0 0 5px rgba(14, 143, 102, 0.14);
}

.map-marker strong {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
}

.map-marker-service_provider span { background: #0ea5e9; box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.14); }
.map-marker-online_seller span { background: #8b5cf6; box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.14); }
.map-marker-hybrid span { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14); }

.map-list {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.map-card {
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.map-card strong,
.map-card span {
    display: block;
}

.map-card strong {
    color: #0f172a;
    font-weight: 850;
}

.map-card span {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
}

.map-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.map-card-actions a {
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .market-hero,
    .map-shell {
        grid-template-columns: 1fr;
        display: grid;
    }

    .market-search {
        position: static;
        grid-template-columns: 1fr;
    }

    .market-card {
        grid-template-columns: 1fr;
    }

    .market-card-media {
        min-height: 11rem;
    }

    .map-canvas {
        min-height: 28rem;
    }
}

/* Marketplace alive states */
.market-hero h1 {
    letter-spacing: 0;
}

.market-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.market-card:hover {
    transform: translateY(-2px);
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 28px 64px -42px rgba(15, 23, 42, 0.44);
}

.market-actions a:first-child,
.map-card-actions a:first-child {
    background: #02a504;
    color: #fff;
}

.market-empty-live {
    display: grid;
    gap: 0.75rem;
    background:
        radial-gradient(circle at 92% 14%, rgba(14, 143, 102, 0.16), transparent 7rem),
        #fff;
}

.market-empty-live h2 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.market-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.market-empty-actions a,
.market-empty-live > a {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
    padding: 0.58rem 0.8rem;
    text-decoration: none;
}

.market-empty-actions a + a {
    background: #f1f5f9;
    color: #0f172a;
}

.market-map-filters {
    margin-top: -0.35rem;
}

.map-road {
    position: absolute;
    width: 132%;
    height: 7rem;
    left: -16%;
    border: 1px solid rgba(100, 116, 139, 0.15);
    background: rgba(255, 255, 255, 0.45);
}

.map-road-a {
    top: 10rem;
    transform: rotate(-12deg);
}

.map-road-b {
    bottom: 9rem;
    transform: rotate(24deg);
}

.map-marker {
    z-index: 2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-marker:hover {
    transform: translate(-50%, -54%);
    box-shadow: 0 22px 42px -20px rgba(15, 23, 42, 0.72);
}

.map-marker span {
    animation: map-pin-pulse 1.8s ease-in-out infinite;
}

@keyframes map-pin-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(14, 143, 102, 0.14); }
    50% { box-shadow: 0 0 0 9px rgba(14, 143, 102, 0.08); }
}

.map-live-panel {
    position: absolute;
    z-index: 3;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 54px -34px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
}

.map-live-panel strong,
.map-live-panel span {
    display: block;
}

.map-live-panel strong {
    color: #0f172a;
    font-weight: 900;
}

.map-live-panel span {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.map-demo-card {
    border-color: rgba(5, 150, 105, 0.16);
    background:
        radial-gradient(circle at 95% 20%, rgba(14, 143, 102, 0.14), transparent 5rem),
        #fff;
}

@media (max-width: 900px) {
    .market-hero h1 { font-size: 2.35rem; }
    .map-live-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

.market-search-advanced {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr) minmax(0, 0.85fr) minmax(0, 0.95fr) auto;
}

.market-search-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.15rem 0.35rem 0;
}

/* Filtros chip: ver negociogo-filters.css */
.market-search-filters:not(.negociogo-filter-chips) label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

.market-btn-primary,
.market-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.market-btn-primary { background: #0f172a; color: #fff; }
.market-btn-whatsapp { background: #25D366; color: #fff; }

.market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #64748b;
}

.market-pagination a { color: #02a504; font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
    .market-search-advanced { grid-template-columns: 1fr; }
}

.market-empty-professional {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    max-width: 32rem;
    margin: 2rem auto;
}

.market-empty-full {
    max-width: 28rem;
    padding: 4rem 2rem;
}

.market-empty-professional h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 0.5rem;
}

.market-empty-professional p {
    color: #64748b;
    margin: 0.75rem 0 1.25rem;
    line-height: 1.55;
}

.market-product-preview {
    list-style: none;
    margin: 0.65rem 0;
    padding: 0;
    font-size: 0.82rem;
}

.market-product-preview li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #475569;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

/* Header público — exploración cliente + auth opcional */
.public-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #52525b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.public-nav-link:hover {
    color: #18181b;
    background: rgba(0, 0, 0, 0.04);
}

.public-nav-studio {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #02a504;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.public-nav-studio:hover {
    background: #02a504;
    color: #fff;
}

.public-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: #02a504;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.public-nav-cta:hover {
    background: #02a504;
    color: #fff;
}

.public-nav-auth-link {
    white-space: nowrap;
}

.public-nav-auth-signup {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
}

@media (min-width: 640px) {
    .public-nav-auth-signup {
        padding: 0.45rem 0.9rem;
    }
}

/* Navbar público — 3 zonas: logo | nav centrada | cuenta */
.public-nav-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.public-nav-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "logo actions"
        "nav nav";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    width: 100%;
    min-width: 0;
}

.public-nav-left {
    grid-area: logo;
    justify-self: start;
    min-width: 0;
}

.public-nav-logo {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #18181b;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.public-nav-logo:hover {
    color: #09090b;
}

.public-nav-center {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.125rem;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
    mask-image: linear-gradient(90deg, #000 94%, transparent);
}

.public-nav-center::-webkit-scrollbar {
    display: none;
}

.public-nav-right {
    grid-area: actions;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    flex-shrink: 0;
}

/* Controles solo móvil: ocultos por defecto (mobile-nav.css / mobile-app.css los activan) */
.mobile-header-tools,
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 479px) {
    .public-nav-auth-link {
        padding: 0.35rem 0.45rem;
        font-size: 0.8125rem;
    }

    .public-nav-auth-signup {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 640px) {
    .public-nav-center {
        justify-content: center;
        mask-image: none;
    }
}

@media (min-width: 1024px) {
    .public-nav-inner {
        padding-top: 0;
        padding-bottom: 0;
    }

    .public-nav-bar {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "logo nav actions";
        column-gap: 1.25rem;
        row-gap: 0;
        min-height: 3.75rem;
    }

    .public-nav-center {
        justify-self: center;
        justify-content: center;
        overflow: visible;
        padding-bottom: 0;
        flex-wrap: nowrap;
    }

    .public-nav-right {
        gap: 0.5rem;
    }

    .public-nav-logo {
        font-size: 1.25rem;
    }
}

/* —— Reset de márgenes y ancho completo —— */
html,
body {
    margin: 0;
    padding: 0;
}

/* —— Mobile: sin overflow horizontal global —— */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

.footer-link-muted {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.footer-compact-sep {
    color: #cbd5e1;
    user-select: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toast favoritos (marketplace y vitrina) */
.store-toast-root {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    max-width: min(22rem, calc(100vw - 2rem));
}

.store-toast {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #18181b;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.store-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.store-toast--success {
    background: #14532d;
}

/* Modal login para guardar favoritos */
.negociogo-favorite-login-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(24rem, calc(100vw - 2rem));
}

.negociogo-favorite-login-modal::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.negociogo-favorite-login-modal__panel {
    position: relative;
    padding: 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 24px 64px -24px rgba(15, 23, 42, 0.35);
}

.negociogo-favorite-login-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #71717a;
    cursor: pointer;
}

.negociogo-favorite-login-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #18181b;
}

.negociogo-favorite-login-modal__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #52525b;
}

.negociogo-favorite-login-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.negociogo-favorite-login-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
}

.negociogo-favorite-login-modal__btn--primary {
    background: #02a504;
    color: #fff;
}

.negociogo-favorite-login-modal__btn--secondary {
    background: #fff;
    color: #18181b;
    border-color: #e4e4e7;
}

.negociogo-favorite-login-modal__btn--ghost {
    background: transparent;
    color: #71717a;
    border: 0;
}

/* Guardados — pestañas cuenta cliente */
.customer-saved-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e4e4e7;
    padding-bottom: 0.65rem;
}

.customer-saved-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #52525b;
    text-decoration: none;
    border: 1px solid transparent;
}

.customer-saved-tabs__link.is-active {
    background: #F3FFFA;
    color: #015501;
    border-color: #bbf7d0;
}

.customer-saved-products-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.customer-saved-product-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
}

.customer-saved-product-card.is-removing {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.customer-saved-product-card__media img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.customer-saved-product-card__placeholder {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f4f5;
    font-weight: 600;
    color: #71717a;
}

.customer-saved-product-card__store {
    display: block;
    font-size: 0.8125rem;
    color: #71717a;
}

.customer-saved-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

[data-store-follow].is-animating,
[data-product-save].is-animating {
    transform: scale(1.04);
    transition: transform 0.2s ease;
}

/* PWA — avisos de instalar / actualizar (mismo lenguaje visual que toasts) */
.ng-pwa-banner-root {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + var(--ng-keyboard-inset, 0px) + var(--ng-bottom-nav-clearance, 0px));
    transform: translateX(-50%);
    z-index: 1210;
    width: min(22.5rem, calc(100vw - 2rem));
    pointer-events: none;
}

.ng-pwa-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #111111;
    color: #fff;
    box-shadow: 0 16px 36px rgba(7, 25, 30, 0.22);
    pointer-events: auto;
}

.ng-pwa-banner__text {
    margin: 0;
    flex: 1 1 10rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.ng-pwa-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ng-pwa-banner__btn {
    appearance: none;
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
    border: 0;
    border-radius: 8px;
    background: #02a504;
    color: #fff;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.ng-pwa-banner__btn--ghost {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.pwa-install-sheet-open {
    overflow: hidden;
}

.ng-pwa-install-sheet {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.ng-pwa-install-sheet.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.ng-pwa-install-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(7, 25, 30, 0.52);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.ng-pwa-install-sheet.is-visible .ng-pwa-install-sheet__backdrop {
    opacity: 1;
}

.ng-pwa-install-sheet__panel {
    position: relative;
    width: min(100%, 32rem);
    max-height: 86dvh;
    overflow-y: auto;
    padding: 1.65rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px rgba(7, 25, 30, 0.22);
    color: #102a23;
    box-sizing: border-box;
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ng-pwa-install-sheet__panel::before {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    width: 2.75rem;
    height: 0.25rem;
    border-radius: 999px;
    background: #d8e0dd;
    content: "";
    transform: translateX(-50%);
}

.ng-pwa-install-sheet.is-visible .ng-pwa-install-sheet__panel {
    transform: translateY(0);
}

.ng-pwa-install-sheet__close {
    position: absolute;
    top: 1.15rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 0 0.15rem;
    border: 1px solid #e2e8e5;
    border-radius: 12px;
    background: #fff;
    color: #536b64;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.ng-pwa-install-sheet__icon {
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 0.9rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #0e9b6d, #057451);
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 140, 97, 0.2);
    font-size: 1.25rem;
    font-weight: 850;
}

.ng-pwa-install-sheet__panel h2 {
    margin: 0;
    padding-right: 3rem;
    color: #111111;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.ng-pwa-install-sheet__intro {
    margin: 0.55rem 0 1rem;
    color: #5b6f69;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ng-pwa-install-sheet__steps {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pwa-step;
}

.ng-pwa-install-sheet__steps li {
    position: relative;
    min-height: 2.5rem;
    padding: 0.7rem 0.75rem 0.7rem 3rem;
    border: 1px solid #e2ebe7;
    border-radius: 14px;
    background: #f8fbfa;
    color: #243d36;
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.35;
    counter-increment: pwa-step;
    box-sizing: border-box;
}

.ng-pwa-install-sheet__steps li::before {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 9px;
    background: #e1f5ec;
    color: #057451;
    content: counter(pwa-step);
    font-size: 0.75rem;
    font-weight: 850;
    transform: translateY(-50%);
}

.ng-pwa-install-sheet__done {
    width: 100%;
    min-height: 3rem;
    margin-top: 1rem;
    border: 0;
    border-radius: 14px;
    background: #02a504;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
}

html.ng-pwa-standalone body {
    padding-top: env(safe-area-inset-top, 0px);
}

/* PWA iPhone: overlays fijos ignoran el padding del body */
html.ng-pwa-standalone .mobile-drawer {
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html.ng-pwa-standalone .mobile-nav-backdrop {
    top: 0;
}
/* Modal global NegocioGo para avisos y confirmaciones. */
.negociogo-dialog {
    width: min(92vw, 430px);
    max-width: 430px;
    padding: 0;
    border: 0;
    border-radius: 14px 14px 14px 5px;
    background: transparent;
    color: #102f29;
    box-shadow: 0 26px 70px -24px rgba(5, 38, 31, 0.58);
}

.negociogo-dialog::backdrop {
    background: rgba(4, 24, 20, 0.56);
    backdrop-filter: blur(3px);
}

.negociogo-dialog__panel {
    overflow: hidden;
    border: 1px solid #d4e1dd;
    border-radius: inherit;
    background: #fff;
}

.negociogo-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid #e5ece9;
}

.negociogo-dialog__eyebrow {
    display: block;
    margin-bottom: 0.15rem;
    color: #07815f;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.negociogo-dialog__header h2 {
    margin: 0;
    color: #102f29;
    font-size: 1.05rem;
    line-height: 1.2;
}

.negociogo-dialog__close {
    display: inline-grid;
    place-items: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid #d8e3df;
    border-radius: 8px;
    background: #f7faf9;
    color: #526a64;
    font-size: 1.25rem;
    line-height: 1;
}

.negociogo-dialog__message {
    margin: 0;
    padding: 1rem;
    color: #536b65;
    font-size: 0.86rem;
    line-height: 1.55;
    white-space: pre-line;
}

.negociogo-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1rem 1rem;
}

.negociogo-dialog__button {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    border: 1px solid #cbdad5;
    border-radius: 8px;
    background: #fff;
    color: #294a42;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.negociogo-dialog__button--primary {
    border-color: #087d60;
    background: #087d60;
    color: #fff;
}

.negociogo-dialog__button[hidden] {
    display: none !important;
}

.negociogo-dialog--alert .negociogo-dialog__button--primary {
    min-width: 110px;
}

.negociogo-dialog--danger .negociogo-dialog__button--primary {
    border-color: #a92727;
    background: #a92727;
}

@media (max-width: 520px) {
    .negociogo-dialog {
        width: calc(100vw - 1.25rem);
        margin: auto;
    }

    .negociogo-dialog__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .negociogo-dialog__actions > :only-child {
        grid-column: 1 / -1;
    }

    .negociogo-dialog--alert .negociogo-dialog__actions {
        grid-template-columns: 1fr;
    }
}

