/* Portada. Paleta y tipos en tokens.css; aquí solo composición.
   Lo memorable es el buscador por calibre: la munición a escala real, en 3D, en una banda compacta. */

.page-home .site-footer { margin-top: 0; }
/* La portada usa la misma anchura que cabecera y pie: el texto del hero queda alineado con el logo. */
.page-home main .container { max-width: var(--shell); }

/* Hero: texto sobre encina a la izquierda, foto del cliente a la derecha ------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--encina-900); color: var(--hueso);
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 56%; overflow: hidden; margin: 0; z-index: -1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0 0 0 -2px;
  background: linear-gradient(to right, var(--encina-900) 0%, rgba(20, 29, 23, .55) 14%, rgba(20, 29, 23, 0) 34%);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-in {
  display: grid; align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h) - 48px), 800px);
  padding-block: clamp(56px, 8vh, 96px) clamp(104px, 12vh, 128px);
}
.hero-copy { width: min(500px, 41%); display: grid; gap: 22px; justify-items: start; }
.hero-title {
  font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display);
  font-size: clamp(2.75rem, 4.8vw, 4.75rem); line-height: 1; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-lead { max-width: 40ch; font-size: var(--fs-md); line-height: 1.6; color: var(--piedra-100); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(251, 251, 248, .14); width: 100%;
  font-size: var(--fs-sm); color: var(--monte-300);
}
.hero-meta a { color: inherit; text-decoration: none; }
.hero-meta a + a { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(251, 251, 248, .2); }
.hero-meta a:hover { color: var(--hueso); text-decoration: underline; text-underline-offset: 3px; }

/* Un solo momento al cargar: la foto se asienta y el texto sube. */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: hero-settle 1.6s var(--ease) both; }
  .hero-copy { animation: hero-rise .8s .2s var(--ease) both; }
}
@keyframes hero-settle { from { transform: scale(1.05); filter: brightness(.65); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }

/* Indicación de que hay más abajo: botón circular translúcido con una flecha que baja despacio. */
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(20px, 3.5vh, 36px);
  display: grid; place-items: center; width: 52px; height: 52px; margin-left: -26px;
  border-radius: 50%; border: 1px solid rgba(251, 251, 248, .32);
  background: rgba(20, 29, 23, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--laton-300); text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.hero-scroll:hover { border-color: var(--laton-500); background: rgba(184, 150, 79, .18); color: var(--hueso); }
.hero-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll svg { animation: scroll-bob 2.2s 1.4s ease-in-out infinite; }
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(-2px); opacity: .85; }
  50% { transform: translateY(3px); opacity: 1; }
}
/* html ya reserva la cabecera + 16px (scroll-padding-top): la sección queda pegada a la cabecera. */
#calibres { scroll-margin-top: -16px; }

/* Buscar por calibre ------------------------------------------------------------------------ */
/* Una sola banda: escopeta, rifle y aire, cada calibre en su escenario. calibres3d.js dibuja las piezas en 3D en un
   único canvas que cubre la sección; sin él (sin WebGL o con «reducir movimiento») se ven las láminas SVG con la
   misma inclinación y la misma escala: --k px por mm, igual en escopeta y rifle, ×8 en aire. */
