:root {
    --bg: #f1f5f9;
    --bg-accent: linear-gradient(180deg, #fff5f7 0%, #f1f5f9 220px);
    --surface: #ffffff;
    --surface2: #e2e8f0;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #e94560;
    --accent-soft: #fff1f2;
    --accent2: #0d9488;
    --accent-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    background-image: var(--bg-accent);
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.icon-logo { width: 1.15rem; height: 1.15rem; stroke: #fff; }
.icon-nav { width: 1rem; height: 1rem; }
.icon-meta { width: 0.95rem; height: 0.95rem; margin-right: 0.2rem; opacity: 0.75; }
.icon-btn { width: 1rem; height: 1rem; margin-right: 0.35rem; }
.icon-section { width: 1.35rem; height: 1.35rem; color: var(--accent); }
.icon-section-sm { width: 1.15rem; height: 1.15rem; color: var(--accent); }
.icon-chip { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.icon-hero { width: 1rem; height: 1rem; }
.icon-breadcrumb { width: 0.9rem; height: 0.9rem; margin-right: 0.15rem; }
.icon-breadcrumb-sep { width: 0.75rem; height: 0.75rem; opacity: 0.45; }
.icon-auth { width: 1.75rem; height: 1.75rem; color: var(--accent); }

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
    will-change: transform;
}

.site-header.is-scrolled:not(.is-hidden) {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.site-header-spacer {
    width: 100%;
    flex-shrink: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid var(--surface2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.menu-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header-search {
    display: none;
}

.site-search-bar {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(248, 250, 252, 0.95);
    padding: 0.65rem 0 0.75rem;
}

.site-search-inner {
    position: relative;
}

.site-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.site-search-field-wrap {
    position: relative;
}

.site-search-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.45rem 0.45rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.site-search-field.is-open,
.site-search-field:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-search-field .icon-search {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--muted);
    flex-shrink: 0;
}

.site-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
}

.site-search-input::placeholder {
    color: #94a3b8;
}

.site-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.site-search-clear:hover {
    background: #e2e8f0;
    color: var(--text);
}

.icon-search-clear {
    width: 0.85rem;
    height: 0.85rem;
}

.site-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}

.site-search-submit:hover {
    opacity: 0.92;
    transform: scale(1.03);
}

.site-search-submit .icon-search-btn {
    width: 1rem;
    height: 1rem;
    stroke: #fff;
}

.site-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.site-search-filter {
    cursor: pointer;
}

.site-search-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-search-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.icon-search-filter {
    width: 0.9rem;
    height: 0.9rem;
}

.site-search-filter input:checked + .site-search-filter-chip {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.08);
}

.site-search-filter input:focus-visible + .site-search-filter-chip {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-search-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.site-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.site-search-panel-meta {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}

.site-search-results {
    max-height: min(24rem, 58vh);
    overflow-y: auto;
}

.site-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.12s;
}

.site-search-item:last-child {
    border-bottom: none;
}

.site-search-item:hover,
.site-search-item.is-active {
    background: #f8fafc;
    text-decoration: none;
}

.site-search-thumb {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.site-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-search-discount {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    padding: 0.1rem 0.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

.site-search-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-search-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.site-search-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-search-item-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.site-search-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: var(--muted);
}

.site-search-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.site-search-badge.is-deal {
    background: #fff1f2;
    color: #be123c;
}

.site-search-badge.is-free {
    background: #ecfdf5;
    color: #047857;
}

.site-search-badge.is-coupon {
    background: #f5f3ff;
    color: #6d28d9;
}

.site-search-coupon {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    color: #6d28d9;
}

.site-search-item-prices .site-search-old {
    font-size: 0.74rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.site-search-panel-foot {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.site-search-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--accent2);
    text-decoration: none;
}

.site-search-view-all:hover {
    text-decoration: underline;
}

.icon-search-foot {
    width: 0.9rem;
    height: 0.9rem;
}

.site-search-empty,
.site-search-loading {
    padding: 1rem 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
}

.site-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.site-search-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e2e8f0;
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: search-spin 0.7s linear infinite;
}

@keyframes search-spin {
    to { transform: rotate(360deg); }
}

.search-page {
    padding-bottom: 2rem;
}

.search-hint-page {
    margin-top: 1rem;
}

.search-page-title {
    margin-top: 0.5rem;
}

.header-search-page {
    max-width: none;
    margin: 0;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.search-page-form {
    margin: 1rem 0 0.5rem;
}

.search-hint,
.search-results-count {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.75rem;
}

.search-results-count {
    margin-bottom: 1rem;
}

.nav-main-compact {
    flex-shrink: 0;
}

.nav-link-label {
    white-space: nowrap;
}

.nav-user-compact {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.drawer-open {
    overflow: hidden;
}

.category-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.category-drawer.is-open {
    pointer-events: auto;
}

.category-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.category-drawer.is-open .category-drawer-backdrop {
    opacity: 1;
}

.category-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(24rem, 92vw);
    background: var(--surface);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-drawer.is-open .category-drawer-panel {
    transform: translateX(0);
}

.category-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid var(--surface2);
}

.category-drawer-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text);
}

.category-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.category-drawer-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.category-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.category-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem;
}

.category-drawer-nav .category-drawer-link {
    white-space: nowrap;
    font-size: 0.88rem;
}

.category-drawer-nav .category-drawer-link > span {
    flex: 0 0 auto;
    min-width: auto;
    white-space: nowrap;
}

.category-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.category-drawer-link:hover {
    background: #f8fafc;
    color: var(--accent);
    text-decoration: none;
}

.category-drawer-link span {
    flex: 1;
    min-width: 0;
}

.category-drawer-link .nav-fire-wrap {
    flex: 0 0 auto;
    min-width: auto;
}

.category-drawer-count {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

@media (max-width: 699px) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .header-left {
        order: 1;
        min-width: 0;
    }

    .nav-main-compact {
        order: 2;
        margin-left: auto;
    }

    .site-search-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-search-filters::-webkit-scrollbar {
        display: none;
    }

    .site-search-filter-chip {
        white-space: nowrap;
    }

    .nav-link-label,
    .nav-user-compact .nav-link-label {
        display: none;
    }

    .nav-main-compact .nav-link,
    .nav-main-compact .nav-user {
        padding: 0.45rem;
    }
}

@media (min-width: 700px) {
    .site-search-form {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
    }

    .site-search-field-wrap {
        flex: 1;
        min-width: 0;
    }

    .site-search-filters {
        flex-shrink: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 1.05rem;
    line-height: 1.1;
}

.logo-text-primary {
    color: var(--text);
}

.logo-text-accent {
    color: var(--accent);
    position: relative;
}

.logo-text-accent::after {
    content: "";
    position: absolute;
    left: 0.05rem;
    right: 0;
    bottom: -0.12rem;
    height: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.65), rgba(255, 107, 107, 0.15));
}

@media (max-width: 699px) {
    .logo-text {
        font-size: 0.98rem;
    }
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    color: var(--text);
    background: #f8fafc;
    text-decoration: none;
}

.nav-link-muted {
    font-weight: 500;
    font-size: 0.82rem;
}

.nav-register {
    background: var(--accent-soft);
    color: var(--accent) !important;
}

.nav-register:hover {
    background: #ffe4e6;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 600;
    padding: 0.45rem 0.7rem;
}

.site-main { flex: 1; padding: 1.5rem 0 3rem; }

.hero {
    text-align: center;
    padding: 2.25rem 0 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fecdd3;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin-bottom: 0.55rem;
    color: var(--text);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero p { color: var(--muted); max-width: 36rem; margin: 0 auto; font-size: 1.02rem; }

.hero--compact {
    text-align: left;
    padding: 0.35rem 0 0.5rem;
}

.hero--compact h1 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    margin: 0 0 0.2rem;
    font-weight: 800;
}

.hero--compact .hero-lead {
    margin: 0;
    max-width: none;
    font-size: 0.88rem;
    color: var(--muted);
}

.container--deals-home {
    padding-top: 0.25rem;
}

.home-deals-meta {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* —— Bloque editorial SEO al final de la home —— */
.home-about {
    max-width: 52rem;
    margin: 2.5rem 0 1.5rem;
    padding: 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 12px;
}

.home-about-title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    color: var(--text);
}

.home-about p {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--muted);
}

.home-about p:last-child {
    margin-bottom: 0;
}

.home-about a {
    color: var(--accent);
    font-weight: 600;
}

.home-notice {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.home-notice p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.95rem;
}

.home-notice a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.home-notice a:hover {
    text-decoration: underline;
}

.hero-free {
    padding-top: 1.75rem;
}

.hero-coupon {
    padding-top: 1.75rem;
}

.hero-badge-free {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.hero-badge-coupon {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #6d28d9;
}

.coupon-hub {
    padding-bottom: 2.5rem;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.coupon-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #c4b5fd;
    text-decoration: none;
}

.coupon-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: #f5f3ff;
    color: #7c3aed;
    flex-shrink: 0;
}

.icon-coupon {
    width: 1.35rem;
    height: 1.35rem;
}

