@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap");
: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: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  line-height: 1.5;
  overflow-x: clip;
}

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.5rem 2rem;
  width: 100%;
  margin: 0;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
}

.menu .marca {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0 0 0.15em;
}

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

.menu ul a {
  display: block;
  text-decoration: none;
  color: var(--texto-suave);
  padding: 0.25rem 0;
  FONT-WEIGHT: BOLD;
  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.02em;
  line-height: 1.1;
}

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

/* Portada */
.portada {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  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;
}

.foto-portada {
  display: block;
  width: min(80%, 40rem);   /* antes: min(90%, 40rem) */
  height: auto;
  border-radius: 4px;
  animation: vaiven 1s ease-in-out infinite alternate;
}

/* Texto blanco con efecto cristal */
.metal {
  background-image:
    linear-gradient(110deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg,
      #ffffff 0%,
      #f3f5f8 44%,
      #c7cfd8 52%,
      #e8ecf1 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.18))
    drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
  animation: destello 6s ease-in-out infinite;
}

@keyframes destello {
  0%   { background-position: 100% 0, 0 0; }
  60%  { background-position: 0% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}

@keyframes vaiven {
  from { transform: translateX(-8%); }
  to   { transform: translateX(8%); }
}

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