.calibers {
  position: relative; isolation: isolate;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding-block: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px);
}
.calibers-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .5s var(--ease); }
.is-3d .calibers-canvas { opacity: 1; }
.calibers-in { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.calibers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.calibers-title { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: clamp(1.75rem, 2.3vw, 2.125rem); line-height: 1.1; }
.calibers-all {
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent-strong);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.calibers-all:hover { color: var(--encina-900); }

.ammo {
  --stage-h: clamp(136px, 11.2vw, 180px);
  --kf: calc(var(--stage-h) / 82);           /* 82 mm caben en el alto del escenario */
  display: grid; grid-template-columns: 2fr 5fr 2fr; gap: 0 clamp(24px, 3vw, 56px);
}
.ammo-fuego { --k: var(--kf); }
.ammo-aire { --k: calc(var(--kf) * 8); }
.ammo-group { display: grid; align-content: start; gap: 4px; min-width: 0; }
.ammo-group-name {
  display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px solid var(--encina-800);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.ammo-scale { font-weight: 400; color: var(--text-soft); }
.ammo-list { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.ammo-list li { display: flex; min-width: 0; }
.ammo-item {
  position: relative; flex: 1; display: grid; grid-template-rows: var(--stage-h) auto auto; justify-items: center;
  padding-bottom: 4px; color: var(--text); text-decoration: none;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;
}
.ammo-item::before {          /* el suelo donde apoya la pieza; se marca en latón al pasar */
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(var(--stage-h) - 1px); height: 1px;
  background: var(--border); transition: background-color .25s var(--ease), left .25s var(--ease), right .25s var(--ease);
}
.ammo-stage { position: relative; width: 100%; height: var(--stage-h); }
.ammo-stage img {
  position: absolute; left: 50%; top: 47%; max-width: none;
  width: calc(var(--l) * var(--k)); height: calc(var(--d) * var(--k));
  transform: translate(-50%, -50%) rotate(var(--rot, -48deg));
  transition: opacity .4s var(--ease), transform .35s var(--ease);
}
.ammo-aire { --rot: -56deg; }
.is-3d .ammo-stage img, .is-3d-wait .ammo-stage img { opacity: 0; transition: none; }
.ammo-name {
  margin-top: 10px; font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); white-space: nowrap;
  font-size: clamp(1.125rem, 1.35vw, 1.375rem); line-height: 1.1; font-variant-numeric: lining-nums;
}
.ammo-n { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ammo-item:hover::before, .ammo-item:focus-visible::before { left: 4%; right: 4%; background: var(--laton-500); }
.ammo-item:hover .ammo-n, .ammo-item:focus-visible .ammo-n { color: var(--text); }
.calibers:not(.is-3d) .ammo-item:hover .ammo-stage img { transform: translate(-50%, -56%) rotate(var(--rot, -48deg)); }
.ammo-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) {
  .is-3d .ammo-stage { cursor: grab; }
  .is-3d .ammo-stage:active { cursor: grabbing; }
}
/* Con la banda entera a la vista, arrastrar en horizontal sobre la pieza la gira; el scroll vertical sigue libre. */
@media (min-width: 1101px) { .is-3d .ammo-stage { touch-action: pan-y; } }
/* Más estrecho: carrusel horizontal compacto (deslizarlo también hace girar las piezas). */
@media (max-width: 1100px) {
  .ammo {
    --stage-h: 140px;
    display: flex; gap: 0 28px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .ammo::-webkit-scrollbar { display: none; }
  .ammo-group { flex: none; scroll-snap-align: start; }
  .ammo-list { grid-template-columns: repeat(var(--n, 2), 116px); }
}
@media (max-width: 640px) {
  .ammo { --stage-h: 128px; gap: 0 20px; }
  .ammo-list { grid-template-columns: repeat(var(--n, 2), 100px); }
  .ammo-name { font-size: 1.125rem; }
}

/* Secciones ----------------------------------------------------------------- */
/* Destacados y ofertas en filas de cuatro: 8 y 4 productos sin huecos. */
.page-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1081px) { .page-home .product-grid { gap: 28px; } }
@media (max-width: 860px) { .page-home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section-tight { padding-bottom: clamp(32px, 5vw, 56px); }

/* Armero de categorías ------------------------------------------------------------ */
.gunrack { list-style: none; display: flex; gap: 8px; height: clamp(400px, 42vw, 540px); }
.gunrack-item { flex: 1 1 0; min-width: 0; transition: flex-grow .5s var(--ease); }
.gunrack-item.is-wide { flex-grow: 1.9; }
.gunrack:hover .gunrack-item.is-wide:not(:hover) { flex-grow: 1; }
.gunrack-item:hover, .gunrack-item:focus-within { flex-grow: 2.4; }
.gunrack-link {
  position: relative; display: block; height: 100%; overflow: hidden;
  border-radius: var(--r-md); background: var(--encina-800); color: var(--hueso); text-decoration: none;
}
.gunrack-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gunrack-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 29, 23, .9) 0%, rgba(20, 29, 23, .35) 45%, rgba(20, 29, 23, 0) 70%);
}
.gunrack-item:hover img { transform: scale(1.04); }
.gunrack-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 18px; }
.gunrack-name { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.05; }
.gunrack-subs {
  font-size: var(--fs-xs); color: var(--monte-100); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transition: opacity .3s;
}
.gunrack-item.is-wide .gunrack-subs, .gunrack-item:hover .gunrack-subs, .gunrack-item:focus-within .gunrack-subs { opacity: 1; }
.gunrack:hover .gunrack-item.is-wide:not(:hover) .gunrack-subs { opacity: 0; }
.gunrack-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Pasos para comprar un arma ------------------------------------------------------------ */
.steps-band { background: var(--encina-800); color: var(--piedra-100); padding-block: clamp(56px, 8vw, 96px); }
.steps-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps-intro { display: grid; gap: 18px; justify-items: start; }
.steps-intro .h2 { color: var(--hueso); }
.steps-intro p { color: var(--monte-300); max-width: 42ch; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(217, 195, 147, .35); }
.step-n { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: 4rem; line-height: .9; color: var(--laton-500); }
.steps h3 { font-size: var(--fs-md); color: var(--hueso); }
.steps p { font-size: var(--fs-sm); color: var(--monte-300); line-height: 1.6; }

