:root {
  --bg: #090908;
  --bg-2: #11110f;
  --ink: #f4f0e7;
  --muted: #9f9a8f;
  --line: rgba(244, 240, 231, 0.1);
  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, 0.16);
  --wa: #25d366;
  --wa-dark: #128c7e;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rail-w: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1000px 600px at 90% -5%, rgba(212, 165, 116, 0.12), transparent 55%),
    radial-gradient(800px 500px at -5% 40%, rgba(37, 211, 102, 0.05), transparent 45%),
    linear-gradient(180deg, #0c0c0a, var(--bg) 35%, #070706);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: drift 20s var(--ease) infinite alternate;
}
.glow-a {
  width: 320px; height: 320px; top: 10vh; right: 12vw;
  background: rgba(212, 165, 116, 0.35);
}
.glow-b {
  width: 240px; height: 240px; bottom: 20vh; left: 5vw;
  background: rgba(37, 211, 102, 0.12);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-20px, 28px, 0) scale(1.08); }
}

/* —— Right rail progress —— */
.rail {
  position: fixed;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  align-items: stretch;
  gap: 0.85rem;
}
@media (min-width: 1100px) {
  .rail { display: flex; }
}

.rail-track {
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 220px;
}
.rail-fill {
  position: absolute;
  left: 0; top: 0; width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--wa));
  transition: height 0.15s linear;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rail-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.rail-nav a span { font-variant-numeric: tabular-nums; }
.rail-nav a em { font-style: normal; font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 0.8rem; }
.rail-nav a:hover,
.rail-nav a.is-active {
  opacity: 1;
  color: var(--ink);
  transform: translateX(-2px);
}
.rail-nav a.is-active { color: var(--accent); }

/* —— Header —— */
.top, main, .footer { position: relative; z-index: 1; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(14px);
  background: rgba(9, 9, 8, 0.72);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { border-bottom-color: var(--line); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--accent-soft), transparent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo-mark.sm { width: 2rem; height: 2rem; flex-shrink: 0; }
.logo-text { font-size: 0.95rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: #062812 !important;
  background: var(--wa);
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { background: #2fe074; transform: translateY(-1px); }

.ico { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* —— Panels / sticky scroll —— */
.panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.panel-hero {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.panel-sticky {
  width: 100%;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .panel-sticky {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.kicker, .eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-hero h1,
.sticky-left h2,
.process-head h2,
.trust-grid h2,
.contact-wrap h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.panel-hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.8rem);
  max-width: 12ch;
}
.panel-hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead, .muted {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-weight: 300;
  max-width: 34rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.trust-row {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-row li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* stage mock */
.hero-stage { perspective: 900px; }
.stage-frame {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #161612, #0e0e0c);
  transform: rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: float 7s var(--ease) infinite alternate;
}
@keyframes float {
  from { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  to { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}
.stage-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.stage-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.stage-bar i:nth-child(1) { background: #e07a6a; }
.stage-bar i:nth-child(2) { background: #d4a574; }
.stage-bar i:nth-child(3) { background: #25d366; }
.stage-bar span {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stage-body { padding: 2.2rem 1.6rem 2.4rem; }
.stage-brand {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.stage-body strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
}
.stage-line {
  margin: 1.4rem 0 1rem;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.stage-dots { display: flex; gap: 0.4rem; }
.stage-dots b {
  display: block;
  width: 2.2rem; height: 0.45rem;
  background: var(--line);
}
.stage-dots b:first-child { background: var(--wa); width: 3rem; }

/* sticky services */
.panel-sticky-stack {
  display: grid;
  gap: 2rem;
  align-items: start;
  min-height: 120vh;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 900px) {
  .panel-sticky-stack {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
  .sticky-left {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}
.sticky-left h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}
.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--wa);
  font-weight: 550;
  font-size: 0.95rem;
}
.link-wa:hover { color: #4ae07f; }

.sticky-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.svc {
  padding: 1.5rem 1.35rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc:hover {
  background: rgba(212, 165, 116, 0.05);
  border-top-color: rgba(212, 165, 116, 0.35);
}
.svc span {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.svc h3 { margin: 0 0 0.45rem; font-size: 1.2rem; font-weight: 600; }
.svc p { margin: 0; color: var(--muted); font-weight: 300; font-size: 0.95rem; }

/* process */
.panel-process { padding-block: 5.5rem; border-block: 1px solid var(--line); }
.process-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); max-width: 14ch; }
.process-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .process-list { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.process-list li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.process-list strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}
.process-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.92rem;
}

/* trust / legal */
.panel-trust { padding-block: 5.5rem; }
.trust-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
}
.trust-grid h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }

.legal-card {
  margin: 0;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 1rem;
}
.legal-card > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.legal-card > div:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-card dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-card dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

/* contact */
.panel-contact { padding-bottom: 5rem; }
.contact-wrap {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
}
.contact-wrap h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }

.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.chip-wa, .chip-mail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.chip-wa { border-color: rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.06); }
.chip-wa:hover, .chip-mail:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 240, 231, 0.25);
}
.chip-wa .ico { width: 1.6rem; height: 1.6rem; color: var(--wa); }
.chip-mail .ico { width: 1.4rem; height: 1.4rem; color: var(--accent); }
.chip-wa strong, .chip-mail strong { display: block; font-size: 1rem; }
.chip-wa small, .chip-mail small { color: var(--muted); font-size: 0.8rem; }

.form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.85);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.4rem; }
.field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(212, 165, 116, 0.55);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #e07a6a;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:focus-visible,
.rail-nav a:focus-visible,
.chip-wa:focus-visible,
.chip-mail:focus-visible,
.fab-wa:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-wa {
  background: var(--wa);
  color: #062812;
}
.btn-wa:hover {
  background: #2fe074;
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(244, 240, 231, 0.35);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6.5rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.footer-top > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.footer-top strong { font-size: 1rem; }
.footer-top p {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-legal p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.footer-legal strong { color: var(--ink); font-weight: 550; }
.footer-legal .copy {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* FAB WhatsApp */
.fab-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: var(--wa);
  color: #062812;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(18, 140, 126, 0.45);
  animation: pulse 2.8s var(--ease) infinite;
}
.fab-wa svg { width: 1.55rem; height: 1.55rem; }
.fab-wa:hover { background: #2fe074; transform: translateY(-2px); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(18, 140, 126, 0.4); }
  50% { box-shadow: 0 12px 48px rgba(37, 211, 102, 0.65); }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .fab-wa span { display: none; }
  .fab-wa {
    width: 56px; height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .stage-frame { transform: none; animation: none; }
  .panel-sticky-stack { min-height: auto; }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.delay { transition-delay: 0.12s; }
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