.coupon-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.coupon-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.coupon-card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.coupon-card-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coupon-store-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.coupon-store-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.coupon-store-tab span {
    min-width: 1.25rem;
    text-align: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--surface2);
    font-size: 0.78rem;
    color: var(--muted);
}

.coupon-store-tab.is-active {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #5b21b6;
}

.coupon-store-tab.is-active span {
    background: #ede9fe;
    color: #5b21b6;
}

.coupon-tips {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.coupon-tips-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.55rem;
    line-height: 1.5;
}

.deal-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border: 1px dashed #c4b5fd;
    border-radius: 999px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.deal-coupon-badge:hover {
    background: #ede9fe;
    border-color: #a78bfa;
}

.deal-coupon-badge.is-copied {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.deal-coupon-badge--clip {
    cursor: default;
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.deal-coupon-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
}

.deal-coupon-copy {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero--compact.hero--hot h1 .hero-fire-wrap {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.hero--compact.hero--hot h1 .icon-fire {
    width: 1.15rem;
    height: 1.15rem;
}

.hero-badge-hot {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    color: #c2410c;
    gap: 0.4rem;
}

.hero-fire-wrap,
.nav-fire-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.icon-fire {
    color: #ea580c;
    transform-origin: 50% 85%;
    animation: fire-flicker 1.1s ease-in-out infinite;
}

.nav-fire-wrap {
    filter: drop-shadow(0 0 4px rgba(234, 88, 12, 0.35));
    animation: fire-glow-pulse 2.4s ease-in-out infinite;
}

@keyframes fire-flicker {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: scale(1.12) translateY(-2px) rotate(-4deg);
        opacity: 0.95;
    }
    45% {
        transform: scale(0.94) translateY(1px) rotate(3deg);
        opacity: 1;
    }
    70% {
        transform: scale(1.08) translateY(-1px) rotate(-2deg);
        opacity: 0.92;
    }
}

@keyframes fire-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(234, 88, 12, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.55));
    }
}

@media (prefers-reduced-motion: reduce) {
    .icon-fire,
    .nav-fire-wrap {
        animation: none;
    }
}

.hot-hub {
    padding-bottom: 2.5rem;
}

.free-hub {
    padding-bottom: 2.5rem;
}

.free-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.free-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
}

.free-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #bbf7d0;
    text-decoration: none;
}

.free-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    flex-shrink: 0;
}

.icon-free {
    width: 1.35rem;
    height: 1.35rem;
}

.free-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.free-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.free-card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.free-card-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.free-tips {
    margin-top: 2rem;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.free-tips-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.55rem;
    line-height: 1.5;
}

.category-drawer-section {
    padding: 0.35rem 0.75rem 0.75rem;
    border-top: 1px solid var(--surface2);
}

.category-drawer-section .category-drawer-link {
    margin-bottom: 0.05rem;
}