/* Distribuidor oficial ------------------------------------------------------------------- */
.dealer { background: var(--encina-900); color: var(--piedra-100); padding-block: clamp(56px, 8vw, 104px); }
.dealer-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.dealer-title {
  font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); color: var(--hueso);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance;
}
.dealer-copy { display: grid; gap: 22px; justify-items: start; }
.dealer-copy p { max-width: 44ch; color: var(--monte-300); font-size: var(--fs-md); line-height: 1.6; }
.dealer-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Caza de la zona: una grande (la caza menor de siempre) y tres; foto a sangre y calendario de temporada. */
.hunt-grid {
  list-style: none; display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, clamp(270px, 20vw, 360px));
}
.hunt-item { min-width: 0; }
.hunt-item.is-lead { grid-row: 1 / 3; }
.hunt-item:nth-child(2) { grid-column: 2 / 4; }
.hunt-card {
  position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: var(--r-md); background: var(--encina-800); color: var(--hueso); text-decoration: none;
}
.hunt-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hunt-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20, 29, 23, .95) 0%, rgba(20, 29, 23, .86) 30%, rgba(20, 29, 23, .45) 56%, rgba(20, 29, 23, 0) 78%);
}
.hunt-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 6px; padding: clamp(18px, 1.8vw, 28px); }
.hunt-name { font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: clamp(1.5rem, 1.9vw, 1.875rem); line-height: 1.05; }
.is-lead .hunt-name { font-size: clamp(2rem, 3vw, 2.875rem); }
.hunt-where { max-width: 44ch; font-size: var(--fs-sm); line-height: 1.45; color: var(--monte-100); }
.hunt-season {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; width: 100%;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(251, 251, 248, .16);
}
.hunt-season-text { font-size: var(--fs-sm); font-weight: 600; color: var(--laton-300); }
.hunt-cal { display: flex; gap: 3px; }
.hunt-cal span {
  width: 13px; padding-top: 5px; border-top: 2px solid rgba(251, 251, 248, .2);
  font-size: 10px; line-height: 1; text-align: center; color: rgba(251, 251, 248, .42);
}
.is-lead .hunt-cal span { width: 15px; }
.hunt-cal .is-on { border-top-color: var(--laton-500); color: var(--laton-300); }
.hunt-cal .is-permit { border-top-color: rgba(184, 150, 79, .45); color: rgba(217, 195, 147, .6); }
.hunt-go {
  margin-top: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--hueso);
  text-decoration: underline; text-decoration-color: rgba(251, 251, 248, .35); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.hunt-card:hover img { transform: scale(1.035); }
.hunt-card:hover .hunt-go { text-decoration-color: var(--laton-300); }
.hunt-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hunt-note { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-muted); }
/* Le sigue «Ofertas», con el mismo fondo: sin el doble margen entre las dos. */
.hunt { padding-bottom: clamp(32px, 5vw, 56px); }

