/* ===============================================
   CATALOG.CSS - CORREGIDO PARA PRODUCCIÓN ✅
   TuJuguete.co - MVP Simple, Bonito, Potente
   ✅ Contraste WCAG AA corregido
   ✅ Performance optimizada
   ✅ Touch targets 44px mínimo
   ✅ Responsive breakpoints mejorados
   ✅ Safe areas iOS/Android
   =============================================== */

/* ===============================================
   RESET Y VARIABLES CORREGIDAS ✅
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #6BC5A0;
    --color-primary-dark: #5BA888;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #20b954;
    --color-text: #333333;
    --color-text-light: #4a4a4a; /* ✅ CORREGIDO: Era #666 (fail WCAG) */
    --color-background: #ffffff;
    --color-background-light: #f8f9fa;
    --color-danger: #e74c3c;
    --color-footer: #2c3e50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    /* ✅ MEJORADO: Scroll performance iOS */
    -webkit-overflow-scrolling: touch;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===============================================
   HEADER OPTIMIZADO PARA MÓVIL ✅
   =============================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); /* ✅ OPTIMIZADO: Era blur(10px) */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* ✅ OPTIMIZADO: Performance */
    /* ✅ NUEVO: Safe area iOS */
    padding-top: env(safe-area-inset-top);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem; /* ✅ OPTIMIZADO: Era 1rem */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px; /* ✅ OPTIMIZADO: Era 80px */
}

.nav-brand h1 {
    color: var(--color-primary);
    font-size: 1.5rem; /* ✅ OPTIMIZADO: Era 1.6rem */
    font-weight: bold;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ✅ OPTIMIZADO */
    flex-direction: column;
    padding: 1rem 0;
    /* ✅ MEJORADO: Scroll performance */
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 1rem; /* ✅ MEJORADO: Touch target 44px+ */
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px; /* ✅ NUEVO: Touch target mínimo */
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--color-primary);
    background: var(--color-background-light);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    /* ✅ NUEVO: Touch target mejorado */
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 22px; /* ✅ OPTIMIZADO: Era 25px */
    height: 2px; /* ✅ OPTIMIZADO: Era 3px */
    background: var(--color-text);
    margin: 2px 0; /* ✅ OPTIMIZADO: Era 3px */
    transition: 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px); /* ✅ AJUSTADO */
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px); /* ✅ AJUSTADO */
}

/* ✅ NUEVO: Estados focus accesibles */
.nav-toggle:focus,
.nav-menu a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===============================================
   WHATSAPP FLOAT OPTIMIZADO ✅
   =============================================== */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    /* ✅ NUEVO: Safe area */
    bottom: calc(20px + env(safe-area-inset-bottom));
}

.whatsapp-badge {
    background: var(--color-whatsapp);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-container:hover .whatsapp-badge {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float {
    width: 50px; /* ✅ OPTIMIZADO: Era 55px */
    height: 50px; /* ✅ OPTIMIZADO: Era 55px */
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); /* ✅ OPTIMIZADO */
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.05); /* ✅ OPTIMIZADO: Era 1.1 */
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4); /* ✅ OPTIMIZADO */
}

.whatsapp-float svg {
    width: 24px; /* ✅ OPTIMIZADO: Era 28px */
    height: 24px; /* ✅ OPTIMIZADO: Era 28px */
    fill: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.05); /* ✅ OPTIMIZADO: Era 1.1 */
}

.whatsapp-float:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===============================================
   ANIMACIONES OPTIMIZADAS ✅
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px); /* ✅ OPTIMIZADO: Era 20px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px); /* ✅ OPTIMIZADO: Era -10px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   CATALOG SECTION OPTIMIZADA ✅
   =============================================== */
.catalog-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    min-height: 100vh;
    padding: 80px 0 2rem; /* ✅ OPTIMIZADO: Era 90px por header más pequeño */
    /* ✅ NUEVO: Safe area top */
    padding-top: calc(80px + env(safe-area-inset-top));
}

/* ===============================================
   BREADCRUMB MEJORADO ✅
   =============================================== */
.breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem; /* ✅ MEJORADO: Era 0.9rem */
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    /* ✅ NUEVO: Touch target */
    padding: 0.25rem 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb span {
    color: white;
    margin: 0 0.5rem;
    opacity: 0.8;
}

