:root {
    --bg-dark: #0a0a0b;
    --card-bg: rgba(20, 20, 22, 0.7);
    --cyan: #00f2ff;
    --gold: #d4af37;
    --gold-bright: #ffcc00;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --glow-cyan: rgba(0, 242, 255, 0.15);
    --glow-gold: rgba(212, 175, 55, 0.15);
}

/* ── CSS Houdini: enables smooth conic-gradient rotation ── */
@property --laser-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Safe Area Support for iPhone Notch & Home Indicator */
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: Calc(40px + env(safe-area-inset-bottom, 0px));
}

.ambient-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(95px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-1 { 
    top: 5%; 
    right: -80px; 
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); 
    animation: glow-float-1 8s ease-in-out infinite alternate;
}
.glow-2 { 
    bottom: 5%; 
    left: -80px; 
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%); 
    animation: glow-float-2 8s ease-in-out infinite alternate;
}

@keyframes glow-float-1 {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    100% { transform: translateY(-25px) scale(1.08); opacity: 0.3; }
}
@keyframes glow-float-2 {
    0% { transform: translateY(0) scale(1); opacity: 0.2; }
    100% { transform: translateY(25px) scale(1.08); opacity: 0.3; }
}

/* Header Section */
header {
    padding: 18px 16px 20px;
    text-align: center;
    width: 100%;
    max-width: 480px;
    min-width: 0;
    box-sizing: border-box;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.nfc-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 8px var(--cyan));
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.018em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #e2e2e9 70%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    margin: 0 auto;
    width: fit-content;
    animation: text-pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes text-pulse-glow {
    from {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1)) brightness(1);
    }
    to {
        filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.25)) brightness(1.15);
    }
}

.subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

/* ── Category Filter Bar ── */
.category-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin: 0 auto 16px auto;
    width: calc(100% - 24px);
    max-width: 450px;
    min-width: 0;
    background: rgba(18, 18, 22, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    flex-shrink: 0;
}
.category-filter-bar::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}
.filter-pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}
.filter-pill.active {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2) 0%, rgba(0, 242, 255, 0.08) 100%);
    border-color: rgba(0, 242, 255, 0.45);
    color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.25);
}
.filter-pill .pill-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.2;
}
.filter-pill.active .pill-badge {
    background: var(--cyan);
    color: #030617;
    font-weight: 800;
}

/* Group Headings */
.category-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 12px 0 4px 0;
    padding: 0 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}
.category-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
}
.category-heading i {
    color: var(--cyan);
    width: 16px;
    height: 16px;
}
@media (min-width: 600px) {
    .category-heading {
        grid-column: 1 / -1;
    }
    .category-filter-bar {
        max-width: 800px;
        justify-content: center;
    }
}

/* Filter animations */
.business-card.filtered-out {
    display: none !important;
}
.category-heading.filtered-out {
    display: none !important;
}
.business-card.filter-animating {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Content */
.hub-container {
    width: 100%;
    max-width: 480px;
    min-width: 0;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    perspective: 1200px;
    box-sizing: border-box;
}

.business-card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 14px;
    text-decoration: none;
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.3s ease, 
        box-shadow 0.3s ease, 
        background-color 0.3s ease;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    transform-style: preserve-3d;
    box-sizing: border-box;
}

