/* ---------- Tokens ---------- */
:root {
  --green-900: #1f2d24;
  --green-800: #2b3d31;
  --green-700: #3a5341;
  --green-600: #4c6b53;
  --sand-100: #f6f2ea;
  --sand-200: #ece4d6;
  --sand-300: #ddd0ba;
  --paper: #fbfaf7;
  --ink: #24261f;
  --ink-soft: #5b5e54;
  --line: #e2dccf;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.wrap--split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}
.section--muted { background: var(--sand-100); }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--green-900); }
.section__head--center { text-align: center; max-width: 620px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.section__head--center .eyebrow { }
.section__head-text { margin-top: 1.25rem; color: var(--ink-soft); }
.section__body p + p { margin-top: 1.1rem; }
.section__body p { color: var(--ink-soft); font-size: 1.02rem; }
.section__body strong { color: var(--ink); font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.nav__mark { display: inline-flex; color: var(--green-600); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
}

/* scrolled state */
.nav.is-scrolled {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__brand { color: var(--green-900); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--green-900); }
.nav.is-scrolled .nav__cta { border-color: var(--green-700); color: var(--green-800); }
.nav.is-scrolled .nav__toggle span { background: var(--green-900); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 30, 24, 0.72) 0%, rgba(20, 30, 24, 0.55) 45%, rgba(20, 30, 24, 0.8) 100%),
    radial-gradient(120% 90% at 80% 10%, #55704f 0%, #33482f 45%, #1c2a1d 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 64px);
  opacity: 0.6;
}
.hero__content {
  position: relative;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 5vw, 3rem) 5rem;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 500;
  max-width: 12ch;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
}
.hero__facts {
  display: flex;
  gap: 3rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 440px;
}
.fact { display: flex; flex-direction: column; gap: 0.25rem; }
.fact__num { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.fact__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.hero__actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--green-700); color: var(--white); }
.btn--solid:hover { background: var(--green-800); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Features ---------- */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--sand-100);
  padding: 2.25rem 1.9rem;
}
.section:not(.section--muted) .feature { background: var(--paper); }
.feature h3 {
  font-size: 1.3rem;
  color: var(--green-800);
  margin-bottom: 0.6rem;
}
.feature p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Price card ---------- */
.price-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-card__main {
  background: var(--green-800);
  color: var(--white);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.price-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.price-card__value {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 500;
}
.price-card__note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

.calc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  gap: 1.25rem;
}
.calc__field { display: flex; flex-direction: column; gap: 0.55rem; }
.calc__field > span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.calc__input {
  display: flex;
  align-items: center;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding-right: 0.9rem;
}
.calc__input:focus-within { outline: 2px solid var(--green-600); outline-offset: -1px; }
.calc__input input,
.calc__input select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  -moz-appearance: textfield;
}
.calc__input select { cursor: pointer; }
.calc__input input::-webkit-outer-spin-button,
.calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input input:focus, .calc__input select:focus { outline: none; }
.calc__unit {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.calc__note {
  margin-top: -0.35rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.calc__range {
  width: 100%;
  accent-color: var(--green-700);
  cursor: pointer;
}

.calc__results { display: flex; flex-direction: column; }
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.calc__row:last-child { border-bottom: none; }
.calc__row em {
  font-style: normal;
  font-size: 0.82em;
  letter-spacing: 0.04em;
  color: var(--green-600);
}
.calc__row > span:last-child {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc__row--total { padding-top: 0; color: var(--ink); }
.calc__row--total > span:last-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--green-800);
}
.calc__row--month > span:last-child {
  font-weight: 600;
  color: var(--green-800);
}

.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Plano viewer ---------- */
.plano { margin: 0; }
.plano__viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 2835 / 2004;
  max-height: 78vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand-100);
  touch-action: none;
  cursor: grab;
}
.plano__viewer.is-panning { cursor: grabbing; }
.plano__viewer.is-ready { cursor: grab; }
.plano__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.plano__stage svg {
  display: block;
  width: 100%;
  height: 100%;
}
.plano__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--sand-100);
  text-align: center;
  padding: 1rem;
}
.plano__status[hidden] { display: none; }
.plano__controls {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 36, 0.12);
}
.plano__controls button {
  border: none;
  background: var(--paper);
  color: var(--green-800);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.8rem;
  min-width: 40px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.plano__controls button:hover { background: var(--sand-100); }
.plano__controls button:focus-visible { outline: 2px solid var(--green-600); outline-offset: -2px; }
.plano__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.plano__caption a {
  color: var(--green-800);
  border-bottom: 1px solid var(--green-600);
  padding-bottom: 1px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .plano__stage { will-change: auto; }
}

/* ---------- Dot list / links ---------- */
.dot-list { list-style: none; margin-top: 1.5rem; }
.dot-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}
.link-arrow {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-800);
  border-bottom: 1px solid var(--green-600);
  padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }

/* ---------- Contact ---------- */
.section--contact { background: var(--green-900); color: var(--white); border-top-color: var(--green-700); }
.section--contact .eyebrow { color: #9db79b; }
.section--contact h2 { color: var(--white); }
.section--contact .section__head-text { color: rgba(255, 255, 255, 0.75); }
.contact-form-col { display: flex; flex-direction: column; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form[hidden] { display: none; }
.form.is-sending { opacity: 0.55; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #9db79b;
  background: rgba(255, 255, 255, 0.1);
}
.field select option { color: #24261f; }
.field textarea { resize: vertical; }
.form .btn { grid-column: 1 / -1; margin-top: 0.5rem; }
.form__hint {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.form__hint.form__error { color: #f2b8b8; }
.form__hint a { color: inherit; text-decoration: underline; }

/* Honeypot antispam: fuera de pantalla, invisible para personas */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mensaje de gracias tras enviar */
.form-done {
  align-self: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}
.form-done[hidden] { display: none; }
.form-done__title {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.form-done p { color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  border-top: 1px solid var(--green-700);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
}
.footer__text { font-size: 0.9rem; }
.footer__legal { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wrap--split { grid-template-columns: 1fr; gap: 2.5rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--green-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: rgba(255, 255, 255, 0.85); font-size: 1rem; }
  .nav.is-scrolled .nav__links a { color: rgba(255, 255, 255, 0.85); }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__facts { gap: 2rem; }
}
