/* ========================================
   PreciosPe - CSS Profesional y Compacto
   ======================================== */

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Safe area para iPhone notch / Dynamic Island */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

:root {
    /* ==========================================
       PALETA PRECIOSPE — Azul Oscuro + Naranja
       Como Amazon. Solo 2 colores + gris.
       ========================================== */

    /* 2 COLORES DE MARCA */
    --colorPrimary: #1E3A5F;       /* Azul oscuro — header, marca, titulos */
    --colorAccent: #F97316;        /* Naranja — botones CTA, descuentos */
    --colorDanger: #DC2626;        /* Rojo — solo errores */

    /* NEUTROS */
    --textPrimary: #111827;        /* Texto titulos */
    --textBody: #374151;           /* Texto parrafos */
    --textMuted: #9CA3AF;          /* Texto secundario */
    --borderLight: #E5E7EB;        /* Borde unico */
    --bgLight: #F9FAFB;            /* Fondo body */
    --bgMuted: #F3F4F6;            /* Fondo cards */

    /* DERIVADOS */
    --colorSuccess: #16A34A;       /* Verde — solo para "mejor precio" */
    --colorWarning: var(--colorAccent);
    --bgWhite: #FFFFFF;
    --bgSuccess: #F0FDF4;
    --bgWarning: #FFF7ED;
    --textSecondary: #6B7280;
    --borderDark: #D1D5DB;

    /* SOMBRAS */
    --shadowSm: 0 1px 2px rgba(0,0,0,0.05);
    --shadowMd: 0 4px 6px rgba(0,0,0,0.07);
    --shadowLg: 0 10px 20px rgba(0,0,0,0.10);

    /* RADIOS */
    --radiusSm: 6px;
    --radiusMd: 8px;
    --radiusLg: 12px;
    --radiusFull: 100px;

    /* COMPAT — no borrar, el CSS viejo usa estos nombres */
    --gray-50: var(--bgLight);
    --gray-100: var(--bgMuted);
    --gray-200: var(--borderLight);
    --gray-300: var(--borderDark);
    --gray-400: var(--textMuted);
    --gray-500: var(--textSecondary);
    --gray-600: var(--textBody);
    --gray-700: var(--textBody);
    --gray-800: var(--textPrimary);
    --gray-900: var(--textPrimary);
    --blue: var(--colorPrimary);
    --primary: var(--colorPrimary);
    --accent: var(--colorAccent);
    --green: var(--colorAccent);
    --red: var(--colorDanger);
    --text: var(--textPrimary);
    --text-light: var(--textBody);
    --text-muted: var(--textSecondary);
    --bg: var(--bgWhite);
    --bg-gray: var(--bgLight);
    --border: var(--borderLight);
    --success: var(--colorSuccess);
    --danger: var(--colorDanger);

    /* Sombras sutiles */
    --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
    --shadow: 0 1px 3px rgba(15,23,42,0.08);
    --shadow-md: 0 4px 6px rgba(15,23,42,0.07);
    --shadow-lg: 0 10px 20px rgba(15,23,42,0.10);

    /* Bordes más redondeados (moderno) */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;

    /* Espaciado consistente */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
}

/* iOS Safari Fixes */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bgLight);
    line-height: 1.6;
    font-size: 15px;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    letter-spacing: -0.01em;
}

/* Tipografia - Headings limpios */
h1, h2, h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hidden {
    display: none !important;
}

/* ========================================
   Header con búsqueda integrada - ESTABLE Y FIJO
   ======================================== */
.header {
    background: #1E3A5F;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    padding: 0.75rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    box-shadow: none;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* Optimizaciones avanzadas para eliminar completamente el temblor */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    contain: layout style paint;
    /* Sin transiciones para evitar jank durante scroll */
}

/* Header compacto al hacer scroll - SIN cambiar padding para evitar saltos */
.header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* Header oculto en móvil al hacer scroll hacia abajo */
.header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header.header-visible {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo mejorado */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text h1,
.logo-text .logo-title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
}

.logo-tagline {
    font-size: 0.6875rem;
    opacity: 0.92;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Búsqueda mejorada */
.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0;
}

.search-box {
    height: 40px;
}

.search-box input {
    height: 40px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 6px 0 1.25rem;
    transition: all 0.2s ease;
    height: 50px;
}

