/* Nogal · landing de muebles de madera. Hoja única, sin fuentes ni imágenes externas. */

:root {
  --cream: #f6f1e9;
  --paper: #fffdf9;
  --ink: #1c1815;
  --muted: #6f6459;
  --line: #e2d8ca;
  --walnut: #6b4a2f;
  --oak: #a9784c;
  --terracotta: #b4552f;
  --sage: #7d8a6f;
  --serif: ui-serif, Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* grano sutil de papel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(107, 74, 47, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--walnut);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.container,
.hero-grid,
.piezas-head,
.roulette,
.espacios,
.maderas,
.proceso,
.quote,
.faq,
.cierre-grid,
.pie-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  position: relative;
  z-index: 1;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: rgba(246, 241, 233, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 241, 233, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--walnut), #4a3220);
  color: #f6f1e9;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav {
  display: none;
  gap: 1.6rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--ink);
  color: var(--cream);
}

.btn-solid:hover {
  background: #2b241d;
}

.btn-line {
  border-color: #cdbfae;
  color: var(--ink);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--walnut);
  background: rgba(107, 74, 47, 0.06);
}

/* ---------- hero ---------- */

.hero {
  padding: 3.2rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  max-width: 17ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 46ch;
  margin: 1rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1.4rem;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(180, 85, 47, 0.12), transparent 60%),
    linear-gradient(180deg, #fffdf9, #f1e8db);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 40px 70px -50px rgba(28, 24, 21, 0.7);
}

.hero-visual img {
  width: min(100%, 420px);
  filter: drop-shadow(0 18px 26px rgba(28, 24, 21, 0.16));
}

.hero-tag {
  position: absolute;
  padding: 0.34rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--muted);
  box-shadow: 0 10px 24px -18px rgba(28, 24, 21, 0.6);
}

.hero-tag:nth-of-type(1) {
  top: 1rem;
  left: -0.5rem;
}

.hero-tag:nth-of-type(2) {
  bottom: 1.1rem;
  right: -0.4rem;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.6);
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #8d7f6f;
  white-space: nowrap;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- ruleta ---------- */

.piezas {
  padding: 3.4rem 0 1rem;
}

.piezas-head {
  max-width: 46rem;
  margin-bottom: 1.4rem;
}

.piezas-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.roulette {
  position: relative;
  perspective: 1900px;
  perspective-origin: 50% 45%;
  padding-top: 2.6rem;
  padding-bottom: 0.5rem;
  outline: none;
}

.roulette-stage {
  position: relative;
  height: 470px;
  transform-style: preserve-3d;
}

.piece {
  position: absolute;
  top: 0;
  left: 50%;
  width: 292px;
  margin-left: -146px;
  padding: 12px 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.68s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 20px 40px -34px rgba(28, 24, 21, 0.8);
}

.piece.is-active {
  box-shadow: 0 40px 70px -40px rgba(28, 24, 21, 0.68);
  border-color: #d3c4b1;
}

.piece-media {
  display: grid;
  place-items: center;
  padding: 0.8rem 0.4rem 1rem;
  background: linear-gradient(180deg, #f7f0e4, #efe4d3);
  border-radius: 12px;
}

.piece-media img {
  width: 100%;
  max-width: 250px;
  filter: drop-shadow(0 12px 18px rgba(28, 24, 21, 0.14));
}

.piece-body {
  padding: 0.9rem 0.4rem 0;
}

.piece-name {
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
}

.piece-desc {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 4.4rem;
  margin-bottom: 0.7rem;
}

.piece-meta {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8d7f6f;
  margin-bottom: 0.5rem;
}

.piece-price {
  display: inline-block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--walnut);
}

.roulette-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

.r-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #cdbfae;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.16s ease, border-color 0.2s ease;
}

.r-btn:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #c3b3a0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.is-active {
  background: var(--walnut);
  border-color: var(--walnut);
  transform: scale(1.25);
}

/* ---------- espacios ---------- */

.espacios {
  display: grid;
  gap: 1rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
}

.espacios > h2,
.espacios ~ h2 {
  grid-column: 1 / -1;
}

