/* ===========================================================
   Lexterra · Digital Nomad Visa — boutique minimalist redesign
   Self-contained stylesheet (independent from the main site)
   =========================================================== */
:root {
  --navy: #16263f;
  --navy-deep: #0e1b2e;
  --ink: #1d2a3d;
  --gold: #9d8344;
  --gold-soft: #b89a5e;
  --cream: #faf7f1;
  --cream-2: #f2ece1;
  --paper: #fffdf9;
  --muted: #6b7280;
  --line: rgba(22, 38, 63, 0.14);
  --line-soft: rgba(22, 38, 63, 0.08);
  --wrap: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
.serif-i { font-style: italic; color: var(--gold); }

/* Section labels: 01 / The visa */
.label { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.label::before { content: attr(data-num); font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0; color: var(--navy); opacity: 0.5; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 90px; }

.eyebrow { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }

/* Buttons / links */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 16px 30px; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; transition: background 0.35s ease, color 0.35s ease, border-color 0.35s; }
.btn:hover { background: var(--navy); color: var(--cream); }
.btn--solid { background: var(--navy); color: var(--cream); }
.btn--solid:hover { background: var(--navy-deep); }
.btn--block { width: 100%; justify-content: center; }
.linkarrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: gap 0.3s ease, color 0.3s; }
.linkarrow:hover { gap: 15px; color: var(--gold); }

/* Header */
.head { position: sticky; top: 0; z-index: 50; transition: background 0.4s ease, border-color 0.4s, box-shadow 0.4s; border-bottom: 1px solid transparent; }
.head.is-scrolled { background: rgba(250, 247, 241, 0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }
.head__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.head__logo { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); transition: color 0.25s; }
.menu a:hover { color: var(--gold); }
.menu__cta { color: var(--gold) !important; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.menu__es { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted) !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 1.5px; background: var(--navy); }

/* Hero */
.hero { padding: 92px 0 64px; position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) saturate(0.85); opacity: 0.6; }
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(125% 95% at 0% 0%, rgba(250,247,241,0.94) 0%, rgba(250,247,241,0.55) 55%, rgba(250,247,241,0.35) 100%),
    linear-gradient(180deg, rgba(250,247,241,0.55) 0%, rgba(250,247,241,0.45) 42%, rgba(250,247,241,0.86) 100%); }
