/* =====================================================
   Flowbug3D - Estilos principales
   Paleta: azul neón + violeta sobre negro
   ===================================================== */

:root {
    --bg-dark: #0a0a14;
    --bg-darker: #06060c;
    --bg-card: #11111d;
    --bg-elev: #161624;
    --primary: #00d4ff;
    --primary-2: #38bdf8;
    --primary-glow: rgba(0, 212, 255, 0.35);
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.35);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #1f2937;
    --border-soft: #1a1a2a;
    --grad-primary: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --grad-soft: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(168,85,247,0.08));
}

* { box-sizing: border-box; }

html, body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background:
      radial-gradient(circle at 15% 0%, rgba(0,212,255,0.10), transparent 45%),
      radial-gradient(circle at 85% 30%, rgba(168,85,247,0.10), transparent 45%),
      var(--bg-dark);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.text-muted { color: var(--text-muted) !important; }
.text-dim   { color: var(--text-dim); }

::selection { background: var(--primary); color: #000; }

/* ----- Navbar ----- */
.fb-navbar {
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
}
.fb-navbar .brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fb-navbar .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: .5rem .9rem !important;
    border-radius: 8px;
    transition: all .2s;
}
.fb-navbar .nav-link:hover, .fb-navbar .nav-link.active {
    color: var(--text);
    background: rgba(0, 212, 255, 0.08);
}
.fb-navbar .navbar-toggler {
    border-color: var(--border);
}
.fb-navbar .navbar-toggler-icon {
    filter: invert(1);
}
.fb-nav-dropdown {
    min-width: 220px;
    padding: .45rem;
    background: rgba(17,17,29,.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.fb-nav-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .9rem;
}
.fb-nav-dropdown .dropdown-item i { color: var(--primary); }
.fb-nav-dropdown .dropdown-item:hover,
.fb-nav-dropdown .dropdown-item:focus,
.fb-nav-dropdown .dropdown-item.active {
    color: var(--text);
    background: rgba(0,212,255,.09);
}

/* ----- Buttons ----- */
.btn-fb-primary {
    background: var(--grad-primary);
    border: 0;
    color: #fff !important;
    font-weight: 600;
    padding: .65rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px -10px var(--primary-glow), 0 2px 6px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
}
.btn-fb-primary:hover, .btn-fb-primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -10px var(--primary-glow), 0 0 0 2px rgba(0,212,255,.2);
}
.btn-fb-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    padding: .65rem 1.4rem;
    border-radius: 10px;
    transition: all .2s;
}
.btn-fb-outline:hover {
    background: rgba(0,212,255,.08);
    color: var(--text) !important;
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--primary-glow);
}
.btn-fb-ghost {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: .55rem 1rem;
    border-radius: 10px;
    transition: all .2s;
}
.btn-fb-ghost:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: rgba(0,212,255,.06);
}
.btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border: 0;
    font-weight: 600;
    padding: .65rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px -8px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(37,211,102,.6); color: #fff; }

