/* ============================================================
   FOURA — DESIGN SYSTEM v2 "Concrete & Signal"
   Tipografia: Syne (display) · Manrope (texto) · JetBrains Mono (datos)
   Paleta: hueso calido + tinta + naranja señal + verde WhatsApp
   ============================================================ */

:root {
    /* Fija el esquema claro: sin esto, el "modo oscuro automatico" de
       Chrome Android e iOS lavaba los textos en algunos telefonos. */
    color-scheme: light only;

    /* superficie */
    --f-bone:       #F4F1EA;
    --f-bone-deep:  #EBE7DC;
    --f-paper:      #FFFFFF;
    --f-ink:        #131210;
    --f-ink-soft:   #2A2823;
    --f-muted:      #5F5A4C;   /* oscurecido: mejor contraste en pantallas al sol */
    --f-line:       #DCD7C8;
    --f-line-dark:  #2E2C26;

    /* señal */
    --f-accent:     #FF4D00;
    --f-accent-soft:#FFE5D9;
    --f-wa:         #1DAB54;
    --f-wa-deep:    #128C42;
    --f-danger:     #D7263D;
    --f-ok:         #1DAB54;

    /* tipografia */
    --font-display: 'Syne', sans-serif;
    --font-body:    'Manrope', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* forma */
    --r-card: 18px;
    --r-pill: 999px;
    --r-input: 12px;
    --shadow-pop: 0 14px 34px -18px rgba(19, 18, 16, 0.38);
    --shadow-soft: 0 18px 40px -22px rgba(19, 18, 16, 0.35);
    --ring: 0 0 0 3px rgba(19, 18, 16, 0.08);
    --ease-snap: cubic-bezier(.22, 1, .36, 1);
}

/* ============ BASE ============ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--f-bone);
    color: var(--f-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* grano sutil en todo el sitio */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: .2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display-font { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

::selection { background: var(--f-accent); color: #fff; }

img { user-select: none; }

/* ============ UTILIDADES ============ */
.f-eyebrow {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--f-muted);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.f-eyebrow::before {
    content: "";
    width: 1.4rem; height: 2px;
    background: var(--f-accent);
    display: inline-block;
}

.f-mono { font-family: var(--font-mono); }

/* El contenido se muestra siempre: sin fade-in al hacer scroll. */

/* ============ BOTONES ============ */
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .92rem;
    line-height: 1;
    padding: .95rem 1.6rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--f-ink);
    background: transparent;
    color: var(--f-ink);
    cursor: pointer;
    transition: transform .18s var(--ease-snap), box-shadow .18s var(--ease-snap),
                background .18s, color .18s;
    white-space: nowrap;
}
.f-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-pop);
    color: var(--f-ink);
}
.f-btn:active { transform: none; box-shadow: none; }

.f-btn--ink   { background: var(--f-ink); color: var(--f-bone); }
.f-btn--ink:hover { color: var(--f-bone); }
.f-btn--light { background: var(--f-bone); color: var(--f-ink); border-color: var(--f-bone); }
.f-btn--ghost-light { border-color: rgba(244,241,234,.4); color: var(--f-bone); background: transparent; }
.f-btn--ghost-light:hover { color: var(--f-bone); border-color: rgba(244,241,234,.75); box-shadow: none; }
.f-btn--accent { background: var(--f-accent); border-color: var(--f-accent); color: #fff; }
.f-btn--accent:hover { color: #fff; }
.f-btn--wa { background: var(--f-wa); border-color: var(--f-wa); color: #fff; }
.f-btn--wa:hover { color: #fff; background: var(--f-wa-deep); border-color: var(--f-wa-deep); }
.f-btn--danger {
    background: var(--f-danger);
    border-color: var(--f-danger);
    color: #fff;
}
.f-btn--danger:hover { color: #fff; filter: brightness(1.08); }
.f-btn--sm { padding: .6rem 1.1rem; font-size: .8rem; }
.f-btn--lg { padding: 1.15rem 2.2rem; font-size: 1rem; }
.f-btn--block { width: 100%; }
.f-btn[disabled], .f-btn.is-disabled { opacity: .45; pointer-events: none; }

.f-btn .ti, .f-btn .bi { font-size: 1.1em; }

/* icono circular */
.f-iconbtn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--f-ink);
    background: var(--f-paper);
    color: var(--f-ink);
    transition: transform .18s var(--ease-snap), box-shadow .18s var(--ease-snap), background .18s;
}
.f-iconbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }

/* ============ BADGES ============ */
.f-badge {
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .42rem .7rem;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid transparent;
}
.f-badge--accent { background: var(--f-accent); color: #fff; }
.f-badge--new    { background: var(--f-paper); border-color: var(--f-ink); color: var(--f-ink); }
.f-badge--ink    { background: var(--f-ink); color: var(--f-bone); }
.f-badge--ghost  { background: var(--f-paper); border-color: var(--f-line); color: var(--f-muted); }
.f-badge--ok     { background: #E2F4E8; color: #0F7A39; }
.f-badge--warn   { background: #FFF1D6; color: #9A6B00; }
.f-badge--danger { background: #FCE4E8; color: var(--f-danger); }

/* ============ NAVBAR ============ */
.f-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(244, 241, 234, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--f-line);
    transition: box-shadow .25s;
}
.f-nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(19,18,16,.35); }

/* Franja del cliente mayorista (entró con su link) */
.f-mayorbar {
    background: var(--f-accent-soft);
    border-bottom: 1px solid var(--f-line);
    font-size: .8rem;
    line-height: 1.45;
}
.f-mayorbar .container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem .6rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
}
.f-mayorbar i { color: var(--f-accent); }
/* el texto se queda al lado del icono y parte sus lineas ahi (movil) */
.f-mayorbar .container > span { flex: 1 1 12rem; min-width: 0; }
.f-mayorbar a { color: var(--f-ink); font-weight: 700; text-decoration: underline; margin-left: auto; }
.f-mayorbar--off { background: var(--f-bone-deep); }
.f-mayorbar--off i { color: var(--f-muted); }
.f-nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem 0;
}

.f-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .04em;
    color: var(--f-ink);
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}
.f-wordmark .dot { color: var(--f-accent); }
.f-wordmark--light { color: var(--f-bone); }

/* Logo subido desde el panel (reemplaza el texto FOURA) */
.f-logo { height: 34px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.f-logo--lg { height: 48px; max-width: 240px; }
@media (max-width: 575.98px) { .f-logo { height: 28px; max-width: 140px; } }

.f-nav .links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0; padding: 0;
}
.f-nav .links a {
    font-size: .88rem;
    font-weight: 600;
    color: var(--f-ink-soft);
    padding: .55rem .9rem;
    border-radius: var(--r-pill);
    transition: background .15s, color .15s;
}
.f-nav .links a:hover,
.f-nav .links a.is-active { background: var(--f-ink); color: var(--f-bone); }

.f-nav .actions { display: flex; align-items: center; gap: .6rem; }

/* chip estatico de tasa BCV */
.f-rate {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--f-muted);
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    border-radius: var(--r-pill);
    padding: .5rem .9rem;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.f-rate strong { color: var(--f-ink); font-weight: 600; }

/* buscador */
.f-search {
    display: flex;
    align-items: center;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-pill);
    padding: .15rem .35rem .15rem 1rem;
    transition: border-color .15s, box-shadow .15s;
    min-width: 220px;
}
.f-search:focus-within { border-color: var(--f-ink); box-shadow: var(--ring); }
.f-search input {
    border: 0; outline: 0; background: transparent;
    font-size: .85rem; width: 100%;
    font-family: var(--font-body);
    padding: .45rem 0;
}
.f-search button {
    border: 0; background: var(--f-ink); color: var(--f-bone);
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem;
    flex: none;
}

