/* ====== TOPBAR ====== */
.fa-topbar{
    width:100%;
    background:#9E1B1B;
    color:#F3F3F3;
    font: 800 12px/1.2 Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-transform:uppercase;
    letter-spacing:.3px;
    z-index:999;
    position: relative;        /* base: no fixed */
  }
  .fa-topbar__inner{
    max-width: var(--fa-container, 1200px);
    margin: 0 auto;
    padding: 6px 12px;
    display:flex; align-items:center; justify-content:center;
  }
  .fa-topbar--sticky{
    position: sticky;          /* respeta flujo y evita saltos */
    top: 0;
  }
  /* Si necesitas fixed en desktop, el JS puede activar .fa-topbar--fixed y compensa el body */
  .fa-topbar--fixed{
    position: fixed;
    left:0; right:0; top:0;
  }
  
  /* ====== CATEGORÍAS (slider) ====== */
  /* Sin 100vw ni calc(): evita desbordes en móvil */
  .fa-categories{
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: linear-gradient(180deg,#A13E2F 0%,#7A2F25 100%);
    padding: 24px 16px;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
  }
  
  /* Track: grid en desktop */
  .fa-categories__track{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Card */
  .fa-card{
    background: rgba(0,0,0,0.10);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    user-select: none;
    outline: none;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none !important;
    display: block;
  }
  .fa-card:hover{ transform: translateY(-2px); }
  .fa-card img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }
  .fa-card h3{
    margin: 12px 0 0 0;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .3px;
    font-size: clamp(12px, 2.2vw, 16px);
    text-decoration: none !important;
  }
  
  /* Flechas: ocultas por defecto (desktop) */
  .fa-categories .fa-nav{
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    z-index: 5;
  }
  .fa-categories .fa-nav--prev{ left: 8px; }
  .fa-categories .fa-nav--next{ right: 8px; }
  .fa-categories .fa-nav:hover{ background: rgba(255,255,255,.25); }
  
  /* Tablet: 2 columnas */
  @media (min-width: 769px) and (max-width: 1024px){
    .fa-categories__track{ grid-template-columns: repeat(2,1fr); }
  }
  
  /* Móvil: slider horizontal */
  @media (max-width: 768px){
    .fa-categories{
      border-radius: 0; /* opcional: full bleed */
    }
    .fa-categories__track{
      display: flex !important;
      gap: 14px;
      overflow-x: auto !important;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      padding: 6px 8px;
      width: 100%;
      touch-action: pan-x;          /* mejora gesto horizontal */
    }
    .fa-categories__track::-webkit-scrollbar{ display: none; }
  
    .fa-card{
      flex: 0 0 80%;
      min-width: 260px;
      scroll-snap-align: center;
    }
  
    /* Controles solo en móvil */
    .fa-categories .fa-nav{
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      width: 36px; height: 36px;
      font-size: 18px;
    }
  }
  
  /* Red anti-desbordes global en móvil */
  @media (max-width: 768px){
    html, body { overflow-x: hidden; }
  }
  

  /* ====== TOPBAR ====== */
.fa-topbar{
    width:100%;
    background:#9E1B1B;
    color:#F3F3F3;
    font: 800 12px/1.2 Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-transform:uppercase;
    letter-spacing:.3px;
    position: relative;        /* base: no fixed */
    z-index:1002;              /* por encima del header (Astra suele usar 1000/1001) */
    display:block;
  }
  .fa-topbar__inner{
    max-width: var(--fa-container, 1200px);
    margin: 0 auto;
    padding: 6px 12px;
    display:flex; align-items:center; justify-content:center;
  }
  
  /* sticky seguro — visible inmediato incluso si el JS tarda */
  .fa-topbar--sticky{
    position: sticky;
    top: 0;
  }
  
  /* Si se usa modo fixed desde JS */
  .fa-topbar--fixed{
    position: fixed;
    left:0; right:0; top:0;
    z-index:1002;
  }
  
  /* ====== Anti-desbordes globales en móvil ====== */
  @media (max-width: 768px){
    html, body { overflow-x: hidden; }
  }
  
  /* ====== (Opcional) estilos de badges/íconos si algún día los agregas ====== */
  /* .fa-topbar__msg i { margin-right:6px; } */
  