/*
 * Home de Calzado Caprino con banner completo (entrega del 22 de octubre de 2026).
 * Diseño primero para celular: base hasta 767 px, tableta desde 768 px y computador desde 1024 px.
 * Clases con prefijo hm- para no chocar con Bootstrap ni con 2017/ccaprino.css.
 */
.hm { --hm-gutter: 16px; --hm-radio: 10px; font: 400 16px/1.5 var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--tinta, #363636); }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm img { max-width: 100%; display: block; }
.hm :where(a) { color: inherit; }
.hm a:hover, .hm a:focus { text-decoration: none; }
.hm h2 { font-family: var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); font-weight: var(--peso-titulo, 500); line-height: 1.15; margin: 0; color: inherit; text-transform: none; letter-spacing: 0; }
.hm ul { margin: 0; padding: 0; list-style: none; }
.hm :focus-visible { outline: 3px solid var(--rojo, #92151b); outline-offset: 2px; }
.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--hm-gutter); }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones (mínimo 48 px de alto para el dedo) */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: var(--peso-fuerte, 500) 15px/1 var(--fuente-texto, Roboto, Arial, sans-serif); letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s; }
.hm-btn-rojo { background: var(--rojo, #92151b); color: #fff; }
.hm a:hover .hm-btn-rojo, .hm-btn-rojo:hover { background: var(--rojo-oscuro, #741016); color: #fff; }
.hm-btn-borde { border-color: currentColor; color: var(--tinta, #363636); background: transparent; }
.hm .hm-btn-borde:hover, .hm .hm-btn-borde:focus { background: var(--tinta, #363636); color: #fff; }
.hm-btn-blanco { background: #fff; color: var(--tinta, #363636); }
.hm .hm-btn-blanco:hover, .hm .hm-btn-blanco:focus { background: var(--fondo-calido, #f7f2ec); color: var(--tinta, #363636); }

.hm-titulo { font-size: 24px; }
.hm-sec { padding: 40px 0; }
.hm-sec-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hm-ver-todo { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; color: var(--texto-secundario, #595959); }
.hm-ver-todo a { padding: 12px 0; font-size: 15px; font-weight: var(--peso-fuerte, 500); color: var(--rojo-oscuro, #741016); text-decoration: none; }
.hm-ver-todo a:hover { text-decoration: underline; }

/* Carrusel: banner en una sola pieza */
.hm-hero { position: relative; background: #222; padding: 0; }
.hm-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hm-pista::-webkit-scrollbar { display: none; }
.hm-slide { flex: 0 0 100%; scroll-snap-align: start; }
.hm-banner { position: relative; display: block; color: #fff; text-decoration: none; }
.hm .hm-banner:hover, .hm .hm-banner:focus { color: #fff; }
.hm-banner-foto { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
/* Sin versión vertical se recorta el banner de computador: altura 116 % para esconder la franja dibujada */
.hm-banner-foto img { position: absolute; top: 0; left: 0; width: 100%; height: 116%; object-fit: cover; object-position: var(--pos-m, 50% 0); }
.hm-banner--movil .hm-banner-foto img { height: 100%; object-position: center; }
.hm-banner-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 62%); }
.hm-banner-texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--hm-gutter) 48px; display: grid; gap: 10px; justify-items: start; z-index: 1; }
.hm-banner-titulo { font: var(--peso-fuerte, 500) 28px/1.12 var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); }
/* En celular solo título y botón, para que se vea el zapato */
.hm-banner-sub { display: none; font-size: 16px; color: rgba(255,255,255,.9); }
.hm-banner-texto .hm-btn { margin-top: 6px; }
.hm-puntos { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.hm-puntos button { width: 28px; height: 28px; border: 0; background: none; display: grid; place-items: center; padding: 0; cursor: pointer; }
.hm-puntos button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.hm-puntos button[aria-current="true"]::before { width: 22px; background: #fff; }

/* Categorías */
.hm-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-cat { position: relative; display: block; border-radius: var(--hm-radio); overflow: hidden; aspect-ratio: 3/4; text-decoration: none; color: #fff; background: #222; }
.hm .hm-cat:hover, .hm .hm-cat:focus { color: #fff; }
.hm-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hm-cat:hover img { transform: scale(1.04); }
.hm-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.hm-cat span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; font: var(--peso-fuerte, 500) 22px var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); }
.hm-cat span svg { flex: none; }
.hm-atajos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(var(--hm-gutter) * -1) 0; padding: 0 var(--hm-gutter); }
.hm-atajos::-webkit-scrollbar { display: none; }
.hm-atajos a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--borde, #d9d9d9); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; background: #fff; color: var(--tinta, #363636); }
.hm .hm-atajos a:hover { border-color: var(--tinta, #363636); color: var(--tinta, #363636); }
.hm .hm-atajos .hm-oferta { border-color: var(--rojo, #92151b); color: var(--rojo, #92151b); }

/* Productos destacados */
.hm-productos { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--hm-gutter) * -1); padding: 0 var(--hm-gutter) 4px; scroll-padding: 0 var(--hm-gutter); }
.hm-productos::-webkit-scrollbar { display: none; }
.hm-prod { scroll-snap-align: start; text-decoration: none; display: block; color: var(--tinta, #363636); }
.hm .hm-prod:hover, .hm .hm-prod:focus { color: var(--tinta, #363636); }
.hm-prod-foto { aspect-ratio: 916/1297; border-radius: var(--hm-radio); overflow: hidden; background: #f2f2f2; }
.hm-prod-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hm-prod:hover .hm-prod-foto img { transform: scale(1.03); }
.hm-prod-nombre { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; }
.hm-prod-ref { display: block; font-size: 13px; color: var(--texto-secundario, #595959); }
.hm-prod-precio { display: block; margin-top: 4px; font: var(--peso-fuerte, 500) 18px var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); color: var(--rojo, #92151b); }
.hm-prod-precio s { font: 400 14px var(--fuente-texto, Roboto, Arial, sans-serif); color: var(--texto-secundario, #595959); margin-right: 6px; }

/* Beneficios */
.hm-beneficios { background: var(--fondo-calido, #f7f2ec); }
.hm-ben-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-ben { background: #fff; border-radius: var(--hm-radio); padding: 16px 14px; display: grid; gap: 8px; align-content: start; }
.hm-ben svg { color: #92151b; }
.hm-ben b { font: var(--peso-fuerte, 500) 16px/1.2 var(--fuente-titulo, 'Roboto Condensed', Arial, sans-serif); }
.hm-ben span { font-size: 14px; color: var(--texto-secundario, #595959); line-height: 1.4; }

/* Puro cuero */
.hm-cuero { position: relative; color: #fff; text-align: center; background: #2a1d15 url("../2017/img/cuero.jpg") center/cover; }
.hm-cuero::before { content: ""; position: absolute; inset: 0; background: rgba(20,12,8,.62); }
.hm-cuero .hm-wrap { position: relative; padding-top: 48px; padding-bottom: 48px; display: grid; justify-items: center; gap: 16px; }
.hm-cuero img { width: 96px; height: auto; }
.hm-cuero h2 { font-size: 28px; color: #fff; }
.hm-cuero p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.92); }

/* Club y tiendas */
.hm-dos { display: grid; gap: 12px; }
.hm-tarjeta { border-radius: var(--hm-radio); padding: 24px 20px; display: grid; gap: 12px; justify-items: start; align-content: start; }
.hm-tarjeta h2 { font-size: 24px; }
.hm-tarjeta p { margin: 0; }
.hm-club { background: var(--rojo, #92151b); color: #fff; }
.hm-club .hm-etiqueta { display: inline-block; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: var(--peso-fuerte, 500); }
.hm-club ul { display: grid; gap: 6px; font-size: 15px; }
.hm-club li { display: flex; gap: 8px; align-items: flex-start; }
.hm-tiendas { border: 1px solid var(--borde, #d9d9d9); }
.hm-tiendas p { color: var(--texto-secundario, #595959); }

/* Tableta */
@media (min-width: 768px) {
  .hm { --hm-gutter: 24px; }
  .hm-titulo { font-size: 30px; }
  .hm-sec { padding: 56px 0; }
  /* El banner completo a todo lo ancho, como lo entrega diseño */
  .hm-banner-foto { aspect-ratio: 3125/1208; }
  .hm-banner-foto img, .hm-banner--movil .hm-banner-foto img { height: 100%; object-position: center; }
  .hm-banner-foto::after { display: none; }
  /* El banner ya trae su texto dibujado: el texto HTML queda solo para lectores de pantalla y buscadores */
  .hm-banner-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .hm-puntos { bottom: 12.5%; }
  .hm-cats { gap: 16px; }
  .hm-cat { aspect-ratio: 4/3; }
  .hm-cat span { font-size: 28px; left: 24px; bottom: 20px; right: 24px; }
  .hm-productos { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .hm-ben-lista { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .hm-ben { padding: 20px; }
  .hm-cuero .hm-wrap { padding-top: 72px; padding-bottom: 72px; }
  .hm-cuero h2 { font-size: 36px; }
  .hm-dos { grid-template-columns: 1.4fr 1fr; gap: 16px; }
  .hm-tarjeta { padding: 32px; }
}

/* Computador */
@media (min-width: 1024px) {
  .hm-cat { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; scroll-behavior: auto !important; } }