/* pill carrito */
.f-cartpill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--f-ink);
    color: var(--f-bone);
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--r-pill);
    padding: .65rem 1.25rem;
    border: 1.5px solid var(--f-ink);
    transition: transform .18s var(--ease-snap), box-shadow .18s var(--ease-snap);
}
.f-cartpill:hover { color: var(--f-bone); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.f-cartpill .count {
    background: var(--f-accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .68rem;
    min-width: 1.35rem; height: 1.35rem;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 .25rem;
}

/* hamburguesa + drawer movil */
.f-burger {
    display: none;
    border: 1.5px solid var(--f-ink);
    background: var(--f-paper);
    border-radius: 12px;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.f-drawer {
    position: fixed;
    inset: 0 30% 0 0;
    max-width: 340px;
    background: var(--f-ink);
    color: var(--f-bone);
    z-index: 1050;
    padding: 2rem 1.6rem;
    transform: translateX(-103%);
    transition: transform .35s var(--ease-snap);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    overflow-y: auto;
}
.f-drawer.is-open { transform: none; box-shadow: 40px 0 80px rgba(0,0,0,.4); }
.f-drawer a {
    color: var(--f-bone);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--f-line-dark);
}
.f-drawer a:hover { color: var(--f-accent); }
.f-drawer .small-links a {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    border: 0;
    color: rgba(244,241,234,.7);
    padding: .35rem 0;
}
.f-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(19,18,16,.55);
    z-index: 1049;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.f-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ============ HERO ============ */
.f-hero {
    background: var(--f-ink);
    color: var(--f-bone);
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 6.5rem;
}
.f-hero::before {
    content: "";
    position: absolute;
    width: 900px; height: 900px;
    border-radius: 50%;
    right: -280px; top: -380px;
    background: radial-gradient(closest-side, rgba(255,77,0,.12), transparent 70%);
    pointer-events: none;
}
.f-hero .badge-drop {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--f-bone);
    border: 1px solid var(--f-line-dark);
    background: rgba(244,241,234,.06);
    border-radius: var(--r-pill);
    padding: .5rem 1rem;
    margin-bottom: 1.6rem;
}
.f-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 1.4rem;
}
.f-hero h1 .accent { color: var(--f-accent); }
.f-hero .lead-text {
    color: rgba(244,241,234,.72);
    font-size: 1.06rem;
    max-width: 480px;
    line-height: 1.7;
}
.f-hero .meta-rate {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    color: rgba(244,241,234,.55);
}
.f-hero .meta-rate strong { color: var(--f-accent); }

/* tarjeta flotante del hero */
.f-hero-card {
    background: var(--f-bone);
    color: var(--f-ink);
    border-radius: var(--r-card);
    padding: 1.2rem;
    width: min(330px, 100%);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.55);
    transition: transform .3s var(--ease-snap);
}
.f-hero-card:hover { transform: translateY(-4px); }
.f-hero-card img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 12px;
    background: var(--f-bone-deep);
}
.f-hero-card .name { font-weight: 800; font-size: .95rem; margin-top: .8rem; }
.f-hero-card .price { font-family: var(--font-mono); font-weight: 600; color: var(--f-accent); }

/* ============ SECCIONES ============ */
.f-section { padding: 4.5rem 0; }
.f-section--deep { background: var(--f-bone-deep); }

.f-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.4rem;
}
.f-section-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 800;
    margin: .35rem 0 0;
    line-height: 1.05;
}
.f-section-head .index {
    font-family: var(--font-mono);
    color: var(--f-muted);
    font-size: .75rem;
    letter-spacing: .2em;
}

/* ============ COMO COMPRAR (home, 3 pasos) ============
   OJO: no llamar ".f-steps" — ese nombre ya lo usa el stepper del checkout. */
.f-howto-wrap { margin-top: 2.4rem; }
.f-howto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
}
.f-howto .step {
    display: flex;
    gap: .95rem;
    align-items: flex-start;
    padding: .35rem .4rem;
}
.f-howto .step > i {
    font-size: 1.75rem;
    color: var(--f-accent);
    margin-top: .15rem;
    flex: none;
}
.f-howto .num {
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    color: var(--f-muted);
    margin-bottom: .15rem;
}
.f-howto strong {
    display: block;
    font-size: .95rem;
    margin-bottom: .1rem;
}
.f-howto .desc {
    display: block;
    font-size: .8rem;
    color: var(--f-muted);
    line-height: 1.5;
}
@media (max-width: 767.98px) {
    .f-howto { grid-template-columns: 1fr; gap: .4rem; }
}

