/* ===== Footer / a11y ===== */
.footer-link{ color: rgba(255,255,255,.75); text-decoration:none; }
.footer-link:hover{ color:#fff; text-decoration:underline; }

.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{
  left:12px; top:10px; width:auto; height:auto; z-index:9999;
  padding:.5rem .75rem; background:#fff; border-radius:.5rem;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

/* ===== Navbar ===== */
.navbar{
  padding:.35rem 0;
  position: sticky; top:0; z-index:1030;
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.navbar-dark .navbar-nav .nav-link{
  border-radius:999px; padding:.45rem .75rem;
  transition: background .15s ease, color .15s ease;
}
.navbar-dark .navbar-nav .nav-link:hover{ background:rgba(255,255,255,.08); }
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link{ background:rgba(255,193,7,.18); color:#fff; }

.navbar .wallet-pill{
  background: rgba(255,193,7,.18) !important;
  color:#ffd36a !important;
  border:1px solid rgba(255,193,7,.25);
}
.navbar .btn-cta{
  box-shadow:0 10px 20px rgba(255,193,7,.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.navbar .btn-cta:hover{
  transform: translateY(-1px);
  box-shadow:0 14px 26px rgba(255,193,7,.24);
}

.navbar-brand.brand-amz{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.25rem .4rem; margin:0; border-radius:.5rem;
  line-height:1; white-space:nowrap;
  transition: background .15s ease, box-shadow .15s ease;
}
.navbar-brand.brand-amz:hover{
  background:rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.navbar-brand.brand-amz .brand-logo-wide{
  height:58px; width:auto; max-width:360px;
  object-fit:contain; display:block;
}
@media (max-width:576px){
  .navbar-brand.brand-amz{ max-width:85%; }
  .navbar-brand.brand-amz .brand-logo-wide{ height:46px; max-width:280px; }
}

.navbar .navbar-actions{ gap:.5rem; }
@media (max-width:991.98px){
  .navbar .navbar-actions{ width:100%; align-items:stretch !important; gap:.6rem; }
  .navbar .navbar-actions .nav-item .btn{ width:100%; }
}

.navbar .cart-btn{
  width:40px; height:40px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
}
@media (max-width:576px){
  .navbar .cart-btn{ width:44px; height:44px; }
  .navbar .cart-badge{ font-size:.75rem; padding:.3rem .48rem; }
}
@media (max-width:991.98px){
  .navbar-nav .nav-link{ padding:.65rem .9rem; border-radius:.75rem; }
  .navbar-nav .nav-item + .nav-item{ margin-top:.25rem; }
  .navbar-actions{ margin-top:.75rem !important; }
}

/* ===== Search (desktop navbar) ===== */
.nav-search{ flex:1 1 auto; max-width:560px; margin:0 1rem; }
.nav-search .input-group{
  border-radius:999px; overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav-search .form-control{
  border:0; background:rgba(255,255,255,.10); color:#fff;
}
.nav-search .form-control::placeholder{ color:rgba(255,255,255,.70); }
.nav-search .form-control:focus{ box-shadow:none; background:rgba(255,255,255,.14); }
.nav-search .input-group-text{
  border:0; background:rgba(255,255,255,.10); color:rgba(255,255,255,.85);
}
.nav-search .btn{ border:0; }
@media (max-width:991.98px){
  .nav-search{ max-width:none; margin:.75rem 0 0 0; }
}

/* ===== Mobile search bar ===== */
.mobile-searchbar{
  position: sticky;
  top:72px;
  z-index:1025;
  background: rgba(248,249,250,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.08);
}
@media (min-width:992px){ .mobile-searchbar{ display:none !important; } }
@media (max-width:576px){ .mobile-searchbar{ top:64px; } }

.mobile-searchbar .input-group{
  border-radius:999px; overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.mobile-searchbar .input-group-text{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-right:0;
}
.mobile-searchbar .form-control{
  border:1px solid rgba(0,0,0,.08);
  border-left:0; border-right:0;
}
.mobile-searchbar .btn{
  border:1px solid rgba(0,0,0,.08);
  border-left:0;
}

/* ===== Product cards ===== */
.product-card{
  border-radius:16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
@media (hover:hover){
  .product-card:hover{
    transform: translateY(-2px);
    box-shadow:0 18px 40px rgba(0,0,0,.14) !important;
  }
}
.product-media{ position:relative; overflow:hidden; }
.product-media img{ transform: scale(1.001); }

/* Pills (fix ratio bug) */
.product-media > .product-pill{
  width:auto !important;
  height:auto !important;
  inset:auto !important;
  position:absolute !important;

  display:inline-flex !important;
  align-items:center !important;

  max-width:70% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;

  padding:.28rem .55rem !important;
  border-radius:999px !important;

  font-size:.72rem !important;
  line-height:1 !important;
  font-weight:600 !important;

  border:1px solid rgba(255,255,255,.14) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events:none !important;
  z-index:3 !important;
}

.product-media > .product-pill.product-pill-price{
  top:.5rem; right:.5rem;
  background: rgba(255,255,255,.90);
  color:#111;
  border-color: rgba(0,0,0,.08);
}
.product-media > .product-pill.product-pill-wh{
  bottom:.5rem; left:.5rem;
  background: rgba(0,0,0,.72);
  color:#fff;
}
.product-media > .product-pill.product-pill-stock{
  top:.5rem; left:.5rem;
  background: rgba(255,255,255,.90);
  color:#111;
  border-color: rgba(0,0,0,.08);
}
.product-media > .product-pill.product-pill-stock.is-out{
  background: rgba(220,53,69,.92);
  color:#fff;
  border-color: rgba(255,255,255,.14);
}

.product-title{
  font-size:.95rem;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.3em;
}
@media (max-width:576px){ .product-title{ font-size:.92rem; } }
.product-card .price-badge{ font-size:.85rem; padding:.45rem .75rem; }

.wh-chip{
  display:inline-flex;
  width:auto !important;
  flex:0 0 auto !important;
  justify-self:flex-start;
  align-self:flex-start;
  align-items:center;
  gap:.4rem;
  padding:.28rem .6rem;
  border-radius:999px;
  font-size:.78rem;
  line-height:1;
  white-space:nowrap;
  max-width:100%;
  min-width:0;
  overflow:hidden;
}
.wh-chip .wh-ic{ display:inline-flex; opacity:.9; }
.wh-chip .wh-tx{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:160px;
}
.wh-chip .wh-delivery-badge{
  min-width:0;
  max-width:100%;
  flex:0 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.wh-chip--green{
  color:#0f5132;
  background:#d1e7dd;
  border:1px solid #badbcc;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}

/* ===== WhatsApp FAB ===== */
.wa-fab{
  position:fixed; left:18px; bottom:18px; z-index:9999;
  width:62px; height:62px; border-radius:999px;
  background: radial-gradient(120% 120% at 30% 20%, #41f08a 0%, #25D366 55%, #1aa84f 100%);
  box-shadow:0 16px 40px rgba(0,0,0,.22);
  display:flex; align-items:center; justify-content:center;
  cursor:grab; user-select:none; -webkit-user-select:none; touch-action:none;
  border:1px solid rgba(255,255,255,.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.wa-fab:active{ cursor:grabbing; transform: translate3d(0,0,0) scale(.98); }
.wa-fab:hover{ filter:saturate(1.1); box-shadow:0 18px 46px rgba(0,0,0,.26); }
.wa-fab:focus-visible{ outline:3px solid rgba(255,255,255,.55); outline-offset:4px; }

.wa-fab .ring{
  position:absolute; inset:-6px; border-radius:999px;
  background: conic-gradient(from 180deg, rgba(255,255,255,.55), rgba(255,255,255,0), rgba(255,255,255,.35));
  filter: blur(8px); opacity:.55; pointer-events:none;
}
.wa-fab .tip{
  position:absolute; left:72px; bottom:50%;
  transform: translateY(50%);
  background:#0b0f14; color:#fff;
  font-size:12px; padding:8px 10px; border-radius:12px;
  white-space:nowrap; opacity:0; pointer-events:none;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  transition: opacity .15s ease;
}
.wa-fab:hover .tip{ opacity:1; }
.wa-fab svg{ width:28px; height:28px; color:#fff; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@media (max-width: 576px){
  .wa-fab{ bottom: 90px !important; }
}

/* =========================
   HOME (index) — FIX DUPLICADOS + NO DISTORSIÓN
   ========================= */

/* HERO: usa altura estable (clamp) en vez de aspect-ratio */
.home-hero-wrap{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  background:
    radial-gradient(900px 360px at 15% 20%, rgba(255,193,7,.45), transparent 60%),
    radial-gradient(900px 360px at 85% 70%, rgba(255,0,128,.18), transparent 60%),
    linear-gradient(135deg, #0b0f14, #121a24);
}

/* HERO: altura controlada (sin deformar) */
.home-hero-slide{
  position:relative;
  width:100%;
  height:clamp(160px, 26vw, 240px);
  background:#0b0f14;
}
@media (min-width:992px){
  .home-hero-slide{
    height:clamp(200px, 14vw, 280px);
  }
}

/* importante para que NO se distorsione la imagen */
.home-hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.home-hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.18) 55%, rgba(0,0,0,.10));
}
@media (max-width:575.98px){
  .home-hero-overlay{
    background:linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.20) 55%, rgba(0,0,0,.10));
  }
}

.home-hero-content{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
  padding:14px;
}
@media (min-width:768px){ .home-hero-content{ padding:18px; } }

.home-hero-tag{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .65rem;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.20);
  font-size:.85rem;
  color:#fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#homeHeroCarousel .carousel-indicators [data-bs-target]{ width:10px;height:10px;border-radius:999px; }
#homeHeroCarousel .carousel-control-prev,
#homeHeroCarousel .carousel-control-next{ width:12%; }
@media (max-width:575.98px){
  #homeHeroCarousel .carousel-control-prev,
  #homeHeroCarousel .carousel-control-next{ display:none; }
}
@media (max-width:991.98px){
  .home-hero-wrap{ max-width:560px; margin-left:auto; margin-right:auto; }
}
@media (max-width:575.98px){
  .home-hero-wrap{ max-width:520px; }
}

/* Trustbar */
.trustbar{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
  margin:.5rem 0 .65rem;
}
.trustbar .tb{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.28rem .55rem;
  border-radius:999px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  font-size:.78rem;
  line-height:1;
  color:#111;
}

/* Categorías scroll (si lo usas) */
.cats-scroll{
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:.25rem;
}
.cats-scroll::-webkit-scrollbar{ display:none; }
.cats-track{
  display:flex;
  flex-wrap:nowrap;
  gap:.5rem;
  min-width:max-content;
}
.cats-track a{ flex:0 0 auto; white-space:nowrap; }
@media (min-width:768px){
  .cats-scroll{ overflow:visible; padding-bottom:0; }
  .cats-track{ flex-wrap:wrap; min-width:0; }
}

/* Cards (home) */
.card-lift{
  border-radius:18px;
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-lift:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.12) !important;
}
.home-prod-media{
  aspect-ratio:16 / 13;
  background:#f3f4f6;
}
.home-prod-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.home-price-badge{
  font-size:.78rem;
  font-weight:800;
  padding:.35rem .5rem;
  border-radius:999px;
}
.home-stock-badge{
  border-radius:999px;
  padding:.32rem .5rem;
  font-size:.72rem;
}
.home-delivery-badge{
  background:rgba(25,135,84,.12);
  color:#198754;
  border:1px solid rgba(25,135,84,.25);
  border-radius:999px;
  padding:.32rem .52rem;
  font-weight:700;
  font-size:.72rem;
}

/* Header home */
.home-head{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  margin:.35rem 0 .75rem;
}
@media (min-width:992px){
  .home-head{
    flex-direction:row;
    align-items:flex-end;
    justify-content:space-between;
    gap:1rem;
  }
}
.home-head-copy{ min-width:0; }

.home-h1{
  margin:0;
  font-weight:900;
  letter-spacing:-.35px;
  line-height:1.06;
  font-size:1.12rem;
}
@media (min-width:576px){ .home-h1{ font-size:1.35rem; } }
@media (min-width:992px){ .home-h1{ font-size:1.65rem; } }

.home-lead{
  margin:.25rem 0 0;
  color:#6c757d;
  font-size:.92rem;
  max-width:70ch;
}

/* reduce altura en móvil */
@media (max-width:576px){
  .home-h1{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .home-lead{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:.88rem;
  }
}

/* Chips pro */
.home-chips{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}
@media (min-width:992px){
  .home-chips{ justify-content:flex-end; }
}
.home-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.28rem .55rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  color:#111;
  text-decoration:none;
  font-weight:800;
  font-size:.78rem;
  line-height:1;
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
@media (hover:hover){
  .home-chip:hover{
    transform: translateY(-1px);
    box-shadow:0 14px 26px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.18);
    color:#111;
  }
}

/* chips en una fila scrolleable (si usas home-chips-scroll) */
.home-chips-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:.15rem;
  flex-wrap:nowrap !important;
}
.home-chips-scroll::-webkit-scrollbar{ display:none; }
.home-chips-scroll .home-chip{ flex:0 0 auto; }

/* Barra categorías */
.home-cats-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.45rem;
}
.home-cats-title{
  color:#6c757d;
  font-weight:800;
  font-size:.85rem;
}
.cat-chip{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
}
.cat-chip:hover{ border-color:rgba(0,0,0,.22); }

/* Ajuste WA para no tapar */
@media (max-width:576px){
  .wa-fab{ bottom:92px; }
}

/* ===== FIX HOME CATEGORÍAS (FORZAR GRID / NO LINKS AZULES) ===== */
.cats-grid{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap:.55rem !important;
  margin:.2rem 0 1rem !important;
}
@media (min-width:576px){
  .cats-grid{ grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
}
@media (min-width:992px){
  .cats-grid{ grid-template-columns: repeat(8, minmax(0,1fr)) !important; }
}

.cat-tile{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.35rem !important;

  background:#fff !important;
  border:1px solid rgba(0,0,0,.10) !important;
  border-radius:14px !important;
  padding:.6rem .45rem !important;

  box-shadow:0 12px 26px rgba(0,0,0,.06) !important;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease !important;
}

/* links sin azul/subrayado */
a.cat-tile,
a.cat-tile:visited{
  color:#111 !important;
  text-decoration:none !important;
}
a.cat-tile:hover{
  color:#111 !important;
  text-decoration:none !important;
}
@media (hover:hover){
  .cat-tile:hover{
    transform: translateY(-2px) !important;
    box-shadow:0 18px 40px rgba(0,0,0,.10) !important;
    border-color: rgba(0,0,0,.18) !important;
  }
}

/* botón "Más" igual que tile */
button.cat-tile.cat-tile-btn{
  width:100% !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  color:#111 !important;
  text-align:center !important;
}

/* textito */
.cat-ic{ font-size:1.05rem !important; line-height:1 !important; }
.cat-tx{
  font-size:.78rem !important;
  font-weight:800 !important;
  color:#111 !important;
  text-align:center !important;
  line-height:1.05 !important;

  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:2.05em !important;
}
/* ===== HOME: compactar arriba (sin deformar) ===== */

/* HERO más bajito en móvil */
.home-hero-slide{
  height: clamp(130px, 20vw, 190px) !important;
}
@media (min-width:992px){
  .home-hero-slide{
    height: clamp(190px, 13vw, 270px) !important;
  }
}

/* Tag más pequeño para que no “suba” el alto visual */
.home-hero-tag{
  font-size:.78rem !important;
  padding:.28rem .55rem !important;
}

/* Trustbar: una sola fila scrolleable */
.trustbar{
  margin:.35rem 0 .5rem !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:.4rem !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:.1rem;
}
.trustbar::-webkit-scrollbar{ display:none; }
.trustbar .tb{
  flex:0 0 auto !important;
  padding:.22rem .5rem !important;
  font-size:.74rem !important;
  border-radius:999px !important;
}

/* Chips: una sola fila scrolleable y más compactos */
.home-chips{
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:.1rem;
  gap:.35rem !important;
}
.home-chips::-webkit-scrollbar{ display:none; }
.home-chip{
  flex:0 0 auto !important;
  font-size:.74rem !important;
  padding:.22rem .5rem !important;
  box-shadow:0 6px 14px rgba(0,0,0,.06) !important;
}

/* Header: menos aire */
.home-head{
  gap:.4rem !important;
  margin:.25rem 0 .55rem !important;
}
.home-h1{ font-size:1.05rem !important; line-height:1.08 !important; }
.home-lead{ margin:.18rem 0 0 !important; font-size:.86rem !important; }

/* HOME: dejamos solo TRUSTBAR */
.home-chips,
.home-chips-scroll{ display:none !important; }

.cat-ic{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cat-ic img{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}
@media (max-width:576px){
  .cat-hero{ padding:14px !important; }
  .cat-hero .kicker{ font-size:.75rem !important; padding:.25rem .5rem !important; }
  .cat-hero h1{ font-size:1.05rem !important; line-height:1.15 !important; }
  .cat-hero .cat-chip{ display:none !important; } /* en móvil */
}

@media (max-width: 576px){
  .cat-hero .hero-actions{
    width:100%;
    justify-content:flex-start;
  }
  .cat-hero .hero-actions .btn{
    padding:.45rem .7rem;
    border-radius:12px;
  }
  .cat-hero h1{ font-size:1.15rem; }
}