/* 
 * TodoReseña - Marketplace CSS
 * Estilo ProductHunt + Amazon
 */

 :root {
    --mk-primary: #667eea;
    --mk-primary-hover: #5568d3;
    --mk-secondary: #764ba2;
    --mk-dark: #1f2937;
    --mk-light: #f9fafb;
    --mk-success: #10b981;
    --mk-warning: #f59e0b;
    --mk-danger: #ef4444;
    --mk-text: #4b5563;
    --mk-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --mk-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --mk-shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --mk-radius: 12px;
    --mk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body.marketplace-body {
    font-family: 'Inter', sans-serif;
    color: var(--mk-text);
    background: white;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #111827;
    line-height: 1.2;
}

.mk-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILITIES */
.d-flex { display: flex; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-primary { color: var(--mk-primary); }
.text-danger { color: var(--mk-danger); }
.text-success { color: var(--mk-success); }
.bg-white { background: white; }
.bg-gray-50 { background: #f9fafb; }
.bg-transparent { background: transparent; }
.border-0 { border: none; }
.border-y { border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.border-top { border-top: 1px solid #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.fw-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.fs-xs { font-size: 0.75rem; }
.fs-sm { font-size: 0.85rem; }
.fs-md { font-size: 1rem; }
.fs-lg { font-size: 1.15rem; }
.fs-xl { font-size: 1.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.ml-4 { margin-left: 1.5rem; }
.w-100 { width: 100%; }
.max-w-md { max-width: 32rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-line-through { text-decoration: line-through; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }

/* BOTONES */
.btn-primary-large {
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary));
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--mk-transition);
    border: none;
    cursor: pointer;
}
.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.btn-outline-large {
    background: transparent;
    border: 2px solid var(--mk-primary);
    color: var(--mk-primary);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--mk-transition);
    cursor: pointer;
}
.btn-outline-large:hover { background: var(--mk-primary); color: white; }
.btn-outline-full {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: var(--mk-transition);
}
.btn-outline-full:hover { background: #f3f4f6; color: #111827; }
.btn-dark-large {
    background: var(--mk-dark);
    color: white;
    padding: 0 32px;
    height: 56px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* INPUTS */
.mk-input-large {
    height: 56px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 20px;
    font-size: 1.1rem;
    outline: none;
}
.mk-input-large:focus { border-color: var(--mk-primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.3); }

/* TOPBAR */
.mk-topbar {
    background: var(--mk-dark);
    color: white;
    height: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.dropdown-currency { cursor: pointer; }

/* Hamburger: oculto en escritorio */
#mk-mobile-menu-btn { display: none; }
#mk-mobile-nav { display: none; }
#mk-mobile-nav-overlay { display: none; }

/* HEADER PRINCIPAL */
.mk-header-main {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1.5rem 0;
    position: sticky;
    top: 40px;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.mk-search-wrapper { position: relative; }
.mk-search-form {
    border: 2px solid var(--mk-primary);
    border-radius: 8px;
    height: 50px;
    display: flex;
    overflow: hidden;
    background: white;
}
.search-category-dropdown {
    background: #f3f4f6;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    white-space: nowrap;
}
.marketplace-search {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
}
.search-btn {
    width: 60px;
    background: var(--mk-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-btn:hover { background: var(--mk-primary-hover); }

/* Select de categorías dentro del dropdown */
.mk-cat-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    padding: 0 4px 0 0;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}
.mk-cat-select:focus { outline: none; }

/* Autocomplete dropdown */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 4px); left: 0; right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: none;
    z-index: 200;
    max-height: 420px;
    overflow-y: auto;
}
/* Items del autocomplete */
.mk-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.mk-ac-item:last-of-type { border-bottom: none; }
.mk-ac-item:hover, .mk-ac-item--focus { background: #f8faff; }
.mk-ac-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}
.mk-ac-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
}
.mk-ac-info { flex: 1; min-width: 0; }
.mk-ac-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-ac-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.mk-ac-type { font-weight: 600; color: #2872fa; }
.mk-ac-all {
    display: block;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #2872fa;
    text-decoration: none;
    background: #f8faff;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    transition: background .15s;
}
.mk-ac-all:hover, .mk-ac-all--focus { background: #eff6ff; }

.util-item { cursor: pointer; position: relative; }
.compare-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--mk-primary);
    color: white;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MEGAMENU */
.mk-nav-bar {
    background: #f9fafb;
    height: 55px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}
.megamenu-trigger {
    background: var(--mk-primary);
    color: white;
    height: 55px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
}
.mk-nav-links a {
    font-weight: 500;
    color: #4b5563;
    transition: color 0.2s;
}
.mk-nav-links a:hover { color: var(--mk-primary); }

.megamenu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border-top: 2px solid var(--mk-primary);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 999;
    display: none;
}
.megamenu.active { display: block; }

/* Columna izquierda */
.megamenu__categories {
    width: 220px;
    flex-shrink: 0;
    background: #f9fafb;
    padding: 1rem 0;
    border-right: 1px solid #e5e7eb;
}
.megamenu__category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    font-size: .9rem;
    color: #374151;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.megamenu__category-item svg { color: #9ca3af; flex-shrink: 0; transition: color .15s; }
.megamenu__category-item:hover,
.megamenu__category-item.active {
    background: #fff;
    color: var(--mk-primary);
    border-left-color: var(--mk-primary);
}
.megamenu__category-item:hover svg,
.megamenu__category-item.active svg { color: var(--mk-primary); }
.megamenu__ver-todo {
    display: block;
    margin: 12px 1.25rem 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: .82rem;
    font-weight: 700;
    color: var(--mk-primary);
    text-decoration: none;
}
.megamenu__ver-todo:hover { text-decoration: underline; }

/* Paneles de contenido */
.megamenu__panels { flex: 1; position: relative; min-height: 220px; }
.megamenu__panel {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    align-content: start;
}
.megamenu__panel.active { display: grid; }

/* Tarjetas de subcategoría */
.subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #192a3d;
    gap: 8px;
    transition: transform .2s;
}
.subcat-card:hover { transform: translateY(-3px); }
.subcat-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.subcat-card:hover img { border-color: var(--mk-primary); }
.subcat-card span {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
}

/* HERO SECTION */
.mk-hero-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}
/* Resplandor decorativo de fondo */
.mk-hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mk-hero-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 3rem;
}
.badge-editors-choice {
    background: #111827;
    color: #f59e0b;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}
/* Hero inner: texto + imagen lado a lado */
.hero-content-wrap {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.hero-text-side { flex: 1; min-width: 0; }
.hero-image-side {
    width: 260px;
    flex-shrink: 0;
    text-align: center;
}
.hero-image-side .hero-img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    mix-blend-mode: multiply;
    border-radius: 12px;
}
.hero-cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-amazon-sm {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mk-primary);
    text-decoration: none;
    white-space: nowrap;
}
.btn-amazon-sm:hover { text-decoration: underline; }
.hero-cat-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--mk-primary);
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 12px;
}

