/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e293b;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e5e7eb;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-alt: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

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

/* ==================== HEADER OPTIMIZADO PARA MÓVILES ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* NAVEGACIÓN MÓVIL CORREGIDA */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.nav-icons i {
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icons i:hover {
    color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.nav-icons .fa-shopping-cart {
    font-size: 1.3rem !important;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: pulse-scale 2s infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* HAMBURGER MENU CORREGIDO */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section - Completamente Rediseñado */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 90, 205, 0.8), rgba(255, 255, 255, 0.1));
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.6), rgba(255, 255, 255, 0.1));
    top: 50%;
    right: -15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.7), rgba(255, 255, 255, 0.1));
    bottom: 10%;
    left: 30%;
    animation-delay: -3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    25% { transform: translateY(-30px) translateX(20px) scale(1.1); }
    50% { transform: translateY(-20px) translateX(-15px) scale(0.9); }
    75% { transform: translateY(-40px) translateX(10px) scale(1.05); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.hero-left {
    color: white;
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.badge-icon {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-highlight {
    display: block;
    color: #fbbf24;
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.title-main {
    display: block;
    color: white;
    margin-bottom: 5px;
}

.title-accent {
    display: block;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5rem;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 90%;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn-primary-hero {
    position: relative;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary-hero:hover .btn-shine {
    left: 100%;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Right - Product Showcase */
.hero-right {
    position: relative;
    animation: slideInRight 1s ease-out 0.5s both;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-showcase {
    position: relative;
    width: 350px;
    height: 450px;
}

.showcase-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    transform: scale(0.9) rotateY(30deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 5;
}

/* =================================
   CORRECCIÓN PARA IMÁGENES DEL HERO
   ================================= */

/* Contenedor principal del showcase */
.showcase-item .product-image {
    width: 200px;
    height: 250px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Imagen optimizada para mostrar completa */
.showcase-item .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    opacity: 1; /* CORREGIDO! Ahora las imágenes son visibles por defecto */
}

.showcase-item .product-image img.loaded {
    opacity: 1;
}

/* Efecto hover mejorado */
.showcase-item:hover .product-image img {
    transform: scale(1.08);
}

/* Específico para diferentes tipos de productos */
.showcase-item[data-product="iphone"] .product-image {
    background: linear-gradient(135deg, #1e1e1e 0%, #3a3a3a 100%);
    padding: 15px;
}

.showcase-item[data-product="macbook"] .product-image {
    background: linear-gradient(135deg, #f0f4f8 0%, #d1e7fe 100%);
    padding: 10px;
}

.showcase-item[data-product="airpods"] .product-image {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
}

/* Mejora para la información del producto */
.showcase-item .product-info {
    margin-top: auto;
}

.showcase-item .product-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.showcase-item .product-info p {
    font-size: 1.2rem;
    color: #fbbf24;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.showcase-controls {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn.active,
.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: -15%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 30%;
    left: -5%;
    animation-delay: 3s;
}

.icon-4 {
    bottom: 10%;
    right: -10%;
    animation-delay: 4.5s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-25px) rotate(270deg); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 2s ease-out 1.5s both;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Animaciones de entrada */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Preview Section */
.categories-preview {
    padding: 5rem 0;
    background: var(--surface);
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

/* =================================
   ICONOS MODERNOS PARA CATEGORÍAS
   ================================= */

/* Estilo base para iconos de categorías */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.category-card:hover .category-icon::before {
    left: 100%;
}

.category-card:hover .category-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

/* Iconos específicos por categoría */
.category-icon i {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
}

/* Gradientes únicos para cada categoría */
.category-card[data-category="iphone"] .category-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.category-card[data-category="ipad"] .category-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.category-card[data-category="mac"] .category-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.category-card[data-category="accesorios"] .category-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.category-card[data-category="gaming"] .category-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.category-card[data-category="tablets"] .category-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 10px 30px rgba(168, 237, 234, 0.3);
}

.category-card[data-category="streaming"] .category-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

.category-card[data-category="otros"] .category-icon {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    box-shadow: 0 10px 30px rgba(161, 196, 253, 0.3);
}

/* Efectos especiales para hover */
.category-card:hover .category-icon {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {
    0% { transform: translateY(-5px) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.1); }
    100% { transform: translateY(-5px) scale(1.05); }
}

/* Mejora para textos de categorías */
.category-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.category-count {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating .stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--surface);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* =================================
   FILTROS MODERNOS CON ICONOS
   ================================= */

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.1);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.filter-btn.active i,
.filter-btn:hover i {
    color: white;
    transform: scale(1.1);
}

/* ==================== PRODUCTOS GRID CORREGIDO PARA MÓVILES ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    /* ASEGURAR VISIBILIDAD EN MÓVILES */
    min-height: 200px;
    width: 100%;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    /* IMPORTANTE: Asegurar que las tarjetas sean visibles */
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 280px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
    max-width: 220px;
    max-height: 220px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.product-image img.loading {
    opacity: 0.7;
    filter: blur(2px);
}

.product-image img.loaded {
    opacity: 1;
    filter: none;
}

.product-image .image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.product-image .image-fallback i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.product-image .image-fallback span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
    z-index: 10;
}

.availability-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.availability-badge.available {
    background: var(--success-color);
}

.availability-badge.soon {
    background: var(--warning-color);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-price {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-colors {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option {
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.savings-indicator {
    background: linear-gradient(45deg, var(--success-color), #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.savings-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Catalog Stats */
.catalog-stats {
    background: var(--gradient-alt);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 3rem;
}

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

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== MODAL DE BÚSQUEDA CORREGIDO PARA MÓVILES ==================== */
.search-modal-content {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.search-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.search-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

#searchInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    /* IMPORTANTE: Asegurar que funcione en móviles */
    -webkit-appearance: none;
    appearance: none;
}

#searchInput:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-results {
    margin-bottom: 2rem;
    /* ASEGURAR VISIBILIDAD */
    min-height: 50px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* MEJORAR TOUCH EN MÓVILES */
    min-height: 60px;
}

.search-result-item:hover {
    background: var(--surface);
    border-color: var(--secondary-color);
}

.search-result-image {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-result-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.search-result-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-suggestions h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    /* MEJORAR TOUCH EN MÓVILES */
    min-height: 40px;
    display: flex;
    align-items: center;
}

.suggestion-tag:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.no-search-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ==================== FAQ CORREGIDO PARA MÓVILES ==================== */
.faq-section {
    padding: 5rem 0;
    background: var(--surface);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    /* MEJORAR TOUCH EN MÓVILES */
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--surface);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Trust Badges Section */
.trust-badges {
    padding: 3rem 0;
    background: var(--primary-color);
    color: white;
}

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

.badge-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
}

.badge-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.badge-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.badge-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: #0891b2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ==================== MODAL OPTIMIZADO PARA MÓVILES ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    /* IMPORTANTE: Prevent scroll behind modal on mobile */
    overflow: hidden;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
    /* IMPORTANTE: Límites para móviles */
    max-height: 85vh;
    overflow-y: auto;
}

/* Product Modal con Carrusel */
.product-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
}

/* Cart Modal Specific Styles */
.cart-modal-content {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* ==================== CARRUSEL DE IMÁGENES ==================== */
.modal-carousel {
    position: relative;
    width: 100%;
    background: var(--surface);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: var(--surface);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--secondary-color);
    opacity: 0.7;
}

/* Badge de disponibilidad en carrusel */
.modal-carousel .modal-availability {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    z-index: 5;
}

.modal-carousel .modal-availability.available {
    background: var(--success-color);
}

.modal-carousel .modal-availability.soon {
    background: var(--warning-color);
}

/* Transiciones suaves para el carrusel */
.carousel-slides.transitioning {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos especiales para el carrusel */
.carousel-slide {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-slide.active {
    opacity: 1;
}

/* Contador de imágenes */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Zoom en hover para imágenes del carrusel */
.carousel-slide img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Efecto de loading para imágenes */
.carousel-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide img.loaded {
    opacity: 1;
}

/* Preloader para carrusel */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mejora de accesibilidad */
.carousel-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.carousel-indicator:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Animación suave para cambios de imagen */
.carousel-slides {
    will-change: transform;
}

/* Soporte para imágenes de alta resolución */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==================== FIN CARRUSEL ==================== */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cart-header h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 1rem 0;
}

.cart-items {
    padding: 0 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.cart-item-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border-radius: 20px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
}

.total-amount {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    /* MEJORAR TOUCH EN MÓVILES */
    padding: 10px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-availability {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.modal-availability.available {
    background: var(--success-color);
}

.modal-availability.soon {
    background: var(--warning-color);
}

.modal-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-colors {
    margin-bottom: 1rem;
}

.modal-colors span {
    display: inline-block;
    background: var(--surface);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
}

.modal-features {
    margin: 1rem 0;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-btn,
.buy-now-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* MEJORAR TOUCH EN MÓVILES */
    min-height: 50px;
}

.add-to-cart-btn {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.buy-now-btn {
    background: #25d366;
    color: white;
}

.buy-now-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== RESPONSIVE DESIGN MÓVILES ==================== */
@media (max-width: 768px) {
    /* NAVEGACIÓN MÓVIL CORREGIDA */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px 20px;
        gap: 1rem;
        z-index: 999;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu a {
        width: 100%;
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .title-accent {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        gap: 10px;
    }
    
    .feature-pill {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .product-showcase {
        width: 300px;
        height: 400px;
    }
    
    .showcase-item {
        padding: 30px;
    }
    
    /* Mejoras responsive para imágenes del hero */
    .showcase-item .product-image {
        width: 160px;
        height: 200px;
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .showcase-item[data-product="macbook"] .product-image {
        padding: 8px;
    }
    
    .showcase-item[data-product="airpods"] .product-image {
        padding: 15px;
    }
    
    .showcase-item .product-info h3 {
        font-size: 1.2rem;
    }
    
    .showcase-item .product-info p {
        font-size: 1rem;
    }
    
    .showcase-controls {
        bottom: -60px;
        gap: 10px;
    }
    
    .control-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 250px;
        height: 250px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    /* GRID DE CATEGORÍAS CORREGIDO */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Responsive para iconos */
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    /* PRODUCTOS GRID MÓVIL CORREGIDO */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        /* ASEGURAR QUE SE VEA EN MÓVILES */
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Mejoras para imágenes en tablets */
    .product-image {
        height: 260px;
        padding: 18px;
    }
    
    .product-image img {
        max-width: 210px;
        max-height: 210px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* FILTROS RESPONSIVE CORREGIDOS */
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.8rem;
        /* SCROLL HORIZONTAL EN MÓVILES */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
        /* ASEGURAR QUE NO SE ROMPAN */
        flex-shrink: 0;
        min-width: auto;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    /* MODALES RESPONSIVE CORREGIDOS */
    .search-modal-content,
    .cart-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .search-header,
    .cart-header {
        padding: 1rem 1.5rem;
    }
    
    .search-body,
    .cart-body {
        padding: 1.5rem;
    }
    
    #searchInput {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    /* FAQ RESPONSIVE CORREGIDO */
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    /* Carrusel responsive */
    .product-modal-content {
        margin: 1% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        padding: 10px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .modal-carousel .modal-availability {
        top: 10px;
        left: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* MODAL ACTIONS RESPONSIVE */
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Hero móviles pequeños */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 60px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .title-highlight {
        font-size: 2rem;
    }
    
    .title-accent {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .stat-separator {
        display: none;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .product-showcase {
        width: 250px;
        height: 320px;
    }
    
    .showcase-item {
        padding: 20px;
    }
    
    /* Mejoras responsive para móviles pequeños */
    .showcase-item .product-image {
        width: 140px;
        height: 160px;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .showcase-item[data-product="macbook"] .product-image {
        padding: 6px;
    }
    
    .showcase-item[data-product="airpods"] .product-image {
        padding: 12px;
    }
    
    .showcase-item .product-info h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .showcase-item .product-info p {
        font-size: 0.9rem;
    }
    
    .showcase-controls {
        bottom: -50px;
        gap: 8px;
    }
    
    .control-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-features {
        gap: 8px;
    }
    
    .feature-pill {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .orb-1 {
        width: 150px;
        height: 150px;
    }
    
    .orb-2 {
        width: 180px;
        height: 180px;
    }
    
    .orb-3 {
        width: 100px;
        height: 100px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    /* Mejoras para imágenes en móviles */
    .product-image {
        height: 240px;
        padding: 15px;
    }
    
    .product-image img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .category-icon i {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        gap: 0.3rem;
    }
    
    .filter-btn i {
        font-size: 0.8rem;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .product-features li {
        font-size: 0.8rem;
    }
    
    /* Carrusel en móviles pequeños */
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .modal-carousel .modal-availability {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* NAVEGACIÓN MÓVIL PARA MÓVILES PEQUEÑOS */
    .nav-menu {
        width: 90%;
        padding: 60px 15px 15px 15px;
    }
    
    .nav-menu li {
        padding: 8px 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 8px 0;
    }
    
    /* MODALES EN MÓVILES PEQUEÑOS */
    .search-modal-content,
    .cart-modal-content,
    .product-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .search-header,
    .cart-header {
        padding: 1rem;
    }
    
    .search-body {
        padding: 1rem;
    }
    
    #searchInput {
        padding: 0.8rem;
        font-size: 16px;
    }
    
    .close {
        padding: 8px;
        min-width: 35px;
        min-height: 35px;
        font-size: 1.5rem;
    }
    
    /* GRID DE PRODUCTOS EN MÓVILES PEQUEÑOS */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* NAVEGACIÓN MÓVIL PARA MÓVILES PEQUEÑOS */
    .nav-menu {
        width: 90%;
        padding: 60px 15px 15px 15px;
    }
    
    .nav-menu li {
        padding: 8px 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 8px 0;
    }
    
    /* MODALES EN MÓVILES PEQUEÑOS */
    .search-modal-content,
    .cart-modal-content,
    .product-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .search-header,
    .cart-header {
        padding: 1rem;
    }
    
    .search-body {
        padding: 1rem;
    }
    
    .close {
        right: 10px;
        top: 10px;
    }
    
    /* CAROUSEL EN MÓVILES PEQUEÑOS */
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .modal-carousel .modal-availability {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .image-counter {
        bottom: 5px;
        right: 5px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* MODAL BODY EN MÓVILES PEQUEÑOS */
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    /* CARRITO EN MÓVILES PEQUEÑOS */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        background: var(--surface);
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cart-footer {
        padding: 1rem;
    }
    
    /* FORMULARIOS EN MÓVILES */
    .contact-form input,
    .contact-form textarea,
    .newsletter input {
        font-size: 16px;
        padding: 0.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* FOOTER EN MÓVILES PEQUEÑOS */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter input,
    .newsletter button {
        width: 100%;
        padding: 0.8rem;
        font-size: 16px;
    }
    
    /* OPTIMIZACIONES ESPECÍFICAS PARA iPhone */
    @supports (-webkit-touch-callout: none) {
        .modal-content {
            max-height: 85vh;
        }
        
        .nav-menu.active {
            height: 100vh;
            height: -webkit-fill-available;
        }
        
        input, textarea, select {
            font-size: 16px;
            transform: translateZ(0);
        }
        
        .hero-content {
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }
    }
}

/* ==================== ESTILOS ADICIONALES PARA MÓVILES ==================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Smooth touch scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlights */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for inputs and content */
input, textarea, p, h1, h2, h3, h4, h5, h6, span, div.product-title, div.product-brand {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Improve form input appearance on iOS */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="search"], 
textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Fix iOS zoom issue */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="search"] {
    font-size: 16px;
}

/* Ensure buttons work well on touch */
button, .btn, .filter-btn, .control-btn, .carousel-btn, .faq-question {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    touch-action: manipulation;
}

/* No products fallback */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

/* Print styles */
@media print {
    .nav-icons,
    .cart-modal-content,
    .modal,
    .floating-phone,
    .hamburger,
    .hero-gradient-orbs,
    .hero-particles {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .showcase-item {
        color: black !important;
    }
}

/* ==================== FIX ESPECÍFICO PARA SAFARI MÓVIL ==================== */
@supports (-webkit-touch-callout: none) {
    /* Safari mobile specific fixes */
    .modal-content {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 auto;
    }
    
    .nav-menu.active {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    input, textarea {
        font-size: 16px; /* Prevent zoom on focus */
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
.product-card,
.category-card,
.testimonial-card {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-slides {
    will-change: transform;
    transform: translateZ(0);
}

.hero-gradient-orbs .orb {
    will-change: transform;
    transform: translateZ(0);
}

/* ==================== ÚLTIMAS OPTIMIZACIONES ==================== */

/* Asegurar que el grid de productos siempre sea visible */
.products-grid {
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
}

/* Mejorar la visibilidad del menú hamburguesa */
.hamburger {
    z-index: 1001;
    position: relative;
}

/* Asegurar que los modales funcionen en todos los dispositivos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

/* Overlay para prevenir scroll detrás de modales */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Optimización final para Safari iOS */
@media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-content {
        padding-top: max(100px, env(safe-area-inset-top, 100px));
        padding-bottom: max(60px, env(safe-area-inset-bottom, 60px));
    }
    
    .nav-menu.active {
        padding-top: max(80px, env(safe-area-inset-top, 80px));
    }
}

/* ==================== ESTILOS ADICIONALES PARA MÓVILES ==================== */

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Smooth touch scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlights */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for inputs and content */
input, textarea, p, h1, h2, h3, h4, h5, h6, span, div.product-title, div.product-brand {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Improve form input appearance on iOS */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="search"], 
textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Fix iOS zoom issue */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="search"] {
    font-size: 16px;
}

/* Ensure buttons work well on touch */
button, .btn, .filter-btn, .control-btn, .carousel-btn, .faq-question {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    touch-action: manipulation;
}

/* No products fallback */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

/* Print styles */
@media print {
    .nav-icons,
    .cart-modal-content,
    .modal,
    .floating-phone,
    .hamburger,
    .hero-gradient-orbs,
    .hero-particles {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .showcase-item {
        color: black !important;
    }
}

/* ==================== FIX ESPECÍFICO PARA SAFARI MÓVIL ==================== */
@supports (-webkit-touch-callout: none) {
    /* Safari mobile specific fixes */
    .modal-content {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 auto;
    }
    
    .nav-menu.active {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
    }
    
    input, textarea {
        font-size: 16px; /* Prevent zoom on focus */
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
.product-card,
.category-card,
.testimonial-card {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-slides {
    will-change: transform;
    transform: translateZ(0);
}

.hero-gradient-orbs .orb {
    will-change: transform;
    transform: translateZ(0);
}
/* ==================== MODAL CORREGIDO PARA MÓVILES ==================== */

/* Arreglo general para todos los modales en móviles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
        /* CRUCIAL: Permitir scroll completo */
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        margin: 10px auto;
        width: calc(100% - 20px);
        max-width: 95vw;
        /* CORREGIDO: Altura flexible para todo el contenido */
        max-height: calc(100vh - 40px);
        min-height: auto;
        overflow-y: auto;
        position: relative;
        top: auto;
        transform: none;
    }
    
    /* Modal de productos específico */
    .product-modal-content {
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        margin: 10px auto;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        max-height: none;
    }
    
    /* Carrusel responsive */
    .carousel-container {
        height: 250px;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Información del producto con scroll */
    .modal-info {
        max-height: none;
        overflow-y: visible;
        padding: 1rem 0;
    }
    
    /* Botones fijos en la parte inferior */
    .modal-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem;
        border-top: 1px solid var(--border);
        margin: 0 -1rem -1rem -1rem;
        z-index: 10;
    }
    
    /* Asegurar que el close button sea accesible */
    .close {
        position: sticky;
        top: 10px;
        right: 10px;
        z-index: 2001;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
    }
    
    .modal-content {
        width: calc(100% - 10px);
        margin: 5px auto;
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }
    
    .product-modal-content {
        max-height: calc(100vh - 10px);
        margin: 5px auto;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .modal-info {
        padding: 0.8rem 0;
    }
    
    .modal-actions {
        padding: 0.8rem;
        margin: 0 -0.8rem -0.8rem -0.8rem;
    }
    
    .close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}