/* ── Laser border: rotating conic-gradient masked to edge only ── */
.business-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--laser-angle),
        transparent 0deg,
        transparent 255deg,
        var(--laser-color, #00f2ff) 295deg,
        white 325deg,
        var(--laser-color, #00f2ff) 350deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: laserSpin var(--laser-speed, 3s) linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* ── Shimmer on hover (moved to ::after) ── */
.business-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.business-card:hover, .business-card:active {
    border-color: color-mix(in srgb, var(--laser-color, #00f2ff) 45%, transparent);
    box-shadow:
        0 14px 35px rgba(0,0,0,0.45),
        0 0 24px color-mix(in srgb, var(--laser-color, #00f2ff) 30%, transparent);
    background: rgba(22, 22, 26, 0.88);
}

/* Speed up laser on hover */
.business-card:hover::before {
    animation-duration: 1.2s;
    filter: brightness(1.5);
}

/* Shimmer slide on hover */
.business-card:hover::after {
    transform: translateX(100%);
}

.card-image-box {
    width: 58px;
    height: 58px;
    min-width: 58px;
    max-width: 58px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #161618;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover .card-image-box {
    border-color: var(--laser-color, var(--cyan));
    box-shadow: 0 0 15px color-mix(in srgb, var(--laser-color, var(--cyan)) 30%, transparent);
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-card:hover .card-image-box img {
    transform: scale(1.1) rotate(2deg);
}

.card-content {
    margin-left: 12px;
    flex: 1 1 auto;
    min-width: 0; /* CRITICAL: prevents text from widening the card */
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(20px);
    overflow: hidden;
}

.card-badge {
    align-self: flex-start;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    background: color-mix(in srgb, var(--laser-color, var(--cyan)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--laser-color, var(--cyan)) 20%, transparent);
    color: var(--laser-color, var(--cyan));
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.business-card:hover .card-badge {
    background: color-mix(in srgb, var(--laser-color, var(--cyan)) 20%, transparent);
    border-color: color-mix(in srgb, var(--laser-color, var(--cyan)) 45%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--laser-color, var(--cyan)) 30%, transparent);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
    line-height: 1.25;
    transition: text-shadow 0.3s ease;
}

.card-title-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 300;
    opacity: 0.8;
    color: var(--laser-color, var(--cyan));
    letter-spacing: 0.05em;
    margin-top: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card-url {
    font-size: 0.75rem;
    color: var(--laser-color, var(--cyan));
    font-weight: 400;
    opacity: 0.7;
    word-break: break-all;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.business-card:hover .card-content, .business-card:active .card-content {
    transform: translateZ(25px) translateX(6px);
}

.business-card:hover .card-title-sub,
.business-card:hover .card-url {
    opacity: 1;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--laser-color, var(--cyan)) 60%, transparent));
}

.card-arrow {
    color: #444;
    flex-shrink: 0;
    margin-left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.business-card:hover .card-arrow {
    transform: translateX(4px) scale(1.1);
    color: var(--laser-color, var(--cyan));
}

/* Footer */
footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: fadeIn 1.2s ease-out;
}

.footer-power {
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-power span {
    color: var(--gold-bright);
    font-weight: 700;
}

.add-to-home {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-home:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    color: var(--text-main);
}

.add-to-home i {
    width: 14px;
    height: 14px;
    color: var(--cyan);
}

/* Install Dialog Styles */
.install-guide {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #151518;
    padding: 30px 20px Calc(30px + env(safe-area-inset-bottom, 10px));
    border-top: 2px solid var(--cyan);
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.install-guide.show {
    bottom: 0;
}

.guide-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-dim);
    cursor: pointer;
}

.guide-steps {
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 0.95rem;
}

.guide-icon-round {
    width: 24px;
    height: 24px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Modal Inner Styles */
.install-guide h3 { color: var(--cyan); margin-bottom: 10px; }
.install-guide p { color: #a0a0a0; font-size: 0.85rem; }

#nativeInstallPrompt { margin-top: 10px; }
#realInstallBtn {
    background: var(--cyan);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}
#realInstallBtn:active { transform: scale(0.98); }

.guide-step i { width: 16px; margin-bottom: -3px; }

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: perspective(1000px) translateY(-30px) rotateX(-5deg); }
    to { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); }
}

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

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: perspective(1000px) translateY(45px) rotateX(12deg) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: perspective(1000px) translateY(0) rotateX(0) scale(1); 
    }
}

.stagger-1 { animation-delay: 0.12s; }
.stagger-2 { animation-delay: 0.18s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.30s; }
.stagger-5 { animation-delay: 0.36s; }
.stagger-6 { animation-delay: 0.42s; }
.stagger-7 { animation-delay: 0.48s; }
.stagger-8 { animation-delay: 0.54s; }
.stagger-9 { animation-delay: 0.60s; }
.stagger-10 { animation-delay: 0.66s; }
.stagger-11 { animation-delay: 0.72s; }
.stagger-12 { animation-delay: 0.78s; }

/* ── Per-card laser colors & orbital speeds ── */
/* 1. Consulting        → Cyan   */ .business-card.c-1 { --laser-color: #00f2ff; --laser-speed: 2.8s; }
/* 2. 3D Maker          → Violet */ .business-card.c-2 { --laser-color: #a855f7; --laser-speed: 3.4s; }
/* 3. Ajo Toro          → Orange */ .business-card.c-3 { --laser-color: #f97316; --laser-speed: 2.5s; }
/* 4. VisionFlow        → Emerald*/ .business-card.c-6 { --laser-color: #00ff66; --laser-speed: 3.2s; }
/* 5. ON Negocios       → Gold   */ .business-card.c-5 { --laser-color: #d4af37; --laser-speed: 3.1s; }
/* 6. Páginas Web con IA→ CyanSky*/ .business-card.c-web { --laser-color: #00e5ff; --laser-speed: 2.6s; }
/* 7. Soporte Técnico   → NeonGrn*/ .business-card.c-soporte { --laser-color: #22c55e; --laser-speed: 2.2s; }
/* 8. Bono Semilla      → Amber  */ .business-card.c-bono { --laser-color: #f59e0b; --laser-speed: 2.9s; }
/* 9. Catálogo WhatsApp → WA Grn */ .business-card.c-catalogo { --laser-color: #25d366; --laser-speed: 2.5s; }
/* 10. Portal Soluciones→ Indigo */ .business-card.c-soluciones { --laser-color: #818cf8; --laser-speed: 3.0s; }
/* 11. Capacitaciones IA→ Magenta*/ .business-card.c-capacitaciones { --laser-color: #d946ef; --laser-speed: 2.7s; }
/* 12. Wayra Moda Textil → RoyalBlue */ .business-card.c-wayra { --laser-color: #2563eb; --laser-speed: 2.9s; }

/* ── Badges de Marketing & Conversión ── */
.badge-popular {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fef08a !important;
    font-weight: 800 !important;
}
.badge-gold {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
}
.badge-green {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    color: #4ade80 !important;
}
.card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #ffcc00;
    margin-left: 6px;
    letter-spacing: 0;
}
.card-price-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cyan);
    margin-top: 3px;
    display: inline-block;
    letter-spacing: 0.02em;
}

@keyframes laserSpin {
    from { --laser-angle: 0deg; }
    to   { --laser-angle: 360deg; }
}

.hidden-step { display: none !important; }
.show-step { display: block !important; }
.show-flex { display: flex !important; }

/* Responsive Grid for Tablets/Desktops */
@media (min-width: 600px) {
    .hub-container {
        max-width: 800px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DESIGN SQUAD — MOBILE RESPONSIVE OPTIMIZATION
   Breakpoints: 320→360→375→390→428→480
   Target devices: iPhone SE, Galaxy S, iPhone 14/15/Pro/Max
═══════════════════════════════════════════════════════════ */

/* ── [ALL MOBILE] Bottom safe padding so FABs never cover content ── */
@media (max-width: 599px) {
    .hub-container {
        padding: 0 12px 90px 12px;
        perspective: none !important;
    }
    .cta-contact {
        padding: 0 12px;
        margin-bottom: 80px;
    }
    /* Sticky filter bar at top on scroll for quick category switching */
    .category-filter-bar {
        position: sticky;
        top: 0;
        z-index: 100;
        margin: 0 auto 14px auto;
        width: calc(100% - 24px);
        max-width: 450px;
        border-radius: 0 0 20px 20px;
        border-top: none;
    }
    /* Disable 3D transforms on mobile to prevent GPU layer clipping and overflow bugs */
    .business-card {
        transform-style: flat !important;
    }
    .card-content {
        transform: none !important;
    }
    .business-card:hover .card-content,
    .business-card:active .card-content {
        transform: none !important;
    }
    /* Reduce ambient glow to save GPU on mobile */
    .ambient-glow {
        width: 180px;
        height: 180px;
        filter: blur(50px);
        opacity: 0.15;
    }
    /* Compact WhatsApp FAB on all mobile */
    .whatsapp-fab {
        padding: 10px 14px 10px 12px;
        font-size: 0.78rem;
        gap: 7px;
    }
    .whatsapp-icon { width: 20px; height: 20px; }
    /* QR FAB slightly smaller */
    .qr-fab {
        width: 42px;
        height: 42px;
    }
    .qr-fab i { width: 18px; height: 18px; }
}

/* ── [≤480px] Standard iPhone & Mid-range Android ── */
@media (max-width: 480px) {
    header {
        padding: 14px 16px 20px;
    }
    h1 {
        font-size: 1.15rem;
        letter-spacing: -0.01em;
    }
    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.22em;
    }
    .hub-container {
        padding: 0 14px;
        gap: 12px;
    }
    .business-card {
        padding: 12px;
        border-radius: 16px;
    }
    .card-image-box {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }
    .card-content {
        margin-left: 12px;
    }
    .card-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    .card-title-sub {
        font-size: 0.58rem;
        margin-top: 2px;
        letter-spacing: 0.03em;
    }
    .card-url {
        font-size: 0.68rem;
    }
    .card-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        margin-bottom: 4px;
    }
    .card-price-tag {
        font-size: 0.6rem;
        margin-top: 2px;
        line-height: 1.3;
    }
    .card-rating-badge {
        font-size: 0.56rem;
    }
    .category-heading {
        font-size: 0.72rem;
        margin: 8px 0 2px 0;
    }
    .filter-pill {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }
    .filter-pill .pill-badge {
        font-size: 0.58rem;
        padding: 1px 5px;
    }
    .cta-contact {
        padding: 0 14px;
    }
    .save-contact-btn {
        padding: 13px 16px;
        font-size: 0.82rem;
        border-radius: 14px;
    }
    footer {
        margin-top: 30px;
        padding: 14px;
        font-size: 0.72rem;
    }
    /* Reduce laser animation to save battery on mobile */
    .business-card::before {
        animation-duration: calc(var(--laser-speed, 3s) * 1.5);
    }
}

/* ── [≤390px] iPhone 14/15 standard — tighter spacing ── */
@media (max-width: 390px) {
    .hub-container {
        padding: 0 12px;
        gap: 10px;
    }
    .business-card {
        padding: 10px;
    }
    .card-image-box {
        width: 52px;
        height: 52px;
        border-radius: 11px;
    }
    .card-content {
        margin-left: 10px;
    }
    .card-title {
        font-size: 0.88rem;
    }
    .card-title-sub {
        font-size: 0.54rem;
    }
    .card-price-tag {
        font-size: 0.56rem;
    }
}

/* ── [≤360px] Small Android (Galaxy S, budget phones) — maximum density ── */
@media (max-width: 360px) {
    header {
        padding: 10px 12px 16px;
    }
    h1 {
        font-size: 1rem;
    }
    .subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }
    .hub-container {
        padding: 0 10px;
        gap: 8px;
    }
    .business-card {
        padding: 9px;
        border-radius: 14px;
    }
    .card-image-box {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .card-content {
        margin-left: 9px;
    }
    .card-title {
        font-size: 0.82rem;
    }
    .card-title-sub {
        font-size: 0.5rem;
        margin-top: 1px;
    }
    .card-url {
        font-size: 0.62rem;
    }
    .card-badge {
        font-size: 0.5rem;
        padding: 2px 5px;
        margin-bottom: 3px;
    }
    .card-price-tag {
        font-size: 0.52rem;
        /* Ellipsis for very long price tags on tiny screens */
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .category-heading {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }
    .filter-pill {
        padding: 5px 8px;
        font-size: 0.64rem;
    }
    .cta-contact {
        padding: 0 10px;
    }
    .save-contact-btn {
        padding: 11px 14px;
        font-size: 0.78rem;
    }
    /* Disable 3D perspective on small devices for smoother scrolling */
    .hub-container {
        perspective: none;
    }
    .card-content {
        transform: none;
    }
    .business-card:hover .card-content,
    .business-card:active .card-content {
        transform: none;
    }
}

/* ── [≤320px] iPhone SE 1st gen / ultra-compact — survival mode ── */
@media (max-width: 320px) {
    h1 { font-size: 0.9rem; }
    .card-image-box { width: 40px; height: 40px; }
    .card-title { font-size: 0.78rem; }
    .card-content { margin-left: 8px; }
    .business-card { padding: 8px; }
    .filter-pill { padding: 4px 7px; font-size: 0.6rem; }
}

/* ── Accessibility: Reduce motion for users who prefer it ── */
@media (prefers-reduced-motion: reduce) {
    .business-card,
    .business-card::before,
    .business-card::after,
    .ambient-glow,
    .whatsapp-fab,
    .qr-fab,
    h1 {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .business-card {
        opacity: 1;
        transform: none;
    }
    #bg-video { display: none; }
}

/* ═══════════════════════════════════════════
   CTA SECTION — WhatsApp FAB + Save Contact
═══════════════════════════════════════════ */

/* Floating WhatsApp Button */
.whatsapp-fab {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    border-radius: 100px;
    padding: 12px 18px 12px 14px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.3);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    cursor: pointer;
    border: none;
    outline: none;
    animation: fabSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2) 0.6s both;
}

.whatsapp-fab:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0,0,0,0.3);
    background: #20c05c;
}

.whatsapp-fab:active { transform: scale(0.96); }

/* Pulse ring animation */
.whatsapp-fab::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: waPulse 2.2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Tooltip on mobile: tap counts as hover — show text always */
.fab-label { white-space: nowrap; }

@media (max-width: 360px) {
    .fab-label { display: none; }
    .whatsapp-fab { padding: 13px; border-radius: 50%; }
    .whatsapp-fab::after { border-radius: 50%; }
}

/* Save Contact Section (after cards) */
.cta-contact {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
    margin-top: 8px;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.save-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.06) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--gold-bright);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.08);
}

.save-contact-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.12) 100%);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.18);
    transform: translateY(-2px);
}

.save-contact-btn:active { transform: scale(0.97); }

.save-contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--gold-bright);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.save-contact-download {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: rgba(255, 204, 0, 0.3);
}