.category-drawer-label {
    margin: 0.55rem 0.35rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.category-drawer-empty {
    margin: 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.category-drawer-link-featured {
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
}

.category-drawer-link-featured:hover {
    background: #d1fae5;
    color: #065f46;
}

.category-drawer-link-hot {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
    font-weight: 800;
}

.category-drawer-link-hot:hover {
    background: #fed7aa;
    color: #9a3412;
}

.category-drawer-link-coupon {
    background: #f5f3ff;
    color: #6d28d9;
    font-weight: 800;
}

.category-drawer-link-coupon:hover {
    background: #ede9fe;
    color: #5b21b6;
}

.section-title {
    font-size: 1.2rem;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-title-inner,
.deal-section-title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.deal-recommendations {
    margin-top: 2.5rem;
    padding-top: 0.25rem;
}

.deal-recommendations .section-title {
    font-size: 1.25rem;
    margin-top: 0;
}

.deal-recommendations .deals-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.deal-recommendations .deal-card {
    height: 100%;
}

.deal-recommendations .deal-card-image {
    aspect-ratio: 1;
    width: 100%;
    flex-shrink: 0;
    padding: 0.5rem;
    background: #f8fafc;
}

.deal-recommendations .deal-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.deal-recommendations .deal-card-image.is-amazon {
    padding: 0.65rem;
}

.deal-recommendations .deal-card-image.is-amazon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-recommendations .deal-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.deal-recommendations .deal-card--minimal .deal-card-body {
    padding: 0.65rem 0.75rem 0.75rem;
    gap: 0.35rem;
}

.deal-recommendations .deal-card--minimal .deal-title {
    font-size: 0.88rem;
    margin: 0;
}

.deal-recommendations .deal-price-block--minimal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.deal-recommendations .deal-price-block--minimal .price-current {
    font-size: 1rem;
    font-weight: 800;
}

.deal-recommendations .deal-price-block--minimal .price-old {
    font-size: 0.82rem;
}

@media (max-width: 960px) {
    .deal-recommendations .deals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .deal-recommendations .deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-chip {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1rem 0.85rem;
    text-align: center;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.category-chip-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-chip-name {
    font-weight: 700;
    font-size: 0.92rem;
}

.category-chip:hover {
    border-color: #fda4af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.category-chip span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; font-weight: 500; }

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    --deal-row-thumb: 11.25rem;
}

.deal-row {
    display: grid;
    grid-template-columns: var(--deal-row-thumb) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--surface2);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.deal-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.deal-row-image {
    position: relative;
    display: block;
    width: var(--deal-row-thumb);
    height: var(--deal-row-thumb);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--surface2);
    text-decoration: none;
}

.deal-row-image-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
}

.deal-row-image-inner img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.deal-row-image .deal-badge {
    z-index: 1;
}

.deal-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    min-width: 0;
    min-height: var(--deal-row-thumb);
    overflow: hidden;
}

.deal-row-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.deal-store-badge,
.deal-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.icon-store-badge {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

.deal-store-badge--amazon {
    background: #131921;
    color: #ff9900;
}

.deal-store-badge--amazon .icon-store-badge {
    stroke: #ff9900;
}

.deal-store-badge--mediamarkt {
    background: #df0000;
    color: #fff;
}

.deal-store-badge--mediamarkt .icon-store-badge {
    stroke: #fff;
}

.deal-store-badge--zalando {
    background: #000;
    color: #fff;
}

.deal-store-badge--zalando .icon-store-badge {
    stroke: #fff;
}

.deal-store-badge--pccomponentes {
    background: #fa6400;
    color: #fff;
}

.deal-store-badge--pccomponentes .icon-store-badge {
    stroke: #fff;
}

.deal-store-badge--default {
    background: #e2e8f0;
    color: #334155;
}

.deal-store-badge--logo {
    padding: 0.28rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.deal-store-badge--logo.deal-store-badge--amazon {
    background: #131921;
    border-color: #131921;
    padding: 0.32rem 0.55rem;
}

.deal-store-badge--logo.deal-store-badge--mediamarkt,
.deal-store-badge--logo.deal-store-badge--zalando,
.deal-store-badge--logo.deal-store-badge--pccomponentes,
.deal-store-badge--logo.deal-store-badge--aliexpress,
.deal-store-badge--logo.deal-store-badge--adidas,
.deal-store-badge--logo.deal-store-badge--voghion,
.deal-store-badge--logo.deal-store-badge--deporte-outlet {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 6px;
}

.deal-store-logo {
    display: block;
    height: 1.15rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
}

.deal-shipping-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.deal-shipping-badge .icon-store-badge {
    stroke: #059669;
}

.deal-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.deal-row-category {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-row-category:hover {
    background: #ffe4e6;
    text-decoration: none;
}

.deal-row-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    min-width: 0;
}

.deal-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.deal-row-title {
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0;
    min-width: 0;
}

.deal-row-title a {
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-row-title a:hover {
    color: var(--accent);
}

.deal-row-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.25rem;
    min-width: 0;
}

.deal-row-footer-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.deal-row-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.deal-row-action,
.deal-row-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.45rem;
    border: 1px solid var(--surface2);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.deal-row-action:hover {
    border-color: #cbd5e1;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

.icon-row-action {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.deal-row-action-count {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    min-width: 0.65rem;
    text-align: center;
}

.deal-row-action-comments:hover .deal-row-action-count {
    color: var(--accent);
}

.deal-actions-compact {
    display: flex;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0;
}

.deal-actions-compact .deal-action-save {
    min-width: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10px;
}

.deal-actions-compact .deal-action-save.is-active {
    color: var(--accent);
    border-color: #fecdd3;
    background: #fff5f7;
}

.deal-actions-compact .deal-action-save.is-active .icon-row-action {
    stroke: var(--accent);
    fill: var(--accent);
}

.deal-row-action-share.is-shared {
    color: #059669;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.deal-row-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.deal-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    min-width: 0;
}

.deal-price-block--row .price-current,
.deal-row-prices .price-current {
    font-size: 1.4rem;
}

.deal-price-block--detail .price-current {
    font-size: clamp(1.65rem, 4vw, 2rem);
}

.price-save-tag,
.price-savings {
    font-size: 0.82rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.deal-social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.45rem;
    color: var(--muted);
    line-height: 1.35;
}

.deal-social-proof--row {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.82rem;
}

.deal-social-proof--card {
    margin: 0.2rem 0 0.45rem;
    font-size: 0.78rem;
}

.deal-social-proof--detail {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.92rem;
}

.deal-social-proof-stars {
    position: relative;
    display: inline-block;
    font-size: 0.95em;
    line-height: 1;
    letter-spacing: 0.02em;
}

.deal-social-proof-stars-bg,
.deal-social-proof-stars-fill {
    display: block;
    white-space: nowrap;
}

.deal-social-proof-stars-bg {
    color: #e2e8f0;
}

.deal-social-proof-stars-fill {
    position: absolute;
    inset: 0 auto auto 0;
    overflow: hidden;
    color: #f59e0b;
    white-space: nowrap;
}

.deal-social-proof-rating {
    font-weight: 800;
    color: #d97706;
}

.deal-social-proof-sep {
    opacity: 0.55;
}

.deal-social-proof-sales {
    font-weight: 600;
    color: #64748b;
}

.deal-rating-sales {
    margin-top: 0.35rem;
    font-weight: 600;
}

.deal-row-cta {
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .deals-list {
        --deal-row-thumb: 7.5rem;
    }

    .deal-row-body {
        padding: 0.75rem 0.85rem;
        gap: 0.4rem;
    }

    .deal-row-image-inner {
        padding: 0.5rem;
    }

    .deal-row-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .deal-row-title a {
        -webkit-line-clamp: 2;
    }

    .deal-row-excerpt {
        -webkit-line-clamp: 2;
        font-size: 0.82rem;
    }

    .deal-row-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .deal-row-footer-end {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .deal-row-cta {
        flex: 1;
        min-width: 0;
    }
}

.deal-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--surface2);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.deal-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.deal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.deal-card-image.is-amazon {
    background: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid var(--surface2);
}

.deal-card-image.is-amazon img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.deal-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.35);
}

.deal-badge--inline {
    position: static;
    display: inline-block;
    box-shadow: none;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    vertical-align: middle;
}

.deal-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.deal-meta { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.deal-meta span { display: inline-flex; align-items: center; gap: 0.15rem; }

.deal-title { font-size: 0.98rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.deal-title a { color: var(--text); text-decoration: none; }
.deal-title a:hover { color: var(--accent); }

.deal-prices { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }

.price-current { font-size: 1.25rem; font-weight: 700; color: #059669; }
.price-old { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.05rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(233, 69, 96, 0.28);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--surface2);
}

.btn-secondary:hover {
    background: #f8fafc;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 0;
}

.auth-card {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: calc(var(--radius) + 2px);
    padding: 1.75rem;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.auth-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card h1 {
    margin-bottom: 0.35rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.auth-lead {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.auth-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.auth-form input {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    font: inherit;
}

.auth-form input:focus {
    outline: 2px solid rgba(14, 165, 233, 0.35);
    border-color: #7dd3fc;
}

.auth-switch {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
}

.account-page {
    padding-bottom: 2rem;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.account-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.25);
    flex-shrink: 0;
}

.account-title {
    margin: 0;
    font-size: 1.5rem;
}

.account-subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.account-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.account-nav-link:hover {
    color: var(--text);
    border-color: #cbd5e1;
    text-decoration: none;
}

.account-nav-link.is-active {
    background: var(--accent-soft);
    border-color: #fecdd3;
    color: var(--accent);
}

.account-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 800;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.account-card-wide {
    max-width: 100%;
}

.account-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    font-weight: 800;
}

.account-lead {
    color: var(--muted);
    margin: -0.35rem 0 1rem;
    font-size: 0.92rem;
}

.account-form {
    margin-top: 0.25rem;
}

.account-meta {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.account-success,
.account-error {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
}

.account-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.account-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.account-logout {
    margin-top: 1.25rem;
}

.account-comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.account-comment-item {
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1rem;
    background: #fafbfc;
}

.account-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.account-comment-head a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
}

.account-comment-head a:hover {
    color: var(--accent);
}

.account-comment-head time {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.account-comment-body {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    white-space: pre-wrap;
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-comments-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.deal-comments-head .deal-section-title {
    margin: 0;
}

.deal-comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
}

.deal-comments-flash {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
}

.deal-comments-flash.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.deal-comments-flash.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.comment-form {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.comment-form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}

.comment-form-input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--surface2);
    border-radius: 10px;
    font: inherit;
    resize: vertical;
    min-height: 110px;
}

.comment-form-input:focus {
    outline: 2px solid rgba(233, 69, 96, 0.25);
    border-color: #fda4af;
}

.comment-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.comment-form-footer .btn-primary {
    margin-top: 0;
}

.comment-form-hint {
    font-size: 0.82rem;
    color: var(--muted);
}

.comment-form-input-guest {
    cursor: pointer;
    background: #fff;
}

.comment-form-input-guest:focus {
    outline: 2px solid rgba(14, 165, 233, 0.35);
    border-color: #7dd3fc;
}

.comment-form-guest .comment-form-footer .btn {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.auth-modal-card {
    position: relative;
    width: min(100%, 400px);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid var(--surface2);
    text-align: center;
}

.auth-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.auth-modal-close:hover {
    color: var(--text);
}

.auth-modal-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.auth-modal-text {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1.15rem;
}

.auth-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.auth-modal-actions .btn {
    margin-top: 0;
    min-width: 140px;
}

body.modal-open {
    overflow: hidden;
}

.comment-empty {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 0.5rem 0;
}

.comment-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
}

.comment-author {
    font-size: 0.92rem;
    color: var(--text);
}

.comment-meta time {
    font-size: 0.8rem;
    color: var(--muted);
}

.comment-body p {
    color: var(--text);
    line-height: 1.55;
    font-size: 0.94rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.deal-detail {
    display: grid;
    gap: 2rem;
}

@media (min-width: 700px) {
    .deal-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

.deal-section-full {
    grid-column: 1 / -1;
    width: 100%;
}

.deal-section-full.deal-section {
    margin-top: 0.5rem;
}

.deal-detail-image {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.deal-detail-image img {
    object-fit: contain;
    max-height: 480px;
    width: auto;
    max-width: 100%;
    height: auto;
    border: none;
    background: transparent;
}

.deal-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.deal-info .deal-actions {
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.deal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.deal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--surface2);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.deal-action-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.deal-action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.deal-action-save.is-active {
    color: var(--accent);
    border-color: #fecdd3;
    background: #fff5f7;
}

.deal-action-save.is-active .deal-action-icon {
    fill: var(--accent);
    stroke: var(--accent);
}

.deal-action-like.is-active {
    color: #059669;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.deal-action-dislike.is-active {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.deal-action-remove {
    font-size: 0.82rem;
}

.nav-saved {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-gratis {
    color: #047857;
    font-weight: 700;
}

.nav-gratis:hover {
    color: #065f46;
}

.nav-coupon {
    color: #6d28d9;
    font-weight: 700;
}

.nav-coupon:hover {
    color: #5b21b6;
}

.nav-hot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c2410c;
    font-weight: 700;
}

.nav-hot:hover {
    color: #9a3412;
}

.nav-saved-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.saved-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.saved-deal-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.saved-deal-image {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    overflow: hidden;
}

.saved-deal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.saved-deal-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.saved-deal-body h2 {
    font-size: 0.92rem;
    line-height: 1.35;
}

.saved-deal-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.saved-deal-body h2 a:hover {
    color: var(--accent);
}

.saved-deal-price {
    font-weight: 700;
    color: #059669;
}

.saved-deal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.deal-gallery {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
}

.deal-gallery-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
    flex-shrink: 0;
    gap: 0.35rem;
}

.deal-gallery-nav {
    width: 36px;
    height: 28px;
    border: 1px solid var(--surface2);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deal-gallery-nav:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.deal-gallery-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.deal-gallery-thumbs-viewport {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 380px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--surface2) transparent;
}

.deal-gallery-thumbs-viewport::-webkit-scrollbar {
    width: 4px;
}

.deal-gallery-thumbs-viewport::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 4px;
}

.deal-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.deal-gallery-thumb {
    border: 2px solid var(--surface2);
    border-radius: 8px;
    padding: 0.25rem;
    background: #fff;
    cursor: pointer;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.deal-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 699px) {
    .deal-gallery {
        flex-direction: column;
    }

    .deal-gallery-slider {
        flex-direction: row;
        width: 100%;
        order: 2;
    }

    .deal-gallery-thumbs-viewport {
        max-height: none;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .deal-gallery-thumbs {
        flex-direction: row;
    }

    .deal-gallery-nav-up,
    .deal-gallery-nav-down {
        transform: rotate(-90deg);
    }

    .deal-detail-image {
        order: 1;
    }
}

.deal-detail h1 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-bottom: 0.75rem; color: var(--text); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }

.deal-cta { margin: 1rem 0; }

.deal-affiliate-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    color: var(--muted);
}

.deal-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.deal-feature-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.65rem;
    width: 100%;
}

@media (min-width: 900px) {
    .deal-section-full .deal-feature-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

.deal-feature-list li {
    line-height: 1.55;
}

.deal-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.deal-rating-stars {
    position: relative;
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.08em;
}

.deal-rating-stars-bg,
.deal-rating-stars-fill {
    display: block;
    white-space: nowrap;
}

.deal-rating-stars-bg {
    color: #e2e8f0;
}

.deal-rating-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #f59e0b;
}

.deal-rating-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.deal-rating-text strong {
    color: var(--text);
}

.deal-rating-link {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
}

.deal-rating-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.deal-rating-link a:hover {
    text-decoration: underline;
}

.deal-community {
    margin-top: 0.5rem;
}

.community-update {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.community-update-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.community-update-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.community-update-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.community-update-author {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.community-update-author:hover {
    color: var(--accent);
}

.community-update-time {
    font-size: 0.82rem;
    color: var(--muted);
}

.community-update-message {
    margin: 0 0 0.85rem;
    line-height: 1.55;
    color: var(--text);
}

.community-update-message.is-positive {
    color: #047857;
}

.community-update-message a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.community-update-message a:hover {
    text-decoration: underline;
}

.community-partner-banner {
    display: block;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
}

.community-partner-banner:hover {
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.community-partner-banner img {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
}

.community-update-note {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.community-price-chart-wrap {
    margin: 0.5rem 0 0.85rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--surface2);
    border-radius: 10px;
    overflow-x: auto;
}

.price-chart {
    width: 100%;
    min-width: 320px;
    height: auto;
    display: block;
}

.price-chart-axis {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.price-chart-label {
    fill: #64748b;
    font-size: 12px;
}

.price-chart-area {
    fill: rgba(14, 165, 233, 0.12);
}

.price-chart-line {
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-chart-dot {
    fill: #0284c7;
    stroke: #fff;
    stroke-width: 2;
}

.community-price-stats {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.65rem;
}

.community-price-stats li {
    background: #fff;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.community-price-stats span {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.community-price-stats strong {
    font-size: 0.95rem;
    color: var(--text);
}

.community-update-verified {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface2);
    font-size: 0.86rem;
    color: var(--muted);
}

.community-update-verified a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.community-update-verified a:hover {
    text-decoration: underline;
}

.deal-detail-desc { color: var(--muted); margin: 1rem 0; }

.deal-section {
    margin: 1.5rem 0 0;
    padding-top: 1.35rem;
    border-top: 1px solid var(--surface2);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { display: inline-flex; align-items: center; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--surface2);
    box-shadow: var(--shadow);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    color: var(--text);
    text-decoration: none;
}

.pagination a:hover { border-color: var(--accent); }
.pagination .current { border-color: var(--accent); background: #fff5f7; }

/* —— Paginación profesional (calientes y categorías) —— */
.pagination--pro {
    align-items: center;
    gap: 0.35rem;
}

.pagination--pro a,
.pagination--pro span {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.pagination--pro a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination--pro .current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.pagination-arrow {
    gap: 0.3rem;
    padding: 0.5rem 0.9rem !important;
}

.pagination-arrow .icon-btn {
    width: 1.05rem;
    height: 1.05rem;
}

.pagination-arrow.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-gap {
    border: none !important;
    background: transparent !important;
    min-width: 1.4rem !important;
    color: var(--muted);
    padding: 0 0.1rem !important;
}

/* Pegajosa abajo: se mantiene flotando al hacer scroll por la lista */
.pagination--sticky {
    position: sticky;
    bottom: 1rem;
    z-index: 30;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--surface2);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

@media (max-width: 600px) {
    .pagination-arrow-label { display: none; }
    .pagination-arrow { padding: 0.5rem 0.6rem !important; }
}

/* —— Scroll infinito: centinela y cargador —— */
.infinite-sentinel {
    width: 100%;
    height: 1px;
}

.infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.infinite-loader[hidden] {
    display: none;
}

.infinite-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--surface2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gc-spin 0.7s linear infinite;
}

@keyframes gc-spin {
    to { transform: rotate(360deg); }
}

/* —— Botones flotantes: subir arriba / ir al pie —— */
.scroll-fab-cluster {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.scroll-fab-cluster.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-fab {
    width: 2.85rem;
    height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--surface2);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    transition: border-color .15s ease, color .15s ease, background .15s ease, transform .12s ease;
}

.scroll-fab:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.scroll-fab svg {
    width: 1.4rem;
    height: 1.4rem;
}

.scroll-fab--footer.is-hidden {
    display: none;
}

@media (max-width: 600px) {
    .scroll-fab-cluster { bottom: 4.75rem; right: 0.75rem; }
    .scroll-fab { width: 2.6rem; height: 2.6rem; }
}

.legal-page { max-width: 720px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 1rem; color: var(--text); }
.legal-page h2 { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; color: var(--text); }
.legal-page p, .legal-page ul { margin-bottom: 0.75rem; color: var(--muted); }

/* —— Footer (estilo comunidad) —— */
.site-footer--rich {
    margin-top: auto;
    padding: 0;
    background: #12151c;
    color: #c8cdd8;
    border-top: none;
}

.footer-community {
    background: linear-gradient(180deg, #fff 0%, #f4f6fa 100%);
    color: var(--text);
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--surface2);
}

.footer-community-inner {
    text-align: center;
    max-width: 42rem;
}

.footer-community-title {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.footer-wave {
    display: inline-block;
    margin-right: 0.25rem;
}

.footer-community-text {
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 38rem;
}

.footer-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--avatar-bg, var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.footer-avatar:hover {
    transform: translateY(-2px);
}

.footer-avatar-initials {
    line-height: 1;
}

.footer-columns {
    padding: 2.25rem 0 2rem;
    background: #12151c;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
}

.footer-col-title {
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.footer-links-list,
.footer-social {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social--brand {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-social--brand li + li {
    margin-top: 0;
}

.footer-links-list li + li,
.footer-social:not(.footer-social--brand) li + li {
    margin-top: 0.55rem;
}

.footer-links-list a,
.footer-social-link {
    color: #a8b0c0;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links-list a:hover,
.footer-social-link:hover {
    color: #fff;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.footer-social-btn--facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social-btn--x:hover,
.footer-social-btn--twitter:hover {
    background: #0f1419;
    border-color: #2f3336;
}

.footer-social-btn--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-social-btn--telegram:hover {
    background: #26a5e4;
    border-color: #26a5e4;
}

.footer-social-btn--instagram:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    border-color: transparent;
}

.footer-social-btn--tiktok:hover {
    background: #010101;
    border-color: #25f4ee;
}

.footer-social-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.footer-social-link .footer-social-icon {
    color: var(--accent);
}

.footer-social-hint {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #8b95a8;
}

.footer-muted {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #7d8699;
}

.footer-trust {
    padding: 0 0 2rem;
    background: #12151c;
}

.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.footer-trust-card {
    background: #1a1f2a;
    border: 1px solid #2a3140;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}

.footer-trust-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.footer-trust-card p {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #9aa3b5;
}

.footer-cta-btn {
    display: inline-flex;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
}

.footer-badges {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-badges li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #b8c0d0;
}

.footer-badges li + li {
    margin-top: 0.65rem;
}

.footer-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--accent2);
    margin-top: 0.1rem;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-bottom: 0.65rem;
}

.footer-partner--ali {
    font-weight: 700;
    font-size: 1rem;
    color: #e62e04;
    letter-spacing: -0.02em;
}

.footer-partner-logo {
    height: 1.5rem;
    width: auto;
    filter: brightness(0) invert(0.85);
    opacity: 0.9;
}

.footer-partners-note {
    margin: 0;
}

.footer-bottom {
    padding: 1.5rem 0 2rem;
    background: #0d0f14;
    border-top: 1px solid #2a3140;
}

.footer-bottom-inner {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto;
}

.footer-copyright {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: #8b93a5;
}

.footer-disclaimer {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #6d7588;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-community {
        padding: 2rem 0 1.5rem;
    }

    .footer-avatar {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.65rem;
    }
}

/* Footer legacy (páginas admin sin --rich) */
.site-footer:not(.site-footer--rich) {
    background: var(--surface);
    border-top: 1px solid var(--surface2);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner { text-align: center; font-size: 0.85rem; color: var(--muted); }

.affiliate-notice { margin-bottom: 1rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nav-admin {
    background: #eef2ff;
    color: #4338ca !important;
}

.nav-admin:hover {
    background: #e0e7ff;
}

.admin-panel {
    padding-bottom: 2.5rem;
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.admin-panel-title {
    margin: 0;
    font-size: 1.5rem;
}

.admin-panel-lead {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-feed-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.45rem;
}

.admin-import-summary {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.35rem;
}

.admin-import-form {
    display: grid;
    gap: 1rem;
}

.admin-import-limits {
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-import-limits legend {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.65rem;
}

.admin-import-limit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-import-limit-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-import-limit-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.admin-import-limit-option input[type="radio"] {
    margin: 0;
}

.admin-import-limit-option--custom {
    flex-wrap: wrap;
}

.admin-import-limit-option--all small {
    font-weight: 500;
    color: var(--muted);
}

.admin-import-all-hint {
    margin: 0.75rem 0 0;
    max-width: 52rem;
}

.admin-import-skip-images {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
}

.admin-import-skip-images input {
    margin-top: 0.15rem;
}

.admin-import-limit-custom {
    width: 5.5rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
    font: inherit;
}

.admin-import-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.admin-import-daily-card {
    padding: 1rem;
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    background: var(--surface);
}

.admin-import-daily-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.admin-import-limit-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
}

.admin-code-block {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    overflow-x: auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.85rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-stat:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.admin-stat.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.admin-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.admin-store-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.admin-store-filters-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    margin-right: 0.15rem;
}

.admin-store-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s;
}

.admin-store-filter:hover {
    border-color: #cbd5e1;
    text-decoration: none;
}

.admin-store-filter.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-store-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-store-filter.is-active .admin-store-filter-count {
    background: rgba(255, 255, 255, 0.55);
}

.admin-results-meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-sort-form label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.admin-sort-form select {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
}

.admin-deals-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-bulk-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
}

.admin-bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.admin-bulk-count {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    margin-right: auto;
}

.admin-bulk-delete:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-bulk-form.is-all-selected .admin-deal-row {
    border-color: #fecdd3;
}

.admin-deal-row {
    display: grid;
    grid-template-columns: auto 7.5rem minmax(0, 1fr);
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-deal-select {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    background: #f8fafc;
    border-right: 1px solid var(--surface2);
    cursor: pointer;
}

.admin-deal-select input {
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.admin-deal-row:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-hover);
}

.admin-deal-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-right: 1px solid var(--surface2);
    padding: 0.5rem;
    text-decoration: none;
}

.admin-deal-image.is-amazon {
    background: #fff;
}

.admin-deal-image img {
    display: block;
    max-width: 100%;
    max-height: 6.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.admin-deal-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    min-width: 0;
}

.admin-deal-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.admin-deal-id {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    background: #f1f5f9;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.admin-deal-store {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.admin-deal-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: auto;
}

.admin-deal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.admin-deal-title a {
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-deal-title a:hover {
    color: var(--accent);
}

.admin-deal-asin {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    font-family: ui-monospace, monospace;
}

.admin-deal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.25rem;
}

.admin-deal-prices {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.admin-deal-prices .price-current {
    font-size: 1.2rem;
}

.admin-deal-meta-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.admin-deal-meta-dates span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}

.btn-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    box-shadow: none;
}

.btn-danger:hover {
    background: #fee2e2;
    color: #991b1b;
    filter: none;
    transform: none;
    text-decoration: none;
}

.admin-flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-flash--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.admin-flash--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.admin-delete-form {
    display: inline;
    margin: 0;
}

.admin-delete-form button {
    margin: 0;
}

.admin-deal-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.admin-deal-top .deal-store-badge--logo {
    padding: 0.2rem 0.35rem;
}

.admin-deal-top .deal-store-logo {
    height: 0.95rem;
}

.admin-deal-top .deal-shipping-badge {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .admin-deal-row {
        grid-template-columns: auto 5.5rem 1fr;
    }

    .admin-bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-bulk-count {
        margin-right: 0;
    }

    .admin-deal-image img {
        max-height: 5rem;
    }

    .admin-deal-category {
        margin-left: 0;
        width: 100%;
    }

    .admin-deal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-deal-actions {
        width: 100%;
    }

    .admin-deal-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.admin-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-status--published {
    background: #ecfdf5;
    color: #047857;
}

.admin-status--draft {
    background: #f1f5f9;
    color: #475569;
}

.admin-status--expired {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.admin-pagination span {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 600;
}

.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent2); }

.expired-banner {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.expired-banner--soft {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* —— Legal pages —— */
.legal-page {
    padding: 2rem 0 3rem;
}

.legal-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.5rem !important;
}

.legal-page h3 {
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
    color: var(--text);
}

.legal-page li {
    margin-bottom: 0.35rem;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--surface2);
    font-size: 0.9rem;
}

.legal-nav a {
    color: var(--accent2);
    font-weight: 600;
}

.legal-cookie-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.25rem;
}

.legal-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.legal-cookie-table th,
.legal-cookie-table td {
    border: 1px solid var(--surface2);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.legal-cookie-table th {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 700;
}

.footer-nav--legal {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface2);
}

.footer-nav-label {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

/* —— Cookie consent —— */
.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--surface2);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--muted);
    text-decoration: none;
}

.cookie-consent-root[hidden] {
    display: none !important;
}

.cookie-consent-root {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.cookie-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    pointer-events: auto;
}

.cookie-consent-banner,
.cookie-consent-settings {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: min(100%, 640px);
    max-height: min(92vh, 720px);
    overflow-y: auto;
}

.cookie-consent-banner-inner {
    background: var(--surface);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(233, 69, 96, 0.15);
    padding: 1.5rem 1.5rem 1.25rem;
}

.cookie-consent-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.cookie-consent-logo {
    max-width: min(220px, 100%);
    height: auto;
}

.cookie-consent-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text);
    text-align: center;
}

.cookie-consent-text {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.cookie-consent-text--compact {
    font-size: 0.86rem;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.25rem 0 0.75rem;
}

.cookie-consent-btn {
    width: 100%;
    justify-content: center;
}

.cookie-consent-foot {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0;
}

.cookie-consent-settings[hidden] {
    display: none !important;
}

.cookie-consent-settings-panel {
    background: var(--surface);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--surface2);
    padding: 1.35rem 1.35rem 1.15rem;
}

.cookie-consent-settings-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.cookie-consent-option {
    border: 1px solid var(--surface2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    background: #fafbfc;
}

.cookie-consent-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cookie-consent-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent2);
    background: #ecfdf5;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
}

.cookie-consent-option-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

.cookie-consent-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.cookie-consent-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-toggle-ui {
    width: 2.5rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--surface2);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.cookie-consent-toggle-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui {
    background: var(--accent);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle-ui::after {
    transform: translateX(1.1rem);
}

.cookie-consent-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

.cookie-consent-settings-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 520px) {
    .cookie-consent-root {
        align-items: center;
    }

    .cookie-consent-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cookie-consent-btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 9rem;
    }

    .cookie-consent-settings-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cookie-consent-settings-actions .btn {
        width: auto;
        flex: 1 1 auto;
    }
}

/* —— Contenido SEO: intro categoría, FAQ, compartir, guías —— */
.category-intro {
    margin: 0.5rem 0 1.5rem;
    max-width: 60rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.category-intro strong {
    color: var(--text);
}

.faq-section {
    margin: 2.5rem 0 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 52rem;
}

.faq-item {
    border: 1px solid var(--surface2);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1.1rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-right: 2.5rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent);
    line-height: 1;
}

.faq-item[open] .faq-question::after { content: '–'; }

.faq-answer {
    padding: 0 1.1rem 1.1rem;
    color: var(--muted);
    line-height: 1.65;
}

.faq-answer p { margin: 0; }

/* Compartir en la ficha */
.deal-share {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--surface2);
}

.deal-share-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.deal-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deal-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.deal-share-btn:hover { transform: translateY(-1px); }
.deal-share-btn .icon-share { width: 1.05rem; height: 1.05rem; }
.deal-share-btn--wa:hover { border-color: #25d366; color: #1ebe5b; }
.deal-share-btn--tg:hover { border-color: #29a9eb; color: #1c93d2; }
.deal-share-btn--x:hover { border-color: #000; color: #000; }
.deal-share-btn--copy.is-copied { border-color: var(--accent2); color: var(--accent2); }

.deal-lowest-price {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    font-size: 0.85rem;
    font-weight: 600;
}

.deal-lowest-price .icon { width: 1rem; height: 1rem; }

/* Guías / blog */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.guide-card {
    border: 1px solid var(--surface2);
    border-radius: 12px;
    background: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.guide-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    height: 100%;
    text-decoration: none;
    color: var(--text);
}

.guide-card-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft);
}

.guide-card-icon .icon { color: var(--accent); }

.guide-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.guide-card-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.guide-card-cta .icon { width: 1rem; height: 1rem; }

.guide-article {
    max-width: 46rem;
    margin: 1rem 0 2rem;
}

.guide-article-head h1 {
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.guide-article-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 1.5rem;
}

.guide-article-body {
    color: var(--text);
    line-height: 1.75;
    font-size: 1rem;
}

.guide-article-body h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.2rem;
}

.guide-article-body p { margin: 0 0 1rem; }
.guide-article-body ul { margin: 0 0 1rem 1.25rem; }
.guide-article-body li { margin-bottom: 0.4rem; }

.guide-article-cta { margin-top: 2rem; }
.guide-more { margin-top: 3rem; }

/* Árbol de categorías (estilo Chollometro) */
.category-drawer-tree {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.category-drawer-group-head {
    display: flex;
    align-items: stretch;
    gap: 0.15rem;
}

.category-drawer-toggle {
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.category-drawer-toggle:hover,
.category-drawer-group.is-open .category-drawer-toggle {
    background: var(--surface2);
    color: var(--text);
}

.category-drawer-chevron {
    transition: transform 0.2s ease;
}

.category-drawer-group.is-open .category-drawer-chevron {
    transform: rotate(90deg);
}

.category-drawer-link-parent {
    flex: 1;
    min-width: 0;
    font-weight: 700;
}

.category-drawer-tree .category-drawer-link {
    white-space: nowrap;
}

.category-drawer-tree .category-drawer-link > span:not(.category-drawer-count) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-drawer-tree .category-drawer-count {
    flex: 0 0 auto;
    margin-left: 0.25rem;
}

.category-drawer-children[hidden] {
    display: none !important;
}

.category-drawer-children:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.1rem 0 0.35rem 2.15rem;
}

.category-drawer-link-child {
    font-size: 0.86rem;
    color: var(--muted);
}

.category-drawer-link-child:hover {
    color: var(--text);
}

.categories-hub {
    margin: 1.5rem auto 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.category-hub-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.category-hub-card-head {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
}

.category-hub-card-link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    padding: 0.65rem 0.65rem 0.65rem 0.35rem;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.category-hub-card-link:hover {
    background: var(--surface2);
}

.category-hub-card > .category-hub-card-link {
    margin: 0.35rem;
    padding: 0.85rem 1rem;
}

.category-hub-toggle {
    flex: 0 0 2.25rem;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.category-hub-toggle:hover,
.category-hub-card.is-open .category-hub-toggle {
    background: var(--surface2);
    color: var(--text);
}

.category-hub-toggle .category-drawer-chevron {
    transition: transform 0.2s ease;
}

.category-hub-card.is-open .category-hub-toggle .category-drawer-chevron {
    transform: rotate(90deg);
}

.category-hub-children[hidden] {
    display: none !important;
}

.category-hub-children:not([hidden]) {
    display: block;
}

.category-hub-card-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface2);
    color: var(--accent);
}

.category-hub-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.category-hub-card-title {
    font-size: 1rem;
    line-height: 1.25;
}

.category-hub-card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.category-hub-card-count {
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface2);
    font-size: 0.78rem;
    font-weight: 800;
}

.category-hub-sublist {
    list-style: none;
    margin: 0;
    padding: 0 1rem 0.9rem 2.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.category-hub-sublist a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    font-size: 0.8rem;
    text-decoration: none;
}

.category-hub-sublist a:hover {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface2));
}

.category-hub-sublist em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
}

.category-subnav {
    margin: 0 0 1.25rem;
}

.category-subnav-label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.category-subnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-subnav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.86rem;
    text-decoration: none;
    font-weight: 600;
}

