/* =========================================================================
   Herencia Musical HM — sistema visual "banco de calibracion"
   El sitio entero es la hoja de especificaciones del instrumento que abre
   el hero: negro de marca, grilla tecnica, oro solo donde hay dato o accion.
   ========================================================================= */

:root {
  --ink: #08080a;
  --panel: #101015;
  --panel-hi: #16161d;
  --grid: #161f2b;
  --line: rgba(251, 247, 239, 0.11);
  --line-strong: rgba(251, 247, 239, 0.2);

  --gold: #c89535;
  --gold-2: #e7c36c;
  --cream: #fbf7ef;
  --muted: rgba(251, 247, 239, 0.54);
  --muted-2: rgba(251, 247, 239, 0.36);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shell: 1320px;
  --gutter: clamp(18px, 5vw, 74px);
  --bk: 15px;                       /* largo de las escuadras */
  --bkc: rgba(231, 195, 108, 0.5);  /* color de las escuadras */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ambiente calido en vez de cuadricula: da profundidad sin ruido visual */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 72% 8%, rgba(200, 149, 53, 0.07), transparent 60%),
    radial-gradient(90% 60% at 10% 100%, rgba(21, 78, 148, 0.05), transparent 65%);
}

/* grano fino sobre toda la pagina, como el del shader del hero */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 14px;
  max-width: 66ch;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

/* ---------- utilidades del sistema ---------- */

/* etiqueta tecnica: mono, versalita, muy espaciada */
.label,
.hud-tag,
.category-strip a,
.catalog-filter button,
.catalog-points span,
.timeline button,
.intent-picker button,
.product-body > span,
.trust-row dt,
.hero-note .stock,
.site-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.label {
  color: var(--gold);
  margin: 0 0 16px;
}

/* FIRMA: la regla de ticks — el goniometro del hero, desenrollado */
.tick-rule {
  position: relative;
  height: 9px;
  margin: 0 0 24px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 11px) top left / 100% 5px no-repeat,
    linear-gradient(var(--line), var(--line)) top left / 100% 1px no-repeat;
}

.tick-rule::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 22%);
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 11px) top left / 100% 5px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) top left / 100% 1px no-repeat;
}

/* escuadras de encuadre: mismo gesto que el marco del slider del hero */
.brackets {
  position: relative;
  background-image:
    linear-gradient(var(--bkc), var(--bkc)), linear-gradient(var(--bkc), var(--bkc)),
    linear-gradient(var(--bkc), var(--bkc)), linear-gradient(var(--bkc), var(--bkc)),
    linear-gradient(var(--bkc), var(--bkc)), linear-gradient(var(--bkc), var(--bkc)),
    linear-gradient(var(--bkc), var(--bkc)), linear-gradient(var(--bkc), var(--bkc));
  background-size:
    var(--bk) 1px, 1px var(--bk),
    var(--bk) 1px, 1px var(--bk),
    var(--bk) 1px, 1px var(--bk),
    var(--bk) 1px, 1px var(--bk);
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-repeat: no-repeat;
}

/* barra de calibracion que avanza con el scroll (sin JS donde el navegador lo soporta) */
.scale-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  animation: calibrar linear both;
  animation-timeline: scroll(root block);
}

@keyframes calibrar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

section {
  padding: clamp(64px, 8vw, 116px) max(var(--gutter), calc((100% - var(--shell)) / 2)) clamp(76px, 9vw, 132px);
}

