/* ========================================
   ULTRA-PRINT - ESTILOS ULTRA PREMIUM
   Diseño: Futurista CMYK Dark Premium
   Mobile-First Responsive
   ======================================== */

/* ===== VARIABLES CSS ===== */
:root {
    --cyan: #00BCD4;
    --cyan-light: #4DD0E1;
    --cyan-dark: #0097A7;
    --magenta: #E91E63;
    --magenta-light: #F06292;
    --magenta-dark: #C2185B;
    --yellow: #FFC107;
    --yellow-light: #FFD54F;
    --yellow-dark: #FFA000;
    --key-black: #212121;
    
    --primary: #00BCD4;
    --primary-light: #4DD0E1;
    --primary-dark: #0097A7;
    --accent: #E91E63;
    --accent-light: #F06292;
    --accent-dark: #C2185B;
    
    --bg-black: #08090d;
    --bg-dark: #0d0f14;
    --bg-card: #13161e;
    --bg-card-hover: #1a1e2a;
    --bg-surface: #181c26;
    
    --text-white: #f0f2f5;
    --text-gray: #9ea4b3;
    --text-muted: #6b7280;
    
    --success: #25D366;
    --warning: #FFC107;
    --danger: #EF4444;
    
    --shadow-cyan: rgba(0, 188, 212, 0.25);
    --shadow-magenta: rgba(233, 30, 99, 0.25);
    --shadow-yellow: rgba(255, 193, 7, 0.15);
    
    --gradient-cmyk: linear-gradient(135deg, #00BCD4, #E91E63, #FFC107);
    --gradient-cyan: linear-gradient(135deg, #00BCD4, #4DD0E1);
    --gradient-magenta: linear-gradient(135deg, #E91E63, #F06292);
    --gradient-dark: linear-gradient(180deg, #13161e 0%, #08090d 100%);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-alt: 'Space Grotesk', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.splash-screen.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
    width: 300px; height: 300px;
    background: var(--cyan);
    top: -80px; left: -60px;
    animation-delay: 0s;
}
.orb-2 {
    width: 250px; height: 250px;
    background: var(--magenta);
    bottom: -60px; right: -40px;
    animation-delay: -3s;
}
.orb-3 {
    width: 200px; height: 200px;
    background: var(--yellow);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Ink drops animation */
.splash-ink-drops {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ink-drop {
    position: absolute;
    left: var(--x);
    top: -10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--cyan);
    animation: inkFall 3s ease-in infinite;
    animation-delay: var(--delay);
    opacity: 0;
}
.ink-drop:nth-child(2n) { background: var(--magenta); }
.ink-drop:nth-child(3n) { background: var(--yellow); }

@keyframes inkFall {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(100vh) scale(0.3); }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.splash-cmyk-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
}
.splash-cmyk-bar span {
    width: 40px;
    height: 6px;
    border-radius: 3px;
    animation: cmykPulse 2s ease-in-out infinite;
}
.cmyk-c { background: var(--cyan); animation-delay: 0s; }
.cmyk-m { background: var(--magenta); animation-delay: 0.2s; }
.cmyk-y { background: var(--yellow); animation-delay: 0.4s; }
.cmyk-k { background: #555; animation-delay: 0.6s; }

@keyframes cmykPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.7; }
    50% { transform: scaleX(1.5); opacity: 1; }
}

.splash-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    animation: logoSpin 1.5s ease-out forwards;
    box-shadow: 0 10px 40px var(--shadow-cyan), 0 0 80px rgba(0,188,212,0.15);
}

@keyframes logoSpin {
    0% { transform: rotateY(180deg) scale(0.5); opacity: 0; }
    100% { transform: rotateY(0) scale(1); opacity: 1; }
}

.splash-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--text-white);
    font-family: var(--font-alt);
    animation: fadeUp 0.8s ease-out 0.3s both;
}
.splash-title span {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-tagline {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease-out 0.5s both;
}

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

.splash-loader {
    margin: 40px auto 0;
    max-width: 200px;
    animation: fadeUp 0.8s ease-out 0.7s both;
}
.loader-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.loader-fill {
    height: 100%;
    background: var(--gradient-cmyk);
    border-radius: 3px;
    animation: loaderProgress 2s ease-in-out forwards;
}
@keyframes loaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}
.loader-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
}

