:root {
  --bg: #0e0c0b;
  --bg-soft: #17130f;
  --brown: #6b3f28;
  --brown-deep: #4a2b1a;
  --cream: #f2e9db;
  --cream-dim: #cabfa9;
  --line: rgba(242, 233, 219, 0.14);
  --radius: 14px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

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

/* cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(107,63,40,0.35), transparent 70%);
  transform: translate(-50%, -50%);
  left: -1000px;
  top: -1000px;
  transition: opacity .3s;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(14,12,11,0.9), transparent);
  backdrop-filter: blur(2px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.nav__mark { width: 30px; height: 32px; }
.nav__cta {
  font: inherit;
  background: var(--cream);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.nav__cta:hover { transform: scale(1.05); background: var(--brown); color: var(--cream); }

/* buttons */
.btn {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--brown); border-color: var(--brown); }
.btn--primary:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(107,63,40,0.45), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(74,43,26,0.5), transparent 50%),
    var(--bg);
  z-index: -1;
}
.hero__title {
  font-size: clamp(3.2rem, 13vw, 9rem);
  line-height: 0.88;
  color: var(--cream);
}
.hero__title .char { display: inline-block; will-change: transform, opacity; }
.hero__tag {
  margin: 28px 0 8px;
  color: var(--cream-dim);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 32ch;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  width: 24px; height: 40px;
  border: 2px solid var(--line);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* marquee */
.marquee { position: relative; width: 100%; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee--top { margin-bottom: 40px; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.15em;
  padding: 12px 0;
  color: var(--cream-dim);
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* historia */
.historia { padding: 140px 20px; background: var(--bg-soft); }
.historia__inner { max-width: 920px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--brown);
  background: rgba(242,233,219,0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.historia h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.historia__lead { color: var(--cream-dim); font-size: 1.15rem; max-width: 60ch; line-height: 1.6; margin-bottom: 60px; }
.historia__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.historia__item { border-top: 1px solid var(--line); padding-top: 20px; }
.historia__num { font-family: 'Roboto Slab', serif; color: var(--brown); font-weight: 700; }
.historia__item h3 { font-size: 1.1rem; margin: 10px 0; text-transform: none; font-family: 'Inter'; font-weight: 600; }
.historia__item p { color: var(--cream-dim); line-height: 1.55; margin: 0; }

/* producto */
.producto {
  padding: 140px 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}
.producto__gallery { display: flex; flex-direction: column; gap: 14px; perspective: 1000px; }
.producto__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform .15s ease-out;
  will-change: transform;
}
.producto__frame img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
.producto__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.producto h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 6px 0 20px; }
.producto__desc { color: var(--cream-dim); line-height: 1.6; font-size: 1.05rem; margin-bottom: 26px; }
.producto__specs { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px; }
.producto__specs li { color: var(--cream); padding-left: 22px; position: relative; }
.producto__specs li::before { content: '—'; position: absolute; left: 0; color: var(--brown); }

/* cierre */
.cierre { position: relative; padding: 140px 20px; text-align: center; }
.cierre h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 40px 0 34px; }
.marquee--bottom { position: absolute; top: 0; left: 0; }

/* footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--cream-dim);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.footer__mark { width: 28px; opacity: 0.6; }

/* scroll reveal base state */
[data-reveal] { opacity: 0; transform: translateY(36px); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s; }
.modal[data-open] { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,6,5,0.75); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  width: min(440px, 92vw);
  transform: translateY(24px) scale(0.98);
  transition: transform .35s var(--ease);
}
.modal[data-open] .modal__panel { transform: translateY(0) scale(1); }
.modal__panel h3 { font-size: 1.6rem; margin-bottom: 10px; }
.modal__hint { color: var(--cream-dim); font-size: 0.9rem; margin: 0 0 22px; }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--cream-dim); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#reserveForm { display: flex; flex-direction: column; gap: 16px; }
#reserveForm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--cream-dim); }
#reserveForm input, #reserveForm textarea {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  resize: vertical;
}
#reserveForm input:focus, #reserveForm textarea:focus { outline: none; border-color: var(--brown); }
.modal__status { min-height: 1.2em; font-size: 0.9rem; margin: 0; }
.modal__status[data-state="ok"] { color: #9fd8a3; }
.modal__status[data-state="error"] { color: #e08a7d; }

@media (max-width: 860px) {
  .producto { grid-template-columns: 1fr; gap: 40px; }
  .historia__grid { grid-template-columns: 1fr; gap: 26px; }
}