.hero-product-title { font-size: 2.2rem; margin: 0; line-height: 1.2; }
.hero-rating { flex-shrink: 0; }
.hero-rating .stars { color: #fbbf24; font-size: 1.2rem; }
.hero-rating .number { font-weight: 700; font-size: 1.1rem; }
.hero-product-desc { font-size: 1.05rem; color: #4b5563; margin: 0.75rem 0 0; }
.hero-img { max-width: 80%; height: auto; mix-blend-mode: multiply; }
.hero-mini-card__placeholder { width: 60px; height: 60px; background: #f3f4f6; border-radius: 8px; flex-shrink: 0; }

.hero-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--mk-shadow-sm);
    transition: transform 0.2s;
    border: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
}
.hero-mini-card:hover { transform: translateX(5px); border-color: var(--mk-primary); color: inherit; text-decoration: none; }
.hero-mini-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hero-mini-card h4 { margin: 0 0 0.25rem 0; font-size: 0.95rem; color: #111827; }
.hero-mini-card .rating { color: #fbbf24; font-size: 0.85rem; font-weight: 600; }

/* Product card image link */
.product-card__image-link { display: block; text-decoration: none; }
.product-card__no-img {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.85rem;
}
.product-card__meta { font-size: 0.78rem; }

/* FILTROS Y PRODUCT GRID */
.products-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.filters-sidebar {
    background: white;
    border-radius: var(--mk-radius);
    padding: 1.5rem;
    box-shadow: var(--mk-shadow-sm);
    position: sticky;
    top: 120px;
}
.filter-widget { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.filter-title { font-size: 1.1rem; margin-bottom: 1rem; }

/* Checkboxes Custom */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #4b5563;
}
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-checkbox .checkmark {
    position: absolute; top: 0; left: 0; height: 20px; width: 20px;
    background-color: #f3f4f6; border: 1px solid #d1d5db; border-radius: 4px;
}
.custom-checkbox:hover input ~ .checkmark { background-color: #e5e7eb; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--mk-primary); border-color: var(--mk-primary); }
.custom-checkbox .checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after {
    left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Rango Precio */
.price-range-input { width: 100%; accent-color: var(--mk-primary); }

/* Grid Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.products-grid.loading { opacity: 0.5; pointer-events: none; }

/* PRODUCT CARD (ProductHunt Style) */
.product-card {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--mk-radius);
    overflow: hidden;
    transition: var(--mk-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--mk-radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.product-card:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}
.product-card:hover::before {
    opacity: 1;
}
.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9fafb;
}
.product-card__image img {
    width: 100%; height: 100%; object-fit: contain; padding: 1rem;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

.product-card__badge-rating {
    position: absolute; top: 10px; right: 10px;
    background: var(--mk-primary); color: white;
    padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 16px; z-index: 2;
}
.product-card__badge-analysis {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.8); color: white;
    padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 10px; z-index: 2;
}

.product-card__content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 11px; font-weight: 600; color: #6b7280; letter-spacing: 0.5px; }
.product-card__title { font-size: 16px; line-height: 1.4; margin: 0.5rem 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__rating { display: flex; align-items: center; gap: 0.5rem; }
.product-card__stars { color: #fbbf24; letter-spacing: -2px; }
.product-card__features { margin: 1rem 0; padding: 0; flex: 1; }
.product-card__features li { font-size: 12px; color: #4b5563; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.product-card__features li::before { content: "✓"; color: var(--mk-success); font-weight: bold; }
.product-card__price { font-size: 22px; font-weight: 800; color: var(--mk-primary); margin-bottom: 1rem; }
.badge-discount { font-size: 12px; background: #fee2e2; color: var(--mk-danger); padding: 2px 6px; border-radius: 4px; vertical-align: middle; }

.product-card__cta {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary));
    color: white; border: none; border-radius: 8px; font-weight: 700;
    cursor: pointer; transition: 0.2s;
    margin-top: auto; text-align: center; display: block;
}
.product-card__cta:hover { filter: brightness(1.1); }
.product-card__utils button { cursor: pointer; transition: color 0.2s; }
.product-card__utils button:hover { color: var(--mk-primary); }
.btn-compare.active { color: var(--mk-primary); font-weight: bold; }

/* SECCIÓN COMPARATIVAS VS */
.vs-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.vs-card {
    background: white; border: 1px solid #e5e7eb; border-radius: var(--mk-radius);
    overflow: hidden; transition: var(--mk-transition); display: block;
}
.vs-card:hover { transform: translateY(-4px); box-shadow: var(--mk-shadow-md); border-color: var(--mk-primary); }
.vs-img-split { display: flex; position: relative; height: 140px; }
.vs-img-split img { width: 50%; object-fit: cover; }
.vs-img-split .img-left { border-right: 2px solid var(--mk-primary); }
.vs-img-split .img-right { border-left: 2px solid var(--mk-success); }
.vs-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 36px; height: 36px; background: var(--mk-dark); color: white;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 900; font-size: 14px; border: 3px solid white;
}
.vs-card-content { padding: 1.5rem; }
.vs-img-placeholder { width: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }

/* CATEGORÍAS */
.cat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.cat-card {
    position: relative; height: 280px; border-radius: var(--mk-radius);
    overflow: hidden; background-size: cover; background-position: center; display: block;
    transform: perspective(1000px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
    box-shadow: var(--mk-shadow-sm);
}
.cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.1) 80%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: white;
    transition: all 0.4s ease;
}
.cat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}
.cat-card:hover .cat-overlay { 
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.4) 100%);
    padding-bottom: 2.5rem;
}
.cat-overlay h3 { color: white; margin: 0 0 0.5rem 0; font-size: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.cat-overlay span { font-size: 0.95rem; opacity: 0.9; font-weight: 500; }

/* NEWSLETTER */
.mk-newsletter-section {
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-secondary));
    padding: 5rem 0;
}