.splash-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    animation: fadeUp 0.8s ease-out 2.2s both;
    box-shadow: 0 8px 32px var(--shadow-cyan);
    transition: all 0.3s ease;
}
.splash-enter-btn:active {
    transform: scale(0.97);
}

/* ===== TOP BAR ===== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-white);
}
.logo-mini i {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
}
.logo-mini b {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.top-bar-right {
    display: flex;
    gap: 8px;
}

.top-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    color: var(--text-gray);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}
.top-btn:active {
    transform: scale(0.93);
    background: var(--bg-card-hover);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePop 0.3s ease;
}
@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    padding: 32px 20px 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,188,212,0.08), rgba(233,30,99,0.06));
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,188,212,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233,30,99,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-cmyk-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.hero-cmyk-dots span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-alt);
    color: white;
}
.dot-c { background: var(--cyan); }
.dot-m { background: var(--magenta); }
.dot-y { background: var(--yellow); color: #333; }
.dot-k { background: #555; }

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}
.gradient-text {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    max-width: 320px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-alt);
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: rgba(8, 9, 13, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    color: var(--text-gray);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.cat-pill i {
    font-size: 12px;
}
.cat-pill.active {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px var(--shadow-cyan);
}
.cat-pill:active {
    transform: scale(0.95);
}

/* ===== PROMO SECTION ===== */
.promo-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(0,188,212,0.15);
    animation: fadeUp 0.6s ease-out both;
}
.promo-card.accent {
    border-color: rgba(233,30,99,0.15);
}

.promo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(0,188,212,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 18px;
}
.promo-card.accent .promo-icon {
    background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(233,30,99,0.05));
    color: var(--magenta);
}

.promo-text strong {
    font-size: 13px;
    font-weight: 600;
}
.promo-text p {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
    line-height: 1.4;
}
.promo-text b {
    color: var(--cyan);
}
.promo-card.accent .promo-text b {
    color: var(--magenta);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 8px 16px 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 12px;
    margin-top: 8px;
}
.category-header:first-child {
    margin-top: 0;
}

.cat-icon-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.category-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.category-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: all 0.35s ease;
    animation: cardFadeIn 0.5s ease-out both;
    cursor: pointer;
}
.product-card:active {
    transform: scale(0.98);
}

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

.product-card-inner {
    display: flex;
    gap: 14px;
    padding: 14px;
}

.product-image-wrap {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image-wrap img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-popular {
    background: var(--accent);
    color: white;
}
.badge-eco {
    background: var(--success);
    color: white;
}
.badge-plus {
    background: var(--yellow);
    color: #333;
}
.badge-premium {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    color: white;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.product-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-size {
    font-size: 10px;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-alt);
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-price {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-alt);
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.product-price-unit {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-cyan);
}
.add-to-cart-btn:active {
    transform: scale(0.88);
}
.add-to-cart-btn.added {
    background: var(--success);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 24px 16px;
    margin-top: 8px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i {
    color: var(--cyan);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spec-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.spec-card:active {
    transform: scale(0.97);
}

.spec-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(0,188,212,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 16px;
    margin-bottom: 10px;
}
.spec-card:nth-child(2) .spec-icon {
    background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(233,30,99,0.05));
    color: var(--magenta);
}
.spec-card:nth-child(3) .spec-icon {
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05));
    color: var(--yellow);
}
.spec-card:nth-child(4) .spec-icon {
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(233,30,99,0.05));
    color: var(--cyan-light);
}

.spec-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}
.spec-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== FOOTER ===== */
.app-footer {
    padding: 32px 20px 100px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-alt);
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.footer-logo i {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}
.footer-logo b {
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-brand p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.footer-link:first-child i { color: var(--success); }
.footer-link:last-child i { color: var(--cyan); }
.footer-link:active { transform: scale(0.95); }

.footer-cmyk {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}
.footer-cmyk span {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}
.fc-c { background: var(--cyan); }
.fc-m { background: var(--magenta); }
.fc-y { background: var(--yellow); }
.fc-k { background: #555; }

.footer-copy p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37,211,102,0.4);
    z-index: 80;
    animation: fabBounce 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.whatsapp-fab:active {
    transform: scale(0.9);
}
@keyframes fabBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    width: 100%;
    max-height: 90vh;
    background: var(--bg-dark);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.35s ease;
}
@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h3 i {
    color: var(--cyan);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-card);
    color: var(--text-gray);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:active {
    transform: scale(0.9);
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    max-height: 85vh;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 20px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s ease;
}
.search-input-wrap:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--shadow-cyan);
}
.search-input-wrap i {
    color: var(--text-muted);
    font-size: 14px;
}