.card-title-custom {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.cta-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.save-contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.save-contact-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.2;
}

.save-contact-sub {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 204, 0, 0.6);
    margin-top: 2px;
}

/* Responsive: side-by-side on tablets */
@media (min-width: 600px) {
    .cta-contact { max-width: 800px; }
}

/* Keyframes */
@keyframes waPulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes fabSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* ═══════════════════════════════════════════
   LUXURY VIDEO BACKGROUND
 ═══════════════════════════════════════════ */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: 
        radial-gradient(circle at 100% 0%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        var(--bg-dark);
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#bg-video.loaded {
    opacity: 0.28;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 11, 0.45) 0%,
        rgba(10, 10, 11, 0.75) 60%,
        rgba(10, 10, 11, 0.95) 100%
    );
    backdrop-filter: blur(1px) saturate(1.1) contrast(1.05);
}

/* ── Floating QR Fab ── */
.qr-fab {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 22, 0.85);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.15), 0 2px 8px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    cursor: pointer;
    animation: fabSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2) 0.6s both;
    backdrop-filter: blur(8px);
}

.qr-fab:hover {
    transform: scale(1.08) translateY(-3px);
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.35), 0 4px 12px rgba(0,0,0,0.3);
}

.qr-fab:active { transform: scale(0.95); }

