/* ==========================================================================
   Opesia Capital · Estilos
   Colores de marca: #103F32 (verde), #80CDA5 (menta), #667E70 (salvia)
   ========================================================================== */

/* ---------- Tipografías (servidas desde el propio sitio, sin cookies ni terceros) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --green: #103F32;
  --green-deep: #0B2D24;
  --green-700: #1A5443;
  --mint: #80CDA5;
  --mint-light: #9ADBB8;
  --mint-dark: #2F7A57;
  --mint-soft: #E3F2E9;
  --sage: #667E70;
  --sage-text: #5E7567; /* salvia algo más oscura para texto pequeño (contraste AA) */
  --muted: #55695D;
  --ink: #17302A;
  --paper: #F5F4EF;
  --line: #DCE3DE;
  --white: #FFFFFF;

  --display: "Plus Jakarta Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(16, 63, 50, .06), 0 18px 40px -18px rgba(16, 63, 50, .25);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;
  --section-y: clamp(72px, 10vw, 128px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--green);
}

h2 { font-size: clamp(2rem, 3.8vw, 3.15rem); margin: 14px 0 22px; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.muted { color: var(--muted); }

/* Marcador visible de datos pendientes de completar */
.pendiente {
  display: inline-block;
  background: #FFF1BF;
  color: #5E4A00;
  padding: 0 .4em;
  border-radius: 4px;
  font-size: .95em;
  font-weight: 500;
}

/* ---------- Etiquetas (eyebrow) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  margin: 0;
  font: 600 .78rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint-dark);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--light,
.section-dark .eyebrow { color: var(--mint); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 15px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 600 .98rem/1.1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.btn:hover .chev { transform: translateX(3px); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }

.btn-ghost { background: transparent; color: var(--green); border-color: #C9D4CD; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-mint { background: var(--mint); color: var(--green-deep); }
.btn-mint:hover { background: var(--mint-light); color: var(--green-deep); }

.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -22px rgba(16, 63, 50, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font: 700 1.32rem/1 var(--sans);
  letter-spacing: .045em;
  color: var(--green);
}
.brand-sub {
  margin-top: 6px;
  padding-left: .1em;
  font: 500 .6rem/1 var(--sans);
  letter-spacing: .52em;
  color: var(--sage-text);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.btn) {
  position: relative;
  padding: 8px 0;
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(128, 205, 165, .16), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.hero h1 {
  margin: 22px 0 26px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint-dark);
}

.lead {
  max-width: 33em;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--green);
}
.hero-flow li { display: inline-flex; align-items: center; }
.hero-flow li + li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin: 0 18px 0 14px;
  border-top: 2px solid var(--mint-dark);
  border-right: 2px solid var(--mint-dark);
  transform: rotate(45deg);
}

.hero-visual {
  position: relative;
  border-radius: 32px;
  background: var(--green);
  overflow: hidden;
  box-shadow: 0 50px 90px -48px rgba(16, 63, 50, .65);
  aspect-ratio: 560 / 620;
}
.hero-visual svg { width: 100%; height: 100%; }

/* Entrada suave del hero (sin depender de JavaScript) */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin-bottom: 0; }
.section-head > p { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

/* Qué hacemos */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split > div:first-child > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.value-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.value-card h3 { margin-bottom: 26px; font-size: 1.45rem; }

.check-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
  color: var(--muted);
  font-size: .99rem;
  line-height: 1.55;
}
.check-list strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
  color: var(--green);
  font-size: 1.04rem;
}
.check-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green);
}
.check-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cómo trabajamos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: var(--white);
  font: 700 1rem/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--green);
}
.step--last .step-num { background: var(--green); color: var(--mint); }
.step-line {
  position: relative;
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--green), #B9C7BF);
}
.step-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--mint-dark);
  border-right: 2px solid var(--mint-dark);
  transform: translateY(-50%) rotate(45deg);
}
.step h3 { margin-bottom: 10px; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* Destinos (fondo verde) */
.section-dark {
  background: var(--green);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .section-head > p { color: rgba(255, 255, 255, .74); }
.section-dark::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, .035);
  pointer-events: none;
}
.section-dark .container { position: relative; }