/* ============ PRODUCT CARD ============ */
.f-card {
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s var(--ease-snap), box-shadow .25s var(--ease-snap), border-color .25s;
}
.f-card:hover {
    transform: translateY(-3px);
    border-color: var(--f-ink);
    box-shadow: var(--shadow-pop);
}
.f-card .img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--f-bone-deep);
}
.f-card .img-wrap .cover { display: block; width: 100%; height: 100%; }
.f-card .img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-snap);
}
.f-card:hover .img-wrap img { transform: scale(1.06); }
.f-card .badges {
    position: absolute;
    top: .8rem; left: .8rem;
    display: flex; flex-direction: column; gap: .35rem;
    align-items: flex-start;
    z-index: 2;
}
.f-card .body {
    padding: .85rem .9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .12rem;
}
.f-card .brand {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--f-muted);
    min-height: 1em;
}
.f-card .name {
    font-weight: 700;
    font-size: .86rem;
    line-height: 1.3;
    color: var(--f-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .4rem;
}
.f-card .name:hover { color: var(--f-accent); }
.f-card .price-row { display: flex; align-items: baseline; gap: .45rem; margin-top: auto; }
.f-card .price-usd {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .98rem;
}
.f-card .price-old {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--f-muted);
    text-decoration: line-through;
}
.f-card .price-ves {
    font-family: var(--font-mono);
    font-size: .64rem;
    color: var(--f-muted);
}
/* Precio al mayor: lo ve todo el mundo, se cobra al llegar al minimo */
.f-card .price-mayor {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    column-gap: .35rem;
    margin-top: .35rem;
    padding: .25rem .5rem;
    border-radius: 8px;
    background: var(--f-accent-soft);
    color: var(--f-ink);
    font-family: var(--font-mono);
    font-size: .64rem;
    line-height: 1.45;
}
.f-card .price-mayor strong { font-weight: 600; }
.f-card .price-mayor span { color: var(--f-ink-soft); }
.f-card .actions {
    margin-top: .7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}
.f-card .actions:has(> :only-child) { grid-template-columns: 1fr; }
.f-card .actions .f-btn {
    padding: .55rem .4rem;
    font-size: .72rem;
    gap: .3rem;
    white-space: nowrap;
}

/* Tactil: sin efectos de hover (en iOS obligaban a tocar dos veces) */
@media (hover: none) {
    .f-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--f-line);
    }
    .f-card:hover .img-wrap img { transform: none; }
}

/* ============ COLORES EN LA TARJETA DEL CATALOGO ============ */
.f-card .card-form { display: contents; }
.card-colores {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: .5rem 0 .1rem;
}
.card-color {
    position: relative;
    cursor: pointer;
    line-height: 0;
}
.card-color input { position: absolute; opacity: 0; pointer-events: none; }
.card-color .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--f-line);
    display: inline-block;
    transition: transform .15s var(--ease-snap), box-shadow .15s;
}
.card-color:hover .dot { transform: scale(1.1); }
.card-color:has(input:checked) .dot {
    border-color: var(--f-ink);
    box-shadow: 0 0 0 2px var(--f-paper), 0 0 0 3.5px var(--f-ink);
}
.card-color.is-out { cursor: not-allowed; }
.card-color.is-out .dot { opacity: .35; }
.card-color.is-out::after {
    content: "";
    position: absolute;
    left: 1px; right: 1px; top: 50%;
    height: 1.5px;
    background: var(--f-muted);
    transform: rotate(-45deg);
}

/* ============ COLORES (VARIANTES) ============ */
/* muestras compactas en la tarjeta del catalogo y en el carrito */
.swatches { display: flex; gap: .3rem; flex-wrap: wrap; margin: .1rem 0 .45rem; }
.swatch {
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--f-line);
    box-shadow: inset 0 0 0 1.5px var(--f-paper);
    display: inline-block;
    flex: none;
}
.swatch.is-out { opacity: .35; }

/* selector de color en la ficha del producto */
.f-colorpick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.f-coloropt {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-pill);
    padding: .45rem .9rem .45rem .5rem;
    cursor: pointer;
    background: var(--f-paper);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    user-select: none;
}
.f-coloropt input { position: absolute; opacity: 0; pointer-events: none; }
.f-coloropt .dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--f-line);
    flex: none;
}
.f-coloropt .nombre { font-size: .82rem; font-weight: 700; }
.f-coloropt:hover { border-color: var(--f-ink); }
.f-coloropt:has(input:checked) {
    border-color: var(--f-ink);
    box-shadow: var(--ring);
}
.f-coloropt.is-out {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* boton Instagram (degradado de la marca) */
.f-btn--ig {
    background: linear-gradient(45deg, #F09433, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888);
    border-color: transparent;
    color: #fff;
}
.f-btn--ig:hover { color: #fff; filter: brightness(1.06); }

/* ============ CATEGORY TILES ============ */
.f-cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    padding: 1.4rem;
    height: 100%;
    overflow: hidden;
    transition: transform .25s var(--ease-snap), box-shadow .25s var(--ease-snap),
                border-color .25s, background .25s, color .25s;
}
.f-cat-tile:hover {
    background: var(--f-ink);
    color: var(--f-bone);
    border-color: var(--f-ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
}
.f-cat-tile .num {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--f-muted);
    letter-spacing: .15em;
}
.f-cat-tile:hover .num { color: var(--f-accent); }
.f-cat-tile .label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.f-cat-tile .label i { transition: transform .25s var(--ease-snap); }
.f-cat-tile:hover .label i { transform: translateX(5px); color: var(--f-accent); }

/* ============ BANDA WHATSAPP ============ */
.f-waband {
    background: var(--f-ink);
    color: var(--f-bone);
    border-radius: calc(var(--r-card) * 1.4);
    padding: 3.2rem 2.6rem;
    position: relative;
    overflow: hidden;
}
.f-waband::before {
    content: "";
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    left: -160px; bottom: -260px;
    background: radial-gradient(closest-side, rgba(29,171,84,.16), transparent 70%);
}
.f-waband h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    max-width: 520px;
    position: relative;
}
.f-waband p { color: rgba(244,241,234,.65); max-width: 440px; position: relative; }

/* ============ CATALOGO ============ */
.f-pagehead {
    background: var(--f-ink);
    color: var(--f-bone);
    padding: 2.8rem 0;
    position: relative;
    overflow: hidden;
}
.f-pagehead h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    margin: .4rem 0 0;
}
.f-pagehead .count {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .15em;
    color: rgba(244,241,234,.55);
}