/* FOOTER */
.mk-footer {
    background: var(--mk-dark);
    color: #9ca3af;
    padding: 5rem 0 2rem;
    font-family: 'Inter', sans-serif;
}
.mk-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}
.footer-logo { color: white; font-size: 2rem; margin: 0; }
.footer-logo span { color: var(--mk-primary); }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .mk-hero-grid { grid-template-columns: 1fr; }
    .products-layout-grid { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; margin-bottom: 2rem; display: flex; overflow-x: auto; gap: 1rem; padding: 1rem; }
    .filter-widget { min-width: 200px; margin: 0; border: none; padding: 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .vs-grid-4, .cat-grid-4, .mk-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { flex-wrap: wrap; }
    .trust-item { width: 50%; margin-bottom: 1.5rem; }
    .mk-header-utils { display: none; }

    /* Hero: imagen encima, texto debajo */
    .hero-content-wrap {
        flex-direction: column-reverse;
        gap: 1.25rem;
    }
    .hero-image-side {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-product-title { font-size: 1.6rem; }
    .hero-cta-row { flex-direction: column; align-items: flex-start; }
    .btn-primary-large { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    /* ── Header móvil ───────────────────────────────── */

    /* Ocultar topbar informativo */
    .mk-topbar { display: none; }

    /* Header principal: compacto, sticky desde arriba */
    .mk-header-main {
        top: 0;
        padding: 0.6rem 0;
    }

    /* Logo más pequeño */
    .mk-logo h2 { font-size: 1.3rem !important; }

    /* Buscador: compacto sin el dropdown de categoría */
    .mk-search-wrapper { display: block; }
    .search-category-dropdown { display: none; }
    .mk-search-form { height: 38px; }
    .marketplace-search { font-size: 14px; padding: 0 10px; }
    .search-btn { width: 44px; }

    /* Iconos utils: ocultos */
    .mk-header-utils { display: none; }

    /* Nav bar: oculto en móvil (sustituido por panel hamburger) */
    .mk-nav-bar { display: none; }

    /* Hamburger button */
    #mk-mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        flex-shrink: 0;
    }
    .mk-hbg-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--mk-dark, #192a3d);
        border-radius: 2px;
        transition: transform .3s ease, opacity .2s ease;
    }
    #mk-mobile-menu-btn.open .mk-hbg-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #mk-mobile-menu-btn.open .mk-hbg-bar:nth-child(2) { opacity: 0; }
    #mk-mobile-menu-btn.open .mk-hbg-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Panel menú móvil */
    #mk-mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #fff;
        z-index: 99998;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }
    #mk-mobile-nav.open {
        display: block;
        transform: translateX(0);
    }
    .mk-mobile-nav-inner { padding: 70px 0 32px; }
    .mk-mobile-nav-section { padding: 0 20px; }
    .mk-mobile-nav-label {
        display: block;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: #9ca3af;
        margin-bottom: 4px;
        padding: 0 4px;
    }
    .mk-mobile-nav-section a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 4px;
        font-size: .95rem;
        font-weight: 500;
        color: #192a3d;
        text-decoration: none;
        border-bottom: 1px solid #f3f4f6;
        transition: color .15s, padding-left .15s;
    }
    .mk-mobile-nav-section a:last-child { border-bottom: none; }
    .mk-mobile-nav-section a:hover { color: #2872fa; padding-left: 10px; }
    .mk-mobile-nav-section a svg { flex-shrink: 0; color: #6b7280; }
    .mk-mobile-nav-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 12px 20px;
    }

    /* Overlay oscuro detrás del panel */
    #mk-mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 99997;
        backdrop-filter: blur(1px);
    }
    #mk-mobile-nav-overlay.open { display: block; }

    /* ── Hero móvil ─────────────────────────────────── */
    .mk-hero-section { padding: 2rem 0; }
    .hero-product-title { font-size: 1.4rem; }
    .hero-product-desc { font-size: 0.95rem; }
    .mk-hero-sidebar { display: none; }

    /* ── Grid ───────────────────────────────────────── */
    .products-grid { grid-template-columns: 1fr; }
    .vs-grid-4, .cat-grid-4, .mk-footer-grid { grid-template-columns: 1fr; }
    .mk-footer-middle { flex-direction: column; gap: 1.5rem; }
}