.search-box:focus-within {
    background: white;
    border-color: var(--colorPrimary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.search-icon {
    color: var(--textSecondary);
    flex-shrink: 0;
    margin-right: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.search-box:focus-within .search-icon {
    opacity: 1;
}

/* Suggestions Dropdown (Autocompletado) */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1001;
    max-height: 320px;
    overflow-y: auto;
}

.suggestions-dropdown.hidden {
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: background 0.15s;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--gray-50);
}

.suggestion-item .suggestion-icon {
    color: var(--gray-400);
    flex-shrink: 0;
}

.suggestion-item .suggestion-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-item .suggestion-count {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Did You Mean banner */
.did-you-mean {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 1rem;
    background: var(--bgWarning);
    border: 1px solid var(--bgWarning);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.did-you-mean a {
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.did-you-mean a:hover {
    color: var(--colorPrimary);
}

/* Alert Price Link (en cada producto) */
.btn-alert-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--blue);
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s;
}

.btn-alert-link:hover {
    opacity: 0.7;
}

/* Alert Modal */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.alert-modal {
    background: white;
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.alert-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
}

.alert-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.alert-modal-product {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.alert-product-name {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.alert-product-info {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alert-modal-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 16px;
    line-height: 1.5;
}

.alert-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.alert-input:focus {
    border-color: var(--blue);
}

.alert-submit {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-submit:hover {
    background: var(--colorPrimary);
}

.alert-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert-modal-footer {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text);
    background: transparent;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 1.5rem;
    height: 40px;
    background: #F97316;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-search:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-search:active {
    transform: translateY(0);
}

/* ========================================
   Dropdown de Productos Populares (Búsqueda Rápida)
   ======================================== */
.quick-products-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    flex-shrink: 0;
}

.quick-products-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.quick-products-btn svg {
    color: var(--gray-600);
    transition: transform 0.2s ease;
}

.quick-products-btn:hover svg {
    color: var(--primary);
}

.quick-products-btn.active svg {
    transform: rotate(180deg);
}

.quick-products-menu {
    position: fixed;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-products-menu.hidden {
    display: none;
}

.quick-products-header {
    padding: 12px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-products-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.quick-products-section:last-child {
    border-bottom: none;
}

.quick-products-title {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quick-product-item {
    display: block;
    width: 100%;
    padding: 10px 16px 10px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-product-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 28px;
}

/* Scrollbar personalizado para el dropdown */
.quick-products-menu::-webkit-scrollbar {
    width: 6px;
}

.quick-products-menu::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.quick-products-menu::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.quick-products-menu::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .quick-products-dropdown {
        display: none; /* Ocultar en móvil ya que hay pills */
    }
}

/* ========================================
   Selector de País - Botón + Modal
   ======================================== */
.country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.375rem 0.625rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2) !important;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    height: 40px;
    flex-shrink: 0;
    margin-right: 0;
}

.country-btn:hover {
    background: linear-gradient(135deg, var(--borderLight) 0%, var(--borderDark) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.country-btn .country-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.country-btn .country-name {
    font-weight: 700;
    color: var(--text);
}

.country-btn .country-arrow {
    color: var(--gray-500);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

/* ========================================
   Modal de Países - Overlay centrado
   ======================================== */
.country-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.country-modal.hidden {
    display: none !important;
}

.country-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.country-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 360px;
    width: 100%;
    animation: modalSlideIn 0.25s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.country-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.country-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.country-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.country-modal-close:hover {
    background: var(--gray-200);
    color: var(--text);
}

.country-modal-body {
    max-height: 400px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--gray-100);
    background: white;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: var(--bgLight) !important;
}

.country-option.active {
    background: linear-gradient(135deg, var(--bgMuted) 0%, var(--borderLight) 100%) !important;
}

.country-option.active .country-name {
    color: var(--primary);
    font-weight: 700;
}

.country-option .country-flag {
    font-size: 2rem;
    line-height: 1;
}

.country-option .country-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.country-option .country-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.country-option .country-stores {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.country-option .country-check {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: bold;
}

.country-option .country-badge {
    font-size: 1.25rem;
}

/* Países próximamente */
.country-option.coming-soon {
    opacity: 0.85;
}

.country-option.coming-soon:hover {
    background: var(--bgWarning) !important;
}

.coming-soon-text {
    color: var(--colorWarning) !important;
    font-weight: 600 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .country-btn .country-name {
        display: none;
    }

    .country-btn {
        padding: 0.5rem 0.75rem;
        height: 44px;
        margin-right: 0.5rem;
    }

    .country-modal-content {
        max-width: 100%;
        margin: 0 1rem;
    }
}

.btn-icon {
    display: none;
}


/* Botones secundarios */
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--text-light);
}

/* ========================================
   Comparación Inteligente (Resumen)
   ======================================== */
.comparison-section {
    padding: 2rem 0;
    background: var(--bg-gray);
    border-top: 2px solid var(--border);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.comparison-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.comparison-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.comparison-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.top-offers-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.offer-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.offer-row:last-child {
    border-bottom: none;
}

.offer-row:hover {
    background: var(--gray-50);
}

.offer-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.offer-label svg {
    color: var(--primary);
    flex-shrink: 0;
}

.offer-info {
    font-size: 0.875rem;
}

/* Comparison Product - Responsive */
.comparison-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.comparison-product-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.comparison-price {
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.comparison-name {
    color: var(--text);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.comparison-store {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
}

.comparison-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.comparison-savings {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.comparison-btn {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-btn:hover {
    background: var(--primary-dark);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-title svg {
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.comparison-card.best-price::before {
    background: linear-gradient(90deg, var(--success), var(--green));
}

.comparison-card.best-value::before {
    background: linear-gradient(90deg, var(--blue), var(--gray-800));
}

.comparison-card.best-discount::before {
    background: linear-gradient(90deg, var(--danger), var(--red));
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-badge {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.comparison-product {
    min-height: 200px;
}

/* ======== NUEVO: Estilo Google Shopping ======== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

/* Grid tipo Google */
.top-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards estilo Google Shopping */
.offer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--borderLight);
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

/* Badges mejorados */
.offer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-price-badge {
    background: linear-gradient(135deg, var(--success) 0%, var(--green) 100%);
    color: white;
}

.best-value-badge {
    background: linear-gradient(135deg, var(--blue) 0%, var(--gray-800) 100%);
    color: white;
}

.best-discount-badge {
    background: linear-gradient(135deg, var(--danger) 0%, var(--red) 100%);
    color: white;
}

.offer-badge svg {
    width: 14px;
    height: 14px;
}

/* Contenido de la oferta */
.offer-content {
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.offer-content img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--bgLight);
}

.offer-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.offer-store {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.offer-savings {
    background: linear-gradient(135deg, var(--bgWarning) 0%, var(--bgWarning) 100%);
    color: var(--gray-800);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    border-left: 3px solid var(--blue);
}

.offer-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--gray-800) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.25);
}

.offer-btn:hover {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--colorPrimary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.35);
}

.comparison-product .product-image {
    height: 140px;
    margin-bottom: 1rem;
}

.comparison-product .product-name {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.comparison-product .product-price {
    font-size: 1.75rem;
    color: var(--gray-500);
}

.comparison-product .savings {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--gray-500);
    color: white;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   Hero Section - Página de Inicio
   ======================================== */
.hero-section {
    background: #fff;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #E5E7EB;
}

.hero-bg-shapes {
    display: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--borderLight);
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--bgMuted);
    bottom: -100px;
    left: -80px;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--bgMuted);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    animation: heroFadeIn 0.6s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--colorPrimary);
    border: 1px solid var(--colorPrimary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--colorPrimary) 0%, var(--colorAccent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #6B7280;
    margin-bottom: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226,232,240,0.6);
    color: var(--textBody);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-stat-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-stat-pill strong {
    color: var(--colorPrimary);
    font-weight: 700;
}

.hero-stat-pill svg {
    color: var(--colorPrimary);
}

.hero-stat-green svg {
    color: var(--colorSuccess);
}

.hero-stat-green strong {
    color: var(--colorSuccess);
}

/* Trust indicators - reemplazan los CTA buttons */
.hero-trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--textBody);
    letter-spacing: 0.2px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--borderLight);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hero-feature-card:hover {
    border-color: var(--borderLight);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.1);
}

.hero-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.hero-feature-icon-blue {
    background: var(--bgLight);
    color: var(--colorPrimary);
}

.hero-feature-icon-green {
    background: var(--bgSuccess);
    color: var(--colorSuccess);
}

.hero-feature-icon-purple {
    background: var(--bgLight);
    color: var(--colorPrimary);
}

.hero-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-feature-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--colorPrimary);
}

.hero-feature-text span {
    font-size: 0.8rem;
    color: var(--textSecondary);
    line-height: 1.4;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-stat-icon {
    flex-shrink: 0;
    stroke: var(--gray-600);
    opacity: 1;
}

.hero-stat-content {
    flex: 1;
    text-align: left;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 600;
}

/* ========================================
   Tiendas que Consultamos
   ======================================== */

.featured-categories {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 150px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 1.5rem 1rem;
    z-index: 1;
    transition: all 0.3s;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(37,99,235,0.9) 0%, rgba(37,99,235,0.6) 70%, transparent 100%);
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.category-desc {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.featured-products {
    margin-top: var(--spacing-2xl);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 100%;
}

.featured-product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--borderLight);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: all 0.3s;
    cursor: pointer;
}

.featured-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: var(--borderLight);
}