.f-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 1.1rem 0;
}
.f-chip {
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem 1.05rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    color: var(--f-ink-soft);
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.f-chip:hover { border-color: var(--f-ink); }
.f-chip.is-active { background: var(--f-ink); color: var(--f-bone); border-color: var(--f-ink); }
.f-chip.is-active:hover { color: var(--f-bone); }

/* contador de productos dentro del chip de categoria */
.f-chip .n {
    font-family: var(--font-mono);
    font-size: .62rem;
    line-height: 1;
    background: var(--f-bone-deep);
    color: var(--f-ink-soft);
    border-radius: var(--r-pill);
    padding: .22rem .45rem;
}
.f-chip.is-active .n { background: rgba(244,241,234,.18); color: var(--f-bone); }

/* filtros activos: cada chip se quita con su X */
.f-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: 0 0 1.1rem;
}
.f-chip--on {
    background: var(--f-accent-soft);
    border-color: transparent;
    color: var(--f-ink);
    padding-right: .8rem;
}
.f-chip--on:hover { border-color: var(--f-accent); color: var(--f-ink); }
.f-chip--on .ti { font-size: .9rem; opacity: .65; }
.f-active-clear {
    font-size: .8rem;
    font-weight: 700;
    color: var(--f-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: .5rem .35rem;
}
.f-active-clear:hover { color: var(--f-ink); }

/* fila "filtros + orden": en escritorio el panel se ve en linea */
.f-toolbar { padding-top: 0; }
.f-filtersheet { flex: 1 1 auto; min-width: 0; }
.f-fgroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.f-fgroup-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 768px) {
    .f-filtersheet .offcanvas-body { flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
}

/* el fondo del panel tapa tambien el boton flotante de WhatsApp (1070) */
.offcanvas-backdrop { z-index: 1072; }

.f-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--f-muted);
}
.f-sort select {
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    border-radius: var(--r-pill);
    font-size: .8rem;
    font-weight: 700;
    padding: .5rem 2rem .5rem 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23131210' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    cursor: pointer;
}

/* filtro de rango de precio */
.f-pricefilter { font-size: .8rem; color: var(--f-muted); }
.f-pricefilter label { margin: 0; }
.f-pricefields { display: flex; align-items: center; gap: .45rem; }
.f-pricefilter input[type="number"] {
    width: 5.4rem;
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    border-radius: var(--r-pill);
    padding: .5rem .8rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    color: var(--f-ink);
    -moz-appearance: textfield;
}
.f-pricefilter input[type="number"]::-webkit-outer-spin-button,
.f-pricefilter input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.f-pricefilter input[type="number"]:focus {
    outline: none;
    border-color: var(--f-ink);
}

/* ---- Catalogo en movil: categorias en una fila deslizable y el resto
        de filtros en un panel que sube desde abajo ---- */
@media (max-width: 767.98px) {
    .f-cats {
        position: relative;          /* offsetLeft de los chips relativo a la fila (foura.js) */
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: calc(var(--bs-gutter-x) * -.5);
        padding: 1rem calc(var(--bs-gutter-x) * .5) .7rem;
    }
    .f-cats::-webkit-scrollbar { display: none; }
    .f-cats .f-chip { flex: 0 0 auto; white-space: nowrap; }

    .f-toolbar { flex-wrap: nowrap; padding-bottom: .9rem; }
    .f-sort label {                 /* el select ya dice "Recomendados", "Precio..." */
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .f-filtersheet.offcanvas-md {
        --bs-offcanvas-height: auto;
        --bs-offcanvas-zindex: 1075;
        --bs-offcanvas-bg: var(--f-bone);
        max-height: 85vh;
        border-radius: 22px 22px 0 0;
        border-top: 0;
    }
    .f-filtersheet .offcanvas-header { padding: 1.2rem 1.25rem .3rem; }
    .f-filtersheet .offcanvas-title {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 1.3rem;
        margin: 0;
    }
    .f-filtersheet .offcanvas-body {
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        padding: .9rem 1.25rem 1.3rem;
    }
    .f-filtersheet .f-fgroup { flex-direction: column; align-items: flex-start; gap: .7rem; }
    .f-filtersheet .f-chip { font-size: .85rem; padding: .6rem 1.1rem; }
    .f-pricefields { width: 100%; }
    /* 16px: con menos, iOS hace zoom al tocar el campo */
    .f-pricefields input[type="number"] { flex: 1; width: auto; min-width: 0; font-size: 16px; }
    .f-sheet-foot {
        padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--f-line);
    }
}

/* vacios */
.f-empty {
    text-align: center;
    padding: 4.5rem 1rem;
    color: var(--f-muted);
    border: 1.5px dashed var(--f-line);
    border-radius: var(--r-card);
    background: var(--f-paper);
}
.f-empty i { font-size: 2.6rem; display: block; margin-bottom: .8rem; color: var(--f-muted); }

/* paginacion */
.f-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.f-pagination a, .f-pagination span {
    min-width: 42px; height: 42px;
    padding: 0 .8rem;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    transition: all .15s;
}
.f-pagination a:hover { border-color: var(--f-ink); }
.f-pagination .is-current { background: var(--f-ink); color: var(--f-bone); border-color: var(--f-ink); }
.f-pagination .is-disabled { opacity: .35; pointer-events: none; }

/* ============ BREADCRUMB ============ */
.f-crumb {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--f-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}
.f-crumb a:hover { color: var(--f-accent); }
.f-crumb .sep { color: var(--f-line); }

