/* TENLY — design tokens & shared components
   Source of truth: Diseño Tenly 2026 Modern (Landing Prelanzamiento / Empresas / Contacto / Reservar Plaza) */

:root {
  --bg: #FCFAF5;
  --text: #253A38;
  --heading: #173331;
  --accent: #197B76;
  --accent-hover: #146560;
  --accent-light: #DDF3EF;
  --accent-text: #0F5B57;
  --teal: #67C7BE;
  --muted: #56655F;
  --muted-2: #6E7D79;
  --border: #E5E7E3;
  --border-2: #C7D3CE;
  --cream: #F7F2E9;
  --tan-1: #EADCC8;
  --tan-2: #E0D0B6;
  --tan-3: #D6C4A6;
  --input-border: #E1D7C4;
  --placeholder: #9AA8A3;
  --gold: #C9A45C;
  --gold-bg: #FBF6EA;
  --gold-border: #E4D1A2;
  --error: #A6503C;
  --error-border: #D8A99C;

  --font-display: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  --font-body: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #123f3d; }

input, textarea, button, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--heading); }

@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.rise { animation: riseIn .5s both; }
.pop { animation: popIn .3s both; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}
.wrap-narrow { max-width: 1080px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 250, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-static { position: static; background: var(--bg); backdrop-filter: none; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.nav-inner.narrow { max-width: 1080px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--heading);
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
}
.spacer { flex: 1; }
.live-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--teal);
  animation: pulseDot 2s infinite;
  flex: none;
}
.nav-link { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn {
  border: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 16px 24px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
  text-align: center;
  display: inline-block;
}
.btn-sm { padding: 12px 18px; font-size: 13px; border-radius: 11px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { border: 1px solid var(--border-2); background: transparent; color: var(--heading); }
.btn-secondary:hover { border-color: var(--accent); color: var(--heading); }
.btn-teal { background: var(--teal); color: #0F3B38; }
.btn-teal:hover { background: #7BD2CA; color: #0F3B38; }
.btn-block { width: 100%; display: block; }

/* Pills (category / role / reason pickers) */
.pill {
  border: 1px solid var(--input-border);
  background: transparent;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: var(--font-body);
}
.pill:hover { border-color: var(--accent); }
.pill.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent-text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cards / sections */
.section { padding-top: clamp(56px, 9vw, 96px); }
.card { border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 4vw, 28px); }
.card-cream { background: var(--cream); border-radius: 22px; padding: clamp(18px, 4vw, 26px); }
.card-dark { background: var(--heading); border-radius: clamp(22px, 4vw, 32px); padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 44px); color: var(--bg); }
.card-confirm { border: 1px solid var(--accent-light); background: #F3FBF9; border-radius: 26px; padding: clamp(26px, 5vw, 40px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-light);
  border-radius: 99px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}
.eyebrow .dot { background: var(--accent); }

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

/* Countdown */
.countdown { display: flex; gap: 10px; margin-top: 14px; }
.countdown-cell {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg);
  border-radius: 16px;
  padding: clamp(12px, 3vw, 16px) 6px;
  text-align: center;
}
.countdown-val {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--heading);
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--muted-2);
  margin-top: 8px;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-optional { color: var(--placeholder); font-weight: 500; }
.input, textarea.input {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--bg);
  border-radius: 13px;
  padding: 15px 16px;
  font-size: 16px;
  color: var(--heading);
  outline: none;
}
.input:focus, textarea.input:focus { border-color: var(--accent); }
.input.error, textarea.input.error { border-color: var(--error-border); }
.error-msg { font-size: 13px; color: var(--error); margin-top: 8px; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.form-row > .field { flex: 1 1 150px; min-width: 0; }
.help { font-size: 13px; color: var(--muted-2); }

.checkbox-row { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.checkbox-box {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--border-2); background: transparent; color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: none;
  transition: background .15s, border-color .15s;
}
.checkbox-box.checked { background: var(--accent); border-color: var(--accent); }
.checkbox-text { flex: 1; font-size: 14px; color: var(--muted); line-height: 1.45; }

.avatars { display: flex; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 11px; border: 2px solid var(--bg); }
.avatar + .avatar { margin-left: -10px; }

.progress-track { height: 7px; border-radius: 99px; background: var(--tan-1); overflow: hidden; margin-top: 16px; }
.progress-fill { height: 100%; background: var(--accent); transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--heading);
  color: var(--bg);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  animation: popIn .18s both;
}
.toast[hidden] { display: none; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner.narrow { max-width: 1080px; }
.footer-word { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.06em; color: var(--heading); }
.footer-loc { font-size: 14px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hero-visual { animation: riseIn .6s both; }