/* ----- HERO ----- */
.fb-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    background:
      radial-gradient(800px 400px at 75% 30%, rgba(168,85,247,.20), transparent 60%),
      radial-gradient(800px 500px at 15% 80%, rgba(0,212,255,.18), transparent 65%);
}
.fb-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,212,255,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,255,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.fb-hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .85rem;
    border: 1px solid var(--border);
    background: rgba(0,212,255,.05);
    border-radius: 99px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.fb-hero h1 {
    font-size: clamp(1.85rem, 7vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1.2rem;
}
.fb-hero h1 .grad {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fb-hero p.lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.fb-hero .hero-logo {
    filter: drop-shadow(0 0 60px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}
.fb-hero-compact { padding: 3.5rem 0 3rem; }
.fb-hero-compact h1 { font-size: clamp(1.85rem, 5.5vw, 3.15rem); }
.fb-hero-compact p.lead { margin-bottom: 1.4rem; }
.fb-hero-compact .hero-features { margin-top: 1.2rem !important; }
.catalog-first-section { padding-top: 3.5rem; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ----- Sections ----- */
.section { padding: 5rem 0; position: relative; }
.section-title-block { margin-bottom: 3rem; }
.section-title-block .eyebrow {
    display: inline-block;
    padding: .25rem .85rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: rgba(168,85,247,.06);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}
.section-title-block h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: .8rem;
}
.section-title-block p { color: var(--text-muted); max-width: 640px; }

/* ----- Cards ----- */
.fb-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    height: 100%;
    display: flex; flex-direction: column;
}
.fb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,.4);
    box-shadow: 0 24px 48px -24px rgba(0,212,255,.35), 0 0 0 1px rgba(0,212,255,.15);
}
.fb-card .card-img-wrap {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #0a0a14 0%, #161624 100%);
    overflow: hidden;
    position: relative;
}
.fb-card .card-img-wrap img,
.fb-card .card-img-wrap .placeholder-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s;
}
.fb-card:hover .card-img-wrap img { transform: scale(1.06); }
.fb-card .card-body {
    padding: 1.2rem;
    display: flex; flex-direction: column; gap: .5rem; flex: 1;
}
.fb-card .card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
}
.fb-card .card-meta {
    color: var(--text-dim);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.fb-card .card-desc {
    color: var(--text-muted);
    font-size: .92rem;
    flex: 1;
}
.fb-card .price-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: .5rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border-soft);
}
.fb-card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.fb-card .actions {
    display: flex; gap: .5rem; margin-top: .75rem;
}
.fb-card .actions .btn {
    flex: 1;
    font-size: .85rem;
    padding: .5rem .8rem;
}
.product-options-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 24px;
    margin-top: auto;
}
.product-material-summary {
    color: var(--text-muted);
    font-size: .76rem;
    line-height: 1.2;
    min-width: 0;
}
.product-material-summary i { color: var(--primary); margin-right: .2rem; }
.product-color-summary { display: flex; align-items: center; gap: .3rem; flex: 0 0 auto; }
.product-color-dot,
.variant-color-swatch {
    display: inline-block;
    background: var(--product-color, #444);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.product-color-dot { width: 15px; height: 15px; border-radius: 50%; }
.product-color-dot.is-multicolor,
.variant-color-swatch.is-multicolor {
    background: conic-gradient(#f43f5e, #facc15, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e);
}
.product-color-more { color: var(--text-dim); font-size: .68rem; font-weight: 600; }

.placeholder-img {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--text-dim);
    background: linear-gradient(135deg, #0a0a14 0%, #161624 100%);
}

/* ----- Badges ----- */
.fb-badge {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.badge-success { background: rgba(34,197,94,.15); color: #4ade80; border:1px solid rgba(34,197,94,.3); }
.badge-info    { background: rgba(0,212,255,.12); color: var(--primary); border:1px solid rgba(0,212,255,.3); }
.badge-accent  { background: rgba(168,85,247,.15); color: #c084fc; border:1px solid rgba(168,85,247,.3); }
.badge-muted   { background: rgba(148,163,184,.12); color: var(--text-muted); border:1px solid rgba(148,163,184,.3); }

/* ----- Beneficios ----- */
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 1.4rem;
    transition: all .25s;
    height: 100%;
}
.benefit-card:hover {
    border-color: rgba(0,212,255,.35);
    transform: translateY(-4px);
    box-shadow: 0 0 32px -8px var(--primary-glow);
}
.benefit-card .icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.benefit-card h5 { font-size: 1.1rem; margin-bottom: .4rem; }
.benefit-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ----- Categorías ----- */
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    transition: all .25s;
    text-decoration: none;
    color: var(--text);
    display: block;
    height: 100%;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--text);
    box-shadow: 0 0 24px -6px var(--accent-glow);
}
.cat-card i {
    font-size: 2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .5rem;
    display: block;
}
.cat-card .name { font-weight: 600; font-size: .95rem; }
.home-categories-section { padding-top: 3rem; padding-bottom: 3.5rem; }
.cat-card-compact { padding: .85rem .65rem; border-radius: 12px; }
.cat-card-compact i { font-size: 1.45rem; margin-bottom: .3rem; }
.cat-card-compact .name { font-size: .82rem; }

/* ----- Cómo funciona / Pasos ----- */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem 1.4rem;
    position: relative;
    height: 100%;
}
.step-card .step-num {
    position: absolute; top: -18px; left: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 6px 18px -4px var(--primary-glow);
}
.step-card h5 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.step-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.step-card .step-icon { color: var(--primary); font-size: 1.6rem; }

/* ----- Custom CTA block ----- */
.fb-cta-block {
    background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(168,85,247,.08)),
                radial-gradient(circle at 70% 30%, rgba(168,85,247,.15), transparent 60%),
                var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.fb-cta-block::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(0,212,255,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.fb-cta-block > * { position: relative; z-index: 1; }
.fb-cta-block h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.fb-cta-block p { color: var(--text-muted); margin-bottom: 1.5rem; }
.home-custom-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(0,212,255,.07), rgba(168,85,247,.08)), var(--bg-card);
}
.home-custom-compact h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.home-custom-compact > div:first-child { max-width: 650px; }
.home-custom-compact > .d-flex { flex: 0 0 auto; }

/* ----- Form controls ----- */
.fb-form .form-label { color: var(--text); font-weight: 500; margin-bottom: .4rem; }
.fb-form .form-control, .fb-form .form-select {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .65rem .9rem;
    border-radius: 10px;
}
.fb-form .form-control:focus, .fb-form .form-select:focus {
    background: var(--bg-elev);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(0,212,255,.18);
}
.fb-form .form-control::placeholder { color: var(--text-dim); }
.fb-form textarea.form-control { min-height: 130px; }
.fb-form .form-text { color: var(--text-dim); }
.fb-form input[type="file"]::file-selector-button {
    background: var(--grad-primary);
    color: #000;
    border: 0;
    padding: .45rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-right: .8rem;
}

/* ----- Catalog filters ----- */
.cat-filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem;
}
.cat-filter-sidebar h6 {
    font-size: .8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .8rem;
}
.cat-filter-sidebar .list-group {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: var(--border-soft);
    --bs-list-group-color: var(--text-muted);
}
.cat-filter-sidebar .list-group-item {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-soft);
    padding: .55rem .25rem;
}
.cat-filter-sidebar .list-group-item a { color: var(--text-muted); display:flex; justify-content:space-between; }
.cat-filter-sidebar .list-group-item.active,
.cat-filter-sidebar .list-group-item.active a {
    background: transparent !important;
    color: var(--primary) !important;
    font-weight: 600;
    border-color: var(--border-soft);
}

