/* ===============================================
   HOME.CSS - CORREGIDO PARA PRODUCCIÓN ✅
   TuJuguete.co - MVP Simple, Bonito, Potente
   ✅ Badges rojos urgencia optimizados
   ✅ Click en nombre mejorado
   ✅ Performance optimizada
   ✅ Touch targets 44px mínimo
   ✅ 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-danger-dark: #c0392b;
    --color-footer: #2c3e50;
    --color-urgent: #ff4757;      /* ✅ Rojo urgencia */
    --color-urgent-dark: #ff3742; /* ✅ Rojo urgencia hover */
}

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 ✅
   =============================================== */
.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 */
    /* ✅ 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 */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px; /* ✅ OPTIMIZADO: Era 80px */
}

.nav-brand h1 {
    color: var(--color-primary);
    font-size: 1.5rem; /* ✅ OPTIMIZADO */
    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);
    flex-direction: column;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 1rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px; /* ✅ NUEVO: Touch target */
    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;
    padding: 8px;
    min-width: 44px; /* ✅ NUEVO: Touch target */
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 22px; /* ✅ OPTIMIZADO */
    height: 2px;
    background: var(--color-text);
    margin: 2px 0;
    transition: 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
}

/* ✅ NUEVO: Estados focus */
.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 */
    height: 50px;
    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);
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 24px; /* ✅ OPTIMIZADO */
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.05);
}

.whatsapp-float:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}


/* ===============================================
   HERO SECTION OPTIMIZADA ✅
   =============================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 90px 0 60px; /* ✅ OPTIMIZADO: Era 100px por header más pequeño */
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ✅ NUEVO: Safe area */
    padding-top: calc(90px + env(safe-area-inset-top));
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hero-content h2 {
    font-size: 1.8rem; /* ✅ OPTIMIZADO: Era 2rem */
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.05rem; /* ✅ OPTIMIZADO: Era 1.1rem */
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: white;
    color: var(--color-primary);
    padding: 14px 28px; /* ✅ MEJORADO: Touch target */
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ✅ OPTIMIZADO */
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 44px; /* ✅ NUEVO: Touch target */
    min-width: 200px;
}

.cta-button:hover {
    transform: translateY(-1px); /* ✅ OPTIMIZADO */
}

.cta-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===============================================
   PRODUCTS SECTION OPTIMIZADA ✅
   =============================================== */
.products-section {
    padding: 50px 0; /* ✅ OPTIMIZADO: Era 60px */
    background: var(--color-background-light);
}

.products-section h2 {
    text-align: center;
    font-size: 1.8rem; /* ✅ OPTIMIZADO: Era 2rem */
    margin-bottom: 2rem;
    color: var(--color-text);
    font-weight: bold;
}

#products-section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* ===============================================
   LOADING STATES OPTIMIZADOS ✅
   =============================================== */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading-placeholder div {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); } /* ✅ OPTIMIZADO */
}

.product-card.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.product-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
    border-radius: 15px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===============================================
   PRODUCT CARDS OPTIMIZADAS ✅
   =============================================== */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* ✅ OPTIMIZADO */
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.product-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.product-card:hover {
    transform: translateY(-3px); /* ✅ OPTIMIZADO */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* ✅ OPTIMIZADO */
}

.product-card:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===============================================
   IMAGEN OPTIMIZADA HOME ✅
   =============================================== */
.product-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* ✅ OPTIMIZADO: Era 220px */
    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; /* ✅ OPTIMIZADO: Era 12px */
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ✅ BADGE DE DESCUENTO OPTIMIZADO */
.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--color-urgent) 0%, var(--color-urgent-dark) 100%);
    color: white;
    padding: 4px 10px; /* ✅ OPTIMIZADO: Era 6px 12px */
    border-radius: 16px; /* ✅ OPTIMIZADO: Era 20px */
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.3); /* ✅ OPTIMIZADO */
    text-transform: uppercase;
    letter-spacing: 0.3px; /* ✅ OPTIMIZADO */
    border: 1px solid rgba(255, 255, 255, 0.2); /* ✅ OPTIMIZADO */
    animation: urgentPulse 2s ease-in-out infinite;
    backdrop-filter: blur(4px);
}