.qr-fab i {
    width: 20px;
    height: 20px;
}

/* ── QR Modal ── */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 7, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.qr-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.qr-modal-content {
    background: rgba(18, 18, 20, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 26px;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.12), 0 0 30px rgba(0, 0, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.qr-modal.show .qr-modal-content {
    transform: scale(1);
}

.qr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.qr-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.qr-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.qr-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.qr-code-wrapper {
    position: relative;
    background: #fff;
    padding: 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.qr-code-wrapper img {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 10px;
}

.qr-loading-spinner {
    position: absolute;
    inset: 16px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-loading-spinner::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 242, 255, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: qrSpin 0.8s linear infinite;
}

@keyframes qrSpin {
    to { transform: rotate(360deg); }
}

.qr-instructions {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 20px;
    padding: 0 10px;
}

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qr-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.qr-action-btn.primary {
    background: var(--cyan);
    color: #000;
}

.qr-action-btn.primary:hover {
    background: #00d2dd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

.qr-action-btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #fff;
}

.qr-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 22, 0.9);
    border: 1px solid var(--cyan);
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    backdrop-filter: blur(8px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Desktop Sidebar Layout ── */
.desktop-layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    gap: 16px;
}

.layout-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .desktop-layout-container {
        max-width: 800px;
    }
    .layout-left-column {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .desktop-layout-container {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 32px;
        max-width: 1160px;
        align-items: start;
        padding: 0 40px;
        margin: 0 auto;
        width: 100%;
    }
    
    .layout-left-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .hub-container, 
    .cta-contact, 
    header, 
    footer {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .desktop-qr-panel {
        display: flex !important;
        position: sticky;
        top: 40px;
        flex-direction: column;
        align-items: center;
        background: rgba(20, 20, 22, 0.65);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 24px;
        text-align: center;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
        z-index: 10;
        margin-top: 20px;
    }

    .desktop-qr-panel::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1.5px;
        background: conic-gradient(
            from var(--laser-angle),
            transparent 0deg,
            transparent 255deg,
            var(--cyan) 295deg,
            white 325deg,
            var(--cyan) 350deg,
            transparent 360deg
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: laserSpin 4s linear infinite;
        pointer-events: none;
        z-index: 1;
    }
}

.desktop-qr-panel {
    display: none;
}

.desktop-qr-frame {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 4px;
    width: 250px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.1);
}

.desktop-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.desktop-qr-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.desktop-qr-desc {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 4px;
}