/* Servicio en tienda ------------------------------------------------------------------- */
.workshop-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.workshop-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 6 / 5; background: var(--encina-800); }
.workshop-photo img { width: 100%; height: 100%; object-fit: cover; }
.workshop-copy { display: grid; gap: 22px; justify-items: start; }
.services { margin: 0 0 6px; width: 100%; display: grid; }
.services > div { display: grid; gap: 2px; padding-block: 16px; border-top: 1px solid var(--border); }
.services > div:last-child { border-bottom: 1px solid var(--border); }
.services dt { font-weight: 600; }
.services dd { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }

/* Marcas: logos monocromos en tinta encina, a la misma altura óptica (la altura de cada uno sale de la
   proporción de su fichero, en la vista). Sin logo: el nombre, en la misma caja. */
.brands { padding-block: clamp(40px, 5vw, 72px); border-block: 1px solid var(--border); background: var(--piedra-100); }
.brands-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); margin-bottom: clamp(16px, 2vw, 24px); }
.brands-list {
  list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));   /* 16 marcas: 2 filas */
  border-top: 1px solid var(--border-soft);
}
.mk { position: relative; display: grid; border-bottom: 1px solid var(--border-soft); }
.mk-link {
  display: grid; place-items: center; height: clamp(112px, 7.5vw, 132px); padding: 12px 18px;
  color: var(--encina-800); text-decoration: none;
}
.mk-logo {
  width: auto; height: var(--logo-h, 32px); max-width: 100%; object-fit: contain;
  opacity: .75; transition: opacity .2s var(--ease);
}
.mk-word {
  font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: clamp(1.25rem, 1.45vw, 1.5rem); line-height: 1.05; text-align: center;
  opacity: .8; transition: opacity .2s var(--ease);
}
.mk-link:hover .mk-logo, .mk-link:focus-visible .mk-logo,
.mk-link:hover .mk-word, .mk-link:focus-visible .mk-word { opacity: 1; }
.mk-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-sm); }
.mk.is-dealer .mk-link { padding-bottom: 36px; }
.mk.is-dealer .mk-logo { height: min(var(--logo-h, 32px), 56px); }
.mk-dealer {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none;
  font-size: 11px; font-weight: 600; color: var(--accent-strong);
}

/* Dónde estamos ---------------------------------------------------------------------------- */
.visit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.visit-copy { display: grid; gap: 18px; justify-items: start; align-content: center; }
.visit-address {
  font-style: normal; font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display);
  font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.15;
}
.visit-near { color: var(--text-muted); margin-top: -6px; }
.visit-data {
  display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 20px 40px;
  width: 100%; margin: 8px 0 6px; padding-block: 20px; border-block: 1px solid var(--border);
  font-size: var(--fs-sm); line-height: 1.6;
}
.visit-data dt { font-weight: 600; }
.visit-data dd { margin: 0; color: var(--text-muted); }
.visit-data .visit-hours { grid-column: 1 / -1; }
.visit-data a { color: var(--accent-strong); font-weight: 600; }
.visit-map {
  min-height: 420px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--piedra-100); border: 1px solid var(--border);
}
.visit-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.75); }