/* ✅ ANIMACIÓN DE URGENCIA OPTIMIZADA */
@keyframes urgentPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 71, 87, 0.3);
    }
    50% { 
        transform: scale(1.03); /* ✅ OPTIMIZADO: Era 1.05 */
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4); /* ✅ OPTIMIZADO */
    }
}

/* ✅ EFECTO HOVER MEJORADO EN BADGE */
.product-card:hover .discount-badge {
    animation: none;
    transform: scale(1.05); /* ✅ OPTIMIZADO: Era 1.1 */
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.product-info {
    padding: 1.2rem; /* ✅ OPTIMIZADO: Era 1.25rem */
}

/* ===============================================
   NOMBRE DEL PRODUCTO OPTIMIZADO ✅
   =============================================== */
.product-info h3 {
    font-size: 1.05rem; /* ✅ OPTIMIZADO: Era 1.1rem */
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ✅ EFECTO HOVER MEJORADO - SOLO COLOR */
.product-info h3:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* ✅ ESTADO FOCUS MEJORADO */
.product-info h3:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.product-name {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 600;
}

.product-name:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.price {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.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 */
    text-decoration: line-through;
    margin-left: 8px;
}

.whatsapp-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;
}

.whatsapp-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.whatsapp-btn:focus {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 2px;
}

/* ===============================================
   PRODUCTOS ESPECIALES OPTIMIZADOS ✅
   =============================================== */
.product-card.daily-discount {
    background: linear-gradient(145deg, #ffffff 0%, var(--color-background-light) 100%);
    border: 1px solid rgba(255, 71, 87, 0.1); /* ✅ OPTIMIZADO */
    position: relative;
}

/* ✅ BRILLO SUTIL OPTIMIZADO */
.product-card.daily-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 71, 87, 0.03) 50%, /* ✅ OPTIMIZADO */
        transparent 100%);
    pointer-events: none;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card.daily-discount:hover::before {
    opacity: 1;
}

/* ===============================================
   BENEFITS SECTION OPTIMIZADA ✅
   =============================================== */
.benefits-section {
    padding: 40px 0; /* ✅ OPTIMIZADO: Era 50px */
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 1.25rem; /* ✅ OPTIMIZADO: Era 1.5rem */
    border-radius: 15px;
    background: var(--color-background-light);
    transition: transform 0.3s ease;
}

.benefit-icon {
    font-size: 2.2rem; /* ✅ OPTIMIZADO: Era 2.5rem */
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.benefit-card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.15rem; /* ✅ OPTIMIZADO: Era 1.2rem */
    font-weight: bold;
}

.benefit-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===============================================
   TESTIMONIALS OPTIMIZADA ✅
   =============================================== */
