/* Hallmark · macrostructure: Marca (hero de color + riel) · tone: bold editorial · anchor hue: 258 cobalto
 * theme: custom · paper oklch(36% 0.13 258) en hero/pie, oklch(98% 0.006 85) en cuerpo · accent oklch(70% 0.17 50)
 * Fraunces + Instrument Sans · axes: dark (hero) / classical-serif / cool+warm */
:root {
  --papel: oklch(98% 0.006 85);
  --papel-2: oklch(94.5% 0.012 85);
  --tinta: oklch(24% 0.06 258);
  --tinta-suave: oklch(45% 0.04 258);
  --cobalto: oklch(36% 0.13 258);
  --marca: oklch(50% 0.16 255);
  --acento: oklch(70% 0.17 50);
  --acento-tinta: oklch(22% 0.05 50);
  --linea: oklch(88% 0.015 85);
  --fuente-display: "Fraunces", Georgia, serif;
  --fuente-texto: "Instrument Sans", system-ui, sans-serif;
  --radio: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
h1, h2, h3 { font-weight: 700; font-variation-settings: "opsz" 144; letter-spacing: -.015em; }

.cabecera { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: .6rem 1rem; background: var(--cobalto); color: #fff; }
.cabecera .logo { color: #fff; }
.btn-pedido { color: #fff; }
.btn-pedido .cuenta { background: oklch(100% 0 0 / .2); color: #fff; }

/* Hero a sangre en cobalto: el pez grande es la imagen, el texto va centrado debajo */
.hero { display: grid; justify-items: center; gap: 1.25rem; padding: 2.5rem 1rem 4rem; background: var(--cobalto); color: #fff; text-align: center; }
.hero-marca { width: min(70vw, 26rem); color: oklch(97% 0.01 85); }
.hero-marca svg { width: 100%; height: auto; }
.hero h1 { font-size: clamp(2.3rem, 7.5vw, 5rem); max-width: 18ch; }
.hero p { max-width: 34rem; font-size: 1.15rem; color: oklch(90% 0.03 255); }
.btn-principal { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--acento); color: var(--acento-tinta); font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-principal:hover { background: oklch(75% 0.16 55); }

.vendidos, .familias { max-width: 76rem; margin: 0 auto; padding: 3.5rem 1rem 0; }
.vendidos h2, .familias h2, .tiendas h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: 1.5rem; }

/* Riel horizontal con scroll-snap: en móvil se desliza, en escritorio son 5 columnas */
.riel { list-style: none; margin: 0 -1rem; padding: 0 1rem 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 78%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pieza { scroll-snap-align: start; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border-radius: var(--radio); background: #fff; border: 1px solid var(--linea); }
.pieza h3 { font-size: 1.5rem; }
.pieza img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; background: var(--papel-2); border-radius: calc(var(--radio) - 4px); padding: .75rem; }
.pieza-precio { font-family: var(--fuente-display); font-size: 1.9rem; font-weight: 700; color: var(--cobalto); font-variant-numeric: tabular-nums; }
.pieza-docena { margin-top: -.5rem; font-size: .9rem; color: var(--tinta-suave); }
.pieza .btn-agregar { margin-top: auto; background: var(--cobalto); }


.lista { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tinta); }
.lista a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 5rem; padding: .5rem 0; border-bottom: 1px solid var(--linea); text-decoration: none; transition: background-color 160ms var(--ease); }
.lista a:hover { background: var(--papel-2); }
.lista img { aspect-ratio: 1; width: 100%; object-fit: contain; }
.lista .nombre { font-family: var(--fuente-display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2rem); }
.lista .cuantos { font-size: .9rem; color: var(--tinta-suave); white-space: nowrap; }

.tiendas { margin-top: 4rem; padding: 3.5rem 1rem; background: var(--acento); color: var(--acento-tinta); }
.tiendas > * { max-width: 46rem; margin-inline: auto; }
.tiendas p { font-size: 1.15rem; margin-bottom: 1.5rem; }
.tiendas .btn-principal { background: var(--cobalto); color: #fff; }

.pie { padding: 2.5rem 1rem 6rem; background: var(--cobalto); color: oklch(92% 0.02 255); }
.pie .logo { color: #fff; }
.pie-datos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 1.5rem 0; }
.pie-datos dt { font-size: .8rem; opacity: .75; } .pie-datos dd { margin: 0; font-weight: 600; }
.pie-nota { font-size: .85rem; opacity: .75; }
main { padding-bottom: 0; }

@media (min-width: 48rem) {
  .hero { padding: 4rem 1rem 5rem; }
  .riel { grid-auto-columns: minmax(16rem, 40%); }
}
@media (min-width: 72rem) {
  .riel { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}