.section-title h2,
.advice h2,
.story-copy h2,
.contact h2 {
  font-size: clamp(28px, 3.6vw, 50px);
  max-width: 18ch;
  margin-bottom: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 70;
  padding: 12px 18px;
  background: var(--gold);
  color: #14100a;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- cabecera ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(var(--gutter), calc((100% - var(--shell)) / 2));
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover {
  color: var(--gold-2);
}

.nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language {
  display: flex;
  border: 1px solid var(--line-strong);
}

.language button,
.language a {
  display: inline-block;
  text-decoration: none;
  padding: 6px 11px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.language button.is-active,
.language a.is-active {
  background: var(--gold);
  color: #14100a;
}

.small-cta {
  padding: 9px 16px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.small-cta:hover {
  background: var(--gold);
  color: #14100a;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #14100a;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.btn:active,
.small-cta:active,
.contact-main:active,
.catalog-price a:active {
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

/* =========================================================================
   HERO — se conserva la geometria del instrumento tal cual
   ========================================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.45fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  min-height: min(calc(100dvh - 78px), 900px);
  /* mismo eje que el resto del sitio: el texto nunca se despega del contenedor */
  padding: clamp(52px, 9vw, 118px) max(var(--gutter), calc((100% - var(--shell)) / 2)) clamp(34px, 6vw, 70px);
  overflow: hidden;
  background: #0d0d0f;
  color: var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(231, 195, 108, 0.34);
}

.hero-copy,
.hero-note {
  position: relative;
  z-index: 43;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border-top: 1px solid var(--line);
}

.trust-row div {
  padding: 14px 22px 0 0;
  margin-right: 22px;
  border-right: 1px solid var(--line);
}

.trust-row div:last-child {
  border-right: 0;
  margin-right: 0;
}

.trust-row dt {
  color: var(--gold);
  margin-bottom: 4px;
}

.trust-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-note {
  border: 1px solid var(--line);
  background: rgba(16, 16, 21, 0.72);
  padding: 20px;
}

.hero-note .stock {
  color: var(--gold);
}

.hero-note h2 {
  font-size: 20px;
  margin: 8px 0;
}

.hero-note p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ---- escenario del hero: caja cuadrada con el instrumento ---- */
.hero-stage {
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - var(--shell)) / 2));
  transform: translateY(-50%);
  width: min(44%, 620px);
  aspect-ratio: 1;
  /* por encima del grano de la pagina: el instrumento no debe lavarse */
  z-index: 41;
  container-type: inline-size;
}

.hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: ew-resize;
}

/* el HUD comparte la caja exacta del shader, por eso los porcentajes coinciden */
.hero-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-tag {
  position: absolute;
  font-size: clamp(8px, 1.35cqw, 11px);
  color: var(--muted);
  white-space: nowrap;
}

.hud-tag b {
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.hud-tono  { left: 17.6%; top: 59%; }
.hud-grave { left: 17.6%; top: 88.5%; }
.hud-agudo { left: 85.2%; top: 88.5%; transform: translateX(-100%); }
.hud-pie   { left: 50%; top: 95%; transform: translateX(-50%); color: var(--muted-2); }

/* slider real: invisible pero operable con teclado */
.hero-range {
  position: absolute;
  left: 17.6%;
  width: 67.6%;
  top: 75.9%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.hero-range:focus-visible {
  opacity: 1;
  outline: 2px solid var(--gold-2);
  outline-offset: 8px;
}

.hero.has-webgl {
  grid-template-columns: minmax(0, min(52ch, 46%));
  align-content: center;
  align-items: start;
  gap: 0;
  padding-block: clamp(38px, 5vw, 64px);
}

.hero.has-webgl .hero-copy h1 {
  font-size: clamp(28px, 3.4vw, 52px);
}

.hero.has-webgl .hero-copy .lead {
  font-size: clamp(14px, 1.1vw, 16px);
}

.hero.has-webgl .rhythm-field {
  display: none;
}

.hero.has-webgl .hero-note {
  margin-top: 22px;
  max-width: 100%;
  padding: 16px 18px;
}

.hero.has-webgl .hero-note h2 {
  font-size: 17px;
  margin: 6px 0;
}

.hero.has-webgl .hero-note p {
  font-size: 13px;
  line-height: 1.5;
}

/* velo: separa el texto del instrumento sin taparlo */
.hero.has-webgl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 42;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.96) 0%, rgba(8, 8, 10, 0.9) 26%, rgba(8, 8, 10, 0.25) 42%, rgba(8, 8, 10, 0) 52%);
}