.featured-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 1rem;
}

.featured-product-info {
    padding: 1rem;
}

.featured-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.featured-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.featured-product-stores {
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.8;
}

/* ========================================
   Stats Section - Compacta y Mejorada
   ======================================== */
.stats-section {
    padding: 1.25rem 0;
    background: white;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    gap: 3rem;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item.stat-price .stat-value-inline {
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-item.stat-savings {
    color: var(--primary);
}

.stat-label-inline {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-value-inline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.stat-item.stat-savings .stat-value-inline {
    color: var(--primary);
    font-size: 1.25rem;
}

/* ========================================
   Filters Bar
   ======================================== */
.filters-bar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.5rem;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    flex-wrap: wrap;
    position: sticky;
    top: 140px;
    z-index: 999;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label svg {
    opacity: 0.6;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.filter-select:hover {
    border-color: var(--text-light);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 16, 35, 0.1);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 100px;
    padding: 0.75rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.price-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 16, 35, 0.1);
}

.range-separator {
    color: var(--text-muted);
    font-weight: 600;
}

/* ========================================
   Results Section
   ======================================== */
.results-section {
    padding: 1.5rem 0 3rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Products Grid - Profesional y espaciado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: white;
    border: 1px solid var(--bgMuted);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: var(--bgMuted);
}

/* Card especial para productos Amazon */
.product-card.amazon-product {
    border: 1px solid rgba(255, 153, 0, 0.3);
    background: linear-gradient(180deg, var(--bgWarning) 0%, #ffffff 100%);
}

.product-card.amazon-product:hover {
    border-color: #ff9900;
    box-shadow: 0 12px 28px rgba(255, 153, 0, 0.15);
}

/* Card Amazon Afiliado - diseño premium */
.product-card.amazon-afiliado {
    border: 2px solid #ff9900;
    background: linear-gradient(180deg, var(--bgWarning) 0%, #ffffff 100%);
}
.amazon-afiliado-img {
    position: relative;
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 11px 11px 0 0;
    min-height: 140px;
}
.amazon-afiliado-logo-bg {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 16px;
}
.amazon-afiliado-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9900;
    color: var(--textPrimary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.amazon-afiliado-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #ff9900 !important;
    color: var(--textPrimary) !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    text-decoration: none;
    transition: all 0.2s;
}
.amazon-afiliado-btn:hover {
    background: #e8860c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,153,0,0.4);
}

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-store {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.product-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--danger) 0%, var(--red) 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}

.product-info {
    padding: 0.75rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-store-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.375rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.product-store-name svg {
    flex-shrink: 0;
    stroke: var(--gray-500);
}

.product-store-name .store-badge-mini {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.product-info[onclick] .product-name:hover {
    color: var(--colorPrimary);
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--colorPrimary);
    margin-bottom: 0.5rem;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
    transition: color 0.15s;
}

.product-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--colorPrimary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.product-footer {
    padding: 0.625rem 1rem;
}

.btn-view {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.btn-view:hover {
    background: var(--colorPrimary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

/* ========================================
   Chart Section
   ======================================== */
.chart-section {
    padding: 2rem 0 3rem;
    background: var(--bg-gray);
}

.chart-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

.chart-subtitle {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

#priceChart {
    max-height: 320px;
}

/* ========================================
   Footer
   ======================================== */
/* Old footer styles removed - using modern footer design below (line 2010+) */

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    /* Header responsive - Compacto una línea */
    .header {
        padding: 0.5rem 0;
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .logo {
        gap: 8px;
        flex-shrink: 0;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text h1,
    .logo-text .logo-title {
        font-size: 1.125rem;
    }

    .logo-tagline {
        display: none;
    }

    .header-search {
        max-width: 100%;
        margin: 0;
        flex: 1;
        min-width: 0;
        order: 3;
    }

    .country-btn {
        order: 2;
        padding: 0.375rem 0.5rem;
        height: 36px;
        margin-right: 0;
    }

    .search-box {
        height: 44px;
        padding: 0 0.75rem;
        border-radius: 10px;
    }

    .search-box input {
        font-size: 16px; /* Min 16px evita zoom iOS */
    }

    .search-icon {
        display: none;
    }

    .btn-search .btn-text {
        display: none;
    }

    .btn-search .btn-icon {
        display: block;
    }

    .btn-search {
        padding: 0.5rem 0.75rem;
        min-height: 36px;
        background: var(--primary);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    .btn-search:focus,
    .btn-search:active {
        outline: none;
        background: var(--colorPrimary);
    }

    .btn-search .btn-icon {
        color: white;
    }

    /* Categorías visibles en móvil */

    /* Quick search móvil - scroll horizontal */
    .quick-search {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        gap: 0.5rem;
        padding: 0.5rem 0;
        margin: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
        max-height: 60px;
        opacity: 1;
    }

    /* Ocultar scrollbar en Chrome/Safari */
    .quick-search::-webkit-scrollbar {
        display: none;
    }

    /* Ocultar categorías al hacer scroll */
    .quick-search.hidden-scroll {
        max-height: 0;
        opacity: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    /* Hero responsive - Compacto para móvil */
    .hero-section {
        padding: 1rem 0 1.5rem;
        padding-top: 100px;
    }

    .hero-content {
        margin-bottom: 1rem;
        padding-top: 0.5rem;
    }

    .hero-badge {
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-stats-row {
        gap: 0.375rem;
        margin-bottom: 1rem;
    }

    .hero-stat-pill {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Ocultar feature cards en móvil - ocupan mucho espacio */
    .hero-features {
        display: none;
    }

    .hero-trust-row {
        gap: 0.75rem;
    }

    .hero-trust-item {
        font-size: 0.75rem;
    }

    .hero-bg-shapes {
        display: none;
    }

    /* Categorías responsive: scroll horizontal en móvil */
    .featured-categories {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
        position: relative;
    }

    .featured-title {
        font-size: 1.25rem;
        text-align: left;
        margin-bottom: 0.75rem;
        position: relative;
        padding-right: 60px;
    }

    /* Indicador "Desliza →" en el título */
    .featured-title::after {
        content: 'Desliza →';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--blue);
        opacity: 0.8;
    }

    .categories-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0.75rem;
        padding: 0.75rem 0;
        scroll-snap-type: x mandatory;
        /* Padding lateral para mostrar que hay más contenido */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    /* Indicador visual sutil de que hay más contenido */
    .categories-grid::after {
        content: '';
        position: sticky;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
    }

    .category-card {
        flex: 0 0 145px;
        min-width: 145px;
        padding: 1rem 0.875rem;
        scroll-snap-align: center;
        /* Asegurar que sea tocable */
        touch-action: pan-x;
    }

    .category-card:first-child {
        margin-left: 0.5rem;
    }

    .category-card:last-child {
        margin-right: 0.5rem;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }

    .category-name {
        font-size: 1rem;
    }

    .category-desc {
        font-size: 0.8rem;
    }

    /* Productos: 2 columnas en móvil */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .featured-product-image {
        height: 150px;
    }

    /* Top 3 responsive */
    .offer-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .offer-label {
        font-size: 0.8125rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .offer-info {
        gap: 6px;
    }

    .offer-product-name {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .offer-store-name {
        font-size: 0.75rem !important;
    }

    .offer-price {
        font-size: 0.8125rem !important;
    }

    .offer-link-btn {
        padding: 4px 10px;
        font-size: 0.6875rem;
    }

    .store-offer {
        padding: 6px 8px;
    }

    .offer-savings {
        font-size: 0.75rem !important;
    }

    .comparison-title {
        font-size: 1.125rem !important;
    }

    .comparison-subtitle {
        font-size: 0.8125rem !important;
    }

    /* Stats responsive: 2 columnas en móvil */
    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .stat-item {
        flex: 1 1 45%;
        justify-content: center;
    }

    .stat-label-inline {
        font-size: 0.75rem;
    }

    .stat-value-inline {
        font-size: 0.875rem;
    }

    .stat-item.stat-price .stat-value-inline,
    .stat-item.stat-savings .stat-value-inline {
        font-size: 1rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-section {
        padding: 1rem 0;
    }

    .comparison-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-badge {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .comparison-product {
        min-height: auto;
    }

    .comparison-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-offers-table {
        border-radius: 10px;
        overflow: hidden;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-bar {
        display: none !important; /* Ocultar filtros en móvil */
    }

    .filter-group {
        min-width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 160px;
    }

    .product-name {
        font-size: 0.8125rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-info {
        padding: 0.875rem;
    }

    .product-footer {
        padding: 0.875rem;
    }

    /* Touch targets mínimos 44px para móvil (Apple HIG) */
    .btn-view {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-view-detail,
    .btn-view-store,
    .btn-view-offers {
        min-height: 44px;
        padding: 10px 14px !important;
        font-size: 0.8125rem !important;
    }

    .share-icon-btn {
        width: 40px;
        height: 40px;
    }

    .offer-link-btn {
        min-height: 36px;
        padding: 6px 12px;
    }
}

/* Móviles pequeños: optimización adicional */
@media (max-width: 480px) {
    /* Container más compacto */
    .container {
        padding: 0 0.75rem;
    }

    /* Hero más compacto */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* hero-features already hidden at 768px */

    .hero-stat-pill {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    /* Categorías scroll horizontal en móviles pequeños */
    .categories-grid {
        gap: 0.625rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .category-card {
        flex: 0 0 135px;
        min-width: 135px;
        padding: 0.875rem 0.625rem;
        scroll-snap-align: center;
    }

    .category-card:first-child {
        margin-left: 0.25rem;
    }

    .category-card:last-child {
        margin-right: 0.25rem;
    }

    .category-icon {
        width: 28px;
        height: 28px;
    }

    .category-name {
        font-size: 0.9375rem;
    }

    .category-desc {
        font-size: 0.75rem;
    }

    /* Productos destacados en 2 columnas en móvil */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .featured-product-card {
        border-radius: 10px;
    }

    .featured-product-image {
        height: 100px;
        padding: 0.5rem;
    }

    .featured-product-info {
        padding: 0.625rem;
    }

    .featured-product-name {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.375rem;
        -webkit-line-clamp: 2;
    }

    .featured-product-price {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .featured-product-stores {
        font-size: 0.65rem;
    }

    .featured-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        padding-right: 0;
    }

    .featured-title::after {
        display: none;
    }

    /* Products grid en 2 columnas para móvil */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 110px;
    }

    .product-info {
        padding: 0.625rem;
    }

    .product-name {
        font-size: 0.8rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        margin-bottom: 0.375rem;
    }

    .product-store-name {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .product-price {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .product-original-price {
        font-size: 0.7rem;
    }

    .product-discount {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .product-store {
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .score-badge {
        padding: 3px 8px;
        font-size: 0.55rem;
    }

    /* Botones más grandes (mejor touch target) */
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Pills con mejor touch target */
    .pill {
        padding: 0.5rem 1rem;
        min-height: 44px;
    }

    /* Category cards con mejor touch target */
    .category-card {
        min-height: 110px;
    }

    /* Featured title - keep compact at 480px */

    /* Hero aún más compacto en pantallas pequeñas */
    .hero-section {
        padding: 0.75rem 0 1rem;
        padding-top: 90px;
    }

    /* Ocultar filtros en móvil - simplificar */
    .filters-bar {
        display: none !important;
    }

    /* Espacio para resultados de búsqueda */
    .results-section {
        padding-top: 0.5rem;
    }

    .loading-state {
        padding-top: 2rem;
        margin-top: 0;
    }

    .empty-state {
        padding-top: 2rem;
    }

    .products-grid {
        margin-top: 0.5rem;
    }

    /* Resumen Mejores Opciones - compacto móvil */
    .comparison-section {
        padding: 1rem 0;
    }

    .comparison-section .container {
        padding: 0 0.75rem;
    }

    .comparison-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .comparison-title {
        font-size: 1rem;
    }

    .comparison-subtitle {
        font-size: 0.75rem;
    }

    .comparison-icon {
        width: 20px;
        height: 20px;
    }

    .top-offers-table {
        border-radius: 8px;
        overflow: hidden;
    }

    .offer-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .offer-label {
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .offer-label svg {
        width: 14px;
        height: 14px;
    }

    .offer-info {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .offer-info .offer-product-name {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .offer-info .offer-price {
        font-size: 0.9rem;
    }

    .offer-info .offer-store {
        font-size: 0.65rem;
    }

    /* Comparison Product - Mobile */
    .comparison-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comparison-product-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    .comparison-price {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .comparison-name {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .comparison-store {
        font-size: 0.7rem;
        color: var(--text-light);
    }

    .comparison-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.25rem;
    }

    .comparison-savings {
        font-size: 0.75rem;
    }

    .comparison-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .featured-products {
        margin-top: 2rem;
    }
}

/* ========================================
   Score Calidad-Precio Badges
   ======================================== */

.score-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.score-excelente {
    background: var(--primary);
    color: white;
}

.score-bueno {
    background: var(--blue);
    color: white;
}

.score-normal {
    background: var(--text-light);
    color: white;
}

.product-card.best-deal {
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.product-score {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.score-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.score-reason {
    margin-top: 4px;
    padding: 4px 0;
    font-size: 0.7rem;
    color: var(--gray-500);
    line-height: 1.3;
}

/* Animación hover para mejores ofertas */
.product-card.best-deal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* ========== NUEVO: Productos Agrupados (estilo Google Shopping) ========== */

/* Badge de producto agrupado */
.grouped-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
    z-index: 2;
}

/* Borde especial para productos agrupados */
.product-card.grouped-product {
    border: 2px solid var(--blue);
    background: white;
}

.product-card.grouped-product:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

/* Product savings indicator */
.product-savings {
    margin-top: 8px;
    padding: 4px 0;
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ========================================
   Popular Products Grid (páginas de categoría)
   ======================================== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.popular-card:hover {
    border-color: var(--borderLight);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.popular-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.popular-card-info {
    flex: 1;
    min-width: 0;
}

.popular-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.popular-card-price {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
}

.popular-card-arrow {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: color 0.2s;
}

.popular-card:hover .popular-card-arrow {
    color: var(--primary);
}

@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .popular-card {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    .popular-card-icon {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .popular-card-name {
        font-size: 0.75rem;
    }
    .popular-card-price {
        font-size: 0.6875rem;
    }
    .popular-card-arrow {
        display: none;
    }
}

/* Botón principal Ver detalle - AZUL sólido */
.btn-view-detail {
    background: var(--primary, var(--colorPrimary));
    color: white;
    border: none;
    font-weight: 600;
    flex: 1;
}
.btn-view-detail:hover {
    background: var(--colorPrimary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Botón comparar tiendas - primario */
.btn-view-offers {
    background: var(--primary, var(--colorPrimary));
    color: white;
    border: none;
    font-weight: 600;
    flex: 1;
}
.btn-view-offers:hover {
    background: var(--colorPrimary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Link ver historial - compacto */
.btn-detail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 6px 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--textSecondary);
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}
.btn-detail-link:hover {
    color: var(--colorPrimary);
}
.btn-detail-link svg {
    flex-shrink: 0;
}

/* Botón ir a tienda - primario */
.btn-view-store {
    background: var(--primary, var(--colorPrimary));
    color: white;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-view-store:hover {
    background: var(--colorPrimary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Contenedor de ofertas de tiendas */
.store-offers {
    margin-top: 12px;
    border-top: 1px solid var(--borderLight);
    padding-top: 12px;
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.store-offers.hidden {
    display: none;
}

/* Individual store offer - LIMPIO */
.store-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: var(--bgLight);
    border-radius: 8px;
    border: 1px solid var(--borderLight);
    transition: all 0.15s;
}
.store-offer:hover {
    background: var(--bgMuted);
    border-color: var(--borderDark);
}
.store-offer:last-child {
    margin-bottom: 0;
}

.offer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.offer-store-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--textBody);
    white-space: nowrap;
}
.offer-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--textPrimary);
}

.offer-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.offer-link-btn:hover {
    background: var(--colorPrimary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ========== HEADER MEJORADO ========== */

/* ========== FOOTER MEJORADO - ESTILO AMAZON/MERCADOLIBRE ========== */

/* ========== FOOTER OSCURO - LIMPIO ========== */
.footer {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, var(--colorPrimary) 0%, var(--textPrimary) 100%);
    color: var(--borderDark);
    padding: 64px 0 0;
    margin-top: 100px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 36px 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bgMuted);
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-link {
    color: var(--textMuted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: #ffffff;
    transform: none;
}

.footer-link svg {
    flex-shrink: 0;
}

.footer-store {
    color: var(--textSecondary);
    font-size: 0.8125rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-bottom: 32px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo-section svg {
    flex-shrink: 0;
}

.footer-logo-text h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
    letter-spacing: -0.02em;
}

.footer-logo-text p {
    font-size: 0.8125rem;
    color: var(--textMuted);
    margin: 0;
}

.footer-description {
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--textMuted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-stat-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--borderLight);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: none;
    letter-spacing: 0.01em;
}

/* AWS Infrastructure Badge */
.footer-infra-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0.55;
    transition: opacity 0.3s;
}

.footer-infra-badge:hover {
    opacity: 0.85;
}

.footer-infra-text {
    font-size: 0.7rem;
    color: var(--textSecondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-aws-logo {
    height: 18px;
    width: auto;
}

.footer-copyright-section {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--textSecondary);
    margin: 0 0 6px;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--textBody);
    margin: 0;
    text-align: center;
    font-style: normal;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    .footer-logo-section {
        flex-direction: column;
        text-align: center;
    }

    .footer-stats {
        justify-content: center;
    }
}

/* Móvil pequeño - footer */
@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .logo-text h1,
.logo-text .logo-title {
        font-size: 0.9rem;
    }

    .country-btn {
        padding: 0.25rem 0.5rem;
        height: 32px;
    }

    /* Hero ajustado */
    .hero-section {
        padding-top: 95px;
    }

    .hero-content {
        padding-top: var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stat-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Search del hero compacto */
    .search-box {
        height: 44px;
        padding: 0 0.75rem;
    }

    .search-box input {
        font-size: 16px; /* Min 16px evita zoom iOS */
    }

    .btn-search {
        padding: 0.5rem 0.875rem;
        font-size: 13px;
    }

    /* Pills compactos en móvil pequeño */
    .quick-search {
        gap: 6px;
    }

    .pill {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ========================================
   BOTONES DE COMPARTIR EN REDES SOCIALES
   ======================================== */
.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.5rem;
}

.share-label {
    color: var(--textMuted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #000000;
}

.share-whatsapp {
    background: #25D366;
}

.share-telegram {
    background: #0088CC;
}

@media (max-width: 480px) {
    .share-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   BOTONES DE COMPARTIR EN CARDS DE PRODUCTO
   ======================================== */
.product-footer {
    margin-top: auto;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-share {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.share-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.share-icon-btn:hover {
    transform: scale(1.1);
    background: var(--gray-200);
}

.share-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive para botones compartir en cards */
@media (max-width: 768px) {
    .product-share {
        gap: 0.75rem;
    }

    .share-icon-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        gap: 0.375rem;
    }

    .product-share {
        padding-top: 0.375rem;
        margin-top: 0.375rem;
        gap: 1rem;
    }

    .share-icon-btn {
        width: 40px;
        height: 40px;
    }

    .share-icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   PWA INSTALL BANNER - ARRIBA, COMPACTO
   ======================================== */
.pwa-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--colorPrimary) 0%, var(--colorPrimary) 100%);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pwa-top-banner.show {
    transform: translateY(0);
    pointer-events: auto;
}

.pwa-top-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-top-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pwa-top-text {
    font-size: 0.8125rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-top-text strong {
    font-weight: 700;
}

.pwa-top-btn {
    background: white;
    color: var(--colorPrimary);
    border: none;
    border-radius: 6px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.pwa-top-btn:active {
    transform: scale(0.95);
}

.pwa-top-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.pwa-top-close:hover {
    color: white;
}

/* Ajustar contenido cuando el banner está visible */
.pwa-top-banner.show ~ .header {
    top: 42px;
}

.pwa-top-banner.show ~ main {
    padding-top: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .pwa-top-content {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .pwa-top-icon {
        font-size: 1rem;
    }

    .pwa-top-text {
        font-size: 0.75rem;
    }

    .pwa-top-btn {
        padding: 0.3rem 0.625rem;
        font-size: 0.75rem;
    }

    .pwa-top-banner.show ~ .header {
        top: 36px;
    }

    .pwa-top-banner.show ~ main {
        padding-top: 165px;
    }
}

/* Ocultar estilos viejos que ya no se usan */
.pwa-install-banner,
.pwa-install-content,
.pwa-install-icon,
/* Clases viejas de PWA - ocultas */
.pwa-install-banner,
.pwa-install-content,
.pwa-install-text,
.pwa-install-actions,
.pwa-btn-install,
.pwa-btn-close {
    display: none !important;
}

/* ========================================
   PÁGINAS DE CATEGORÍA - RESPONSIVE
   ======================================== */
.category-hero {
    padding: 1.25rem 0;
    background: linear-gradient(135deg, var(--colorPrimary) 0%, var(--colorPrimary) 100%);
    color: white;
}

.category-hero h1 {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.category-hero p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category-stats {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.category-stat {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.breadcrumb-nav {
    padding: 0.625rem 0;
    background: var(--gray-50);
    font-size: 0.75rem;
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
}

/* Tabla de precios responsive */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.875rem;
}

.price-table th {
    background: var(--gray-800);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
}

.price-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.price-table .price {
    font-weight: 700;
    color: var(--green);
}

/* SEO Content responsive */
.seo-section {
    padding: 1.5rem 0;
    background: var(--gray-50);
}

.seo-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.seo-block h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.seo-block ul {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-light);
    padding-left: 1.25rem;
}

/* Responsive tablet/desktop */
@media (min-width: 768px) {
    .category-hero {
        padding: 2rem 0;
    }

    .category-hero h1 {
        font-size: 1.75rem;
    }

    .category-hero p {
        font-size: 1rem;
    }

    .category-stat {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }

    .seo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .price-table {
        font-size: 1rem;
    }
}

/* Móvil - ajustar para barra inferior */
@media (max-width: 768px) {
    .category-page-footer {
        margin-bottom: 120px;
    }
}

/* ========================================
   MEJORAS RESPONSIVE MÓVIL - EXTRA
   ======================================== */

/* Indicador de scroll en pills */
@media (max-width: 768px) {
    .quick-search {
        position: relative;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }

    .quick-search::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
    }
}

/* Tarjetas de productos más compactas en móvil pequeño */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 90px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-name {
        font-size: 0.75rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 1rem;
        font-weight: 700;
    }

    .product-store {
        padding: 2px 5px;
        font-size: 0.55rem;
    }

    .score-badge {
        padding: 2px 6px;
        font-size: 0.5rem;
    }

    /* Hero aún más compacto */
    .hero-title {
        font-size: 1.375rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .hero-features {
        gap: 0.4rem;
    }

    .hero-feature-card {
        padding: 0.625rem 0.75rem;
    }

    /* Categorías más pequeñas */
    .category-card {
        flex: 0 0 120px;
        min-width: 120px;
    }
}

/* Mejora touch targets para móvil */
@media (max-width: 768px) {
    .pill,
    .country-btn {
        min-height: 44px; /* Apple HIG minimum touch target */
    }

    /* Búsqueda más grande para tocar */
    .search-box input {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* ========================================
   BANNER DE SUGERENCIAS (Sin resultados)
   ======================================== */
.suggestion-banner {
    background: linear-gradient(135deg, var(--bgWarning) 0%, var(--bgWarning) 100%);
    border: 1px solid var(--colorWarning);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.suggestion-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggestion-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    min-width: 200px;
}

.suggestion-text strong {
    color: var(--colorPrimary);
    font-size: 0.95rem;
}

.suggestion-text p {
    color: var(--textPrimary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.suggestion-chip {
    background: white;
    border: 1px solid var(--colorWarning);
    color: var(--colorPrimary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.suggestion-chip:hover {
    background: var(--colorWarning);
    color: white;
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .suggestion-banner {
        padding: 0.75rem 1rem;
        margin: 0.75rem 0 1rem;
    }

    .suggestion-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .suggestion-icon {
        display: none;
    }

    .suggestion-text strong {
        font-size: 0.9rem;
    }

    .suggestion-text p {
        font-size: 0.8rem;
    }

    .suggestion-actions {
        width: 100%;
        justify-content: center;
    }

    .suggestion-chip {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   MOBILE CATEGORY STRIP - Chips con emoji + texto
   Estilo MercadoLibre / Amazon mobile
   ======================================== */
.mobile-cat-strip {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding: 6px 1rem;
    background: white;
    border-top: 1px solid var(--bgMuted);
}

.mobile-cat-strip::-webkit-scrollbar { display: none; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bgMuted);
    border: 1px solid var(--borderLight);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--textBody);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cat-chip:active {
    background: var(--colorPrimary);
    color: white;
    border-color: var(--colorPrimary);
    transform: scale(0.95);
}

.cat-chip .chip-emoji {
    font-size: 0.9375rem;
    line-height: 1;
}

/* FAB - Búsqueda rápida móvil */
.search-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--colorPrimary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Toast Notifications (reemplaza alert) */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 90vw;
}

.toast {
    background: var(--gray-800);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
}

.toast.success {
    background: linear-gradient(135deg, var(--colorSuccess) 0%, var(--colorSuccess) 100%);
}

.toast.error {
    background: linear-gradient(135deg, var(--colorDanger) 0%, var(--colorDanger) 100%);
}

.toast.warning {
    background: linear-gradient(135deg, var(--colorWarning) 0%, var(--colorWarning) 100%);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* RESPONSIVE MÓVIL - BÚSQUEDA EN HEADER */
@media (max-width: 768px) {
    /* Toast en móvil */
    .toast-container {
        top: auto;
        bottom: 100px;
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: none;
    }

    .toast {
        width: 100%;
        max-width: none;
    }

    /* Stats bar horizontal scrollable */
    .stats-bar {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.75rem 0;
        -webkit-overflow-scrolling: touch;
    }

    .stat-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Móviles pequeños */
@media (max-width: 380px) {
    .search-box {
        height: 42px !important;
    }

    .btn-search {
        min-width: 70px !important;
        font-size: 12px !important;
    }

    .cat-chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.375rem !important;
    }

    .hero-stat-pill {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* ========================================
   BANNERS PROMOCIONALES RESPONSIVOS
   ======================================== */
.promo-banner-link {
    display: block;
    text-decoration: none;
    margin: 1.5rem 0;
}

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.promo-banner-green {
    background: linear-gradient(135deg, var(--colorSuccess) 0%, var(--colorSuccess) 100%);
}

.promo-banner-blue {
    background: linear-gradient(135deg, var(--colorPrimary) 0%, var(--colorPrimary) 100%);
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.promo-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.625rem;
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.promo-badge-small {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.promo-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.promo-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.promo-title-sm {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.promo-desc {
    color: rgba(255,255,255,0.9);
    font-size: 0.8125rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

.promo-banner-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.promo-stat {
    text-align: center;
    background: rgba(255,255,255,0.15);
    padding: 8px 12px;
    border-radius: 8px;
}

.promo-stat-num {
    display: block;
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
}

.promo-stat-label {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 0.625rem;
}

.promo-stats-row {
    display: flex;
    gap: 0.75rem;
}

.promo-stat-mini {
    text-align: center;
}

.promo-stat-mini span:first-child {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.promo-stat-mini span:last-child {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 0.625rem;
}

.stat-yellow {
    color: white;
}

.stat-green {
    color: white;
}

.promo-btn {
    display: inline-block;
    background: white;
    color: var(--colorSuccess);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.promo-banner-blue .promo-btn {
    color: var(--colorPrimary);
}

/* Responsive banners */
@media (max-width: 768px) {
    .promo-banner-link {
        margin: 1rem 0;
    }

    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
        text-align: center;
    }

    .promo-banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .promo-emoji {
        font-size: 1.5rem;
    }

    .promo-title {
        font-size: 1rem;
    }

    .promo-title-sm {
        font-size: 0.9375rem;
    }

    .promo-desc {
        font-size: 0.75rem;
    }

    .promo-banner-cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .promo-stat {
        padding: 6px 10px;
    }

    .promo-stat-num {
        font-size: 1rem;
    }

    .promo-stats-row {
        gap: 0.5rem;
    }

    .promo-stat-mini span:first-child {
        font-size: 0.875rem;
    }

    .promo-btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .promo-banner {
        padding: 0.75rem;
    }

    .promo-title {
        font-size: 0.9375rem;
    }

    .promo-desc {
        display: none;
    }

    .promo-stat {
        display: none;
    }
}

/* ========================================
   OVERRIDE FINAL MÓVIL - Consolidado y limpio
   ======================================== */
@media screen and (max-width: 768px) {
    /* Header compacto */
    .header {
        padding: 0.5rem 0 !important;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px)) !important;
    }

    .header-top {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .logo {
        justify-content: flex-start !important;
    }

    /* Búsqueda: visible por defecto, colapsable con JS via clase */
    .header-search {
        display: block !important;
        flex: 1 1 100% !important;
        order: 3 !important;
        max-width: 100% !important;
        margin: 0.25rem 0 0 0 !important;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
        opacity: 1;
    }

    .search-box {
        height: 44px !important;
        border-radius: 22px !important;
        border: 2px solid var(--borderLight) !important;
        padding: 0 5px 0 14px !important;
        background: var(--bgLight) !important;
    }

    .search-box:focus-within {
        border-color: var(--colorPrimary) !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
        background: white !important;
        transform: none !important;
    }

    .search-icon {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        margin-right: 8px !important;
    }

    .quick-products-btn {
        display: none !important;
    }

    .search-box input {
        font-size: 16px !important; /* Evita zoom iOS */
        padding: 0 8px !important;
    }

    .btn-search {
        height: 36px !important;
        min-height: 36px !important;
        min-width: 78px !important;
        border-radius: 18px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 0 14px !important;
        box-shadow: none !important;
    }

    .btn-search .btn-text {
        display: inline !important;
    }

    .btn-search .btn-icon {
        display: none !important;
    }

    /* Logo compacto */
    .logo-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-text h1,
    .logo-text .logo-title {
        font-size: 1.125rem !important;
    }

    .logo-tagline {
        display: none !important;
    }

    /* Selector país: solo bandera */
    .country-btn {
        padding: 0.375rem 0.5rem !important;
        height: 36px !important;
    }

    .country-btn .country-name {
        display: none !important;
    }

    .mobile-cat-strip {
        display: flex !important;
        margin-top: 100px;
        z-index: 999;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    /* Hero compacto */
    .hero-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }

    /* hero-features y hero-bg-shapes ocultos */
    .hero-features,
    .hero-bg-shapes {
        display: none !important;
    }

    .hero-badge {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }

    .hero-stat-pill {
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
    }

    .hero-trust-row {
        gap: 0.75rem !important;
    }

    .hero-trust-item {
        font-size: 0.7rem !important;
    }

    /* Grid productos 2 columnas */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.625rem !important;
    }

    /* Cards compactas */
    .product-card {
        border-radius: 10px !important;
    }

    .product-image {
        height: 120px !important;
    }

    .product-name {
        font-size: 0.8125rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .product-price {
        font-size: 1rem !important;
    }

    /* Touch targets: mínimo 44px (Apple HIG) */
    .btn-view {
        min-height: 44px !important;
        font-size: 0.8125rem !important;
        border-radius: 8px !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* Ocultar secciones pesadas en móvil */
    .comparison-section,
    .chart-section {
        display: none !important;
    }

    /* Footer compacto */
    .footer-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .footer-column-title {
        font-size: 0.8125rem !important;
    }

    .footer-link {
        font-size: 0.8125rem !important;
        padding: 0.25rem 0 !important;
    }

    /* Promo banners compactos */
    .promo-banner > div {
        padding: 1rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    /* FAB - Botón búsqueda flotante */
    .search-fab {
        display: flex;
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .search-fab.fab-visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .search-fab:active {
        transform: scale(0.92);
    }
}

/* ========================================
   LIGHTBOX - Galería de imágenes fullscreen
   ======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10002;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.15);
}
.lightbox-img-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img-container img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
}
.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}
.lightbox-arrow.prev { left: 16px; }
.lightbox-arrow.next { right: 16px; }
.lightbox-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10001;
}
.lightbox-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.lightbox-dot.active {
    background: #fff;
    transform: scale(1.3);
}
.lightbox-counter {
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10001;
}
/* Cursor pointer en imágenes de producto que tienen lightbox */
.product-image.has-lightbox {
    cursor: zoom-in;
}
.product-image.has-lightbox img {
    cursor: zoom-in;
}
/* Indicador de múltiples imágenes en la card */
.product-image .img-count-badge {
    position: absolute;
    bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 480px) {
    .lightbox-arrow {
        width: 40px; height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-arrow.prev { left: 8px; }
    .lightbox-arrow.next { right: 8px; }
    .lightbox-close { top: 10px; right: 12px; }
    .lightbox-img-container img {
        max-width: 95vw;
        max-height: 75vh;
    }
}