.category-subnav-chip:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface2));
}

.category-subnav-chip em {
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--muted);
}

.category-desc-muted {
    color: var(--muted);
    margin: 0.5rem 0 1.25rem;
}

.container--category {
    max-width: 1320px;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 285px) minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    align-items: start;
    margin-top: 1.25rem;
}

.category-results {
    min-width: 0;
}

.deals-list-category {
    --deal-row-thumb: 10rem;
}

.deals-list-category .deal-row-body {
    padding: 1rem 1.35rem;
    overflow: visible;
}

.deals-list-category .deal-row-title a {
    -webkit-line-clamp: 3;
}

.deals-list-category .deal-row-footer {
    gap: 0.75rem 1.25rem;
}

.deals-list-category .deal-price-block--row {
    flex: 1 1 auto;
    min-width: 0;
}

.deals-list-category .deal-row-footer-end {
    flex-shrink: 0;
}

@media (min-width: 901px) {
    .category-layout {
        grid-template-columns: 278px minmax(0, 1fr);
        gap: 1.25rem 2rem;
    }
}

.category-filters-toggle {
    display: none;
    width: 100%;
    margin-bottom: 0.75rem;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px;
    font-weight: 700;
}

.category-filters-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.category-filters {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--border) 80%, #cbd5e1);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.category-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, #e2e8f0);
}