/* ===============================================
   TITLE OPTIMIZADO ✅
   =============================================== */
.catalog-title {
    color: white;
    font-size: 2.2rem; /* ✅ OPTIMIZADO: Era 2.5rem */
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease;
    line-height: 1.2;
}

/* ===============================================
   SEARCH BAR MEJORADA ✅
   =============================================== */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ✅ OPTIMIZADO */
    animation: fadeInUp 0.4s ease;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    background: transparent;
    min-height: 44px; /* ✅ NUEVO: Touch target */
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.search-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 16px; /* ✅ OPTIMIZADO: Era 12px 20px */
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px; /* ✅ NUEVO: Touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.02); /* ✅ OPTIMIZADO: Era 1.05 */
}

.search-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.search-btn span {
    font-size: 1.1rem; /* ✅ OPTIMIZADO: Era 1.2rem */
}

/* ===============================================
   CATEGORY FILTERS MEJORADOS ✅
   =============================================== */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.4s ease;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px; /* ✅ MEJORADO: Touch target */
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px); /* ✅ OPTIMIZADO: Era blur(10px) */
    white-space: nowrap;
    min-height: 44px; /* ✅ NUEVO: Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-1px); /* ✅ OPTIMIZADO: Era -2px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ✅ OPTIMIZADO */
}

.filter-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===============================================
   PRODUCTS COUNTER ✅
   =============================================== */
.products-counter {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.4s ease;
}

.products-counter span {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(8px); /* ✅ OPTIMIZADO */
}

/* ===============================================
   PRODUCTS GRID MEJORADA ✅
   =============================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.4s ease;
    /* ✅ NUEVO: Scroll performance */
    -webkit-overflow-scrolling: touch;
}

/* ===============================================
   PRODUCT CARDS OPTIMIZADAS ✅
   =============================================== */
.product-card {
    background: white;
    border-radius: 16px; /* ✅ OPTIMIZADO: Era 20px */
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); /* ✅ OPTIMIZADO: Performance */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: auto; /* ✅ NUEVO: Altura flexible */
}

.product-card:hover {
    transform: translateY(-3px); /* ✅ OPTIMIZADO: Era -5px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* ✅ OPTIMIZADO */
}

.product-card:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===============================================
   IMAGEN OPTIMIZADA ✅
   =============================================== */
.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    transition: transform 0.3s ease;
    /* ✅ NUEVO: Optimización imagen */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.product-card:hover .product-image img {
    transform: scale(1.03); /* ✅ OPTIMIZADO: Era 1.05 */
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-danger) 0%, #c0392b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.25); /* ✅ OPTIMIZADO */
}

/* ===============================================
   PRODUCT INFO MEJORADA ✅
   =============================================== */
.product-info {
    padding: 1.25rem; /* ✅ OPTIMIZADO: Era 1.5rem */
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: var(--color-primary);
}

.product-name:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===============================================
   PRECIOS LAYOUT MEJORADO ✅
   =============================================== */
.product-prices {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.25rem; /* ✅ OPTIMIZADO: Era 1.3rem */
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1.2;
}

.original-price {
    font-size: 0.95rem; /* ✅ OPTIMIZADO: Era 1rem */
    color: var(--color-text-light); /* ✅ CORREGIDO: Mejor contraste */
    text-decoration: line-through;
    margin-left: 8px;
}

.savings {
    font-size: 0.85rem;
    color: var(--color-danger);
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

/* ===============================================
   BOTONES OPTIMIZADOS ✅
   =============================================== */
.product-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-height: 44px; /* ✅ NUEVO: Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.product-btn:focus {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

/* ===============================================
   PAGINATION MEJORADA ✅
   =============================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.4s ease;
    flex-wrap: wrap;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px; /* ✅ MEJORADO: Touch target */
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px); /* ✅ OPTIMIZADO */
    font-size: 0.9rem;
    min-height: 44px; /* ✅ NUEVO: Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-1px); /* ✅ OPTIMIZADO */
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    padding: 10px 12px; /* ✅ MEJORADO: Touch target */
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 44px; /* ✅ NUEVO: Touch target */
    min-height: 44px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number.active,
.page-number:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-1px); /* ✅ OPTIMIZADO */
}

