/* ============================================
   YACELL TECH - DISEÑO MODERNO 2024
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Colores Base - XCELLTECH (Rojo y Negro) */
    --primary: #dc2626;        /* Rojo principal del logo */
    --primary-dark: #b91c1c;   /* Rojo oscuro */
    --primary-light: #ef4444;  /* Rojo claro */
    
    --secondary: #1f2937;      /* Negro del texto del logo */
    --secondary-dark: #111827; /* Negro más oscuro */
    
    --accent: #dc2626;         /* Rojo como acento */
    --accent-dark: #b91c1c;    /* Rojo oscuro */
    
    --success: #10b981;        /* Verde para éxito (mantener) */
    --warning: #f59e0b;        /* Amarillo para alertas (mantener) */
    --danger: #dc2626;         /* Rojo para peligro (alineado con logo) */
    --info: #3b82f6;           /* Azul para info (mantener) */
    
    --dark: #1f2937;           /* Negro del logo */
    --gray: #6b7280;           /* Gris neutro */
    --light: #f9fafb;          /* Gris muy claro */
    
    /* Gradientes - Basados en rojo y negro del logo */
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --gradient-secondary: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warm: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Efectos Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET Y BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevenir scroll horizontal global */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Contenedor principal sin overflow */
main {
    overflow-x: hidden;
}

/* Bootstrap container - NO sobrescribir max-width para mantener centrado */
.container {
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selección de texto personalizada */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   NAVBAR MODERNA
   ============================================ */

.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar-modern.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar-brand-modern {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
    text-decoration: none;
}

.navbar-brand-modern:hover {
    transform: scale(1.05);
}

.nav-link-modern {
    position: relative;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-link-modern:hover::before {
    width: 80%;
}

.nav-link-modern:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION IMPACTANTE
   ============================================ */

.hero-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    max-width: 100vw;
}

/* Partículas animadas de fondo mejoradas - contenidas dentro del hero */
.hero-modern::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
    filter: blur(40px);
    pointer-events: none;
}

.hero-modern::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
    filter: blur(40px);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(90deg); }
    50% { transform: translate(0, -100px) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

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

/* Botones modernos */
.btn-modern {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn-modern:hover::before {
    transform: translateX(100%);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-modern:active {
    transform: translateY(0);
}

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

.btn-secondary-modern {
    background: white;
    color: var(--dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* ============================================
   TARJETAS MODERNAS (NEUMORPHISM + GLASS)
   ============================================ */

.card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Efecto Neumorphism */
.card-neomorph {
    background: #f0f0f3;
    box-shadow: 
        20px 20px 60px #d1d1d4,
        -20px -20px 60px #ffffff;
}

.card-neomorph:hover {
    box-shadow: 
        25px 25px 70px #d1d1d4,
        -25px -25px 70px #ffffff;
}

/* Efecto Glassmorphism */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Hover effect con elevación */
.card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Brillo al hover */
.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left var(--transition-slow);
}

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

/* ============================================
   GRID DE PRODUCTOS MODERNO
   ============================================ */

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Imagen del producto */
.product-image-wrapper {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: flex-end; /* Alinear desde abajo */
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center; /* Posicionar imagen desde abajo y centrada */
    padding: 2rem;
    padding-top: 3rem; /* Espacio superior para badges */
    padding-left: calc(2rem + 100px); /* Espacio extra a la izquierda para badge condición */
    padding-right: calc(2rem + 120px); /* Espacio extra a la derecha para badges */
    transition: transform var(--transition-slow);
    position: relative;
    z-index: 0; /* Detrás de los badges */
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

/* Badge Condición/Grado - Parte Izquierda Superior */
.product-badge-left {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    pointer-events: none;
}

.product-badge-left .badge-modern {
    pointer-events: auto;
}

/* Badges Derecha: Descuento (arriba) y eSIM (debajo) */
.product-badges-right {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
    max-width: 120px;
    align-items: flex-end;
    pointer-events: none;
}

/* Permitir interacción con los badges individuales */
.product-badges-right .badge-modern {
    pointer-events: auto;
}


.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    box-shadow: var(--shadow);
    white-space: nowrap;
    display: inline-block;
    min-width: fit-content;
}

.badge-discount {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-new {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-esim {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info del producto */
.product-info {
    padding: 1.5rem;
}

.product-brand {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.spec-badge {
    padding: 0.25rem 0.75rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

/* Precio */
.product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

/* Stock indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.stock-available {
    background: var(--success);
}

.stock-low {
    background: var(--warning);
}

.stock-out {
    background: var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Botón de acción */
.product-action {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.product-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

/* ============================================
   SECCIÓN DE CATEGORÍAS
   ============================================ */

.categories-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ============================================
   TABLA DE PRODUCTOS (Vista de marca)
   ============================================ */

.products-table-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead {
    background: var(--gradient-primary);
    color: white;
}

.table-modern th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.table-modern tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-modern tbody tr:hover {
    background: var(--light);
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.table-modern td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

/* Imagen en tabla */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--light);
    padding: 0.5rem;
}

/* Enlace del modelo en tabla */
.table-modern tbody tr td a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.table-modern tbody tr td a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ============================================
   WHATSAPP BUTTON FLOTANTE
   ============================================ */

.whatsapp-float-modern {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-base);
    animation: bounce 2s infinite;
    text-decoration: none;
}

.whatsapp-float-modern:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulso de notificación */
.whatsapp-float-modern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   FOOTER MODERNO
   ============================================ */

.footer-modern {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-lg);
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Prevenir overflow en móvil */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .whatsapp-float-modern {
        width: 55px;
        height: 55px;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Ocultar partículas animadas en móvil */
    .hero-modern::before,
    .hero-modern::after {
        display: none;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Navbar responsive */
    .navbar-modern .container {
        padding: 0 1rem;
    }
    
    /* Sección de categorías */
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Cards de productos */
    .product-card-modern {
        margin: 0;
    }
    
    .product-image-wrapper {
        height: 250px;
    }
    
    .product-image {
        padding: 1rem;
        padding-left: calc(1rem + 80px);
        padding-right: calc(1rem + 80px);
    }
    
    /* Tabla responsive */
    .table-modern {
        font-size: 0.85rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blur-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Estilos para mantener compatibilidad con templates existentes */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-base);
    animation: bounce 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}