.category-filters-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.category-filters-clear {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding: 0.25rem 0.45rem;
    border-radius: 8px;
}

.category-filters-clear:hover {
    background: var(--accent-soft);
}

.category-filters-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.category-filter-block {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, #e2e8f0);
}

.category-filter-block--last {
    border-bottom: 0;
}

.category-filter-heading {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.category-filter-control {
    position: relative;
}

.category-filter-control--search .category-filter-input {
    padding-left: 2.35rem;
}

.category-filter-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted);
    pointer-events: none;
}

.category-filter-select,
.category-filter-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border) 75%, #cbd5e1);
    background: #f8fafc;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-filter-select {
    appearance: none;
    padding-right: 2.2rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1rem;
}

.category-filter-select:hover,
.category-filter-input:hover {
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
    background: var(--surface);
}

.category-filter-select:focus,
.category-filter-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
    background: var(--surface);
}

.category-filter-sublabel {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.category-filter-price-slider {
    margin-bottom: 0.75rem;
}

.category-filter-price-slider-track {
    position: relative;
    height: 1.35rem;
    margin: 0.35rem 0 0.55rem;
}

.category-filter-price-slider-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
}

.category-filter-price-slider-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: var(--accent-gradient);
    pointer-events: none;
    z-index: 1;
}