/* =========================================================================
   SECCIONES
   ========================================================================= */

/* ---- botonera de familias ---- */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0;
  border-block: 1px solid var(--line);
}

.category-strip a {
  flex: 1 1 auto;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip a:hover {
  color: var(--gold-2);
  background: rgba(200, 149, 53, 0.07);
}

/* ---- catalogo ---- */
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 60px);
  max-width: var(--shell);
  margin: 0 auto clamp(30px, 4vw, 48px);
  align-items: end;
}

.catalog-intro p {
  color: var(--muted);
}

.catalog-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.catalog-points span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--shell);
  margin: 0 0 26px;
  border: 1px solid var(--line);
  width: fit-content;
}

.catalog-filter button {
  padding: 11px 18px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.catalog-filter button:last-child {
  border-right: 0;
}

.catalog-filter button:hover {
  color: var(--cream);
}

.catalog-filter button.is-active {
  background: var(--gold);
  color: #14100a;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30%, 420px), 1fr));
  gap: 1px;
  max-width: var(--shell);
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  transition: background 0.25s;
}

.product:hover {
  background: var(--panel-hi);
}

/* placa del producto: mientras no haya foto real, se lee como plancha tecnica */
.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 14px 14px 0;
  background-color: #0b0b0e;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82) saturate(0.9) contrast(1.04);
  transition: filter 0.3s;
}

.product:hover .product-image {
  filter: brightness(1) saturate(1) contrast(1.04);
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.1), rgba(8, 8, 10, 0.72));
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.product-body > span {
  color: var(--gold);
  margin-bottom: 10px;
}

.product-body h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.product-body > p {
  color: var(--muted);
  font-size: 15px;
  min-height: 5.4em;   /* las specs de todas las fichas arrancan a la misma altura */
}

/* especificaciones, como una ficha de instrumento */
.product-body ul {
  list-style: none;
  margin: 6px 0 20px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.product-body li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.product-body li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}

.product-cta {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(231, 195, 108, 0.4);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.product-cta::after {
  content: " →";
}

.product-cta:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---- asesoria: tres pasos, aqui el orden si es informacion ---- */
.advice {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  max-width: var(--shell);
  margin-inline: auto;
  align-items: start;
}

.advice-photo {
  margin: 26px 0 0;
  padding: 14px;
}

.advice-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* la toma es mas clara que el resto del sitio: se baja para que no cante */
  filter: saturate(0.72) contrast(1.06) brightness(0.62);
  transition: filter 0.3s;
}

