/* =============================================================
   CROMATEX — CHROMATIC MINIMAL SYSTEM V3
   Bold Color Blocks · Vivid Accents · Brutalist Clean
   Barranquilla · Colombia ✦
   ============================================================= */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
    /* Chromatic Palette */
    --c-bg:       #f5f4ef;
    --c-ink:      #0e0e0d;
    --c-white:    #ffffff;
    --c-lime:     #cef62e;
    --c-coral:    #ff4d3a;
    --c-violet:   #7c3aed;
    --c-electric: #00c2ff;
    --c-mustard:  #f5c400;
    --c-sage:     #4ade80;
    --c-border:   #ddddd8;
    --c-muted:    #888883;

    /* Typography */
    --f-head: 'Space Grotesk', -apple-system, sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--f-head);
    background: var(--c-bg);
    color: var(--c-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--c-lime); color: var(--c-ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-ink); border-radius: 0; }

/* ── MARQUEE ───────────────────────────────────────────────── */
@keyframes marquee-roll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: 200%;
    animation: marquee-roll 22s linear infinite;
    will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

/* ── CHROMATIC HEADER STRIPE ──────────────────────────────── */
.chromatic-stripe {
    height: 5px;
    background: linear-gradient(90deg,
        var(--c-coral)    0%,
        var(--c-mustard)  25%,
        var(--c-lime)     50%,
        var(--c-electric) 75%,
        var(--c-violet)   100%
    );
}

/* ── UTILITY CLASSES ───────────────────────────────────────── */
.mono { font-family: var(--f-mono); }
.text-muted { color: var(--c-muted); }
.border-ink { border: 1px solid var(--c-ink); }
.section-tag {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--c-ink);
    color: var(--c-white);
    padding: 3px 10px;
    display: inline-block;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-ink);
    color: var(--c-white);
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 2px solid var(--c-ink);
    transition: background .2s, color .2s, transform .18s var(--ease-spring);
}
.btn-primary:hover {
    background: var(--c-lime);
    color: var(--c-ink);
    border-color: var(--c-lime);
    transform: translateY(-2px);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--c-ink);
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 2px solid var(--c-ink);
    transition: background .2s, color .2s, transform .18s var(--ease-spring);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-white); transform: translateY(-2px); }

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 2px solid #25d366;
    transition: all .2s;
}
.btn-wa:hover { background: #128c7e; border-color: #128c7e; transform: translateY(-2px); }

/* ── PRODUCT CARDS ─────────────────────────────────────────── */
.cx-card {
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
    position: relative;
    overflow: hidden;
    transition: border-color .22s, box-shadow .22s, transform .22s var(--ease-out-expo);
}
.cx-card:hover {
    border-color: var(--c-ink);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--c-ink);
}
.cx-card .card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #ececec;
}
.cx-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out-expo);
}
.cx-card:hover .card-img img { transform: scale(1.06); }

/* Quick sizes */
.sz-pill {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border: 1.5px solid var(--c-border);
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .04em;
}
.sz-pill:hover, .sz-pill.active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* Tag badge */
.badge {
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 8px;
    text-transform: uppercase;
}
.badge-lime    { background: var(--c-lime); color: var(--c-ink); }
.badge-coral   { background: var(--c-coral); color: #fff; }
.badge-violet  { background: var(--c-violet); color: #fff; }
.badge-mustard { background: var(--c-mustard); color: var(--c-ink); }
.badge-electric{ background: var(--c-electric); color: var(--c-ink); }
.badge-dark    { background: var(--c-ink); color: #fff; }
.badge-sage    { background: var(--c-sage); color: var(--c-ink); }

/* ── COLOR CHIP ────────────────────────────────────────────── */
.color-chip {
    width: 18px; height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s var(--ease-spring), outline .15s;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.color-chip:hover { transform: scale(1.2); }
.color-chip.active { outline: 2px solid var(--c-ink); }

/* ── CHROMATIC CATEGORY TILES ─────────────────────────────── */
.cat-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
}
.cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out-expo);
}
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile .tile-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%);
    transition: background .3s;
}
.cat-tile:hover .tile-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.15) 55%);
}
.cat-tile .tile-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px;
}
.cat-tile .tile-accent {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: transform .3s var(--ease-spring);
}
.cat-tile:hover .tile-accent { transform: scale(1.15) rotate(15deg); }