.destinos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.destino {
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  transition: background-color .25s ease, border-color .25s ease;
}
.destino:hover { background: rgba(255, 255, 255, .08); border-color: rgba(128, 205, 165, .45); }
.destino h3 { margin: 26px 0 14px; font-size: clamp(1.7rem, 2.6vw, 2.15rem); }
.destino p { font-size: 1.04rem; max-width: 32em; }
.destino-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(128, 205, 165, .14);
}
.destino-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tipos de inmueble */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.type-card {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.type-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.type-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--mint-soft);
}
.type-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.type-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.type-card p { color: var(--muted); font-size: .98rem; }

/* Vender / alquilar */
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
}
.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-card h3 {
  margin: 18px 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  text-wrap: balance;
}
.cta-card > p:not(.eyebrow) { max-width: 30em; font-size: 1.04rem; }
.cta-card .btn { margin-top: auto; position: relative; z-index: 1; }
.cta-card > p:not(.eyebrow),
.cta-card .chips { margin-bottom: 32px; }

.cta-card--primary { background: var(--green); color: rgba(255, 255, 255, .8); }
.cta-card--primary h3 { color: var(--white); }
.cta-card--secondary { background: var(--white); border: 1px solid var(--line); color: var(--muted); }

.cta-deco {
  position: absolute;
  right: -8px;
  bottom: -26px;
  width: 150px;
  height: auto;
  fill: none;
  stroke: var(--mint);
  stroke-opacity: .14;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .87rem;
  color: rgba(255, 255, 255, .9);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-grid h2 { margin-bottom: 18px; }

.contact-list {
  display: grid;
  gap: 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-soft);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-label {
  display: block;
  margin-bottom: 2px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.copy-btn {
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: 600 .75rem/1.4 var(--sans);
  color: var(--green);
  cursor: pointer;
  vertical-align: 1px;
  transition: border-color .2s ease, background-color .2s ease;
}
.copy-btn:hover { border-color: var(--green); }
.copy-btn.is-copied { background: var(--mint-soft); border-color: var(--mint); }
.form-status a { font-weight: 600; }

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  margin-bottom: 26px;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23103F32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8A9A90; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(128, 205, 165, .35);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B3412A; }

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: .94rem !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-weight: 500; font-size: .96rem; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--mint-dark); }
.form-status.is-error { color: #A3341F; }

.legal-note {
  margin-top: 20px;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}
.legal-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer {
  padding: 80px 0 32px;
  background: var(--green-deep);
  color: rgba(255, 255, 255, .7);
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { max-width: 24em; margin-top: 22px; }
.brand--light .brand-name { color: var(--white); }
.brand--light .brand-sub { color: #9DB5A7; }
.brand--light .brand-mark rect { stroke: rgba(255, 255, 255, .14); stroke-width: 3; }

.footer-title {
  margin: 0 0 18px;
  font: 600 .76rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section-y); }
.legal .container { max-width: 820px; }
.legal h1 { margin: 18px 0 14px; font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 40px; }
.legal h2 { margin: 2.2em 0 .7em; font-size: 1.55rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0 0 1em;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--paper);
}
.legal dt { font-weight: 600; color: var(--green); }
.legal dd { margin: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Animación al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .types-grid .reveal:nth-child(2), .destinos-grid .reveal:nth-child(2), .cta-grid .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .types-grid .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4), .types-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  /* absolute (no fixed): el backdrop-filter de la cabecera crea un nuevo bloque contenedor */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) 32px;
    background: var(--white);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-open { overflow: hidden; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--green);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 24px; width: 100%; padding: 16px; font-size: 1rem; }

  .hero-grid,
  .split,
  .destinos-grid,
  .cta-grid,
  .contact-grid,
  .section-head { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
  .section-head { align-items: start; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-flow { font-size: .9rem; }
  .hero-flow li + li::before { margin: 0 12px 0 8px; }
  .types-grid,
  .steps,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
  .cta-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- hCaptcha ---------- */
.captcha-box { min-height: 78px; }
.captcha-box:empty::before {
  content: "La verificación antispam aparecerá aquí al empezar a rellenar el formulario.";
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 0 16px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  font-size: .86rem;
  color: var(--muted);
}
.captcha-box.is-loading:empty::before { content: "Cargando verificación antispam…"; }