#searchInput {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
}
#searchInput::placeholder {
    color: var(--text-muted);
}

.search-clear {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.search-filters {
    display: flex;
    gap: 6px;
    padding: 0 20px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.search-filters::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    color: var(--text-gray);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.filter-chip.active {
    background: var(--cyan);
    border-color: transparent;
    color: white;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.search-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.search-empty p {
    font-size: 14px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-result-item:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.sr-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,188,212,0.15), rgba(233,30,99,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
    font-size: 18px;
}

.sr-info {
    flex: 1;
    min-width: 0;
}
.sr-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-detail {
    font-size: 11px;
    color: var(--text-muted);
}

.sr-price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-alt);
    color: var(--cyan);
    flex-shrink: 0;
}

/* ===== CART MODAL ===== */
.cart-modal {
    max-height: 85vh;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.cart-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.2;
}
.cart-empty p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 4px;
}
.cart-empty span {
    font-size: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 8px;
}

.ci-info {
    flex: 1;
    min-width: 0;
}
.ci-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ci-detail {
    font-size: 11px;
    color: var(--text-muted);
}

.ci-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ci-qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-surface);
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.ci-qty button:active { transform: scale(0.9); }
.ci-qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.ci-price {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-alt);
    color: var(--cyan);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

.ci-remove {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.ci-remove:active { transform: scale(0.85); }

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-dark);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}
.cart-total-amount {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-alt);
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-whatsapp-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--success);
    color: white;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
}
.cart-whatsapp-btn:active {
    transform: scale(0.97);
}

/* ===== DETAIL MODAL ===== */
.detail-modal {
    max-height: 80vh;
}

.detail-body {
    padding: 20px;
    overflow-y: auto;
}

.detail-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-card);
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-price-big {
    font-size: 36px;
    font-weight: 900;
    font-family: var(--font-alt);
    background: var(--gradient-cmyk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.detail-unit {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.detail-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-card);
}
.detail-spec-row i {
    color: var(--cyan);
    width: 16px;
    text-align: center;
    font-size: 13px;
}
.detail-spec-row span {
    font-size: 13px;
    color: var(--text-gray);
}
.detail-spec-row strong {
    color: var(--text-white);
}

.detail-add-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: white;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 24px var(--shadow-cyan);
    transition: all 0.3s ease;
}
.detail-add-btn:active {
    transform: scale(0.97);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card-inner {
        flex-direction: column;
    }
    .product-image-wrap {
        width: 100%;
        height: 120px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .modal-container {
        max-width: 500px;
        margin: auto;
        border-radius: var(--radius-xl);
        max-height: 80vh;
    }
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeUp 0.5s ease-out both;
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Product hidden state */
.product-card.hidden {
    display: none;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid rgba(0,188,212,0.2);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 500;
    z-index: 300;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2s forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    white-space: nowrap;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Ploteo results */
.ploteo-results-container {
    margin-top: 12px;
}
.ploteo-category-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,188,212,0.15);
}
.ploteo-category-title:first-child {
    margin-top: 8px;
}

.ploteo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 6px;
    font-size: 12px;
}
.ploteo-item-name {
    flex: 1;
    color: var(--text-gray);
    line-height: 1.3;
}
.ploteo-item-price {
    font-weight: 700;
    font-family: var(--font-alt);
    color: var(--cyan);
    white-space: nowrap;
    font-size: 13px;
}

/* Search highlight */
.search-highlight {
    background: rgba(0,188,212,0.2);
    color: var(--cyan-light);
    border-radius: 2px;
    padding: 0 2px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}
.no-results i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.3;
}
.no-results p {
    font-size: 14px;
}