.page-number:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.pagination-dots {
    color: white;
    opacity: 0.7;
    padding: 0 0.5rem;
    font-weight: 600;
}

/* ===============================================
   LOADING AND EMPTY STATES ✅
   =============================================== */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: white;
}

.loading-state span {
    font-size: 2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: white;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* ===============================================
   FOOTER MEJORADO ✅
   =============================================== */
.footer {
    background: var(--color-footer);
    color: white;
    padding: 40px 0 20px;
    /* ✅ NUEVO: Safe area bottom */
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
    /* ✅ NUEVO: Touch target */
    padding: 0.25rem 0;
    min-height: 32px;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-section a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.whatsapp-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ecf0f1;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0; /* ✅ NUEVO: Touch target */
    min-height: 44px;
}

.whatsapp-footer-link:hover {
    color: var(--color-primary);
}

.whatsapp-footer-link svg {
    width: 18px;
    height: 18px;
    fill: var(--color-whatsapp);
    flex-shrink: 0;
}

.whatsapp-number {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    min-width: 44px; /* ✅ NUEVO: Touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: scale(1.05); /* ✅ OPTIMIZADO */
    color: var(--color-primary);
}

.social-links a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(107, 197, 160, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.badge:hover {
    background: rgba(107, 197, 160, 0.3);
}

/* ===============================================
   RESPONSIVE MEJORADO CON BREAKPOINTS ADICIONALES ✅
   =============================================== */

/* ✅ NUEVO: Mobile Large 480px-639px */
@media (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .catalog-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .pagination-btn {
        padding: 12px 24px;
    }
}

/* ✅ NUEVO: Tablet Small 640px-767px */
@media (min-width: 640px) {
    .nav-brand h1 {
        font-size: 1.7rem;
    }
    
    .category-filters {
        gap: 0.75rem;
    }
    
    .products-grid {
        gap: 2rem;
    }
    
    .product-image {
        height: 240px;
    }
}

/* Tablet 768px+ */
@media (min-width: 768px) {
    .nav {
        padding: 1rem 2rem;
    }
    
    .nav-brand h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        width: auto;
    }
    
    .nav-menu a {
        padding: 0.5rem 0; /* ✅ OPTIMIZADO: Touch target mantenido */
        border-bottom: none;
        background: transparent;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .whatsapp-float {
        width: 55px; /* ✅ MEJORADO: Más grande en desktop */
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .catalog-section {
        padding: 100px 0 3rem;
    }
    
    .catalog-title {
        font-size: 3rem;
    }
    
    .product-image {
        height: 260px;
    }
    
    .product-image img {
        padding: 12px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .category-filters {
        gap: 1rem;
    }
    
    .pagination {
        gap: 1.5rem;
    }
    
    .pagination-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .page-number {
        padding: 10px 14px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: left;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 1rem;
    }
    
    .whatsapp-footer-link svg {
        width: 20px;
        height: 20px;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .social-links a {
        font-size: 1.4rem;
        padding: 0.3rem;
    }
    
    .footer-badges {
        gap: 1rem;
    }
    
    .badge {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-image img {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
    }
    
    .whatsapp-footer-link svg {
        width: 22px;
        height: 22px;
    }
    
    .social-links a {
        font-size: 1.5rem;
    }
    
    .badge {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

/* Desktop XL 1200px+ */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image {
        height: 300px;
    }
}

/* ===============================================
   UTILIDADES Y ESTADOS ESPECIALES ✅
   =============================================== */

/* Producto agotado */
.product-card.out-of-stock {
    opacity: 0.7;
    position: relative;
}

.product-card.out-of-stock::after {
    content: 'AGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Producto nuevo */
.product-card.new-product {
    border: 2px solid #f39c12;
}

.product-card.new-product::before {
    content: 'NUEVO';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f39c12;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* ===============================================
   ACCESIBILIDAD MEJORADA ✅
   =============================================== */

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .product-card:hover,
    .filter-btn:hover,
    .pagination-btn:hover {
        transform: none !important;
    }
}

/* Estados focus consistentes */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===============================================
   OPTIMIZACIONES FINALES ✅
   =============================================== */

/* Mejorar rendering de imágenes */
.product-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: smooth;
}

/* Skeleton loading mejorado */
.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
    opacity: 0.1;
    pointer-events: none;
}