.category-filter-price-range {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

.category-filter-price-range--max {
    z-index: 3;
}

.category-filter-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    background: var(--accent);
    box-shadow: 0 1px 6px rgba(233, 69, 96, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.category-filter-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    background: var(--accent);
    box-shadow: 0 1px 6px rgba(233, 69, 96, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.category-filter-price-range::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.category-filter-price-range::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}

.category-filter-price-slider-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
}

.category-filter-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.category-filter-price-field {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border) 75%, #cbd5e1);
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.category-filter-price-field:focus-within {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
    background: var(--surface);
}

.category-filter-price-prefix {
    padding: 0.62rem 0 0.62rem 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

.category-filter-price-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.62rem 0.5rem 0.62rem 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.category-filter-price-field input:focus {
    outline: none;
}

.category-filter-range-sep {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.category-filter-hint {
    margin: 0.5rem 0 0;
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.35;
}

.category-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.category-filter-options--stores {
    max-height: 11rem;
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
}

.category-filter-option {
    display: block;
    margin: 0;
    cursor: pointer;
}

.category-filter-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.category-filter-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f8fafc;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.category-filter-option:hover .category-filter-option-body {
    border-color: color-mix(in srgb, var(--border) 80%, #94a3b8);
    background: var(--surface);
}

.category-filter-option.is-selected .category-filter-option-body,
.category-filter-option:has(input:checked) .category-filter-option-body {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--surface2));
    background: var(--accent-soft);
    box-shadow: inset 3px 0 0 var(--accent);
}

.category-filter-option-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

.category-filter-option-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.category-filter-option--mild .category-filter-option-icon { color: #d97706; }
.category-filter-option--warm .category-filter-option-icon { color: #ea580c; }
.category-filter-option--hot .category-filter-option-icon { color: #dc2626; }

.category-filter-option-count {
    flex-shrink: 0;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--muted);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface2) 55%, var(--surface));
}

.category-filter-option.is-selected .category-filter-option-count,
.category-filter-option:has(input:checked) .category-filter-option-count {
    color: color-mix(in srgb, var(--accent) 75%, var(--text));
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.category-filters-live-hint {
    margin: 0.5rem 1.1rem 1rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    color: var(--muted);
    background: #f8fafc;
}

.category-filters.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.category-filters.is-loading .category-filters-live-hint {
    color: var(--accent);
    background: var(--accent-soft);
}

.category-results-meta {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}

.category-empty-state {
    margin-top: 1rem;
}

.deal-temp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.deal-temp-badge--mild {
    background: color-mix(in srgb, #f59e0b 14%, var(--surface2));
    color: #b45309;
    border: 1px solid color-mix(in srgb, #f59e0b 30%, var(--border));
}

.deal-temp-badge--warm {
    background: color-mix(in srgb, #ea580c 16%, var(--surface2));
    color: #c2410c;
    border: 1px solid color-mix(in srgb, #ea580c 35%, var(--border));
}

.deal-temp-badge--hot {
    background: color-mix(in srgb, #dc2626 18%, var(--surface2));
    color: #b91c1c;
    border: 1px solid color-mix(in srgb, #dc2626 40%, var(--border));
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-filters-toggle {
        display: inline-flex;
        grid-column: 1 / -1;
    }

    .category-filters {
        display: none;
        width: 100%;
    }

    .category-filters.is-open {
        display: block;
    }
}

/* ===== Comunidad (v1): validación de ofertas ===== */
.deal-validation {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.deal-validation-question {
    margin: 0 0 0.6rem;
    font-weight: 700;
    color: var(--text);
}

.deal-validation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deal-validation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.deal-validation-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.deal-validation-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.deal-validation-alive.is-active {
    background: #ecfdf5;
    border-color: #34d399;
    color: #047857;
}

.deal-validation-dead.is-active {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.deal-validation-count {
    min-width: 1.2em;
    padding: 0 0.3em;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
    background: color-mix(in srgb, var(--muted) 16%, transparent);
    border-radius: 999px;
}

.deal-validation-status {
    margin: 0.7rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.deal-validation-status--alive { color: #047857; font-weight: 600; }
.deal-validation-status--doubt { color: #b45309; font-weight: 600; }

.deal-validation-points {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border-radius: 999px;
}

.deal-validation-login {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.deal-validation-login a { color: var(--accent); font-weight: 600; }

/* ===== Comunidad (v1): perfil gamificado ===== */
.gc-community-card { margin-bottom: 1.25rem; }

.gc-level-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.gc-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.7rem;
    background: var(--accent-soft);
    border-radius: 50%;
}

.gc-level-info { line-height: 1.3; }
.gc-level-name { margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.gc-level-points { margin: 0; color: var(--muted); }
.gc-level-points strong { color: var(--accent); font-size: 1.05rem; }

.gc-level-progress { margin-bottom: 1rem; }

.gc-level-bar {
    height: 0.55rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.gc-level-fill {
    display: block;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.gc-level-next { margin: 0.45rem 0 0; font-size: 0.9rem; color: var(--muted); }

.gc-badges-title {
    margin: 1.1rem 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.gc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.gc-badge-icon { font-size: 1.05rem; }

.gc-activity {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gc-activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.gc-activity-item:last-child { border-bottom: 0; }
.gc-activity-reason { flex: 1; color: var(--text); }

.gc-activity-points {
    font-weight: 700;
    color: #047857;
}

.gc-activity-points.is-negative { color: #b91c1c; }
.gc-activity-time { color: var(--muted); font-size: 0.82rem; }

.gc-community-hint {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ===== Comunidad (v2): ranking de cazadores ===== */
.ranking-page { max-width: 760px; }

.ranking-head { margin-bottom: 1rem; }
.ranking-lead { margin: 0.35rem 0 0; color: var(--muted); }

.ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.ranking-tab {
    padding: 0.45rem 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: background 0.15s, border-color 0.15s;
}

.ranking-tab:hover { border-color: var(--accent); }

.ranking-tab.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.ranking-you {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

.ranking-you a { color: var(--accent); font-weight: 600; }

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.ranking-row.is-top {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: var(--shadow);
}

.ranking-row.is-you {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.ranking-pos {
    flex: 0 0 2.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    color: var(--muted);
}

.ranking-avatar {
    flex: 0 0 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: var(--accent-gradient);
    border-radius: 50%;
}

.ranking-name {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.ranking-you-tag {
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    vertical-align: middle;
}

.ranking-points {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.92rem;
}

.ranking-points strong { color: var(--accent); font-size: 1.05rem; }

.ranking-foot-note {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== Comunidad (v2): nivel del autor en comentarios ===== */
.comment-level {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.05rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    white-space: nowrap;
}

.comment-level-icon { font-size: 0.85rem; line-height: 1; }

/* ===== Comunidad (v2): rachas y misiones diarias ===== */
.gc-streak {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: #9a3412;
}

.gc-streak-flame { font-size: 1.2rem; }
.gc-streak strong { font-size: 1.05rem; }

.gc-missions {
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

.gc-mission {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.gc-mission:last-child { border-bottom: 0; }
.gc-mission-check { font-size: 1rem; }
.gc-mission-label { flex: 1; color: var(--text); }
.gc-mission.is-done .gc-mission-label { color: var(--muted); text-decoration: line-through; }

.gc-mission-progress {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.85rem;
}

.gc-mission-reward {
    min-width: 2rem;
    text-align: center;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    font-size: 0.82rem;
}

.gc-mission.is-done .gc-mission-reward { opacity: 0.55; }

/* ===== Comunidad (v2): invita a un amigo ===== */
.gc-invite {
    padding: 0.9rem 1rem;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
    border-radius: var(--radius-sm);
}

.gc-invite-text { margin: 0 0 0.7rem; font-size: 0.92rem; color: var(--text); }

.gc-invite-link {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gc-invite-input {
    flex: 1;
    min-width: 12rem;
    padding: 0.5rem 0.7rem;
    font: inherit;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.gc-invite-copy { white-space: nowrap; }
.gc-invite-copy.is-copied { background: #047857; border-color: #047857; }

.auth-referral {
    margin: 0 0 1rem;
    padding: 0.6rem 0.85rem;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text);
}

/* ===== Comunidad (v2): ofertas de usuarios ===== */
/* Tarjeta ancha para el formulario de subir chollo (anula el width fijo de .auth-card). */
.auth-card.auth-card-wide {
    width: min(100%, 620px);
    text-align: left;
}
.auth-card-wide .auth-card-icon { margin-left: 0; margin-right: auto; }
.auth-card-wide h1,
.auth-card-wide .auth-lead { text-align: left; }

/* Todos los campos del formulario (input, select y textarea) con el mismo aspecto. */
.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--surface2, var(--border));
    border-radius: 10px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' 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.8rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

.auth-form textarea {
    resize: vertical;
    min-height: 5.5rem;
    line-height: 1.5;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder { color: var(--muted); }

/* Dos campos por fila (precio/precio anterior, tienda/categoría). */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.form-row-2 > label { min-width: 0; }
@media (max-width: 520px) { .form-row-2 { grid-template-columns: 1fr; } }

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

.community-deals-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.community-deals-lead { margin: 0.3rem 0 0; color: var(--muted); }

.community-deals-flash {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #ecfdf5;
    border: 1px solid #34d399;
    border-radius: var(--radius-sm);
    color: #047857;
    font-size: 0.95rem;
}

.community-deals-list { margin: 1rem 0 0; padding: 0; list-style: none; }

.community-deal {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.7rem;
}

.community-deal-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex: 0 0 2.6rem;
}

.cd-vote {
    width: 2.2rem;
    height: 1.8rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cd-vote:hover:not(:disabled) { border-color: var(--accent); }
.cd-vote-up.is-active { color: #047857; background: #ecfdf5; border-color: #34d399; }
.cd-vote-down.is-active { color: #b91c1c; background: #fef2f2; border-color: #f87171; }
.cd-score { font-weight: 800; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }

.community-deal-body { flex: 1; min-width: 0; }

.community-deal-title { margin: 0 0 0.3rem; font-size: 1.05rem; }
.community-deal-title a { color: var(--text); text-decoration: none; }
.community-deal-title a:hover { color: var(--accent); }

.community-deal-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0 0 0.3rem;
}

.community-deal-price { font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.community-deal-old { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.community-deal-store { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); font-size: 0.88rem; }
.community-deal-desc { margin: 0 0 0.4rem; color: var(--text); font-size: 0.92rem; }
.community-deal-author { margin: 0; color: var(--muted); font-size: 0.82rem; }

.community-deal-go { flex: 0 0 auto; white-space: nowrap; align-self: center; }
@media (max-width: 600px) {
    .community-deal { flex-wrap: wrap; }
    .community-deal-go { width: 100%; justify-content: center; margin-top: 0.5rem; }
}

/* Moderación admin */
.admin-moderation-item { margin-bottom: 1rem; }
.admin-moderation-title { font-size: 1.1rem; margin: 0 0 0.6rem; }
.admin-moderation-desc {
    margin: 0.6rem 0;
    padding: 0.6rem 0.8rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}
.admin-moderation-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }

/* Mis chollos en el perfil */
.gc-mydeals-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.gc-mydeals { margin: 0 0 0.5rem; padding: 0; list-style: none; }
.gc-mydeal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.gc-mydeal:last-child { border-bottom: 0; }
.gc-mydeal-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.gc-mydeal-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
}
.gc-mydeal-status--pending { color: #b45309; background: #fffbeb; }
.gc-mydeal-status--approved { color: #047857; background: #ecfdf5; }
.gc-mydeal-status--rejected { color: #b91c1c; background: #fef2f2; }
.gc-mydeal-score { color: var(--muted); font-size: 0.82rem; }

/* ===== Comunidad (v2): pestaña "Progreso" rediseñada ===== */
/* Panel de nivel (hero con degradado de marca). */
.gc-level-panel {
    background: var(--accent-gradient);
    border: 0;
    color: #fff;
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.28);
    margin-bottom: 1rem;
}

.gc-level-panel .gc-level-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.gc-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.9rem;
    height: 3.9rem;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.gc-level-info { line-height: 1.2; min-width: 0; }
.gc-level-eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}
.gc-level-panel .gc-level-name { margin: 0.15rem 0 0; font-size: 1.55rem; font-weight: 800; color: #fff; }

.gc-level-side {
    margin-left: auto;
    text-align: right;
    line-height: 1;
    flex: 0 0 auto;
}
.gc-level-points-num { display: block; font-size: 2.3rem; font-weight: 800; color: #fff; }
.gc-level-points-cap {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.gc-level-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.86rem;
}
.gc-level-streak strong { font-size: 1rem; }

.gc-level-progress-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.gc-level-progress-pct {
    font-weight: 800;
    background: rgba(255, 255, 255, 0.22);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}
.gc-level-progress-next { opacity: 0.92; }

.gc-level-panel .gc-level-bar {
    height: 0.7rem;
    background: rgba(255, 255, 255, 0.25);
    border: 0;
}
.gc-level-panel .gc-level-fill {
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.gc-level-panel .gc-level-next { margin: 0.6rem 0 0; color: rgba(255, 255, 255, 0.95); font-size: 0.9rem; }
.gc-level-next-name { font-weight: 700; }
.gc-level-next--max { font-weight: 700; }

@media (max-width: 460px) {
    .gc-level-panel .gc-level-head { flex-wrap: wrap; }
    .gc-level-side { margin-left: 0; text-align: left; width: 100%; }
    .gc-level-points-num { font-size: 1.9rem; }
}

/* Rejilla de tarjetas del progreso. */
.gc-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}
.gc-card-full { grid-column: 1 / -1; }

/* Cabecera de cada tarjeta con icono. */
.gc-subhead {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}
.gc-subhead-icon { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: 0 0 auto; }
.gc-subnote { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Checks de misión (círculo con tilde, sin emojis). */
.gc-mission { gap: 0.7rem; }
.gc-mission-check {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}
.gc-mission.is-done .gc-mission-check {
    background: #10b981;
    border-color: #10b981;
}
.gc-mission.is-done .gc-mission-check::after {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.12rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Insignias como medallas con icono SVG de color. */
.gc-badge {
    padding: 0.4rem 0.85rem 0.4rem 0.45rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gc-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    flex: 0 0 auto;
}
.gc-badge-svg { width: 1rem; height: 1rem; color: inherit; }

/* Tono de color de cada insignia. */
.gc-badge--violet .gc-badge-icon { background: #8b5cf6; }
.gc-badge--green  .gc-badge-icon { background: #10b981; }
.gc-badge--blue   .gc-badge-icon { background: #3b82f6; }
.gc-badge--teal   .gc-badge-icon { background: #14b8a6; }
.gc-badge--amber  .gc-badge-icon { background: #f59e0b; }
.gc-badge--rose   .gc-badge-icon { background: #ec4899; }
.gc-badge--red    .gc-badge-icon { background: #ef4444; }

/* Insignias bloqueadas (en gris, para motivar a desbloquearlas). */
.gc-badge.is-locked { opacity: 0.7; }
.gc-badge.is-locked .gc-badge-icon { background: #cbd5e1; }
.gc-badge.is-locked .gc-badge-name { color: var(--muted); font-weight: 600; }

/* Contador de insignias en la cabecera. */
.gc-badge-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
}

/* Página de insignias: rejilla de tarjetas con icono + nombre + descripción. */
.gc-badges--page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.7rem;
}
.gc-badges--page .gc-badge {
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
}
.gc-badges--page .gc-badge-icon { width: 2.2rem; height: 2.2rem; }
.gc-badges--page .gc-badge-svg { width: 1.15rem; height: 1.15rem; }
.gc-badge-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: left; }
.gc-badges--page .gc-badge-name { font-weight: 700; }
.gc-badge-desc { font-size: 0.76rem; color: var(--muted); font-weight: 500; }

/* ===== Cuenta: layout tipo dashboard (menú lateral izquierdo) ===== */
.account-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.account-sidebar { min-width: 0; }
.account-content { min-width: 0; }

/* El menú pasa a columna vertical dentro de una tarjeta. */
.account-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
    margin-bottom: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.account-nav-link {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
}

.account-nav-link:hover {
    background: var(--bg);
    border-color: transparent;
    color: var(--text);
}

.account-nav-link.is-active {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent);
}

.account-nav-link .icon { color: currentColor; }

.account-nav-count {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
}

/* En móvil/tablet el menú vuelve arriba como barra deslizable. */
@media (max-width: 820px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .account-sidebar { position: static; }
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.4rem;
        -webkit-overflow-scrolling: touch;
    }
    .account-nav-link { width: auto; white-space: nowrap; flex: 0 0 auto; }
}

/* ===== Comunidad (v2): pestaña "Estadísticas" ===== */
.gc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.7rem;
}

.gc-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.gc-stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.gc-stat-num--good { color: #047857; }
.gc-stat-num--accent { color: var(--accent); }

.gc-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.gc-goal-text { margin: 0 0 0.7rem; color: var(--text); font-size: 0.95rem; }
.gc-goal-bar { margin-bottom: 0.6rem; }

/* ===== Comunidad (v2): celebración de insignia (confeti) ===== */
.gc-celebrate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    animation: gc-celebrate-in 0.25s ease;
}
.gc-celebrate.is-closing { opacity: 0; transition: opacity 0.3s ease; }

.gc-celebrate-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gc-celebrate-card {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    background: var(--surface);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    animation: gc-celebrate-pop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.gc-celebrate-close {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.gc-celebrate-eyebrow { margin: 0 0 0.2rem; font-weight: 700; color: var(--accent); }
.gc-celebrate-title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; color: var(--text); }

.gc-celebrate-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

@keyframes gc-celebrate-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes gc-celebrate-pop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gc-celebrate, .gc-celebrate-card { animation: none; }
}

.gc-progress-foot {
    margin: 1.1rem 0 0;
    text-align: center;
}

/* ===== Comunidad (v2): moderación de comentarios ===== */
.deal-comments-flash.is-review {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.comment-report {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
    transition: color 0.15s, opacity 0.15s;
}
.comment-report:hover { color: #b91c1c; opacity: 1; }
.comment-report.is-reported {
    color: #b91c1c;
    text-decoration: none;
    cursor: default;
    opacity: 1;
}

.comment-item.is-hidden-by-reports { opacity: 0.45; }

.admin-reports {
    color: #b91c1c;
    background: #fef2f2;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
}

/* Enlaces de autor/avatar en comentarios (ahora llevan a su perfil). */
a.comment-avatar { text-decoration: none; flex-shrink: 0; }
a.comment-author { text-decoration: none; font-weight: 700; color: var(--text); }
a.comment-author:hover { color: var(--accent); }

/* ===== Selector de color de avatar (en Perfil) ===== */
.avatar-picker { margin: 0.25rem 0; }
.avatar-picker-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
}
.avatar-swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.avatar-swatch { cursor: pointer; line-height: 0; }
.avatar-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.avatar-swatch-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--border);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    transition: transform 0.1s;
}
.avatar-swatch:hover .avatar-swatch-dot { transform: scale(1.08); }
.avatar-swatch input:checked + .avatar-swatch-dot {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--accent);
}
.avatar-swatch-dot--default { background: var(--accent-gradient); }

/* ===== Perfil público de usuario ===== */
.profile-page { max-width: 820px; }

.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.profile-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex: 0 0 auto;
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-name { margin: 0; font-size: 1.5rem; font-weight: 800; }
.profile-level { margin: 0.25rem 0 0; color: var(--muted); }
.profile-level-icon { font-size: 1.1rem; }
.profile-level strong { color: var(--text); }
.profile-since { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.profile-edit { flex: 0 0 auto; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 520px) { .profile-stats { grid-template-columns: repeat(2, 1fr); } }
.profile-stat {
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.profile-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.profile-stat-label { font-size: 0.78rem; color: var(--muted); }

.profile-section { margin-bottom: 1.75rem; }
.profile-empty { color: var(--muted); }

.profile-deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.profile-deal {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.profile-deal-score {
    flex: 0 0 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 50%;
    font-variant-numeric: tabular-nums;
}
.profile-deal-body { min-width: 0; }
.profile-deal-title { display: block; font-weight: 700; color: var(--text); text-decoration: none; }
.profile-deal-title:hover { color: var(--accent); }
.profile-deal-meta { font-size: 0.82rem; color: var(--muted); }

.profile-comments { list-style: none; margin: 0; padding: 0; }
.profile-comment { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.profile-comment:last-child { border-bottom: 0; }
.profile-comment-deal { font-weight: 600; color: var(--accent); text-decoration: none; }
.profile-comment-deal:hover { text-decoration: underline; }
.profile-comment-time { margin-left: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.profile-comment-body { margin: 0.3rem 0 0; color: var(--text); white-space: pre-wrap; }

/* ===== Validación "¿Sigue activo?" en las tarjetas de oferta ===== */
.deal-card-validation {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}
.dcv-q {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.deal-card-validation.is-doubt .dcv-q { color: #b45309; }
.deal-card-validation.is-doubt .dcv-q::after { content: " · varios dicen que ya no"; }

.dcv-buttons { display: flex; gap: 0.4rem; }
.dcv-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dcv-btn:hover:not(:disabled) { border-color: var(--accent); }
.dcv-btn:disabled { opacity: 0.6; cursor: default; }
.dcv-count {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 1.1em;
    text-align: center;
}
.dcv-alive.is-active { background: #ecfdf5; border-color: #34d399; color: #047857; }
.dcv-dead.is-active { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