/* ----- Product detail ----- */
.product-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.product-gallery .carousel-item { aspect-ratio: 4/3; background:#0a0a14; }
.product-gallery .carousel-item img { width:100%; height:100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.product-info .meta-grid {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: .8rem 1.5rem; margin: 1.5rem 0;
}
.product-info .meta-grid .meta {
    border-left: 2px solid var(--primary);
    padding-left: .8rem;
}
.product-info .meta-grid .meta .label {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-dim);
}
.product-info .meta-grid .meta .value { font-weight: 600; color: var(--text); }
.variant-picker {
    padding: 1rem;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.variant-picker-label {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .55rem;
}
.material-options,
.color-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}
.material-option,
.variant-color-option {
    color: var(--text);
    background: #11111d;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: left;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.material-option { padding: .65rem .75rem; }
.material-option strong,
.material-option small { display: block; }
.material-option strong { font-size: .86rem; }
.material-option small,
.variant-color-option small { color: var(--text-dim); font-size: .7rem; margin-top: .12rem; }
.material-option:hover,
.variant-color-option:not(:disabled):hover { border-color: rgba(0,212,255,.65); }
.material-option.active,
.variant-color-option.active {
    border-color: var(--primary);
    background: rgba(0,212,255,.08);
    box-shadow: 0 0 0 1px rgba(0,212,255,.3);
}
.material-option:focus-visible,
.variant-color-option:focus-visible { outline: 3px solid var(--primary-glow); outline-offset: 2px; }
.variant-color-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .65rem;
}
.variant-color-option > span:last-child,
.variant-color-option strong,
.variant-color-option small { display: block; min-width: 0; }
.variant-color-option strong { font-size: .78rem; line-height: 1.15; }
.variant-color-swatch { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; }
.variant-color-option.unavailable { opacity: .5; cursor: not-allowed; }
.variant-color-option.unavailable strong { text-decoration: line-through; }
.selected-variant-tags { display: flex; gap: .4rem; align-items: center; }
.color-options[hidden],
#variant-multicolor[hidden] { display: none !important; }

/* ----- Galería masonry ----- */
.gallery-grid { column-count: 3; column-gap: 1rem; }
@media (max-width: 992px) { .gallery-grid { column-count: 2; } }
@media (max-width: 576px) { .gallery-grid { column-count: 1; } }
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all .25s;
    display: block;
    position: relative;
}
.gallery-item img { width: 100%; height: auto; display:block; transition: transform .4s; }
.gallery-item:hover { border-color: var(--primary); box-shadow: 0 0 24px -8px var(--primary-glow); transform: translateY(-3px); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    color: #fff;
    opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ----- Accordion FAQ ----- */
.accordion.fb-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px !important;
    margin-bottom: .9rem;
    overflow: hidden;
}
.accordion.fb-accordion .accordion-button {
    background: var(--bg-card);
    color: var(--text);
    font-weight: 600;
    box-shadow: none;
}
.accordion.fb-accordion .accordion-button:not(.collapsed) {
    background: rgba(0,212,255,.06);
    color: var(--primary);
}
.accordion.fb-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion.fb-accordion .accordion-button::after { filter: invert(72%) sepia(85%) saturate(2496%) hue-rotate(160deg); }
.accordion.fb-accordion .accordion-body { color: var(--text-muted); }

