/* Trobify — landing. Colores y tipografía alineados con la app. */
:root {
  --verde: #14362b;
  --verde-2: #1d4a3a;
  --oro: #c8a24a;
  --oro-oscuro: #9a7a2f;
  --crema: #fffdf8;
  --fondo: #c4c8c6;
  --texto: #1c1917;
  --texto-suave: #44403c;
  --texto-tenue: #78716c;
  --verde-texto: #eef3ef;
  --radio: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--verde);
  color: var(--verde-texto);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-size: 24px; color: var(--crema); }
.brand .dot { color: var(--oro); }

.lang {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; overflow: hidden;
}
.lang button {
  appearance: none; border: 0; background: transparent;
  color: var(--verde-texto); cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  padding: 7px 12px; line-height: 1;
}
.lang button[aria-pressed="true"] { background: var(--oro); color: var(--verde); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--verde) 0%, var(--verde-2) 100%);
  color: var(--crema);
  padding: 64px 0 120px;
  text-align: center;
}
.hero .tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 7vw, 60px); margin-bottom: 18px; }
.hero p.sub {
  font-size: clamp(16px, 2.6vw, 20px); color: #d8e2da;
  max-width: 620px; margin: 0 auto 32px;
}
.hero .mountains {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; display: block;
}

/* Botones */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-size: 16px; font-weight: 800; font-family: inherit;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-oro { background: var(--oro); color: var(--verde); }
.btn-oro:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--crema); border: 1px solid rgba(255,255,255,0.25); }

/* ---------- Secciones ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--crema); }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--oro-oscuro); margin-bottom: 10px; text-align: center;
}
h2.title { font-size: clamp(26px, 4.5vw, 38px); text-align: center; margin-bottom: 14px; color: var(--verde); }
p.lead { font-size: 18px; color: var(--texto-suave); max-width: 680px; margin: 0 auto; text-align: center; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step {
  background: var(--crema); border: 1px solid #e7e2d6; border-radius: var(--radio);
  padding: 28px 22px; text-align: center;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--verde); color: var(--oro);
  font-family: "Fraunces", serif; font-size: 22px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; color: var(--verde); }
.step p { font-size: 15px; color: var(--texto-suave); }

/* ---------- Waitlist ---------- */
.waitlist { background: var(--verde); color: var(--crema); }
.waitlist h2.title, .waitlist .eyebrow { color: var(--crema); }
.waitlist .eyebrow { color: var(--oro); }
.waitlist p.lead { color: #d8e2da; }
.wl-form {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 520px; margin: 32px auto 0;
}
.wl-form input[type="email"] {
  flex: 1 1 260px; min-width: 0;
  padding: 15px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.97); color: var(--texto); font-size: 16px;
}
.wl-form input[type="email"]:focus { outline: 2px solid var(--oro); }
.wl-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-consent { font-size: 13px; color: #c5d1c9; max-width: 520px; margin: 16px auto 0; text-align: center; }
.wl-consent a { color: var(--oro); text-decoration: underline; cursor: pointer; }
.wl-msg { margin: 18px auto 0; text-align: center; font-weight: 700; min-height: 22px; }
.wl-msg.ok { color: #a7e8c4; }
.wl-msg.err { color: #ffb4a8; }

/* ---------- Footer ---------- */
footer {
  background: #0f271f; color: #aebdb4; padding: 36px 0; text-align: center; font-size: 14px;
}
footer a { color: var(--oro); text-decoration: none; cursor: pointer; }
footer .foot-links { margin-bottom: 10px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
footer .social { display: flex; gap: 18px; justify-content: center; margin-bottom: 16px; }
footer .social a { color: var(--oro); display: inline-flex; transition: filter 0.15s ease, transform 0.08s ease; }
footer .social a:hover { filter: brightness(1.18); transform: translateY(-1px); }
footer .social svg { width: 24px; height: 24px; display: block; }

/* ---------- Modal privacidad ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,25,20,0.6);
}
.modal.open { display: flex; }
.modal .card {
  background: var(--crema); color: var(--texto); border-radius: var(--radio);
  max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 28px;
}
.modal h3 { font-size: 22px; color: var(--verde); margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--texto-suave); margin-bottom: 12px; }
.modal .close { float: right; cursor: pointer; border: 0; background: transparent; font-size: 22px; color: var(--texto-tenue); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 48px 0 90px; }
  section.block { padding: 56px 0; }
}
