/* speedyrect-fix-v74.css — parche v7.4 · Ferretería Falero
   Se carga ÚLTIMA: pisa lo que haga falta sin tocar v71/v72/v73. */

/* 1) HERO — título, subtítulo y botón con enlace por banner --------------- */
#hero-section{ position:relative; overflow:hidden; background:#0f172a; }
.sr-hero-slider{ position:absolute; inset:0; z-index:0; }
.sr-hero-foto{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.1s ease; }
.sr-hero-foto.activa{ opacity:1; }
.sr-hero-info{
  position:absolute; left:0; right:0; bottom:0; z-index:5;
  padding:0 18px 44px; text-align:center; pointer-events:none;
}
.sr-hero-info .sr-hero-titulo{
  color:#fff; font-weight:900; line-height:1.12; margin:0 0 6px;
  font-size:clamp(1.35rem,3.3vw,2.5rem); text-shadow:0 3px 16px rgba(0,0,0,.6);
}
.sr-hero-info .sr-hero-sub{
  color:#e6edf7; margin:0 0 14px; font-size:clamp(.88rem,1.6vw,1.12rem);
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}
.sr-hero-cta{
  pointer-events:auto; display:inline-block; text-decoration:none;
  background:var(--sr-amarillo,#fbbf24); color:#1e293b;
  font-weight:800; padding:11px 22px; border-radius:999px;
  box-shadow:0 8px 22px rgba(0,0,0,.38);
  transition:transform .15s ease, background .15s ease;
}
.sr-hero-cta:hover{ transform:translateY(-2px); background:#fcd34d; }
.sr-hero-puntos{ position:absolute; left:0; right:0; bottom:12px; z-index:6; display:flex; gap:8px; justify-content:center; }
.sr-hero-puntos button{ width:11px; height:11px; border-radius:50%; cursor:pointer; border:2px solid rgba(255,255,255,.85); background:transparent; padding:0; }
.sr-hero-puntos button.activo{ background:var(--sr-amarillo,#fbbf24); transform:scale(1.25); }
@media (max-width:640px){ .sr-hero-info{ padding:0 12px 38px; } .sr-hero-cta{ padding:9px 16px; font-size:.85rem; } }

/* 2) BARRA DE CATEGORÍAS — flechas + arrastre + clic que navega ----------- */
#sr-bottom-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:850;
  background:rgba(255,255,255,.97); backdrop-filter:blur(8px);
  border-top:1px solid #e2e8f0; box-shadow:0 -6px 18px rgba(15,23,42,.08);
}
body.sr-con-barra{ padding-bottom:var(--sr-bar-h,72px); }
.sr-menu-wrap{ position:relative; display:flex; align-items:center; overflow:hidden; }
.sr-pills{
  flex:1 1 auto; display:flex; gap:8px; align-items:center; padding:10px 12px;
  overflow-x:auto; overflow-y:hidden; white-space:nowrap;
  -webkit-overflow-scrolling:touch; scroll-behavior:auto; scrollbar-width:none;
  cursor:grab; touch-action:pan-x; user-select:none; -webkit-user-select:none;
}
.sr-pills::-webkit-scrollbar{ display:none; }
.sr-pills.sr-arrastrando{ cursor:grabbing; }
.sr-pill{
  display:inline-flex; align-items:center; gap:6px; flex:0 0 auto;
  padding:9px 15px; border-radius:999px; text-decoration:none; white-space:nowrap;
  background:#f1f5f9; color:#334155; font-weight:600; font-size:.88rem;
  border:1.5px solid transparent;
}
.sr-pill:hover{ background:#e2e8f0; }
.sr-pill.active, .sr-pill.sr-pill-activo{
  background:var(--sr-azul,#2563eb); color:#fff; border-color:#1d4ed8;
  box-shadow:0 4px 12px rgba(37,99,235,.30);
}
.sr-pill-n{ background:rgba(15,23,42,.10); font-size:.74rem; font-weight:800; padding:1px 7px; border-radius:999px; }
.sr-pill.active .sr-pill-n, .sr-pill.sr-pill-activo .sr-pill-n{ background:var(--sr-amarillo,#fbbf24); color:#1e293b; }
.sr-flecha{
  display:none; flex:0 0 44px; height:44px; margin:0 3px; border:0; border-radius:12px;
  background:#fff; color:#1e293b; box-shadow:0 2px 10px rgba(15,23,42,.2);
  font-size:1rem; cursor:pointer; align-items:center; justify-content:center;
}
.sr-menu-wrap.sr-con-flechas .sr-flecha{ display:inline-flex; }
.sr-flecha:disabled{ opacity:.3; cursor:default; }
.sr-flecha:hover:not(:disabled){ background:#eff6ff; }
@media (max-width:640px){ .sr-flecha{ display:none !important; } }

/* 3) TARJETA DE PRODUCTO — botón compartir la oferta --------------------- */
.slide-card{ position:relative; }
.sr-card-share{
  position:absolute; top:8px; right:8px; z-index:5; width:34px; height:34px;
  border:0; border-radius:50%; background:rgba(255,255,255,.94); color:#1e293b;
  font-size:15px; cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.3);
  display:inline-flex; align-items:center; justify-content:center;
}
.sr-card-share:hover{ background:#fff; transform:scale(1.07); }

/* 4) MODAL DE PRODUCTO — botón compartir -------------------------------- */
#sr-product-modal .sr-modal-acciones{ display:flex; flex-wrap:wrap; gap:10px; }
.sr-modal-btn-compartir{
  background:#1d4ed8; color:#fff; border:0; border-radius:10px;
  padding:11px 16px; font-weight:700; cursor:pointer;
}
.sr-modal-btn-compartir:hover{ background:#1e40af; }
