:root {
  --fondo: #15111a;
  --texto: #f2ece4;
  --texto-suave: #a89fae;
  --linea: #2c2535;
  --brasa: #e5301f;
  --ambar: #ff9d2e;
  --crema: #fbe9c6;
  --ancho: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

/* Degradado animado de izquierda a derecha (reutilizable) */
.degradado {
  background-image: linear-gradient(90deg, var(--brasa), var(--ambar), var(--crema), var(--ambar), var(--brasa));
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: fluir 6s linear infinite;
}

@keyframes fluir {
  from { background-position: 0% 0; }
  to   { background-position: -200% 0; }
}

/* Menú superior */
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  max-width: var(--ancho);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.menu .marca {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding-bottom: 0.15em;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu ul a {
  text-decoration: none;
  color: var(--texto-suave);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.menu ul a:hover,
.menu ul a:focus-visible,
.menu ul a[aria-current="page"] {
  color: var(--texto);
  border-bottom-color: var(--ambar);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
}

/* Contenido */
main {
  flex: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

main p { max-width: 60ch; color: var(--texto-suave); }

/* Portada */
.portada {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

main .portada h1 {
  margin: 0;
  padding: 0.05em 0.1em 0.15em;
  font-size: clamp(2.6rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Stock */
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pieza {
  border: 1px solid var(--linea);
  border-radius: 4px;
  overflow: hidden;
}

.pieza .foto {
  aspect-ratio: 4 / 5;
  background: var(--linea);
}

.pieza .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pieza .datos { padding: 0.9rem 1rem 1.1rem; }
.pieza h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.pieza p { margin: 0; font-size: 0.9rem; }

/* Formulario */
form { display: grid; gap: 1.1rem; max-width: 36rem; margin-top: 2rem; }
label { display: grid; gap: 0.4rem; color: var(--texto-suave); font-size: 0.95rem; }

input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: transparent;
  color: var(--texto);
  border: 1px solid var(--linea);
  border-radius: 4px;
  font: inherit;
}

textarea { min-height: 9rem; resize: vertical; }

button {
  justify-self: start;
  padding: 0.75rem 1.6rem;
  background: var(--ambar);
  color: #1b1208;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: var(--crema); }

/* Pie */
footer {
  max-width: var(--ancho);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--linea);
  color: var(--texto-suave);
  font-size: 0.85rem;
}

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