.hero__eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 300; max-width: 14ch; }
.hero__rule { width: 64px; height: 1px; background: var(--gold); margin: 36px 0; }
.hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; font-weight: 400; }
.hero__cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 42px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 84px; border-top: 1px solid var(--line); }
.hstat { padding: 30px 28px 0 0; }
.hstat + .hstat { padding-left: 36px; border-left: 1px solid var(--line); }
.hstat__n { font-family: var(--serif); font-size: 2.3rem; font-weight: 300; color: var(--navy); }
.hstat__t { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Generic section */
.sec { padding: 104px 0; border-top: 1px solid var(--line-soft); }
.sec--cream2 { background: var(--cream-2); }
.sec--navy { background: var(--navy); color: rgba(255,255,255,0.82); border-top: none; }
.sec--navy h2, .sec--navy h3 { color: #fff; }
.sec--navy .label { color: var(--gold-soft); }
.sec--navy .label::before { color: #fff; }
.sec--navy .label::after { background: rgba(255,255,255,0.2); }
.sec__head { max-width: 720px; }
.sec__head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 300; }
.sec__head p { color: var(--muted); margin-top: 20px; font-size: 1.08rem; }
.sec--navy .sec__head p { color: rgba(255,255,255,0.7); }

/* Benefit list (editorial, hairline rows) */
.blist { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.brow { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.brow__n { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); padding-top: 2px; }
.brow h3 { font-size: 1.4rem; font-weight: 400; }
.brow p { color: var(--muted); margin-top: 8px; font-size: 1rem; }

/* Eligibility */
.elig { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; margin-top: 56px; align-items: start; }
.checks { display: grid; gap: 20px; }
.checks li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.checks li::before { content: "✦"; color: var(--gold); font-size: 0.9rem; line-height: 1.7; }
.checks strong { color: var(--navy); font-weight: 600; }
.income { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 38px 34px; }
.income__k { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.income__n { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; color: var(--navy); margin: 10px 0 2px; line-height: 1.05; }
.income__sub { color: var(--muted); font-size: 0.95rem; }
.income__rows { margin: 24px 0 0; display: grid; gap: 12px; }
.income__rows div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.income__rows b { color: var(--navy); font-family: var(--serif); font-weight: 500; }
.income__note { font-size: 0.78rem; color: var(--muted); margin-top: 20px; line-height: 1.5; }

/* Services — refined columns */
.svc-groups { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.svc-group h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.svc-group ul { list-style: none; margin-top: 8px; }
.svc-group li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.svc-group li b { display: block; font-family: var(--serif); font-size: 1.18rem; font-weight: 400; color: var(--navy); }
.svc-group li span { color: var(--muted); font-size: 0.92rem; }

/* Process steps */
.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pstep { padding: 0 28px; border-left: 1px solid rgba(255,255,255,0.16); }
.pstep:first-child { padding-left: 0; border-left: none; }
.pstep__n { font-family: var(--serif); font-style: italic; font-size: 2.4rem; font-weight: 300; color: var(--gold-soft); }
.pstep h3 { font-size: 1.3rem; font-weight: 400; margin: 16px 0 10px; }
.pstep p { color: rgba(255,255,255,0.66); font-size: 0.96rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: start; }
.contact__list { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.contact__list li { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
.contact__list a:hover { color: var(--gold); }
.form { display: grid; gap: 26px; }
.f { position: relative; }
.f label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f input, .f textarea { width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; font: inherit; color: var(--navy); border-radius: 0; transition: border-color 0.3s; }
.f input::placeholder, .f textarea::placeholder { color: #aeb4bd; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: var(--gold); }
.f textarea { resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.formnote { font-size: 0.95rem; font-weight: 600; color: #1a7f4b; }

/* FAQ */
.faq { margin-top: 52px; max-width: 820px; }
.q { border-top: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 26px 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--navy); }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--gold); transition: transform 0.3s; }
.q[open] summary::after { transform: rotate(45deg); }
.q p { color: var(--muted); padding: 0 0 28px; max-width: 70ch; }

/* Footer */
.foot { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 56px 0; }
.foot__in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; font-size: 0.86rem; }
.foot__logo { height: 30px; margin-bottom: 14px; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a:hover { color: #fff; }

/* Floating WhatsApp */
.wa { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(14,27,46,0.3); transition: transform 0.3s, background 0.3s; }
.wa:hover { transform: translateY(-3px); background: var(--gold); }

/* Cookie banner */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; background: var(--paper); border: 1px solid var(--line); padding: 20px 24px; box-shadow: 0 18px 50px rgba(14,27,46,0.16); }
.cookie[hidden] { display: none; }
.cookie__in { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cookie__t { flex: 1; min-width: 240px; font-size: 0.86rem; color: var(--muted); }
.cookie__t a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.cookie__b { display: flex; gap: 10px; }
.cookie__b .btn { padding: 11px 22px; }

/* Symbolic icons */
.ico { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* Tiles (hairline-separated, icon-led) */
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--cream); padding: 42px 32px; display: flex; flex-direction: column; gap: 16px; transition: background 0.4s ease; }
.sec--cream2 .tile { background: var(--cream-2); }
.tile:hover { background: var(--paper); }
.tile h3 { font-size: 1.28rem; font-weight: 400; }
.tile p { color: var(--muted); font-size: 0.9rem; }

/* Image band */
.band { position: relative; min-height: 62vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,46,0.5) 0%, rgba(14,27,46,0.62) 100%); }
.band__in { position: relative; z-index: 2; max-width: 780px; padding: 56px 32px; color: #fff; }
.band__in .eyebrow { color: var(--gold-soft); }
.band__in h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 300; margin-top: 18px; }
.band__in p { color: rgba(255,255,255,0.8); margin-top: 18px; font-size: 1.08rem; }
.pstep .ico { stroke: var(--gold-soft); margin-bottom: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 900px) {
  .menu { display: none; }
  .menu.open { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; top: 84px; left: 0; right: 0; background: var(--cream); padding: 26px 32px; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .blist, .elig, .svc-groups, .contact { grid-template-columns: 1fr; gap: 0; }
  .elig, .contact { gap: 48px; }
  .svc-groups { gap: 40px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .pstep { border-left: none; padding: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .sec { padding: 72px 0; }
  .hero { padding: 64px 0 48px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hstat + .hstat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .hero__cta { gap: 20px; }
  .tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   Home additions (shared boutique system)
   ============================================================ */
.lang { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lang a { padding: 2px 5px; }
.lang a.is-active { color: var(--navy); border-bottom: 1px solid var(--gold); }
.lang a:hover { color: var(--gold); }
.lang span { opacity: 0.4; }

/* Two-path doors */
.paths { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(14,27,46,0.10); }
.path { background: var(--paper); padding: 44px 38px; display: flex; flex-direction: column; gap: 14px; transition: background 0.4s ease; }
.path:hover { background: #fff; }
.path__flag { font-size: 1.7rem; }
.path__k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.path h3 { font-size: 1.7rem; font-weight: 400; }
.path p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.path .linkarrow { align-self: flex-start; margin-top: 4px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { text-align: center; max-width: 680px; margin: 0 auto; }
.reviews__stars { color: #c79a3e; font-size: 1.5rem; letter-spacing: 3px; }
.reviews__src { color: var(--muted); margin-top: 8px; }
.reviews__src b { color: var(--navy); }
.reviews__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Office + map */
.office { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 52px; }
.office__list { list-style: none; display: grid; gap: 16px; }
.office__list li { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
.office__list a:hover { color: var(--gold); }
.mapwrap { border: 1px solid var(--line); overflow: hidden; }
.mapwrap iframe { display: block; width: 100%; height: 400px; border: 0; filter: grayscale(0.2) contrast(1.02); }
@media (max-width: 860px) { .office { grid-template-columns: 1fr; gap: 32px; } }
