/* Base compartida: reset, componentes y cierre */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); }
body.site {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:where(.site) :where(img) { max-width: 100%; }
:where(.site) :where(h1, h2, h3, h4, p) { margin: 0; }
:where(.site) :where(a) { color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--c-ink); color: var(--c-paper); font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }

.site {
  --muted: rgba(var(--c-ink-rgb), .68);
  --line: rgba(var(--c-ink-rgb), .12);
  --section-y: clamp(80px, 10vw, 128px);
  --gutter: clamp(20px, 6vw, 96px);
}

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: var(--section-y) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px/1 "Montserrat", sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-ink); color: var(--c-paper); }
.btn-primary:hover { background: var(--c-warm); color: var(--c-ink); }
.btn-ghost { border-color: rgba(var(--c-ink-rgb), .24); color: var(--c-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--c-ink); background: rgba(var(--c-ink-rgb), .05); }
.btn-light { background: var(--c-paper); color: var(--c-ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(var(--c-paper-rgb), .4); color: var(--c-paper); }
.btn-outline-light:hover { border-color: var(--c-paper); background: rgba(var(--c-paper-rgb), .08); }
.site a:focus-visible, .site button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* Aparición al hacer scroll (solo si hay JS) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Cierre */
.closing { padding: 0 0 var(--section-y); }
.closing-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 28px;
  padding: clamp(36px, 6vw, 88px);
  border-radius: clamp(28px, 4vw, 44px);
  color: var(--c-paper);
  background:
    radial-gradient(60% 70% at 100% 100%, rgba(var(--c-warm-rgb), .34), transparent 70%),
    linear-gradient(135deg, #002031 0%, #07405a 55%, #0b5f82 100%);
}
.closing-card::before, .closing-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(var(--c-warm-rgb), .28); }
.closing-card::before { width: 520px; height: 520px; right: -120px; top: -160px; }
.closing-card::after { width: 340px; height: 340px; right: 40px; bottom: -190px; }
.closing-card .h2 { max-width: 16ch; }
.closing-card p { max-width: 52ch; color: rgba(var(--c-paper-rgb), .78); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }


@media (max-width: 560px) {
  .actions .btn, .closing-actions .btn { width: 100%; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