/* ── HERO TYPOGRAPHY ───────────────────────────────────────── */
.hero-headline {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: -.04em;
    text-transform: uppercase;
}
.hero-sub {
    font-family: var(--f-mono);
    font-size: clamp(.7rem, 1.4vw, .95rem);
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* ── TECHNIQUE CARD ────────────────────────────────────────── */
.tech-card {
    border: 1.5px solid var(--c-border);
    background: #fff;
    padding: 28px;
    cursor: pointer;
    transition: all .22s var(--ease-out-expo);
}
.tech-card:hover {
    border-color: var(--c-ink);
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--c-ink);
}
.tech-icon-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
    flex-shrink: 0;
}

/* ── CUSTOMIZER ────────────────────────────────────────────── */
#customizer-canvas {
    touch-action: none;
    cursor: grab;
    border: 2px solid var(--c-border);
    background: #fff;
}
#customizer-canvas:active { cursor: grabbing; }

.preset-btn {
    padding: 8px 12px;
    border: 1.5px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.preset-btn:hover { border-color: var(--c-lime); color: var(--c-lime); background: rgba(206,246,46,.1); }
.preset-btn.active { background: var(--c-lime); color: var(--c-ink); border-color: var(--c-lime); }

/* ── SLIDER MAYORISTA ──────────────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--c-border);
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    background: var(--c-ink);
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, transform .15s var(--ease-spring);
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--c-lime);
    transform: scale(1.3);
}

/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-item { border-bottom: 1.5px solid var(--c-border); }
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
}
.faq-question:hover { color: var(--c-violet); }
.faq-icon { flex-shrink: 0; transition: transform .3s var(--ease-out-expo); font-size: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease-out-expo), padding .25s;
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* ── MODAL OVERLAY ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(14,14,13,.7);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
    padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: var(--c-bg);
    border: 2px solid var(--c-ink);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    transform: translateY(20px);
    transition: transform .35s var(--ease-out-expo);
    position: relative;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

/* ── CART DRAWER ───────────────────────────────────────────── */
#cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 100%; max-width: 420px;
    height: 100%;
    background: #fff;
    border-left: 2px solid var(--c-ink);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .38s var(--ease-out-expo);
    overflow-y: auto;
}
#cart-drawer.open { transform: translateX(0); }

/* ── MOBILE MENU ───────────────────────────────────────────── */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--c-ink);
    color: var(--c-white);
    transform: translateY(-100%);
    transition: transform .4s var(--ease-out-expo);
    overflow-y: auto;
}
#mobile-menu.open { transform: translateY(0); }

/* ── WHATSAPP FLOAT ────────────────────────────────────────── */
#wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 80;
    width: 58px; height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: transform .2s var(--ease-spring), box-shadow .2s;
    cursor: pointer;
    border: none;
}
#wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ── PROGRESS BAR ──────────────────────────────────────────── */
#shipping-bar-fill {
    height: 4px;
    background: linear-gradient(90deg, var(--c-lime), var(--c-electric));
    transition: width .4s var(--ease-out-expo);
}

/* ── RESPONSIVE UTILS ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-headline { font-size: clamp(3rem, 14vw, 5rem); }
    .modal-box { padding: 24px; }
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes pop-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pop-in { animation: pop-in .45s var(--ease-out-expo) both; }

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    50%       { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.pulse-ring { animation: pulse-ring 2.5s infinite; }

/* ── NUMBER TICKER ─────────────────────────────────────────── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.count-up { animation: countUp .3s var(--ease-out-expo); }

/* ── TOOLTIP ───────────────────────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%; transform: translateX(-50%);
    background: var(--c-ink);
    color: #fff;
    font-family: var(--f-mono);
    font-size: 10px;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}
[data-tip]:hover::after { opacity: 1; }

/* ── PILL FILTER TABS ──────────────────────────────────────── */
.filter-pill {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 8px 18px;
    border: 1.5px solid var(--c-border);
    background: #fff;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .18s;
    white-space: nowrap;
}
.filter-pill:hover { border-color: var(--c-ink); }
.filter-pill.active {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
}

/* ── TECHNIQUE TABS ────────────────────────────────────────── */
.tech-tab {
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 10px 22px;
    border: 1.5px solid var(--c-border);
    background: var(--c-bg);
    cursor: pointer;
    text-transform: uppercase;
    transition: all .18s;
    color: var(--c-muted);
}
.tech-tab:hover { border-color: var(--c-ink); color: var(--c-ink); }
.tech-tab.active {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
}

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider-chromatic {
    height: 2px;
    background: linear-gradient(90deg, var(--c-lime), var(--c-coral), var(--c-violet), var(--c-electric));
    margin: 0;
}