.testimonials-section {
    padding: 50px 0; /* ✅ OPTIMIZADO: Era 60px */
    background: var(--color-primary);
    color: white;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 1.8rem; /* ✅ OPTIMIZADO: Era 2rem */
    margin-bottom: 2rem;
    font-weight: bold;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* ✅ OPTIMIZADO */
    padding: 1.25rem; /* ✅ OPTIMIZADO */
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stars {
    font-size: 1.05rem; /* ✅ OPTIMIZADO: Era 1.1rem */
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem; /* ✅ OPTIMIZADO: Era 1rem */
    line-height: 1.5;
}

.customer-name {
    font-weight: bold;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===============================================
   ANIMACIONES PARA PRODUCTOS DINÁMICOS ✅
   =============================================== */
.product-card[data-animation-delay="1"] { animation-delay: 0.1s; }
.product-card[data-animation-delay="2"] { animation-delay: 0.2s; }
.product-card[data-animation-delay="3"] { animation-delay: 0.3s; }
.product-card[data-animation-delay="4"] { animation-delay: 0.4s; }
.product-card[data-animation-delay="5"] { animation-delay: 0.5s; }
.product-card[data-animation-delay="6"] { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* ✅ OPTIMIZADO: Era 30px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card.slide-in {
    animation: slideInUp 0.6s ease forwards;
}

/* ===============================================
   FOOTER OPTIMIZADO ✅
   =============================================== */
.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 LINK OPTIMIZADO ✅
   =============================================== */
.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: flex; /* ✅ CORREGIDO */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    min-width: 44px; /* ✅ NUEVO: Touch target */
    min-height: 44px;
}

.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 ✅
   =============================================== */

/* ✅ NUEVO: Mobile Large 480px-639px */
@media (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .products-section h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-image img {
        padding: 12px;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ✅ NUEVO: Tablet Small 640px-767px */
@media (min-width: 640px) {
    .nav-brand h1 {
        font-size: 1.7rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .product-image {
        height: 240px;
    }
    
    .benefits-section {
        padding: 50px 0;
    }
    
    .testimonials-section {
        padding: 60px 0;
    }
}

/* 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;
        border-bottom: none;
        background: transparent;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .hero {
        padding: 110px 0 80px;
        min-height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        max-width: 600px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .products-section {
        padding: 80px 0;
    }
    
    .products-section h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-image img {
        padding: 15px;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .benefits-section {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .benefit-card {
        padding: 2rem;
    }
    
    .benefit-icon {
        font-size: 2.8rem;
    }
    
    .benefit-card h3 {
        font-size: 1.3rem;
    }
    
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-card p {
        font-size: 1.05rem;
    }
    
    .stars {
        font-size: 1.2rem;
    }
    
    .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;
    }
    
    /* ✅ HOVER EFFECTS SOLO EN DESKTOP */
    .product-card:hover .product-image img {
        transform: scale(1.03);
    }
    
    .benefit-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .benefit-card:hover .benefit-icon {
        transform: scale(1.05);
    }
    
    .testimonial-card:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .testimonial-card:hover .stars {
        transform: scale(1.05);
    }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-image img {
        padding: 18px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .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(auto-fit, minmax(300px, 1fr));
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-image img {
        padding: 20px;
    }
}

/* ===============================================
   ESTADOS ESPECIALES OPTIMIZADOS ✅
   =============================================== */
.product-card.loading {
    opacity: 0.6;
}

.product-card.loading .product-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.product-card.error {
    opacity: 0.5;
    filter: grayscale(1);
}

.product-card.error::after {
    content: 'Error';
    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-size: 0.8rem;
    font-weight: bold;
}

/* ===============================================
   UTILIDADES ESPECÍFICAS ✅
   =============================================== */
.section-padding {
    padding: 50px 0; /* ✅ OPTIMIZADO: Era 60px */
}

.section-title {
    text-align: center;
    font-size: 1.8rem; /* ✅ OPTIMIZADO: Era 2rem */
    margin-bottom: 2rem;
    color: var(--color-text);
    font-weight: bold;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.white-bg {
    background: white;
}

.gray-bg {
    background: var(--color-background-light);
}

/* ===============================================
   MEJORAS PARA CARGA DE IMÁGENES ✅
   =============================================== */
.product-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: smooth;
}

.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;
}

/* ===============================================
   ACCESIBILIDAD MEJORADA ✅
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .benefit-card,
    .testimonial-card,
    .hero-content,
    .discount-badge {
        transition: none;
        animation: none !important;
    }
    
    .product-card:hover .product-image img,
    .benefit-card:hover .benefit-icon,
    .testimonial-card:hover .stars {
        transform: none;
    }
}

/* Estados focus consistentes */
.product-card:focus,
.benefit-card:focus,
.testimonial-card:focus,
.cta-button:focus,
.whatsapp-btn:focus,
.product-name:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ===============================================
   PRINT STYLES ✅
   =============================================== */
@media print {
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .testimonials-section {
        background: white !important;
        color: black !important;
    }
    
    .product-card,
    .benefit-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .product-image {
        border: 1px solid #ddd;
    }
    
    .loading-placeholder,
    .whatsapp-float {
        display: none !important;
    }
    
    .discount-badge {
        background: black !important;
        color: white !important;
        animation: none !important;
    }
}