.advice-photo:hover img {
  filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.advice-list {
  display: flex;
  flex-direction: column;
}

.advice-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.advice-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.advice-list strong {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.advice-list h3 {
  grid-column: 2;
  font-size: 21px;
  margin-bottom: 8px;
}

.advice-list p {
  grid-column: 2;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  max-width: 48ch;
}

/* ---- historia ---- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 70px);
  max-width: var(--shell);
  margin-inline: auto;
  align-items: start;
}

.story-media {
  padding: 14px;
}

.story-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04) brightness(0.9);
  transition: filter 0.3s;
}

.story-media:hover img {
  filter: saturate(1) contrast(1.04) brightness(1);
}

.story-copy p {
  color: var(--muted);
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  margin: 26px 0 18px;
  border: 1px solid var(--line);
  width: fit-content;
}

.timeline button {
  padding: 11px 18px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.timeline button:last-child {
  border-right: 0;
}

.timeline button.is-active {
  background: var(--gold);
  color: #14100a;
}

.story-dynamic {
  min-height: 3.4em;
  color: var(--cream);
  border-left: 1px solid var(--gold);
  padding-left: 16px;
}

.story blockquote {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--gold-2);
}

/* ---- preguntas ---- */
.faq-title {
  align-items: start;
}

.faq-title p {
  color: var(--muted);
}

.faq-grid {
  max-width: var(--shell);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-grid article {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-grid h3 {
  font-size: 19px;
}

.faq-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---- contacto: el unico bloque solido de la pagina ---- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  max-width: var(--shell);
  margin-inline: auto;
  align-items: center;
}

.contact > div:first-child p {
  color: var(--muted);
}

.contact-card {
  padding: 30px;
  /* background-color, no background: el atajo borraria las escuadras */
  background-color: var(--panel);
}

.intent-picker {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  width: fit-content;
}

.intent-picker button {
  padding: 11px 18px;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.intent-picker button:last-child {
  border-right: 0;
}

.intent-picker button.is-active {
  background: var(--gold);
  color: #14100a;
}

.contact-main {
  display: block;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: var(--gold);
  color: #14100a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.contact-main:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.contact-card > a:not(.contact-main) {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
}

.contact-card > span {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

/* ---- pie ---- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  padding: 26px max(var(--gutter), calc((100% - var(--shell)) / 2)) 90px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.site-foot a:hover {
  color: var(--gold-2);
}

/* ---- CTA movil ---- */
.mobile-whatsapp {
  display: none;
  position: fixed;
  inset: auto 14px 14px;
  z-index: 55;
  padding: 16px;
  background: var(--gold);
  color: #14100a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

/* el filtro del catalogo oculta con esta clase */
.is-hidden {
  display: none !important;
}

/* ---- revelado al hacer scroll ----
   El contenido es visible por defecto: solo se oculta cuando el JS confirma
   que puede animarlo (clase js-anim). Si el script falla, la pagina se lee. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js-anim .reveal.is-visible,
.js-anim .hero.reveal {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero.has-webgl {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .hero-stage {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(100%, 460px);
    margin: 26px auto 0;
  }

  .hero.has-webgl::before,
  .hero.has-webgl .hero-note {
    display: none;
  }

  .section-title,
  .advice,
  .story,
  .contact,
  .faq-grid article {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-media {
    max-width: 420px;
  }

  .nav {
    display: none;
  }

  .mobile-whatsapp {
    display: block;
  }
}

@media (max-width: 560px) {
  .category-strip a {
    flex: 1 0 50%;
    border-bottom: 1px solid var(--line);
  }

  .advice-list article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .trust-row div {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   CATALOGO (catalogo.html) — misma ficha tecnica, formato lista
   ========================================================================= */
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 60px);
  max-width: var(--shell);
  margin: 0 auto clamp(28px, 4vw, 44px);
  align-items: end;
}

.catalog-head h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  margin-bottom: 12px;
}

.catalog-head > p {
  color: var(--muted);
  margin: 0;
}

.catalog-summary {
  max-width: var(--shell);
  margin: 24px auto 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background-color: var(--panel);
}

.catalog-summary span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.catalog-summary strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
}

.catalog-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: var(--shell);
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.catalog-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: center;
  padding: 22px;
  background-color: var(--panel);
  transition: background-color 0.25s;
}

.catalog-item:hover {
  background-color: var(--panel-hi);
}

.catalog-item-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: #0b0b0e;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82) saturate(0.9) contrast(1.04);
  transition: filter 0.3s;
}

.catalog-item:hover .catalog-item-media {
  filter: brightness(1) saturate(1) contrast(1.04);
}

.catalog-item-body > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.catalog-item-body h3 {
  font-size: 21px;
  margin: 8px 0 8px;
}

.catalog-item-body p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.catalog-item-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-item-body li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.catalog-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.catalog-price small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.catalog-price strong {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.catalog-price a {
  margin-top: 6px;
  padding: 10px 16px;
  background: var(--gold);
  color: #14100a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.catalog-price a:hover {
  background: var(--gold-2);
}

/* galeria de piezas reales */
.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  max-width: var(--shell);
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.catalog-piece {
  background-color: var(--panel);
  transition: background-color 0.25s;
}

.catalog-piece:hover {
  background-color: var(--panel-hi);
}

.catalog-piece img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.9) contrast(1.04);
  transition: filter 0.3s;
}