/* ============ PRODUCTO DETALLE ============ */
.f-gallery-main {
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}
.f-gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .2s;
}
.f-gallery-main img.is-swapping { opacity: 0; }
.f-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.foura-thumb {
    width: 76px; height: 76px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--f-line);
    background: var(--f-paper);
    padding: 0;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
    flex: none;
}
.foura-thumb:hover { transform: translateY(-2px); }
.foura-thumb.is-active { border-color: var(--f-ink); }
.foura-thumb img { width: 100%; height: 100%; object-fit: cover; }

.f-buybox {
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    padding: 1.8rem;
    position: sticky;
    top: 96px;
}
.f-detail-name {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.12;
    margin: .3rem 0 .6rem;
}
.f-price-big {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -.02em;
}
.f-price-ves {
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--f-muted);
}
.f-mayor {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .7rem .9rem;
    border: 1.5px dashed var(--f-line);
    border-radius: 12px;
    font-size: .85rem;
    line-height: 1.45;
    transition: background .2s, border-color .2s;
}
.f-mayor > i { color: var(--f-accent); font-size: 1rem; }
.f-mayor .on { display: none; }
.f-mayor.is-on { border-style: solid; border-color: var(--f-accent); background: var(--f-accent-soft); }
.f-mayor.is-on .on { display: inline; }
.f-mayor.is-on .off { display: none; }
.f-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--f-ink);
    border-radius: var(--r-pill);
    overflow: hidden;
    background: var(--f-paper);
}
.f-qty button {
    border: 0; background: transparent;
    width: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.f-qty button:hover { background: var(--f-bone-deep); }
.f-qty input {
    border: 0; outline: 0;
    width: 48px;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .95rem;
    -moz-appearance: textfield;
    appearance: textfield;
}
.f-qty input::-webkit-outer-spin-button,
.f-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.f-perk {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .82rem;
    color: var(--f-ink-soft);
    padding: .55rem 0;
}
.f-perk i { color: var(--f-accent); font-size: 1.15rem; flex: none; }

/* tabs */
.f-tabs {
    display: flex;
    gap: .4rem;
    border-bottom: 1.5px solid var(--f-line);
    margin-bottom: 1.4rem;
}
.f-tabs button {
    border: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--f-muted);
    padding: .8rem 1.1rem;
    margin-bottom: -1.5px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.f-tabs button.active { color: var(--f-ink); border-bottom-color: var(--f-accent); }

.f-spec-table { width: 100%; border-collapse: collapse; }
.f-spec-table th, .f-spec-table td {
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--f-line);
    font-size: .88rem;
    text-align: left;
}
.f-spec-table th {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--f-muted);
    width: 38%;
}

/* ============ CARRITO ============ */
.f-cartline {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 1.2rem;
    align-items: center;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    padding: 1rem;
    transition: border-color .2s;
}
.f-cartline:hover { border-color: var(--f-ink); }
.f-cartline img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--f-bone-deep);
}
.f-cartline .nm { font-weight: 800; font-size: .95rem; }
.f-cartline .unit { font-family: var(--font-mono); font-size: .75rem; color: var(--f-muted); }
.f-cartline .mayor-hint { font-size: .74rem; font-weight: 600; color: var(--f-ink-soft); margin-top: .15rem; }
.f-cartline .sub { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; text-align: right; }
.f-cartline .rm {
    border: 0; background: transparent;
    color: var(--f-muted);
    font-size: .78rem;
    display: inline-flex; align-items: center; gap: .3rem;
    cursor: pointer;
    padding: 0;
}
.f-cartline .rm:hover { color: var(--f-danger); }

.f-summary {
    background: var(--f-ink);
    color: var(--f-bone);
    border-radius: var(--r-card);
    padding: 1.8rem;
    position: sticky;
    top: 96px;
}
.f-summary .row-line {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: .45rem 0;
    color: rgba(244,241,234,.75);
}
.f-summary .row-line strong { color: var(--f-bone); font-family: var(--font-mono); }
.f-summary .total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--f-line-dark);
    margin-top: .8rem;
    padding-top: 1rem;
}
.f-summary .total-line .lbl { font-family: var(--font-display); font-weight: 700; }
.f-summary .total-line .val { font-family: var(--font-mono); font-weight: 600; font-size: 1.6rem; }
.f-summary .ves { font-family: var(--font-mono); font-size: .72rem; color: rgba(244,241,234,.55); text-align: right; }

/* ============ CHECKOUT ============ */
.f-steps {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--f-muted);
    flex-wrap: wrap;
}
.f-steps .step { display: inline-flex; align-items: center; gap: .45rem; }
.f-steps .n {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--f-line);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .62rem;
}
.f-steps .step.is-done .n,
.f-steps .step.is-now .n { background: var(--f-ink); color: var(--f-bone); border-color: var(--f-ink); }
.f-steps .step.is-now { color: var(--f-ink); }
.f-steps .bar { flex: 1; min-width: 30px; height: 1.5px; background: var(--f-line); }

.f-formcard {
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    padding: 1.8rem;
}
.f-formcard h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 1.2rem;
}
.f-formcard h5 .n {
    font-family: var(--font-mono);
    font-size: .65rem;
    background: var(--f-ink);
    color: var(--f-bone);
    border-radius: 50%;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
}

.f-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--f-muted);
    margin-bottom: .4rem;
    display: block;
}
.f-input, .f-select, .f-textarea {
    width: 100%;
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-input);
    background: var(--f-bone);
    padding: .8rem 1rem;
    font-family: var(--font-body);
    font-size: .92rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: none;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
    border-color: var(--f-ink);
    background: var(--f-paper);
    box-shadow: var(--ring);
}
.f-input.is-invalid, .f-select.is-invalid { border-color: var(--f-danger); }
.f-feedback { color: var(--f-danger); font-size: .76rem; margin-top: .3rem; }

/* radio de zona de envio */
.f-zone {
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-input);
    padding: .9rem 1.1rem;
    cursor: pointer;
    background: var(--f-bone);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.f-zone:hover { border-color: var(--f-ink); }