.space {
  padding: 1.3rem 1.2rem;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.space:hover {
  transform: translateY(-3px);
  background: var(--paper);
}

.space-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: rgba(107, 74, 47, 0.1);
  color: var(--walnut);
}

.space-icon svg {
  width: 20px;
  height: 20px;
}

.space h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.space p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- maderas ---------- */

.maderas {
  display: grid;
  gap: 1rem;
  padding-bottom: 3.2rem;
}

.madera {
  display: grid;
  gap: 0.25rem;
  padding: 1.2rem;
  border-top: 2px solid var(--line);
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.22);
}

.madera:nth-of-type(2) .swatch {
  background: linear-gradient(150deg, #8a5f3b, #553a24);
}

.madera:nth-of-type(3) .swatch {
  background: linear-gradient(150deg, #c08f5e, #8a5f3b);
}

.madera:nth-of-type(4) .swatch {
  background: linear-gradient(150deg, #e2c9a4, #b18f63);
}

.madera:nth-of-type(5) .swatch {
  background: linear-gradient(150deg, #7a4c31, #3f2a1a);
}

.madera h3 {
  font-size: 1.1rem;
}

.madera p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- proceso ---------- */

.proceso {
  display: grid;
  gap: 1rem;
  padding-bottom: 3.4rem;
}

.proceso > h2 {
  grid-column: 1 / -1;
}

.paso {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.65);
}

.paso-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.paso h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.paso p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- testimonio ---------- */

.quote {
  padding: 1rem 1.4rem 3.4rem;
  text-align: center;
}

.quote blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  line-height: 1.3;
  color: #2b241d;
}

.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.5;
  color: #cbb79d;
  margin-bottom: 0.6rem;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 3.4rem;
}

.faq > h2 {
  margin-bottom: 0.6rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0.2rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--walnut);
  font-family: var(--sans);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}

/* ---------- cierre ---------- */

.cierre {
  padding: 1rem 0 3.6rem;
}

.cierre-grid {
  display: grid;
  gap: 1.6rem;
  padding: 2rem 1.4rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
}

.cierre h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--cream);
}

.cierre p {
  color: #cbbfae;
  margin: 0;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  gap: 0.28rem;
}

.form label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b3a795;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid #3a322a;
  border-radius: 10px;
  color: var(--cream);
  font: inherit;
  font-size: 0.92rem;
}

.form textarea {
  resize: vertical;
  min-height: 5rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--oak);
  box-shadow: 0 0 0 3px rgba(169, 120, 76, 0.2);
}

.form .btn {
  justify-self: start;
  margin-top: 0.3rem;
  background: var(--cream);
  color: var(--ink);
}

.form-note {
  font-size: 0.76rem;
  color: #9a8e7d !important;
  margin: 0;
}

.form-status {
  min-height: 1.1rem;
  font-size: 0.82rem;
  color: #a9c4a2;
}

.form-status.is-error {
  color: #e8a49a;
}

/* ---------- pie ---------- */

.pie {
  background: #171310;
  color: #d8cbb9;
  padding: 2.6rem 0 1.6rem;
}

.pie-grid {
  display: grid;
  gap: 1.8rem;
}

.pie .brand {
  color: var(--cream);
}

.pie .brand-mark {
  background: linear-gradient(155deg, var(--oak), var(--walnut));
  color: #1c1815;
}

.pie h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f8271;
  margin-bottom: 0.6rem;
}

.pie a {
  color: #e6dccd;
}

.pie p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.fina {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1rem 1.4rem 0;
  border-top: 1px solid #2a241e;
  font-size: 0.76rem;
  color: #85796a;
}

/* ---------- animación ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .piece {
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (min-width: 700px) {
  .nav {
    display: flex;
  }
  .espacios,
  .maderas,
  .proceso {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pie-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .roulette-stage {
    height: 500px;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 4.4rem 0 3.4rem;
  }
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.2rem;
  }
  .espacios,
  .proceso {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .maderas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cierre-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2.6rem 2.4rem;
  }
  .piece {
    width: 320px;
    margin-left: -160px;
  }
  .roulette-stage {
    height: 520px;
  }
}