.catalog-piece:hover img {
  filter: brightness(1) saturate(1) contrast(1.04);
}

.catalog-piece > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 16px 18px 18px;
}

.catalog-piece span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.catalog-piece h3,
.catalog-piece .piece-name {
  font-size: 16px;
}

/* en la galeria el nombre es un parrafo (no h3 repetido), con el mismo aspecto */
.catalog-piece .piece-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}

.catalog-piece strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.catalog-piece a {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid rgba(231, 195, 108, 0.4);
  padding-bottom: 3px;
}

.catalog-piece a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

@media (max-width: 900px) {
  .catalog-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-item {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .catalog-price {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
}

/* =========================================================================
   FOTOS DE PRODUCTO — cada clase apunta a su archivo en assets/
   Mientras el archivo no exista, el servidor de desarrollo devuelve un
   marcador; al subir la foto real con este nombre, entra sola.
   ========================================================================= */
.photo-campanas         { background-image: url("assets/catalogo/campana-dorada-1.jpg"); }
.photo-guiros           { background-image: url("assets/catalogo/guiro-azul-rojo-1.jpg"); }
.photo-personalizados   { background-image: url("assets/catalogo/personalizados-banderas.jpg"); }
.photo-combo            { background-image: url("assets/catalogo/maracas-colombia-1.jpg"); }
.photo-palos            { background-image: url("assets/catalogo/campana-dorada-doble-1.jpg"); }
.photo-campanas-premium { background-image: url("assets/catalogo/campana-plateada-satin-1.jpg"); }

/* ---- paginas legales ---- */
.legal {
  max-width: 74ch;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 90px) clamp(60px, 9vw, 120px);
}

.legal h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  color: var(--gold-2);
}

.legal p {
  color: var(--muted);
}

.legal .pendiente {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================================
   CONSENTIMIENTO DE COOKIES
   Aceptar y rechazar comparten estilo y tamano: el Garante exige que
   rechazar cueste lo mismo que aceptar.
   ========================================================================= */
.cookies {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 28px));
  max-width: 100vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(20px, 4vw, 48px);
  padding: 22px clamp(20px, 3vw, 28px);
  background: rgba(16, 16, 21, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(4, 4, 6, 0.7);
  animation: cookies-entra 0.4s ease both;
}

@keyframes cookies-entra {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cookies-texto {
  /* min-width:0 es obligatorio: sin el, un hijo flex no baja de su ancho
     minimo de contenido y empuja el panel fuera de la pantalla */
  flex: 1 1 260px;
  min-width: 0;
}

.cookies-texto p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
}

.cookies-texto .label {
  margin-bottom: 10px;
}

.cookies-detalle {
  font-size: 13px !important;
  color: var(--muted-2) !important;
}

.cookies-detalle a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(231, 195, 108, 0.4);
}

.cookies-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cookies-acciones button {
  padding: 13px 20px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.cookies-acciones button:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.cookies-acciones button:active {
  transform: translateY(1px);
}

.cookies-acciones .cookies-link {
  border-color: transparent;
  padding-inline: 6px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookies-cats {
  flex: 1 1 100%;
  display: grid;
  gap: 2px;
}

.cookies-cat {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.cookies-cat input {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex: none;
}

.cookies-cat b {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.cookies-cat i {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.cookies-cat em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.cookies-reabrir {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookies-reabrir:hover {
  color: var(--gold-2);
}

@media (max-width: 700px) {
  .cookies {
    bottom: 0;
    width: 100%;
    padding-bottom: 84px;   /* deja ver el boton flotante de WhatsApp */
    border-inline: 0;
    border-bottom: 0;
  }

  .cookies-acciones {
    width: 100%;
  }

  .cookies-acciones button {
    flex: 1 1 130px;
    text-align: center;
    justify-content: center;
  }
}

.legal-lista {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.legal-lista li {
  margin-bottom: 8px;
}

.legal-lista strong {
  color: var(--cream);
}