.f-zone input { accent-color: var(--f-ink); width: 1.05rem; height: 1.05rem; flex: none; }
.f-zone .zn { font-weight: 700; font-size: .9rem; }
.f-zone .zd { font-size: .76rem; color: var(--f-muted); }
.f-zone .zp { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: .9rem; }
.f-zone:has(input:checked) {
    border-color: var(--f-ink);
    background: var(--f-paper);
    box-shadow: var(--ring);
}

/* variante oscura: radios dentro del resumen del carrito (fondo tinta) */
.f-summary .f-zone {
    background: rgba(244,241,234,.05);
    border-color: var(--f-line-dark);
}
.f-summary .f-zone:hover { border-color: rgba(244,241,234,.5); }
.f-summary .f-zone .zn { color: var(--f-bone); }
.f-summary .f-zone .zd { color: rgba(244,241,234,.55); }
.f-summary .f-zone input { accent-color: var(--f-accent); }
.f-summary .f-zone:has(input:checked) {
    background: rgba(244,241,234,.1);
    border-color: var(--f-bone);
    box-shadow: none;
}

/* ============ ORDEN CONFIRMADA ============ */
.f-confirm-hero {
    text-align: center;
    padding: 3.5rem 0 1.5rem;
}
.f-confirm-hero .check {
    width: 84px; height: 84px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: var(--f-wa);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 18px 40px -18px rgba(29,171,84,.6);
}
.f-confirm-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.f-ordernum {
    font-family: var(--font-mono);
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-pill);
    padding: .55rem 1.3rem;
    display: inline-block;
    font-weight: 600;
    letter-spacing: .08em;
}

/* ============ LOGIN ============ */
.f-login-wrap {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.f-login-side {
    background: var(--f-ink);
    color: var(--f-bone);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.f-login-side::after {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    right: -200px; bottom: -260px;
    background: radial-gradient(closest-side, rgba(255,77,0,.12), transparent 70%);
}
.f-login-side h2 { font-weight: 800; font-size: 2.2rem; max-width: 360px; position: relative; }
.f-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.f-login-card { width: min(400px, 100%); }

/* ============ FOOTER ============ */
.f-footer {
    background: var(--f-ink);
    color: rgba(244,241,234,.7);
    margin-top: 5rem;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}
.f-footer h6 {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--f-bone);
    margin-bottom: 1.1rem;
}
.f-footer a {
    display: block;
    color: rgba(244,241,234,.65);
    font-size: .88rem;
    padding: .3rem 0;
    transition: color .15s, transform .15s;
}
.f-footer a:hover { color: var(--f-accent); transform: translateX(3px); }
.f-footer .bottom {
    border-top: 1px solid var(--f-line-dark);
    margin-top: 3rem;
    padding: 1.4rem 0 1.6rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(244,241,234,.4);
    position: relative;
    z-index: 2;
}
/* ============ FLASH / TOASTS ============ */
.foura-flash-wrap {
    position: fixed;
    right: 1.2rem;
    bottom: 5.6rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: min(380px, calc(100vw - 2.4rem));
}
.foura-flash-wrap .alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(19,18,16,.12);
    box-shadow: var(--shadow-pop);
    font-size: .88rem;
    font-weight: 600;
    padding: .9rem 2.6rem .9rem 1.1rem;
    animation: f-toast-in .45s var(--ease-snap);
}
.foura-flash-wrap .alert-success { background: #E9F8EE; color: #0F7A39; }
.foura-flash-wrap .alert-danger  { background: #FCE9EC; color: var(--f-danger); }
.foura-flash-wrap .btn-close { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: .7rem; }
@keyframes f-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* ============ BOTON FLOTANTE WHATSAPP ============ */
.f-wafloat {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 1070;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--f-wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 14px 30px -10px rgba(19,18,16,.45);
    transition: transform .2s var(--ease-snap), box-shadow .2s, background .2s;
}
.f-wafloat:hover { color: #fff; transform: translateY(-2px); background: var(--f-wa-deep); }

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

/* Tablets e iPad en horizontal: el buscador compite con el menu */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .f-search { min-width: 150px; }
    .f-nav .links a { padding: .55rem .65rem; font-size: .84rem; }
    .f-rate { display: none !important; }
}

/* iPad / tablets verticales */
@media (min-width: 768px) and (max-width: 991.98px) {
    .f-hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
    .f-buybox, .f-summary { position: static; }
    .f-gallery-main { max-height: 520px; }
}

@media (max-width: 991.98px) {
    .f-nav .links, .f-nav .f-search { display: none; }
    .f-burger { display: inline-flex; }
    .f-hero { padding: 3.5rem 0 5rem; }
    .f-hero::after { font-size: 26vw; bottom: -1.5rem; }
    .f-buybox, .f-summary { position: static; }
    .f-login-wrap { grid-template-columns: 1fr; }
    .f-login-side { min-height: 220px; padding: 2rem; }
    .f-section { padding: 3rem 0; }
}
@media (max-width: 575.98px) {
    .f-cartline { grid-template-columns: 72px 1fr; }
    .f-cartline img { width: 72px; height: 72px; }
    .f-cartline .sub { grid-column: 2; text-align: left; }
    .f-section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .f-waband { padding: 2.2rem 1.5rem; }
    .f-pagehead::after { display: none; }
}

/* ============================================================
   COMBOS AL MAYOR + MODO MAYORISTA (tienda)
   Cliente con link: solo precio al mayor, minimo del pedido suelto,
   combos (tarjeta, ficha, portada sin link) y carrito con bloqueos.
   ============================================================ */

/* ---- collage automatico del combo (sin foto propia): 1 a 4 fotos ---- */
.f-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    background: var(--f-line);
    overflow: hidden;
}
.f-collage img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    display: block;
    background: var(--f-bone-deep);
}
.f-collage--0, .f-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.f-collage--2 { grid-template-rows: 1fr; }
.f-collage--3 img:first-child { grid-row: span 2; }
/* en la tarjeta se mueve el collage entero (no cada foto) */
.f-card .img-wrap .f-collage { transition: transform .6s var(--ease-snap); }
.f-card .img-wrap .f-collage img { transition: none; }
.f-card:hover .img-wrap .f-collage img { transform: none; }
.f-card:hover .img-wrap .f-collage { transform: scale(1.04); }
@media (hover: none) { .f-card:hover .img-wrap .f-collage { transform: none; } }