/* Responsive ------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .brands-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-in { grid-template-columns: 1fr; }
  .hunt-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: repeat(3, 260px); }
  .hunt-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .hunt-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .hunt-item:nth-child(4) { grid-column: 1 / 3; }
}
@media (max-width: 900px) {
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; max-height: 62svh; }
  .hero-media::after { background: linear-gradient(to top, var(--encina-900) 0%, rgba(20, 29, 23, 0) 30%); }
  .hero-img { object-position: 40% 45%; }
  .hero-in { min-height: 0; margin-top: -40px; padding-block: 0 44px; position: relative; }
  .hero-copy { width: 100%; }
  /* En móvil el hero ya es más alto que la pantalla y se desliza solo: sin indicación. */
  .hero-scroll { display: none; }
  .dealer-in, .workshop-in, .visit-in { grid-template-columns: 1fr; }
  .visit-map, .visit-map iframe { min-height: 320px; }
  .gunrack {
    height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gunrack::-webkit-scrollbar { display: none; }
  .gunrack-item, .gunrack-item.is-wide, .gunrack-item:hover, .gunrack-item:focus-within { flex: 0 0 min(72%, 300px); height: 400px; scroll-snap-align: start; }
  .gunrack-subs, .gunrack:hover .gunrack-item.is-wide:not(:hover) .gunrack-subs { opacity: 1; }

  /* Carrusel con scroll-snap: caza de la zona. */
  .hunt-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hunt-grid::-webkit-scrollbar { display: none; }
  .hunt-item, .hunt-item.is-lead { flex: 0 0 min(84%, 360px); height: 460px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 2.625rem; }
  .hero-lead { font-size: var(--fs-base); }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { flex-direction: column; }
  .hero-meta a + a { margin-left: 0; padding-left: 0; border-left: 0; }

  .is-lead .hunt-name { font-size: 2rem; }
  .brands-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-link { height: 100px; padding-inline: 14px; }
  .mk-logo { height: min(var(--logo-h, 32px), 50px); }
  .mk.is-dealer .mk-logo { height: min(var(--logo-h, 32px), 42px); }

  .dealer-cta { width: 100%; }
  .dealer-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; }
  .steps li .step-n { grid-row: span 2; font-size: 3.25rem; }
  .visit-data { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
}

/* Páginas informativas (cómo comprar, legales) y 404 ------------------------------------- */
.info-head { display: grid; gap: 14px; padding-block: clamp(20px, 3vw, 32px) clamp(28px, 4vw, 48px); }
.info-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.info-intro-copy { display: grid; gap: 20px; }
.info-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.info-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sale-kinds { list-style: none; display: grid; gap: 10px; font-size: var(--fs-sm); }
.sale-kinds li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--border); }
.sale-kinds .badge { justify-self: start; }

.info-body { display: grid; gap: clamp(40px, 6vw, 72px); padding-block: clamp(40px, 6vw, 72px) 0; }
.info-block { display: grid; gap: 14px; align-content: start; }
.info-block > p { max-width: 68ch; }
.info-sub { max-width: 68ch; }
.licenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 6px; }
.licenses > div { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--border); }
.licenses dt { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: var(--fs-md); }
.licenses dd { margin: 0; color: var(--text-muted); padding-left: 66px; }
.lic-code {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: var(--r-md); background: var(--encina-800); color: var(--laton-300);
  font-family: var(--font-display); font-weight: var(--fw-display); font-variation-settings: "wdth" var(--wdth-display); letter-spacing: var(--ls-display); font-size: 1.6rem;
}
.info-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--monte-600); border-bottom: 2px solid var(--monte-600); transform: rotate(-45deg);
}
.faq-list { display: grid; border-top: 1px solid var(--border); max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: var(--fs-md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--accent-strong); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--accent-strong); }
.faq-list details p { padding: 0 0 20px; max-width: 70ch; color: var(--text-muted); }
.info-cta { align-items: center; padding: 20px 24px; }
.info-cta p { flex: 1; }
.info-cta .btn { flex: none; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-text { font-size: 1.0625rem; line-height: 1.7; }
.legal-text h2:first-child { margin-top: 0; }
.legal-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); font-size: var(--fs-sm);
}
.legal-aside h2 { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.legal-aside ul { list-style: none; display: grid; gap: 8px; }
.legal-aside a { color: var(--accent-strong); font-weight: 600; }
.legal-aside p { color: var(--text-muted); }
/* Privacidad: ficha del responsable y un bloque por tratamiento (qué, base legal, plazo). */
.lg-facts, .lg-treat dl { display: grid; gap: 4px; margin: 0; }
.lg-facts > div, .lg-treat dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.lg-facts dt, .lg-treat dt { font-weight: 600; }
.lg-facts dd, .lg-treat dd { margin: 0; overflow-wrap: anywhere; }
.legal-text a { color: var(--accent-strong); text-underline-offset: 2px; }
.lg-treats { display: grid; gap: 12px; margin-top: 4px; }
.lg-treat {
  display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border-soft); font-size: var(--fs-base); line-height: 1.6;
}
.legal-text .lg-treat h3 { margin: 0; font-size: var(--fs-md); }
.lg-treat dl { padding-top: 8px; border-top: 1px solid var(--border-soft); font-size: var(--fs-sm); }
.lg-treat dd { color: var(--text-muted); }
@media (max-width: 480px) {
  .lg-treat { padding: 14px 16px; }
  .lg-facts > div, .lg-treat dl > div { grid-template-columns: 1fr; gap: 0; }
  .lg-treat dl > div + div { margin-top: 6px; }
}

