/* Armería Gil · portada = escaparate de la tienda.
   Composición en mosaico (no bloques apilados iguales): banner + oferta del momento + cómo comprar;
   secciones en una fila; ofertas con su reclamo al lado de la pasarela; franja oscura de destacados;
   munición por calibre junto a novedades (una grande y cuatro pequeñas); cinta de marcas en movimiento. */
.page-home { background: var(--bg); }
.page-home main { padding-bottom: 56px; }
.page-home .container { max-width: var(--shell); }

/* Piezas comunes */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 6px; background: var(--laton-500); color: var(--encina-900); font-weight: 700; font-size: 16px;
  text-decoration: none; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.pt-btn:hover { background: #ccab69; transform: translateY(-1px); }
.pt-btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.pt-more { font-weight: 600; font-size: 15px; color: var(--encina-800); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--laton-500); white-space: nowrap; }
.pt-more:hover { color: #000; }
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pt-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-stretch: 105%; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.pt-h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }

/* 1. Entrada en mosaico ------------------------------------------------------------------------- */
.pt-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; padding-top: 20px; height: calc(clamp(400px, 30vw, 500px) + 20px); }
.pt-banner { position: relative; height: 100%; overflow: hidden; border-radius: 12px; background: var(--encina-900); }
.pt-slides { position: absolute; inset: 0; }
.pt-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.pt-slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.pt-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pt-slide.is-on img { animation: pt-zoom 7s ease-out both; }
@keyframes pt-zoom { from { transform: scale(1.06); } }
.pt-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(14, 21, 16, .86) 0%, rgba(14, 21, 16, .45) 45%, rgba(14, 21, 16, 0) 75%); }
.pt-slide-copy { position: absolute; left: 0; bottom: 0; z-index: 1; max-width: 560px; padding: 0 40px 40px; color: #fff; }
.pt-slide-title { margin: 0; font-family: var(--font-display); font-weight: 750; font-stretch: 108%; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.03; letter-spacing: -0.025em; }
.pt-slide-text { margin: 12px 0 22px; font-size: 17px; line-height: 1.5; color: #e9ece6; }
.pt-slide.is-on .pt-slide-copy > * { animation: pt-up .7s var(--ease) both; }
.pt-slide.is-on .pt-slide-text { animation-delay: .08s; }
.pt-slide.is-on .pt-btn { animation-delay: .16s; }
@keyframes pt-up { from { opacity: 0; transform: translateY(16px); } }
.pt-banner-nav { position: absolute; right: 22px; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.pt-dots { display: flex; gap: 6px; margin-right: 8px; }
.pt-dots button { width: 22px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background-color .2s, width .3s var(--ease); }
.pt-dots button[aria-current="true"] { background: var(--laton-500); width: 38px; }
.pt-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; transition: background-color .2s var(--ease); }
.pt-arrow:hover { background: rgba(255, 255, 255, .32); }

.pt-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.pt-deal { display: grid; grid-template-columns: 46% minmax(0, 1fr); min-height: 0; overflow: hidden; border-radius: 12px; background: #ffffff; color: var(--text); text-decoration: none; }
.pt-deal-img { overflow: hidden; background: var(--surface-2); }
.pt-deal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pt-deal:hover .pt-deal-img img { transform: scale(1.05); }
.pt-deal-txt { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 16px 20px; }
.pt-deal-k { font-size: 13px; font-weight: 700; color: var(--sale, #a33a12); }
.pt-deal-pct { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 2.6vw, 44px); line-height: 1; letter-spacing: -0.03em; color: var(--sale, #a33a12); }
.pt-deal-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pt-deal-price s { font-size: 14px; color: var(--text-soft); }
.pt-deal-price strong { font-size: 20px; }
.pt-deal-end { font-size: 13px; color: var(--text-muted); }
.pt-deal:hover .pt-deal-name { text-decoration: underline; text-underline-offset: 3px; }
.pt-howto { position: relative; display: flex; align-items: flex-end; min-height: 0; overflow: hidden; border-radius: 12px; background: var(--encina-900); color: #fff; text-decoration: none; }
.pt-howto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pt-howto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 21, 16, .9) 0%, rgba(14, 21, 16, .5) 55%, rgba(14, 21, 16, .15) 100%); }
.pt-howto:hover > img { transform: scale(1.04); }
.pt-howto-txt { position: relative; z-index: 1; display: grid; gap: 10px; padding: 18px 20px; }
.pt-howto-title { font-family: var(--font-display); font-weight: 750; font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; }
.pt-howto-steps { display: flex; flex-wrap: wrap; gap: 6px; counter-reset: paso; }
.pt-howto-steps span { counter-increment: paso; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; }
.pt-howto-steps span::before { content: counter(paso) ". "; color: var(--laton-300); }
.pt-howto-cta { font-weight: 700; color: var(--laton-300); }
.pt-howto:hover .pt-howto-cta { text-decoration: underline; text-underline-offset: 3px; }

/* 2. Garantías ---------------------------------------------------------------------------------- */
.pt-trust ul { list-style: none; margin: 0; padding: 14px 4px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.pt-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #3d4840; }
.pt-trust svg { flex: none; color: var(--laton-600, #9c7c3c); }
.pt-trust a { color: inherit; text-decoration: none; }
.pt-trust a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 3. Secciones ---------------------------------------------------------------------------------- */
.pt-cats-wrap { margin-top: 22px; }
.pt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pt-cat { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px 10px 10px; border-radius: 10px; background: #ffffff; color: var(--text); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pt-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 29, 23, .1); }
.pt-cat-img { flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.pt-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pt-cat:hover .pt-cat-img img { transform: scale(1.1); }
.pt-cat-txt { display: grid; gap: 1px; min-width: 0; }
.pt-cat-name { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.pt-cat-n { font-size: 13px; color: var(--text-soft); }

/* 4. Ofertas: reclamo + pasarela ---------------------------------------------------------------- */
.pt-offers { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; margin-top: 44px; }
.pt-offers-pitch { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; border-radius: 12px; color: #fff;
  background: linear-gradient(160deg, #b8481c 0%, #8c2e0e 100%); }
.pt-offers-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.pt-offers-max { margin: 10px 0 0; font-size: 17px; }
.pt-offers-max strong { display: block; font-family: var(--font-display); font-size: 58px; line-height: 1; letter-spacing: -0.04em; }
.pt-offers-n { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: #ffe2d4; }
.pt-offers-pitch .pt-btn { margin-top: auto; background: #ffffff; color: #8c2e0e; }
.pt-offers-pitch .pt-btn:hover { background: #fff1ea; }

/* Pasarela de productos (desliza con el dedo, la rueda o las flechas) */
.pt-rail { position: relative; min-width: 0; }
.pt-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--vis, 4) - 1) * 16px) / var(--vis, 4)); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-block: 4px 10px; }
.pt-rail-track::-webkit-scrollbar { display: none; }
.pt-rail-track > * { scroll-snap-align: start; }
.pt-rail-btn { position: absolute; top: 36%; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #ffffff; color: var(--encina-900); box-shadow: 0 6px 18px rgba(20, 29, 23, .18); cursor: pointer; transition: opacity .2s, transform .2s var(--ease); }
.pt-rail-btn:hover { transform: scale(1.06); }
.pt-rail-btn.is-prev { left: -14px; }
.pt-rail-btn.is-next { right: -14px; }
.pt-rail-btn[disabled] { opacity: 0; pointer-events: none; }

/* 5. Franja oscura de destacados ---------------------------------------------------------------- */
.pt-band { margin-top: 48px; padding-block: 40px 42px; background: var(--encina-900); color: #fff; }
.pt-band .pt-h2 { color: #fff; }
.pt-band .pt-more { color: #fff; }
.pt-band .pt-more:hover { color: var(--laton-300); }

/* 6. Munición por calibre + novedades ----------------------------------------------------------- */
.pt-mix { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.pt-cal, .pt-news { padding: 26px; border-radius: 12px; background: #ffffff; }
.pt-cal p { margin: 8px 0 18px; color: var(--text-muted); font-size: 15px; }
.pt-calibers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-calibers a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 6px; background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.pt-calibers a span { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.pt-calibers a:hover { background: var(--encina-800); color: #fff; transform: translateY(-2px); }
.pt-calibers a:hover span { color: #c9d1c7; }
.pt-news .pt-head { margin-bottom: 16px; }
.pt-news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 14px 16px; }
.pt-new.is-big { grid-row: span 2; }
.pt-new a { display: flex; flex-direction: column; gap: 10px; height: 100%; color: var(--text); text-decoration: none; }
.pt-new-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--surface-2); color: var(--encina-700); }
.pt-new-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pt-new a:hover .pt-new-img img { transform: scale(1.05); }
.pt-new.is-big .pt-new-img { flex: 1; aspect-ratio: auto; min-height: 240px; }
.pt-new-tag { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 8px; border-radius: 4px; background: var(--encina-800); color: #fff; font-size: 12.5px; font-weight: 700; }
.pt-new-txt { display: grid; gap: 2px; }
.pt-new-brand { font-size: 12.5px; color: var(--text-soft); }
.pt-new-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pt-new-price { font-weight: 700; font-size: 16px; }
.pt-new.is-big .pt-new-name { font-size: 18px; }
.pt-new.is-big .pt-new-price { font-size: 20px; }
.pt-new a:hover .pt-new-name { text-decoration: underline; text-underline-offset: 3px; }

/* 7. Cinta de marcas ---------------------------------------------------------------------------- */
.pt-brands-wrap { margin-top: 48px; }
.pt-brands-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.pt-brands { list-style: none; margin: 0; padding: 4px 12px 4px 0; display: flex; gap: 12px; flex: none; animation: pt-marquee 45s linear infinite; }
.pt-marquee:hover .pt-brands, .pt-marquee:focus-within .pt-brands { animation-play-state: paused; }
@keyframes pt-marquee { to { transform: translateX(-100%); } }
.pt-brands a { display: grid; place-items: center; width: 190px; height: 86px; padding: 12px 20px; border-radius: 10px; background: #ffffff; color: var(--encina-800); font-weight: 700; text-decoration: none; transition: box-shadow .2s var(--ease); }
.pt-brands a:hover { box-shadow: 0 8px 22px rgba(20, 29, 23, .12); }
.pt-brands img { height: var(--logo-h, 32px); max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

/* Entrada: las piezas del mosaico llegan escalonadas */
@media (prefers-reduced-motion: no-preference) {
  .pt-hero > *, .pt-side > *, .pt-cats > li { animation: pt-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .pt-side > :first-child { animation-delay: .12s; }
  .pt-side > :last-child { animation-delay: .22s; }
  .pt-cats > li { animation-delay: calc(.25s + var(--i, 0) * 50ms); }
  .pt-cats > li:nth-child(2) { --i: 1; } .pt-cats > li:nth-child(3) { --i: 2; } .pt-cats > li:nth-child(4) { --i: 3; }
  .pt-cats > li:nth-child(5) { --i: 4; } .pt-cats > li:nth-child(6) { --i: 5; }
}
@keyframes pt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  .pt-slide, .pt-slide.is-on { transition: none; }
  .pt-slide.is-on img, .pt-slide.is-on .pt-slide-copy > * { animation: none; }
  .pt-brands { animation: none; }
  .pt-brands[aria-hidden="true"] { display: none; }
  .pt-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .pt-rail-track { scroll-behavior: auto; }
}

/* Tableta y móvil ------------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .pt-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .pt-cats::-webkit-scrollbar { display: none; }
  .pt-offers { grid-template-columns: minmax(0, 1fr); }
  .pt-offers-pitch { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 20px 24px; }
  .pt-offers-max { margin: 0; } .pt-offers-max strong { display: inline; font-size: 34px; }
  .pt-offers-n { margin: 0; flex: 1 1 220px; }
  .pt-offers-pitch .pt-btn { margin-top: 0; }
  .pt-offers .pt-rail { --vis: 4 !important; }
  .pt-band .pt-rail { --vis: 4 !important; }
}
@media (max-width: 900px) {
  .pt-hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pt-banner { height: 420px; }
  .pt-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-deal, .pt-howto { min-height: 210px; }
  .pt-mix { grid-template-columns: minmax(0, 1fr); }
  .pt-offers .pt-rail, .pt-band .pt-rail { --vis: 3 !important; }
  .pt-rail-btn { display: none; }
}
@media (max-width: 600px) {
  .pt-hero { padding-top: 12px; gap: 12px; }
  .pt-banner { height: 440px; border-radius: 10px; }
  .pt-slide-copy { padding: 0 22px 64px; }
  .pt-banner-nav { left: 22px; right: auto; bottom: 22px; }
  .pt-banner-nav .pt-arrow { display: none; }
  .pt-side { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-trust ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 13px; }
  .pt-cats { grid-auto-columns: 180px; gap: 10px; }
  .pt-offers-title { font-size: 32px; }
  .pt-offers .pt-rail-track, .pt-band .pt-rail-track { grid-auto-columns: 72%; gap: 12px; }
  .pt-cal, .pt-news { padding: 20px; }
  .pt-news-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .pt-new.is-big { grid-row: auto; grid-column: 1 / -1; }
  .pt-new.is-big .pt-new-img { aspect-ratio: 4 / 3; min-height: 0; }
  .pt-brands a { width: 150px; height: 72px; }
}

/* Arreglos: tarjetas legibles dentro de la franja oscura; columna izquierda del mosaico con dos piezas */
.pt-band .pcard { color: var(--text); }
.pt-mix-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pt-swaro { position: relative; flex: 1; display: flex; align-items: flex-end; min-height: 200px; overflow: hidden; border-radius: 12px;
  background: var(--encina-900); color: #fff; text-decoration: none; }
.pt-swaro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pt-swaro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 21, 16, .85) 0%, rgba(14, 21, 16, .25) 60%, rgba(14, 21, 16, 0) 100%); }
.pt-swaro:hover > img { transform: scale(1.04); }
.pt-swaro-txt { position: relative; z-index: 1; display: grid; gap: 4px; padding: 20px 22px; }
.pt-swaro-k { font-size: 13px; font-weight: 700; color: var(--laton-300); }
.pt-swaro-title { font-family: var(--font-display); font-weight: 750; font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; }
.pt-swaro-cta { margin-top: 4px; font-weight: 600; font-size: 15px; }
.pt-swaro:hover .pt-swaro-cta { text-decoration: underline; text-underline-offset: 3px; }