/* ---- tarjeta: precio del cliente con link (y del combo) ---- */
.f-card .f-cardmay { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; }
.f-card .f-cardmay .price-row { margin-top: 0; }
.f-card .f-cardmay .lbl {
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--f-accent);
}
.f-ccard .f-cardmay .price-usd { font-size: 1.05rem; }
.f-ccard .ahorro,
.f-ccard .minimo {
    align-self: flex-start;
    margin-top: .3rem;
    padding: .22rem .5rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.4;
}
.f-ccard .ahorro { background: #E2F4E8; color: #0F7A39; }
.f-ccard .minimo { background: var(--f-bone-deep); color: var(--f-ink-soft); }
.f-ccard .actions form { margin: 0; }

/* ---- catalogo al mayor: seccion de combos arriba ---- */
.f-combos { margin: 1.6rem 0 .6rem; }
.f-combos-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}
.f-combos-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: .3rem 0 0;
    line-height: 1.05;
}
.f-combos-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 40px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.f-combos-all:hover { color: var(--f-accent); }
.f-combos-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.f-combos-sueltas {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-weight: 800;
    margin: 1.6rem 0 0;
}
.f-combos-sueltas span {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    color: var(--f-muted);
}
@media (max-width: 991.98px) {
    .f-combos-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
/* telefono: fila deslizable con iman, la siguiente tarjeta asoma */
@media (max-width: 767.98px) {
    .f-combos-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc(var(--bs-gutter-x) * .5);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .8rem;
        margin-inline: calc(var(--bs-gutter-x) * -.5);
        padding: .2rem calc(var(--bs-gutter-x) * .5) .8rem;
    }
    .f-combos-row::-webkit-scrollbar { display: none; }
    .f-combos-cell { flex: 0 0 68%; max-width: 250px; scroll-snap-align: start; }
}
.f-combos-intro { font-size: .9rem; color: var(--f-ink-soft); max-width: 720px; margin-bottom: 1.4rem; }

/* ---- franja del mayorista: link "un combo" dentro del texto ---- */
.f-mayorbar .f-mayorbar-combo { margin-left: 0; }

/* ---- franja de vista previa del admin ---- */
.f-adminbar { background: var(--f-ink); color: var(--f-bone); font-size: .8rem; line-height: 1.45; }
.f-adminbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .7rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.f-adminbar i { color: var(--f-accent); }
.f-adminbar .container > span { flex: 1 1 14rem; min-width: 0; }
.f-adminbar a { color: var(--f-bone); font-weight: 700; text-decoration: underline; margin-left: auto; }
.f-adminbar a:hover { color: var(--f-accent); }

/* ---- ficha de producto (cliente con link) ---- */
.f-pmay-label {
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--f-accent);
    margin-bottom: .15rem;
}
.f-pmay-nota { font-size: .82rem; color: var(--f-muted); margin-top: .35rem; }
.f-pedidomayor {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: .9rem;
    padding: .8rem .95rem;
    border-radius: 12px;
    background: var(--f-accent-soft);
    font-size: .85rem;
    line-height: 1.5;
}
.f-pedidomayor > i { color: var(--f-accent); font-size: 1.05rem; margin-top: .1rem; flex: none; }
.f-pedidomayor a { font-weight: 700; text-decoration: underline; }
/* cantidad + boton: en el telefono el boton baja a su propia linea */
.f-buyrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.f-buyrow .f-qty { min-height: 46px; }
.f-buyrow-main { flex: 1 1 12rem; min-width: 0; white-space: normal; line-height: 1.2; min-height: 46px; }
.f-encombos { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.f-encombo {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .55rem .85rem;
    border: 1.5px solid var(--f-line);
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--f-bone);
    transition: border-color .15s;
}
.f-encombo:hover { border-color: var(--f-ink); }
.f-encombo i { color: var(--f-accent); }
.f-encombo span { flex: 1; min-width: 0; }
.f-encombo strong { font-family: var(--font-mono); font-weight: 600; }