.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 80px); }
.notfound-copy { display: grid; gap: 20px; justify-items: start; }
.notfound-search { display: flex; gap: 8px; width: min(460px, 100%); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.notfound-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.notfound-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .info-intro, .info-cols, .legal-layout, .notfound { grid-template-columns: 1fr; }
  .info-photo { aspect-ratio: 16 / 9; order: -1; }
  .licenses { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .notfound-photo { order: -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .sale-kinds li { grid-template-columns: 1fr; gap: 6px; }
  .licenses dd { padding-left: 0; }
  .info-cta { flex-direction: column; align-items: flex-start; }
}

/* Móvil: «Caza de la zona» en tarjetas apiladas (foto arriba a todo el ancho, texto debajo), sin deslizar. */
@media (max-width: 640px) {
  .hunt-grid {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 12px;
    overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none;
  }
  .hunt-item, .hunt-item.is-lead, .hunt-item:nth-child(n) { grid-column: auto; grid-row: auto; height: auto; flex: none; }
  .hunt-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; border: 1px solid var(--monte-500); }
  .hunt-card img { position: relative; inset: auto; z-index: auto; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hunt-card::after { display: none; }
  .hunt-body { position: static; gap: 4px; padding: 14px 16px 16px; }
  .hunt-name, .is-lead .hunt-name { font-size: 1.375rem; }
  .hunt-where { font-size: var(--fs-xs); color: var(--monte-300); }
  .hunt-season { margin-top: 6px; padding-top: 10px; gap: 6px 12px; }
  .hunt-season-text { font-size: var(--fs-xs); }
  .hunt-cal span, .is-lead .hunt-cal span { width: 12px; font-size: 9px; }
  .hunt-go { font-size: var(--fs-sm); }
  .hunt-note { text-align: center; }
}

/* Móvil y tableta: nada de carruseles cortados por la derecha.
   Calibres: grupos apilados y piezas en filas centradas. Secciones: rejilla de 2 columnas. */
@media (max-width: 1100px) {
  .ammo {
    --stage-h: 124px;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
    overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0;
  }
  .ammo-group { flex: initial; }
  .ammo-list { grid-template-columns: repeat(auto-fit, minmax(96px, 124px)); justify-content: center; gap: 12px 8px; }
}
@media (max-width: 640px) {
  .ammo { --stage-h: 100px; gap: 16px; }
  .ammo-list { grid-template-columns: repeat(auto-fit, minmax(90px, 108px)); gap: 8px 6px; }
  .ammo-group-name { justify-content: center; }
  .ammo-name { font-size: 1.0625rem; }
}
@media (max-width: 900px) {
  .gunrack {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    height: auto; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0;
  }
  .gunrack-item, .gunrack-item.is-wide, .gunrack-item:hover, .gunrack-item:focus-within { flex: none; height: 180px; }
  .gunrack-text { padding: 14px; }
  .gunrack-name { font-size: 1.25rem; }
  .gunrack-subs, .gunrack:hover .gunrack-item.is-wide:not(:hover) .gunrack-subs { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .gunrack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gunrack-item, .gunrack-item.is-wide { height: 220px; }
}
/* Filas incompletas de calibres centradas (p.ej. rifles 3 + 2). */
@media (max-width: 1100px) {
  .ammo-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .ammo-list > li { flex: 0 0 124px; }
}
@media (max-width: 640px) {
  .ammo-list > li { flex: 0 0 min(108px, calc((100% - 12px) / 3)); }
}