/* ----- Footer ----- */
.fb-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.fb-footer .footer-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.fb-footer ul li { margin-bottom: .4rem; }
.fb-footer ul li a { color: var(--text-muted); }
.fb-footer ul li a:hover { color: var(--primary); }
.fb-footer .social-icons { display: flex; gap: .6rem; margin-top: .8rem; }
.fb-footer .social-icons a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .2s;
}
.fb-footer .social-icons a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,212,255,.05);
    transform: translateY(-2px);
}

/* ----- WhatsApp flotante ----- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    font-size: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px -6px rgba(37,211,102,.55), 0 0 0 4px rgba(37,211,102,.15);
    z-index: 1040;
    transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: scale(1.08); }

/* ----- Alerts ----- */
.alert { border: 1px solid transparent; border-radius: 12px; }
.alert-success { background: rgba(34,197,94,.10); color: #4ade80; border-color: rgba(34,197,94,.3); }
.alert-danger  { background: rgba(239,68,68,.10); color: #fca5a5; border-color: rgba(239,68,68,.3); }
.alert-info    { background: rgba(0,212,255,.10); color: var(--primary); border-color: rgba(0,212,255,.3); }

/* ----- Pagination ----- */
.pagination .page-link {
    background: var(--bg-card);
    color: var(--text-muted);
    border-color: var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--grad-primary);
    color: #000;
    border-color: var(--primary);
}
.pagination .page-link:hover { color: var(--primary); background: var(--bg-elev); }

/* ----- Utilidades ----- */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2rem 0;
}
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bg-card { background: var(--bg-card) !important; }
.border-fb { border: 1px solid var(--border) !important; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive base */
@media (max-width: 768px) {
    .fb-hero { padding: 4rem 0 3rem; }
    .fb-hero.fb-hero-compact { padding: 2.75rem 0 2.5rem; }
    .section { padding: 3.5rem 0; }
    .catalog-first-section { padding-top: 2.75rem; }
    .home-categories-section { padding: 2.5rem 0 3rem; }
    .home-custom-compact { align-items: flex-start; flex-direction: column; gap: 1.25rem; padding: 1.4rem; }
    .home-custom-compact > .d-flex { width: 100%; }
    .fb-footer { padding: 3rem 0 1.5rem; }
}

@media (max-width: 991px) {
    .fb-navbar .navbar-collapse {
        margin-top: .65rem;
        padding-top: .65rem;
        border-top: 1px solid var(--border-soft);
    }
    .fb-navbar .navbar-nav { align-items: stretch; }
    .fb-nav-dropdown { margin: .25rem 0 .5rem; box-shadow: none; }
    .fb-navbar .navbar-nav > .nav-item:last-child .btn { width: 100%; }
}

/* =====================================================
   Mobile UX improvements
   ===================================================== */

/* --- Sin "hover pegado" en touch devices --- */
@media (hover: none) {
    .fb-card:hover,
    .benefit-card:hover,
    .cat-card:hover,
    .step-card:hover,
    .gallery-item:hover,
    .btn-fb-primary:hover,
    .btn-fb-outline:hover,
    .btn-fb-ghost:hover,
    .btn-wa:hover,
    .wa-float:hover,
    .fb-footer .social-icons a:hover {
        transform: none;
    }
    .fb-card:hover { border-color: var(--border); box-shadow: none; }
    .benefit-card:hover { border-color: var(--border); box-shadow: none; }
    .cat-card:hover { border-color: var(--border); box-shadow: none; }
    .gallery-item:hover { border-color: var(--border); box-shadow: none; }
    .fb-card:hover .card-img-wrap img,
    .gallery-item:hover img { transform: none; }

    /* Galería: caption siempre visible en touch */
    .gallery-item .gallery-caption { opacity: 1; }

    /* Feedback al tocar (en lugar del hover) */
    .fb-card:active, .benefit-card:active, .cat-card:active, .step-card:active,
    .btn-fb-primary:active, .btn-fb-outline:active, .btn-fb-ghost:active, .btn-wa:active,
    .cat-chip:active, .wa-float:active {
        transform: scale(.985);
        transition: transform .08s;
    }
}

/* --- Inputs sin zoom automático en iOS --- */
@media (max-width: 768px) {
    .fb-form .form-control,
    .fb-form .form-select,
    .fb-form textarea.form-control,
    .form-control,
    .form-select {
        font-size: 16px;
    }
}

/* --- Footer centrado en móvil + iconos sociales 44x44 --- */
@media (max-width: 768px) {
    .fb-footer { text-align: center; }
    .fb-footer .social-icons { justify-content: center; }
    .fb-footer .social-icons a {
        width: 44px; height: 44px;
        font-size: 1.05rem;
    }
}

/* --- Spacing más compacto en mobile chico --- */
@media (max-width: 576px) {
    .fb-hero { padding: 2.5rem 0 2rem; }
    .fb-hero.fb-hero-compact { padding: 2.1rem 0 2rem; }
    .fb-hero .eyebrow { font-size: .78rem; margin-bottom: .9rem; }
    .fb-hero p.lead { font-size: 1rem; margin-bottom: 1.5rem; }
    .section { padding: 2.5rem 0; }
    .section-title-block { margin-bottom: 2rem; }
    .section-title-block h2 { font-size: 1.55rem; }
    .fb-cta-block { padding: 2rem 1.2rem; border-radius: 18px; }
    .fb-cta-block h3 { font-size: 1.4rem; }
    .fb-footer { padding: 2.5rem 0 1.5rem; margin-top: 3rem; }

    /* Hero CTAs full-width apilados */
    .fb-hero .hero-ctas { flex-direction: column; }
    .fb-hero .hero-ctas > .btn { width: 100%; }
    .fb-hero .btn-lg { padding: .75rem 1rem; font-size: 1rem; }
    .fb-hero .hero-features { gap: .5rem 1.2rem !important; font-size: .85rem; }
    .home-custom-compact > .d-flex { flex-direction: column; }
    .home-custom-compact > .d-flex .btn { width: 100%; }

    /* Cards más densas */
    .fb-card .card-body { padding: 1rem; gap: .4rem; }
    .fb-card .card-title { font-size: 1rem; }
    .fb-card .card-desc { font-size: .88rem; }
    .fb-card .actions { gap: .4rem; }
    .fb-card .actions > a:first-child { flex: 1; }
    .fb-card .actions .btn-wa {
        flex: 0 0 auto;
        min-width: 46px;
        padding: .5rem .75rem;
    }

    /* CTA block: stack buttons */
    .fb-cta-block .d-flex.flex-wrap.gap-2.justify-content-center {
        flex-direction: column;
    }
    .fb-cta-block .d-flex.flex-wrap.gap-2.justify-content-center > .btn { width: 100%; }

    /* Producto detail */
    .product-info h1 { font-size: 1.55rem; }
    .material-options,
    .color-options { grid-template-columns: 1fr; }
    .product-options-summary { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .product-info .meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: .7rem 1rem;
        margin: 1.2rem 0;
    }
    .product-gallery .carousel-item { aspect-ratio: 1/1; }

    /* Carousel indicators más grandes */
    .product-gallery .carousel-indicators [data-bs-target] {
        width: 28px; height: 6px;
        border-radius: 99px;
        opacity: .5;
        margin: 0 .25rem;
    }
    .product-gallery .carousel-indicators .active { opacity: 1; background: var(--primary); }
}

/* --- Hero: logo arriba en mobile + tablet (oculto en desktop) --- */
@media (max-width: 991.98px) {
    .fb-hero .hero-logo-mobile {
        display: block;
        max-width: 130px;
        margin: 0 auto 1.2rem;
        filter: drop-shadow(0 0 40px var(--primary-glow));
        animation: float 6s ease-in-out infinite;
    }
}
@media (max-width: 576px) {
    .fb-hero .hero-logo-mobile { max-width: 110px; margin-bottom: 1rem; }
}

/* --- WhatsApp flotante: safe-area en iPhone con home indicator --- */
.wa-float {
    bottom: max(20px, env(safe-area-inset-bottom) + 12px);
    right: max(20px, env(safe-area-inset-right) + 12px);
}
@media (max-width: 480px) {
    .wa-float {
        width: 52px; height: 52px;
        font-size: 1.4rem;
    }
}

/* --- Reducción de movimiento --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fb-hero .hero-logo,
    .fb-hero .hero-logo-mobile { animation: none; }
    .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   Chips de filtros (catálogo mobile)
   ===================================================== */
.cat-chips-wrap {
    position: sticky;
    top: 64px;            /* debajo de la navbar sticky */
    z-index: 10;
    background: var(--bg-dark);
    padding: .75rem 0 .5rem;
    margin: -.5rem 0 1.25rem;
    border-bottom: 1px solid var(--border-soft);
}
.cat-chips-wrap .search-mobile {
    display: flex;
    gap: .5rem;
    margin-bottom: .7rem;
}
.cat-chips-wrap .search-mobile .form-control {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 99px;
    padding: .55rem 1rem;
    font-size: 16px;
}
.cat-chips-wrap .search-mobile .form-control:focus {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(0, 212, 255, .15);
}
.cat-chips-wrap .search-mobile .btn-search {
    background: var(--grad-primary);
    border: 0;
    color: #fff;
    width: 44px; height: 44px;
    flex: 0 0 auto;
    border-radius: 99px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cat-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: .25rem .25rem .5rem;
    margin: 0 -.25rem;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .95rem;
    border-radius: 99px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.cat-chip i { font-size: .95rem; }
.cat-chip:hover { color: var(--text); border-color: var(--primary); }
.cat-chip.active {
    background: var(--grad-primary);
    color: #000 !important;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 14px -4px var(--primary-glow);
}

/* =====================================================
   Sticky CTA bar en producto (mobile)
   ===================================================== */
.product-sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .5);
}
.product-sticky-cta .price-side {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    flex: 0 0 auto;
    min-width: 0;
}
.product-sticky-cta .price-side small {
    color: var(--text-dim);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.product-sticky-cta .price-side strong {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}
.product-sticky-cta .btn-wa {
    flex: 1;
    padding: .65rem 1rem;
    font-size: .95rem;
    white-space: nowrap;
}

/* Espacio inferior cuando hay sticky CTA, para que el footer no quede tapado */
.has-sticky-cta { padding-bottom: 86px; }

/* Oculta sticky CTA en desktop */
@media (min-width: 992px) {
    .product-sticky-cta { display: none !important; }
    .has-sticky-cta { padding-bottom: 0; }
}