/* ---- ficha del combo ---- */
.f-cdet {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "buy" "info";
    gap: 1.5rem;
}
.f-cdet-media { grid-area: media; min-width: 0; }
.f-cdet-buy { grid-area: buy; min-width: 0; }
.f-cdet-info { grid-area: info; min-width: 0; }
@media (min-width: 992px) {
    .f-cdet {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-areas: "media buy" "info buy";
        gap: 2rem 3rem;
        align-items: start;
    }
    .f-cdet-buy { align-self: start; }
}
.f-cdet .f-gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.f-cdet-tag {
    position: absolute;
    top: .9rem;
    left: .9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .75rem;
    border-radius: var(--r-pill);
    background: var(--f-accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.f-cdet-sub { font-size: .9rem; font-weight: 600; color: var(--f-ink-soft); margin: 0; }
.f-ahorro {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #E2F4E8;
    color: #0F7A39;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
}
.f-ahorro i { font-size: 1rem; flex: none; }
.f-cdet-nota {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .2rem .45rem;
    font-size: .84rem;
    color: var(--f-ink-soft);
    margin: 0 0 .7rem;
    line-height: 1.45;
}
.f-cdet-nota i { color: var(--f-accent); margin-top: .12rem; }
.f-cdet-nota span { flex: 1 1 12rem; min-width: 0; }
.f-cdet-nota a { font-weight: 700; text-decoration: underline; }
.f-cdet-wa { white-space: normal; line-height: 1.2; font-size: .88rem; padding-inline: 1rem; min-height: 46px; }
.f-cdet-hint { font-size: .75rem; color: var(--f-muted); margin: .6rem 0 0; }
.f-cdet-desc { font-size: .95rem; line-height: 1.75; white-space: pre-line; max-width: 760px; margin-bottom: 1.6rem; }
.f-cdet-h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .9rem; }
.f-citems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.f-citem {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: .8rem;
    align-items: center;
    padding: .5rem .85rem .5rem .5rem;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: 14px;
}
.f-citem img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--f-bone-deep); }
.f-citem > div { min-width: 0; }
.f-citem .nm { font-weight: 700; font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.f-citem a.nm:hover { color: var(--f-accent); }
.f-citem .qty { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.f-citem .prob { color: var(--f-danger); font-size: .74rem; font-weight: 600; margin-top: .15rem; }
@media (max-width: 575.98px) {
    .f-cdet .f-buybox { padding: 1.3rem; }
}

/* ---- portada del combo sin link (sin precios) ---- */
.f-privado { max-width: 560px; margin: 0 auto; text-align: center; }
.f-privado .media {
    width: min(320px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 1.4rem;
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1.5px solid var(--f-line);
    background: var(--f-bone-deep);
}
.f-privado .media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-privado h1 { font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: .4rem 0 .3rem; }
.f-privado-sub { font-weight: 600; color: var(--f-ink-soft); margin-bottom: 1.2rem; }
.f-privado-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--f-ink);
    color: var(--f-bone);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.f-privado-box {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    text-align: left;
    padding: 1rem 1.1rem;
    margin: 1rem 0 1.2rem;
    background: var(--f-paper);
    border: 1.5px solid var(--f-line);
    border-radius: var(--r-card);
    font-size: .9rem;
    line-height: 1.55;
}
.f-privado-box i { color: var(--f-accent); font-size: 1.2rem; flex: none; margin-top: .1rem; }
.f-privado-box p { margin: 0; }
.f-privado-btn { white-space: normal; line-height: 1.2; }
.f-privado-hint { font-size: .78rem; color: var(--f-muted); margin: 1rem 0 0; line-height: 1.5; }

/* ---- carrito: minimo, combos y bloqueos ---- */
.f-minbar {
    background: var(--f-paper);
    border: 1.5px solid var(--f-accent);
    border-radius: var(--r-card);
    padding: .95rem 1.1rem;
    font-size: .85rem;
    line-height: 1.45;
}
.f-minbar.is-ok { border-color: var(--f-ok); }
.f-minbar .top strong { font-size: .95rem; }
.f-minbar .top span { color: var(--f-muted); font-size: .78rem; }
.f-minbar .bar {
    height: 8px;
    margin-top: .55rem;
    border-radius: var(--r-pill);
    background: var(--f-bone-deep);
    overflow: hidden;
}
.f-minbar .bar > span { display: block; height: 100%; border-radius: inherit; background: var(--f-accent); }
.f-minbar.is-ok .bar > span { background: var(--f-ok); }
.f-minbar .msg { margin-top: .5rem; font-weight: 700; }
.f-minbar.is-ok .msg { color: #0F7A39; }

.f-cartline.is-problema { border-color: var(--f-danger); }
.f-cline-problema {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin-top: .35rem;
    color: var(--f-danger);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.4;
}
.f-cline-problema i { margin-top: .1rem; flex: none; }
.f-cartline .f-cline-thumb {
    display: block;
    width: 96px; height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--f-bone-deep);
}
.f-cartline .f-cline-thumb img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.f-cline-items { margin-top: .3rem; font-size: .78rem; color: var(--f-ink-soft); }
.f-cline-items summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 32px;
    display: flex;
    align-items: center;
}
.f-cline-items summary::before { content: "\25B8"; margin-right: .35rem; transition: transform .15s; }
.f-cline-items[open] summary::before { transform: rotate(90deg); }
.f-cline-items summary::-webkit-details-marker { display: none; }
.f-cline-items ul { list-style: none; margin: .1rem 0 .3rem; padding: 0; }
.f-cline-items li { padding: .12rem 0; overflow-wrap: anywhere; }
.f-cline-items li strong { font-family: var(--font-mono); font-weight: 600; margin-right: .2rem; }
.f-cambio {
    margin-top: .5rem;
    padding: .7rem .85rem;
    border: 1.5px solid #E7B54A;
    border-radius: 12px;
    background: #FFF1D6;
    color: #6B4A00;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.45;
}
.f-cambio i { font-size: 1rem; flex: none; }
.f-cline-cant { font-family: var(--font-mono); font-size: .8rem; color: var(--f-muted); }
.f-cline-min { font-size: .72rem; color: var(--f-muted); margin-top: .2rem; }
.f-cartline .rm { min-height: 40px; }
@media (max-width: 575.98px) {
    .f-cartline .f-cline-thumb { width: 72px; height: 72px; }
}

.f-bloqueos { list-style: none; padding: 0; margin: 1.3rem 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.f-bloqueos li {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    padding: .6rem .75rem;
    border-radius: 10px;
    background: rgba(215, 38, 61, .16);
    border: 1px solid rgba(215, 38, 61, .5);
    color: var(--f-bone);
    font-size: .82rem;
    line-height: 1.45;
}
.f-bloqueos li i { color: #FF8A8A; flex: none; margin-top: .1rem; }
.f-btn.f-btn--off,
.f-btn.f-btn--off[disabled] {
    opacity: 1;
    background: rgba(244, 241, 234, .1);
    border-color: rgba(244, 241, 234, .2);
    color: rgba(244, 241, 234, .55);
    white-space: normal;
    line-height: 1.2;
    cursor: not-allowed;
}
.f-pequeno { margin: .9rem 0 0; font-size: .82rem; color: rgba(244, 241, 234, .7); text-align: center; }
.f-pequeno a { color: var(--f-bone); font-weight: 700; text-decoration: underline; display: inline-block; min-height: 40px; line-height: 40px; }
.f-pequeno a:hover { color: var(--f-accent); }
/* nombres largos sin espacios (codigos de modelo) no ensanchan la pagina */
.f-cdet .f-detail-name, .f-privado h1, .f-buybox .f-detail-name { overflow-wrap: anywhere; }

/* Tarjeta a la que vuelve el mayorista tras "Agregar" (#p-ID): que el menu fijo no la tape */
.f-card { scroll-margin-top: 96px; }
