/* ERCI · Estudia en España
   Layout: left-aligned editorial pages that alternate deep-navy "ocean" bands with cool paper bands;
   the hummingbird and the Atlantic route are the recurring motif. */
:root {
  /* Brand */
  --navy: #003376;          /* logo navy */
  --navy-deep: #001c44;
  --green: #337600;         /* logo green */
  --leaf: #8cc63f;          /* green that reads on navy */
  /* Surfaces & text (light) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --fg: #0c1b33;
  --muted: #4d5d78;
  --line: #d5deeb;
  --brand: #003376;         /* headings / links on bg */
  --accent: #337600;        /* primary actions */
  --on-accent: #ffffff;
  --band: #003376;          /* navy bands */
  --band-2: #002a61;
  --band-fg: #ffffff;
  --band-muted: #bdd0ec;
  --band-line: rgba(255,255,255,.16);
  --shadow: 0 1px 2px rgba(0,28,68,.06), 0 12px 32px -12px rgba(0,28,68,.22);
  --focus: #2f7de1;
  --hero-top: #eaf2fd;
  --hero-bot: #f7faff;
  --hero-glow: #d3e3f9;

  /* Type */
  --font-display: "Marcellus", "Trajan Pro", "Optima", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.2vw, 3.1rem);
  --step-5: clamp(2.4rem, 1.2rem + 5vw, 4.4rem);

  /* Space */
  --gutter: max(clamp(16px, 4.5vw, 44px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4.5vw, 44px), env(safe-area-inset-right, 0px));
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}
:root[data-theme="dark"] {
  --hero-top: #0b1f3d; --hero-bot: #071830; --hero-glow: #143565;
  --bg: #061429; --surface: #0b1f3d; --surface-2: #10294d; --fg: #e8eef8; --muted: #a3b4cf;
  --line: #1f3a63; --brand: #b9d0f5; --accent: #8cc63f; --on-accent: #0b1f05;
  --band: #082451; --band-2: #0a2c60; --band-fg: #ffffff; --band-muted: #b6c8e6; --band-line: rgba(255,255,255,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6); --focus: #8fb8ff;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--fg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band { background: var(--band); color: var(--band-fg); position: relative; isolation: isolate; }
.band a:not(.btn) { color: var(--band-fg); }
.band .lede, .band .muted { color: var(--band-muted); }
.surface-2 { background: var(--surface-2); }

.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.kicker { font-weight: 600; color: var(--accent); font-size: var(--step-0); margin-bottom: .9rem; display: block; }
.band .kicker { color: var(--leaf); }
.head { display: grid; gap: 1rem; max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head p { max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg); font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--b-bg) 80%, transparent);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn--ghost { --b-bg: transparent; --b-fg: var(--brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.band .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost, .route .btn--ghost { --b-fg: #ffffff; }
.btn--light { --b-bg: #ffffff; --b-fg: #003376; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, box-shadow .35s, transform .35s var(--ease);
  color: var(--fg);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--fg); }
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.brand .logo-white { display: none; }
:root[data-theme="dark"] .brand .logo-white { display: block; }
:root[data-theme="dark"] .brand .logo-color { display: none; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; padding: .5rem .8rem; border-radius: 999px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: .6rem; }
.nav .only-mobile { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; margin-right: -8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 961px) and (max-width: 1180px) {
  .site-header .wrap { gap: 1rem; }
  .nav a:not(.btn) { padding: .5rem .55rem; font-size: .96rem; white-space: nowrap; }
  .nav a:not(.btn)::after { left: .55rem; right: .55rem; }
  .nav .btn { white-space: nowrap; padding-inline: 1.1rem; margin-left: .3rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav .only-mobile { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gutter);
    background: var(--navy-deep); color: #fff;
    clip-path: circle(0% at calc(100% - 40px) 34px); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s linear .6s;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem); padding: .3rem 0; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s var(--ease); }
  .nav a:not(.btn)::after { left: 0; right: auto; width: 2.2rem; bottom: .25rem; background: var(--leaf); }
  .menu-open .nav a:not(.btn) { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; } .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .menu-open .nav a:nth-child(6) { transition-delay: .25s; } .menu-open .nav a:nth-child(7) { transition-delay: .3s; }
  .nav .btn { margin: 1.4rem 0 0; --b-bg: #ffffff !important; --b-fg: #003376 !important; }
  .menu-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .site-header .brand .logo-white { display: block; position: relative; z-index: 2; }
  .menu-open .site-header .brand .logo-color { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Page hero (all pages) ---------- */
.hero {
  background: radial-gradient(120% 90% at 85% 10%, #0a4a9c 0%, transparent 55%), var(--band);
  color: var(--band-fg); position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.hero .lede { color: var(--band-muted); }
.hero__grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.hero__grid-lines path { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; }
.hero--page h1 { max-width: 16ch; }
.hero--page .lede { margin-top: 1.4rem; }
.hero--page .hero__bird { position: absolute; right: max(-60px, -4vw); bottom: -40px; width: min(44vw, 460px); opacity: .1; z-index: -1; transform: rotate(-8deg); }
.crumbs { display: flex; gap: .5rem; font-size: var(--step--1); color: var(--band-muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--band-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* Home hero */
.hero--home { padding-bottom: 0; }
.hero-home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-lines { font-size: clamp(2.1rem, 1rem + 3vw, 3.45rem); line-height: 1.1; display: grid; gap: .08em; }
.hero-lines > .ln, .hero-lines > .ln > span { display: block; }
.hero-lines > .last { color: var(--leaf); margin-top: .25em; }
.hero-home .lede { margin-top: 1.6rem; }
.hero-home .btn-row { margin-top: 2rem; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.hero-art .ring--2 { inset: 16%; border-style: solid; border-color: rgba(255,255,255,.08); }
.hero-art .bird { width: 78%; position: relative; filter: drop-shadow(0 30px 40px rgba(0,10,40,.45)); }
.hero-art .orbit { position: absolute; inset: 4%; border-radius: 50%; }
.hero-art .orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 6px rgba(140,198,63,.18); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--band-line); }
.fact { padding: 1.6rem 1.5rem 1.8rem 0; display: grid; gap: .25rem; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--band-line); }
.fact b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--band-muted); font-size: .98rem; }

@media (max-width: 860px) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(62vw, 300px); margin-inline: auto 0; margin-bottom: -1rem; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 1.1rem 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--band-line); }
}

/* Load sequence for hero lines */
@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes birdIn { from { opacity: 0; transform: translate(-40px, 30px) scale(.9) rotate(-10deg); } to { opacity: 1; transform: none; } }
/* Titular: cada línea sube desde detrás de una máscara */
@keyframes lineUp { from { transform: translateY(125%); } to { transform: none; } }
.motion .hero-lines > .ln { overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.motion .hero-lines > .last { padding-bottom: .34em; margin-bottom: -.34em; }
.motion .hero-lines > .ln > span { animation: lineUp 1.1s var(--ease) both; }
.motion .hero-lines > .ln:nth-child(1) > span { animation-delay: .12s; }
.motion .hero-lines > .ln:nth-child(2) > span { animation-delay: .32s; }
.motion .hero-lines > .ln:nth-child(3) > span { animation-delay: .52s; }
.motion .hero-lines > .ln:nth-child(4) > span { animation-delay: .95s; }
.motion .hero-home .after-lines { animation: rise .9s var(--ease) 1.45s both; }
.motion .hero-art .bird-wrap { animation: birdIn 1.2s var(--ease) .2s both; }
.motion .hero-art .bird { animation: hover 6s ease-in-out 1.4s infinite; }
.motion .hero-art .orbit { animation: spin 28s linear infinite; }
.motion .hero-art .ring { animation: spin 90s linear infinite; }
.motion .hero--page h1, .motion .hero--page .lede, .motion .hero--page .btn-row { animation: rise .9s var(--ease) both; }
.motion .hero--page .lede { animation-delay: .2s; }
.motion .hero--page .btn-row { animation-delay: .35s; }

/* ---------- Reveal on scroll ---------- */
.motion [data-reveal].is-pending { opacity: 0; transform: translateY(28px); }
.motion [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Route (story) ---------- */
.route { background: var(--band-2); color: var(--band-fg); overflow: hidden; }
.route-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.route-copy { display: grid; gap: 1.2rem; }
.route-copy p { color: var(--band-muted); max-width: 46ch; }
.route-copy p.strong { color: var(--band-fg); font-size: var(--step-1); }
.route-map { position: relative; }
.route-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-map .grat { fill: none; stroke: rgba(255,255,255,.07); }
.route-map .land { fill: rgba(255,255,255,.08); }
.route-map .latam { fill: rgba(255,255,255,.2); }
.route-map .spain { fill: var(--leaf); }
.route-map .arc { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; stroke-dasharray: 2 5; }
.route-map .arc-main { fill: none; stroke: var(--leaf); stroke-width: 2.6; stroke-linecap: round; }
.route-map .dot { fill: #fff; }
.route-map .dot-main { fill: var(--leaf); }
.route-map .pulse { fill: none; stroke: var(--leaf); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.motion .route-map .pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.route-map .label { fill: #fff; font: 600 17px var(--font-body); paint-order: stroke; stroke: var(--band-2); stroke-width: 5px; stroke-linejoin: round; }
.route-map .label--sm { font-size: 13px; font-weight: 500; fill: var(--band-muted); }
.route-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; color: var(--band-muted); font-size: var(--step--1); }
.route-legend i { display: inline-block; width: 22px; height: 0; border-top: 2.6px solid var(--leaf); vertical-align: middle; margin-right: .5rem; border-radius: 2px; }
.route-legend i.dash { border-top: 1.5px dashed rgba(255,255,255,.5); }
@media (max-width: 860px) { .route-grid { grid-template-columns: 1fr; } .route-map { margin-inline: calc(var(--gutter) * -0.5); } }
@media (max-width: 600px) { .route-map .label { font-size: 30px; stroke-width: 8px; } .route-map .label--sm { display: none; } .route-map .dot { r: 5; } }

/* ---------- Reasons ---------- */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__aside { position: static; } }
.reasons { list-style: none; display: grid; }
.reason { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: start; }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.reason:hover .ico { transform: rotate(-8deg) scale(1.06); background: var(--accent); color: var(--on-accent); }
.reason .ico svg { width: 26px; height: 26px; }
.reason h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.reason p { color: var(--muted); }

/* ---------- Paths (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; position: relative; }
.tab { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 1rem var(--font-body); padding: .75rem 1.3rem; border-radius: 999px; cursor: pointer; transition: color .3s; min-height: 46px; }
.tab[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: .4rem; bottom: .4rem; left: 0; width: 0; border-radius: 999px; background: var(--navy); transition: left .45s var(--ease), width .45s var(--ease), top .45s var(--ease), height .45s var(--ease); }
:root[data-theme="dark"] .tab-ink { background: #1d4f9a; }
@media (max-width: 560px) { .tabs { border-radius: 22px; width: 100%; } .tab { flex: 1 1 auto; } }

.panel-tab { margin-top: 2rem; }
.panel-tab[hidden] { display: none; }
.motion .panel-tab:not([hidden]) { animation: rise .6s var(--ease) both; }
.path-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.path-card h3 { font-size: var(--step-3); margin-bottom: 1rem; }
.path-card .desc { display: grid; gap: 1rem; color: var(--muted); align-content: start; }
.path-card .desc .link-arrow { margin-top: .5rem; }
@media (max-width: 760px) { .path-card { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding-bottom: 1.4rem; position: relative; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem var(--font-body); background: var(--surface-2); color: var(--brand); border: 1.5px solid var(--line); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.steps b { display: block; font-weight: 600; color: var(--fg); padding-top: .55rem; }
.steps span { color: var(--muted); font-size: .97rem; }

/* ---------- Testimonials marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding-block: .5rem 1.5rem; }
.marquee__track { display: flex; gap: 1.2rem; width: max-content; }
.marquee__set { display: flex; gap: 1.2rem; }
html:not(.motion) .marquee { mask-image: none; -webkit-mask-image: none; }
html:not(.motion) .marquee__track { width: auto; }
html:not(.motion) .marquee__set { flex-wrap: wrap; justify-content: center; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.motion .marquee__track { animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .6rem)); } }
.quote { width: min(84vw, 360px); flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.2rem; align-content: space-between; box-shadow: var(--shadow); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: .6; color: var(--accent); margin-bottom: .6rem; }
.who { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 .95rem var(--font-body); flex: none; }
.who b { display: block; font-weight: 600; line-height: 1.3; }
.who small { color: var(--muted); font-size: .9rem; }
.quote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1080px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-grid .quote { width: auto; }
.quote--feature { grid-column: 1 / -1; background: var(--band); color: var(--band-fg); border-color: transparent; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.quote--feature blockquote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; }
.quote--feature blockquote::before { color: var(--leaf); }
.quote--feature .who small { color: var(--band-muted); }
.quote--feature img { width: 120px; opacity: .9; }
@media (max-width: 640px) { .quote--feature { grid-template-columns: 1fr; } .quote--feature img { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(90% 120% at 100% 0%, #0b56b3 0%, transparent 60%), var(--band); color: var(--band-fg); overflow: hidden; position: relative; isolation: isolate; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--band-muted); margin-top: 1rem; max-width: 52ch; }
.cta-band .bg-bird { position: absolute; z-index: -1; width: 520px; right: -120px; top: 50%; transform: translateY(-50%) rotate(-12deg); opacity: .08; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9d6ea; padding-block: 4rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
:root[data-theme="dark"] .site-footer { background: #030c1a; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.foot-grid h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; display: grid; gap: .55rem; }
.foot-brand img { width: 210px; margin-bottom: 1.2rem; }
.foot-brand p { max-width: 34ch; font-size: .97rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .25s, transform .25s var(--ease); }
.socials a:hover { background: var(--green); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,40,20,.55);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; }
.motion .wa-float::before { animation: pulse-ring 2.6s ease-out infinite; }
@keyframes pulse-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.wa-float .tip { position: absolute; right: 72px; white-space: nowrap; background: var(--surface); color: var(--fg); padding: .5rem .9rem; border-radius: 10px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.wa-float:hover .tip, .wa-float:focus-visible .tip { opacity: 1; transform: none; }

/* ---------- Values / cards ---------- */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: .7rem; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.value .ico svg { width: 26px; height: 26px; }
.value h3 { font-size: var(--step-2); }
.value p { color: var(--muted); }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.story .prose { display: grid; gap: 1.1rem; font-size: 1.08rem; }
.story .prose p:first-child { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; color: var(--brand); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

.dedication { text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.dedication img { width: 88px; }
.dedication blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.3; max-width: 30ch; }
.dedication p { color: var(--band-muted); max-width: 56ch; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; perspective: 1200px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: 1.3rem; position: relative; transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.plan:hover { box-shadow: var(--shadow); }
.plan--top { background: var(--band); color: var(--band-fg); border-color: transparent; }
.plan.plan--top .plan__note, .plan.plan--top li { color: var(--band-muted); }
.plan.plan--top li svg { color: var(--leaf); }
.plan--top .btn { --b-bg: #ffffff; --b-fg: #003376; }
.plan__name { font-family: var(--font-display); font-size: var(--step-2); }
.plan__price { display: flex; align-items: baseline; gap: .35rem; font-variant-numeric: tabular-nums; }
.plan__price b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; }
.plan__price span { font-weight: 600; }
.plan__note { font-size: .9rem; color: var(--muted); margin-top: -.6rem; }
.plan__pay { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; line-height: 1.4; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding: .65rem .8rem; margin: .2rem 0 .4rem; }
.plan__pay svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; color: var(--accent); }
.plan.plan--top .plan__pay { color: #fff; background: rgba(255,255,255,.1); }
.plan.plan--top .plan__pay svg { color: #a9d27e; }
.plan ul { list-style: none; display: grid; gap: .7rem; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }
.plan li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.plan li.inherit { color: var(--fg); font-weight: 600; }
.plan.plan--top li.inherit { color: #fff; }
.plan .btn { width: 100%; }
.plan .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.12), transparent 40%); opacity: 0; transition: opacity .3s; }
.plan:hover .shine { opacity: 1; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.panel-intro { margin-bottom: 1.8rem; }
.plan-terms { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--muted); font-size: .95rem; }
.plan-terms span { display: inline-flex; gap: .45rem; align-items: center; }
.plan-terms svg { width: 18px; height: 18px; color: var(--accent); }

.free-call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.free-call .ico { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.free-call .ico svg { width: 28px; height: 28px; }
.free-call h3 { font-size: var(--step-2); }
.free-call p { color: var(--muted); }
@media (max-width: 700px) { .free-call { grid-template-columns: 1fr; } }

.share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.share-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: space-between; }
.share-card p { font-weight: 600; line-height: 1.4; }
.share-card .btn-row { gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; min-height: 40px; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--navy); color: #fff; text-decoration: none; }
.chip svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .share { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .share { grid-template-columns: 1fr; } }

/* ---------- Spain map ---------- */
.spain-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.spain-map svg { width: 100%; height: auto; display: block; overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--surface-2) 45%, var(--bg)); }
.spain-map .neigh { fill: var(--surface-2); }
.spain-map .es { fill: var(--navy); }
:root[data-theme="dark"] .spain-map .es { fill: #1b4a90; }
.city { cursor: pointer; outline: none; }
.city circle.pin { fill: #fff; stroke: var(--navy); stroke-width: 2; transition: r .25s var(--ease), fill .25s; }
.city circle.halo { fill: var(--leaf); opacity: 0; transform-box: fill-box; transform-origin: center; }
.city text { font: 600 17px var(--font-body); fill: #fff; opacity: .0; transition: opacity .25s; pointer-events: none; paint-order: stroke; stroke: var(--navy); stroke-width: 5px; stroke-linejoin: round; }
.city:hover text, .city:focus-visible text, .city.is-active text { opacity: 1; }
.city.is-active circle.pin { fill: var(--leaf); r: 10; }
.motion .city.is-active circle.halo { animation: pulse 2s ease-out infinite; opacity: 1; }
.city:focus-visible circle.pin { stroke: var(--focus); stroke-width: 4; }
.city-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: grid; gap: .9rem; }
.city-card h3 { font-size: var(--step-3); }
.city-card ul { list-style: none; display: grid; gap: .5rem; }
.city-card li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: .6rem; }
.city-card li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.city-card .muted { font-size: .97rem; }
.city-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.city-list button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: .4rem .8rem; font: 500 .9rem var(--font-body); cursor: pointer; min-height: 36px; }
.city-list button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.motion .city-card.swap { animation: rise .5s var(--ease) both; }
@media (max-width: 860px) { .spain-wrap { grid-template-columns: 1fr; } }

/* ---------- Glossary flip cards ---------- */
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.flip { perspective: 900px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 168px; display: block; width: 100%; }
.flip__inner { display: block; position: relative; height: 100%; min-height: 168px; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.flip__front { background: var(--surface); border: 1px solid var(--line); }
.flip__front b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--brand); line-height: 1.1; }
.flip__front small { color: var(--muted); font-size: .85rem; display: inline-flex; gap: .4rem; align-items: center; }
.flip__front small svg { width: 16px; height: 16px; }
.flip__back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.flip__back b { font-size: 1.2rem; font-weight: 600; color: var(--leaf); }
.flip__back span { color: #d7e3f5; font-size: .97rem; line-height: 1.45; }
.flip:hover .flip__front { border-color: var(--brand); }

/* ---------- Themes (azulejo panels) ---------- */
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.theme { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: 150px auto; }
.theme__art { position: relative; overflow: hidden; }
.theme__art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.theme:hover .theme__art svg { transform: scale(1.08) rotate(1deg); }
.theme__body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .6rem; }
.theme__body h3 { font-size: var(--step-2); }
.theme__body p { color: var(--muted); font-size: .97rem; }
@media (max-width: 1000px) { .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr; } }

/* ---------- Timeline (recursos) ---------- */
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); position: relative; padding-bottom: 3rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::after { content: ""; position: absolute; left: 35px; top: 72px; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.timeline > li:last-child::after { display: none; }
.timeline .num { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 1.8rem; position: relative; z-index: 1; }
.timeline > li:last-child .num { background: var(--accent); color: var(--on-accent); }
.timeline h3 { font-size: var(--step-3); margin: .8rem 0 1rem; }
.timeline .tl-body { display: grid; gap: 1rem; min-width: 0; }
.timeline .tl-body > p { color: var(--muted); max-width: 62ch; }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 48px minmax(0,1fr); } .timeline .num { width: 48px; height: 48px; font-size: 1.3rem; } .timeline > li::after { left: 23px; top: 48px; } .timeline h3 { margin-top: .4rem; } }
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .8rem; }
.cal div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.cal b { font-weight: 600; }
.cal span { color: var(--muted); font-size: .95rem; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.dl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; text-decoration: none; color: var(--fg); transition: border-color .2s, transform .3s var(--ease); }
.dl:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.dl .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; }
.dl .ico svg, .dl > svg { width: 22px; height: 22px; }
.dl > svg { color: var(--muted); width: 20px; }
.dl b { font-weight: 600; display: block; line-height: 1.3; }
.dl small { color: var(--muted); }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg); transition: box-shadow .3s, transform .4s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.post-card .art { min-height: 220px; position: relative; overflow: hidden; background: var(--navy); }
.post-card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card .body { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .8rem; align-content: center; }
.post-card h3 { font-size: var(--step-3); }
.post-card p { color: var(--muted); }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.5rem); display: grid; gap: 1.2rem; box-shadow: var(--shadow); }
.form h2 { font-size: var(--step-3); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field .err { color: #c62828; font-size: .88rem; min-height: 0; }
:root[data-theme="dark"] .field .err { color: #ff8a80; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.row-phone { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: .6rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form .fine { font-size: .88rem; color: var(--muted); }
.form-done { display: grid; gap: 1rem; background: var(--surface-2); border-radius: 14px; padding: 1.3rem; }
.form-done p { color: var(--fg); }
.channels { display: grid; gap: .8rem; }
.channel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.channel .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.channel .ico svg { width: 24px; height: 24px; }
.channel b { display: block; font-weight: 600; }
.channel a, .channel span.val { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.channel a:hover { color: var(--brand); text-decoration: underline; }
.copy { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: .4rem .8rem; font: 600 .85rem var(--font-body); cursor: pointer; min-height: 38px; }
.copy.ok { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Prose (legal / blog) ---------- */
.prose-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; max-width: 70ch; min-width: 0; }
.prose-page h2 { font-size: var(--step-3); margin-top: 1.6rem; color: var(--brand); }
.prose-page h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-top: .6rem; }
.prose-page ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose-page p, .prose-page li { color: var(--fg); }
.prose-page .meta { color: var(--muted); font-size: .95rem; }
.prose-page blockquote { margin: .5rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: var(--step-1); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 820px; margin-inline: auto; }
.quiz, .quiz-result { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.8rem); position: relative; overflow: hidden; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; min-height: 40px; }
.q-count { color: var(--muted); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.q-back { display: inline-flex; gap: .4rem; align-items: center; border: 0; background: none; color: var(--brand); font: 600 .95rem var(--font-body); cursor: pointer; padding: .4rem .2rem; min-height: 40px; }
.q-back svg { width: 18px; height: 18px; }
.q-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 2rem; }
.q-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--accent)); border-radius: inherit; transition: width .5s var(--ease); }
.q-step h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.q-opts { display: grid; gap: .7rem; }
.q-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: center; text-align: left; width: 100%; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 16px; padding: .9rem 1.1rem; font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.q-opt:hover { border-color: var(--brand); transform: translateX(4px); }
.q-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.q-opt .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; }
.q-opt[aria-pressed="true"] .ico { background: var(--accent); color: var(--on-accent); }
.q-opt .ico svg { width: 22px; height: 22px; }
.q-opt b { display: block; font-weight: 600; line-height: 1.35; }
.q-opt small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: .15rem; }
@keyframes slideInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.q-step.in-right { animation: slideInR .45s var(--ease) both; }
.q-step.in-left { animation: slideInL .45s var(--ease) both; }
.quiz-result { display: grid; gap: 1.4rem; }
.quiz-result.reveal-in { animation: rise .7s var(--ease) both; }
.quiz-result .r-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.quiz-result h2 { font-size: var(--step-4); outline: none; }
.quiz-result .r-sub { color: var(--muted); font-size: var(--step-1); }
.quiz-result .r-bird { width: 110px; }
.motion .quiz-result.reveal-in .r-bird { animation: birdIn 1s var(--ease) .2s both; }
.r-card { background: var(--band); color: var(--band-fg); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; }
.r-card .plan__name { color: #fff; }
.r-card .plan__note { color: var(--band-muted); margin-top: .2rem; }
.r-card ul { list-style: none; display: grid; gap: .6rem; }
.r-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; color: var(--band-muted); line-height: 1.45; }
.r-card li svg { width: 20px; height: 20px; color: var(--leaf); }
.r-notes { list-style: none; display: grid; gap: .6rem; }
.r-notes li { background: var(--surface-2); border-radius: 12px; padding: .9rem 1.1rem; color: var(--fg); }
@media (max-width: 640px) { .r-card, .quiz-result .r-head { grid-template-columns: 1fr; } .quiz-result .r-bird { display: none; } }

.quiz-band { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.8rem); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.quiz-band .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.quiz-band .ico svg { width: 34px; height: 34px; }
.quiz-band h2 { font-size: var(--step-3); }
.quiz-band p { color: var(--muted); margin-top: .4rem; }
@media (max-width: 760px) { .quiz-band { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .7rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .3s; }
.faq[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.05rem; line-height: 1.4; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--surface-2); color: var(--brand); transition: transform .35s var(--ease), background-color .2s; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 70ch; }
.motion .faq[open] .faq__a { animation: rise .45s var(--ease) both; }
.faq-group { display: grid; gap: 1rem; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h2 { font-size: var(--step-2); color: var(--brand); }
.faq-search { position: relative; max-width: 560px; margin-bottom: 2.5rem; }
.faq-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.faq-search input { width: 100%; min-height: 56px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: 400 1.05rem var(--font-body); padding: .8rem 1.2rem .8rem 3rem; }
.faq-search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.faq-empty { color: var(--muted); }

/* ---------- Guides & articles ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: var(--fg); transition: transform .4s var(--ease), box-shadow .3s, border-color .3s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; text-decoration: none; }
.guide-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); transition: background-color .3s, color .3s; }
.guide-card:hover .ico { background: var(--navy); color: #fff; }
.guide-card .ico svg { width: 26px; height: 26px; }
.guide-card h3 { font-size: var(--step-1); line-height: 1.3; }
.guide-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.guide-card .link-arrow { color: var(--brand); }

.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--band-muted); margin-top: 1.4rem; font-size: .95rem; }
.article-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.article-meta svg { width: 18px; height: 18px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .8rem; }
.toc b { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.toc b svg { width: 18px; height: 18px; }
.toc ol { list-style: none; display: grid; gap: .1rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--accent); }
@media (max-width: 900px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; } }
.prose-page ol.num { padding-left: 1.3rem; display: grid; gap: .6rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.1rem 1.3rem; color: var(--fg); }
.callout b { display: block; margin-bottom: .2rem; }
.article-cta { margin-top: 1.5rem; background: var(--band); color: var(--band-fg); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1rem; }
.article-cta h2 { color: #fff !important; margin-top: 0 !important; }
.article-cta p { color: var(--band-muted) !important; }
.article-cta .btn--ghost { --b-fg: #ffffff; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin-inline: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px -12px rgba(0,20,60,.45); padding: 1.1rem 1.3rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.motion .cookie:not([hidden]) { animation: rise .6s var(--ease) both; }
.cookie p { font-size: .93rem; line-height: 1.5; }
.cookie__btns { display: flex; gap: .5rem; }
@media (max-width: 600px) { .cookie { grid-template-columns: 1fr; } .cookie__btns .btn { flex: 1; } }
.foot-legal { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Photos ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: linear-gradient(135deg, #003376, #0a4a9c); }
.ph::before { content: ""; position: absolute; inset: 0; background: url(../img/colibri-blanco.svg) center / min(38%, 160px) no-repeat; opacity: .14; }
.ph img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.ph--off img, .ph--off .credit { display: none; }
.credit { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: 11px; line-height: 1.3; color: #fff; background: rgba(0, 12, 32, .55); padding: 3px 8px; border-radius: 6px; opacity: .8; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit a { color: #fff !important; text-decoration: underline; text-decoration-thickness: 1px; }
.ph:hover .credit { opacity: 1; }

/* Hero with photo */
.hero--photo { background: var(--navy-deep); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--navy-deep); }
.hero__bg::before { display: none; }
.hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(0, 22, 56, .95) 0%, rgba(0, 40, 96, .86) 42%, rgba(0, 51, 118, .5) 100%); }
.motion .hero__bg img { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero--photo .hero__grid-lines { z-index: 0; }
.hero--photo > .wrap { position: relative; z-index: 1; }

/* Parallax photo band */
.photo-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(380px, 62vh, 600px); display: grid; align-items: end; background: var(--navy-deep); }
.photo-band .ph { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; z-index: -1; will-change: transform; }
.photo-band .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0, 20, 50, .05) 20%, rgba(0, 20, 50, .82) 100%); }
.photo-band .credit { bottom: calc(14% + 10px); }
.photo-band__content { padding-block: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.2rem; justify-items: start; }
.photo-band h2 { font-size: var(--step-4); max-width: 18ch; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.photo-band__eyebrow { font-weight: 600; color: var(--leaf); }

.aside-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-top: .6rem; }
.story-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-top: 1.6rem; box-shadow: var(--shadow); }
@media (max-width: 860px) { .aside-photo { display: none; } }

/* City card photo */
.city-card { overflow: hidden; }
.city-photo { margin: -1.8rem -1.8rem .3rem; aspect-ratio: 16 / 10; }
.motion .city-card.swap .city-photo img { animation: kenburns 1.4s var(--ease) both; }

/* Theme cards with photos (SVG stays as fallback) */
.theme { grid-template-rows: 190px auto; }
.theme__art .ph { position: absolute; inset: 0; background: none; }
.theme__art .ph::before { display: none; }
.theme__art .ph img { transition: transform 1.2s var(--ease); }
.theme:hover .theme__art .ph img { transform: scale(1.08); }

/* Guide cards with thumbnails */
.guide-card { padding: 0; overflow: hidden; gap: 0; }
.guide-card__img { aspect-ratio: 5 / 3; }
.guide-card__img img { transition: transform .9s var(--ease); }
.guide-card:hover .guide-card__img img { transform: scale(1.06); }
.guide-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }

/* =========================================================
   v2 — contained panels, photo cards, reviews, trust
   ========================================================= */
.section--soft { background: var(--surface-2); }
.hero { border-bottom-left-radius: clamp(24px, 4vw, 56px); border-bottom-right-radius: clamp(24px, 4vw, 56px); }
.credit { opacity: 0; transition: opacity .3s; }
.ph:hover .credit, .ph:focus-within .credit { opacity: .95; }

/* Scroll progress */
.progress { position: fixed; z-index: 70; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--leaf), #2f7de1); pointer-events: none; }

/* Home hero */
.hero--home { padding-bottom: clamp(5.5rem, 9vw, 7.5rem); }
@keyframes hcIn { from { opacity: 0; transform: translateY(40px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust card overlapping the hero */
.trust-wrap { position: relative; z-index: 3; margin-top: clamp(-4.5rem, -6vw, -3rem); }
.trust { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 28, 68, .35); padding: .5rem; }
.trust li { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; min-width: 0; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; }
.trust .ico svg { width: 22px; height: 22px; }
.trust b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.trust div span { display: block; color: var(--muted); font-size: .87rem; line-height: 1.35; margin-top: .15rem; }
@media (max-width: 1000px) { .trust { grid-template-columns: 1fr 1fr; } .trust li:nth-child(3) { border-left: 0; } .trust li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 540px) { .trust { grid-template-columns: 1fr; } .trust li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Contained navy panel */
.panel { position: relative; overflow: hidden; isolation: isolate; border-radius: clamp(24px, 3vw, 36px); padding: clamp(1.8rem, 5vw, 4rem); background: radial-gradient(90% 120% at 100% 0%, #0b4fa3 0%, transparent 55%), var(--band-2); color: var(--band-fg); }
.panel a:not(.btn) { color: #fff; }
.panel .kicker { color: var(--leaf); }
.route.panel { padding-block: clamp(2.2rem, 5vw, 4rem); }

/* Section header row */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-row .head { margin-bottom: 0; }

/* Why Spain photo cards */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.why-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 28, 68, .45); }
.why-card__img { aspect-ratio: 3 / 2; }
.why-card__img img { transition: transform 1s var(--ease); }
.why-card:hover .why-card__img img { transform: scale(1.06); }
.why-card__ico { position: relative; z-index: 2; align-self: flex-start; margin: -30px 0 0 1.4rem; width: 58px; height: 58px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; border: 4px solid var(--surface); transition: transform .4s var(--ease); }
.why-card:hover .why-card__ico { transform: rotate(-6deg); }
.why-card__ico svg { width: 24px; height: 24px; }
.why-card__body { padding: .9rem 1.5rem 1.7rem; display: grid; gap: .5rem; }
.why-card__body h3 { font-size: var(--step-2); }
.why-card__body p { color: var(--muted); font-size: .98rem; }
.swipe-hint { display: none; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .why-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1) calc(var(--gutter-r) * -1); padding: .25rem var(--gutter-r) 1.2rem var(--gutter); scroll-padding-left: var(--gutter); }
  .why-grid::-webkit-scrollbar { display: none; }
  .why-card { scroll-snap-align: start; }
  .swipe-hint { display: flex; gap: .4rem; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
  .swipe-hint svg { width: 18px; height: 18px; }
}

/* Reviews */
.proof { display: grid; justify-items: end; }
.proof b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-4); color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); }
@media (max-width: 700px) { .proof { justify-items: start; } }
.reviews { display: grid; gap: 1.2rem; }
/* Opiniones en fila que se desliza */
.reviews__marquee { margin-top: 1.2rem; padding-block: .4rem 1.2rem; margin-inline: calc(var(--gutter) * -1); }
.reviews__marquee .marquee__track, .reviews__marquee .marquee__set { align-items: stretch; }
.reviews__marquee .review { width: clamp(270px, calc((min(100vw, 1200px) - 2 * var(--gutter) - 2.4rem) / 3), 370px); flex: none; }
.motion .reviews__marquee .marquee__track { animation-duration: 55s; }
html:not(.motion) .reviews__marquee { margin-inline: 0; }
.review { margin: 0; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 28, 68, .4); }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--fg); padding-right: 1.5rem; }
.review__mark { position: absolute; right: 1.1rem; top: .1rem; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: .3; }
.review__who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .8rem; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--c) 35%, transparent); }
.review__who b { display: block; font-weight: 600; line-height: 1.3; }
.review__who small { color: var(--muted); font-size: .88rem; }
.review__tag { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: .3rem; align-items: center; font-size: .76rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); padding: .3rem .65rem; border-radius: 999px; }
.review__tag svg { width: 14px; height: 14px; }
.review--feature { background: radial-gradient(100% 100% at 100% 0%, #0b4fa3 0%, transparent 60%), var(--band); border-color: transparent; padding: clamp(1.8rem, 4vw, 2.8rem); }
.review--feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.4rem 3rem; }
.review--feature blockquote { color: #fff; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; max-width: 34ch; }
.review--feature .review__who { max-width: 280px; }
.review--feature .review__mark { color: var(--leaf); opacity: .55; font-size: 7rem; }
.review--feature .review__who b { color: #fff; }
.review--feature .review__who small { color: var(--band-muted); }
.review--feature .review__avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); background: #fff; color: #003376; }
.review--feature .review__tag { color: var(--leaf); background: rgba(140, 198, 63, .16); }
.review--feature::after { content: ""; position: absolute; right: -40px; bottom: -36px; width: 230px; height: 180px; background: url(../img/colibri-blanco.svg) center / contain no-repeat; opacity: .07; pointer-events: none; }
.review-cta { margin-top: 1.6rem; display: flex; gap: .7rem; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.review-cta svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.review-cta a { font-weight: 600; }
@media (max-width: 760px) { .review--feature { grid-template-columns: 1fr; } }

/* Contained CTA with photo */
.cta-section { padding-block: calc(var(--section) * .5) var(--section); }
.cta-band { border-radius: clamp(24px, 3vw, 36px); padding: clamp(2rem, 5vw, 4.5rem); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.cta-band__bg::before { display: none; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(0, 28, 68, .95) 0%, rgba(0, 51, 118, .86) 50%, rgba(0, 51, 118, .55) 100%); }
.cta-band__bg .credit { display: none; }
.cta-band .bg-bird { z-index: 0; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }
.motion .cta-band__bg img { transition: transform 1.4s var(--ease); }
.cta-band:hover .cta-band__bg img { transform: scale(1.04); }

/* Glossary filters */
.gchips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.gchip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: .5rem 1rem; font: 600 .95rem var(--font-body); cursor: pointer; min-height: 44px; display: inline-flex; gap: .5rem; align-items: center; transition: background-color .25s, color .25s, border-color .25s; }
.gchip span { font-size: .78rem; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: .1rem .5rem; }
.gchip:hover { border-color: var(--brand); }
.gchip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gchip[aria-pressed="true"] span { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.motion .flip.pop { animation: rise .5s var(--ease) both; animation-delay: var(--d, 0s); }

/* PDF downloads */
.pdfs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.pdf-card { display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1rem 1.2rem; transition: border-color .25s, box-shadow .35s var(--ease); }
.pdf-card:hover { border-color: transparent; box-shadow: 0 24px 50px -28px rgba(0, 28, 68, .45); text-decoration: none; }
.pdf-card .cover { aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: 0 14px 30px -14px rgba(0, 28, 68, .5); transform: rotate(-1.5deg); transition: transform .5s var(--ease); }
.pdf-card:nth-child(even) .cover { transform: rotate(1.5deg); }
.pdf-card:hover .cover { transform: rotate(0) translateY(-6px) scale(1.02); }
.pdf-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.pdf-card b { font-weight: 600; line-height: 1.3; }
.pdf-card small { color: var(--muted); font-size: .88rem; }
.pdf-card .link-arrow { color: var(--brand); margin-top: auto; }
@media (max-width: 1000px) { .pdfs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.photo-credits { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 560px) { .photo-credits { columns: 1; } }
.foot-photos { font-size: .82rem; opacity: .75; }

/* =========================================================
   v3 — light look (blue + white), dark mode only by choice
   ========================================================= */
/* Light photo placeholder */
.ph { background: linear-gradient(135deg, #dfe9f8, #c5d6ef); }
.ph::before { background-image: url(../img/colibri.svg); opacity: .18; }
:root[data-theme="dark"] .ph { background: linear-gradient(135deg, #0f2a52, #163a6e); }
:root[data-theme="dark"] .ph::before { background-image: url(../img/colibri-blanco.svg); opacity: .12; }

/* Light hero */
.hero--light { background: radial-gradient(55% 75% at 95% 0%, var(--hero-glow) 0%, transparent 70%), linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 100%); color: var(--fg); }
.hero--light h1 { color: var(--brand); }
.hero--light .lede { color: var(--muted); }
.hero--light .hero__grid-lines path { stroke: color-mix(in srgb, var(--brand) 9%, transparent); }
.hero--light .crumbs, .hero--light .crumbs a { color: var(--muted); }
.hero--light .crumbs a:hover { color: var(--brand); }
.hero--light .article-meta { color: var(--muted); }
.hero--light .article-meta svg { color: var(--accent); }
.hero.hero--light .btn--light { --b-bg: var(--brand); --b-fg: var(--bg); }
.hero.hero--light .btn--ghost { --b-fg: var(--brand); }
.hero--light .hero__bird { opacity: .07; }
:root[data-theme="dark"] .hero--light .hero__bird { opacity: .05; filter: brightness(3); }
.hero--light .hero-lines > .ln { color: var(--brand); }
.hero--light .hero-lines > .last { color: var(--accent); }
.hero--light .facts { border-top-color: var(--line); }
.hero--light .fact + .fact { border-left-color: var(--line); }
.hero--light .fact b { color: var(--brand); }
.hero--light .fact span { color: var(--muted); }


/* Inner page hero: text + photo */
.hero--page.hero--light { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-split__text > :first-child { margin-top: 0; }
.hero-split__media { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 500px; }
.hero-split__media::before { content: ""; position: absolute; inset: 10% -5% -7% 12%; border-radius: 30px; background: radial-gradient(90% 90% at 100% 0%, #0a5bb8 0%, transparent 60%), #003376; rotate: 4deg; }
.hero-split__img { position: relative; z-index: 1; aspect-ratio: 5 / 4; border-radius: 26px; border: 5px solid #fff; box-shadow: 0 30px 60px -30px rgba(0, 28, 68, .6); }
.hero-split__bird { position: absolute; z-index: 2; left: -26px; bottom: -22px; width: 84px; height: 84px; padding: 15px; border-radius: 50%; background: #fff; box-shadow: 0 16px 34px -12px rgba(0, 28, 68, .45); }
.motion .hero-split__media { animation: hcIn 1s var(--ease) .25s both; }
.motion .hero-split__bird { animation: hcIn .9s var(--ease) .8s both, floatY 6s ease-in-out 2s infinite; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__media { margin: .6rem auto 0 0; max-width: 560px; width: calc(100% - 12px); }
  .hero-split__img { aspect-ratio: 16 / 10; }
  .hero-split__bird { width: 66px; height: 66px; padding: 12px; left: auto; right: -6px; bottom: -18px; }
}

/* Theme switch */
.head-actions { display: flex; align-items: center; gap: .25rem; position: relative; z-index: 2; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), background-color .3s; }
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
.theme-toggle .i-sun { opacity: 0; transform: scale(.5) rotate(-60deg); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: scale(.5) rotate(60deg); }
.nav { margin-left: auto; }
@media (max-width: 960px) {
  .head-actions { margin-left: auto; }
  .menu-open .theme-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
}

:root[data-theme="dark"] .hero-split__img { border-color: var(--surface-2); }

/* Article components */
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: .6rem; }
.keyfacts div { background: var(--surface-2); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .25rem; border-top: 3px solid var(--accent); }
.keyfacts b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); color: var(--brand); line-height: 1.15; }
.keyfacts span { color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 640px) { .keyfacts { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.data-table th, .data-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
.data-table tbody th { font-weight: 600; color: var(--brand); }
.data-table tbody tr:nth-child(even) { background: var(--surface-2); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.table-note { color: var(--muted); font-size: .88rem; margin-top: -.4rem; }
.prose-page blockquote small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); }

/* =========================================================
   v4 — portada con arcos, detalles premium
   ========================================================= */

/* Subrayado a pincel en "arrepentirás" */
.mark { position: relative; white-space: nowrap; }
.mark__line { position: absolute; left: -2%; bottom: -.2em; width: 104%; height: .34em; overflow: visible; pointer-events: none; }
.mark__line path { fill: none; stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.motion .mark__line path { stroke-dashoffset: 1; animation: draw 1s var(--ease) 1.75s forwards; }

/* Luz que respira detrás de la portada */
.hero--home::before, .hero--home::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero--home::before { width: min(78vw, 980px); aspect-ratio: 1; right: -18%; top: -26%; background: radial-gradient(closest-side, color-mix(in srgb, #4d8fe6 22%, transparent), transparent); }
.hero--home::after { width: min(52vw, 640px); aspect-ratio: 1; left: -16%; top: 30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--leaf) 10%, transparent), transparent); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 5%, 0) scale(1.08); } }
.motion .hero--home::before { animation: drift 16s ease-in-out infinite alternate; }
.motion .hero--home::after { animation: drift 21s ease-in-out -7s infinite alternate-reverse; }

/* ---------- Arcos ---------- */
.arches { position: relative; width: 100%; max-width: 500px; aspect-ratio: 520 / 620; margin: 0 0 9% auto; isolation: isolate; }
.arches > * { position: absolute; }
.arches__ring { left: 4%; top: 12%; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand) 26%, transparent); background: radial-gradient(closest-side, color-mix(in srgb, #ffffff 70%, transparent), transparent); z-index: 0; }
:root[data-theme="dark"] .arches__ring { background: radial-gradient(closest-side, rgba(77, 143, 230, .16), transparent); }
.arches__ring i { position: absolute; top: -7px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 6px color-mix(in srgb, var(--leaf) 24%, transparent); }
.arches__sky { inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 5; pointer-events: none; }
.arches__trail { fill: none; stroke: var(--brand); stroke-opacity: .5; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .1 9; }
.arches__reveal { fill: none; stroke: #fff; stroke-width: 18; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.motion .arches__reveal { stroke-dashoffset: 1; }

.arch { bottom: 6.45%; z-index: 2; }
.arch--1 { left: 0; width: 28.85%; height: 48.39%; --rv: 25%; }
.arch--2 { left: 31.15%; width: 37.7%; height: 72.58%; --rv: 21.78%; z-index: 3; }
.arch--3 { right: 0; width: 28.85%; height: 56.45%; --rv: 21.43%; }
.arch::before { content: ""; position: absolute; inset: -8px; border: 1.5px solid color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 50% 50% 24px 24px / var(--rv) var(--rv) 24px 24px; }
.arch::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -14px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 28, 68, .3), transparent); z-index: -1; }
.arch__win { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 0 round 50% 50% 16px 16px / var(--rv) var(--rv) 16px 16px); isolation: isolate; border-radius: 50% 50% 16px 16px / var(--rv) var(--rv) 16px 16px; background: linear-gradient(180deg, #d6e4f7, #a9c3ea); }
.arch--2 .arch__win { background: linear-gradient(180deg, #0a4a9c, #003376); }
.arch--3 .arch__win { background: linear-gradient(180deg, #e3f0d3, #b6d78c); }
.arch__win::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 22, 56, .42) 0%, rgba(0, 22, 56, 0) 34%); pointer-events: none; }
.arch__img { position: absolute; inset: 0; background: none; }
.arch__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch__img.ph--off { background: none; }
.arch__img img.is-next { opacity: 0; transform: scale(1.14); transition: opacity 1.2s ease, transform 3s var(--ease); }
.arch__img img.is-next.is-in { opacity: 1; transform: none; }
.arch__tag { position: absolute; z-index: 2; left: 50%; bottom: 7%; transform: translateX(-50%); display: grid; overflow: hidden; padding: .3rem .72rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #003376; font: 600 .74rem/1.25 var(--font-body); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(0, 20, 50, .6); justify-content: center; }
.arch__tag > span { grid-area: 1 / 1; text-align: center; }
.arch--1 .arch__tag { display: none; }

.arches__floor { left: -2%; right: -2%; bottom: 3.2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent); z-index: 1; }

.arches__bird { left: 50%; top: 16.45%; width: 16%; margin: -6.3% 0 0 -8%; z-index: 6; }
.arches__bird img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 28, 68, .22)); }
:root[data-theme="dark"] .arches__bird img { filter: brightness(2.4) saturate(.8) drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-3deg); } }
.motion .arches__bird.is-landed img { animation: bob 4.6s ease-in-out infinite; }

.journey { left: -8%; bottom: -12%; width: 47%; z-index: 7; padding: 1rem 1.05rem 1.05rem; border-radius: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); box-shadow: 0 34px 60px -30px rgba(0, 28, 68, .55), 0 2px 6px rgba(0, 28, 68, .06); color: var(--fg); }
.journey__head { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.journey__ico { width: 36px; height: 36px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.journey__ico svg { width: 18px; height: 18px; }
.journey__head b { display: block; font-size: .93rem; line-height: 1.2; color: var(--brand); }
.journey__head small { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.journey__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.journey__list li { display: flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 500; line-height: 1.25; }
.journey__list i { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.journey__list svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.journey__bar { margin-top: .9rem; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.journey__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f7de1, var(--leaf)); transform-origin: left; }

.arches__chip { right: -3%; top: 19%; z-index: 7; display: inline-flex; gap: .45rem; align-items: center; padding: .55rem .95rem; border-radius: 999px; background: var(--surface); color: var(--brand); font-weight: 600; font-size: .88rem; border: 1px solid var(--line); box-shadow: 0 16px 30px -16px rgba(0, 28, 68, .5); white-space: nowrap; }
.arches__chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Entrada de la portada */
@keyframes archRise { from { clip-path: inset(100% 0 0 0 round 50% 50% 16px 16px / var(--rv) var(--rv) 16px 16px); } to { clip-path: inset(0 0 0 0 round 50% 50% 16px 16px / var(--rv) var(--rv) 16px 16px); } }
@keyframes settle { from { transform: scale(1.32); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion .arch__win { animation: archRise 1.3s var(--ease) both; }
.motion .arch__img > img:not(.is-next) { animation: settle 2.4s var(--ease) both; }
.motion .arch--2 .arch__win, .motion .arch--2 .arch__img > img:not(.is-next) { animation-delay: .1s; }
.motion .arch--1 .arch__win, .motion .arch--1 .arch__img > img:not(.is-next) { animation-delay: .25s; }
.motion .arch--3 .arch__win, .motion .arch--3 .arch__img > img:not(.is-next) { animation-delay: .4s; }
.motion .arch::before, .motion .arch::after { animation: fade 1.2s ease .8s both; }
.motion .arch__tag > .t0 { animation: lineUp .7s var(--ease) 1.2s both; }
.motion .arches__ring { animation: popIn 1.4s var(--ease) both, spin 70s linear 1.4s infinite; }
.motion .arches__floor { animation: fade 1.4s ease .3s both; }
.motion .arches__bird { opacity: 0; animation: fade .6s ease 3.6s forwards; }
.motion .journey { animation: popIn .9s var(--ease) 1.25s both; }
.motion .journey__list li { animation: rise .6s var(--ease) both; animation-delay: calc(1.45s + var(--i) * .38s); }
.motion .journey__list i { animation: tick .5s var(--ease) both; animation-delay: calc(1.65s + var(--i) * .38s); }
.motion .journey__list svg { stroke-dashoffset: 1; animation: draw .45s var(--ease) forwards; animation-delay: calc(1.8s + var(--i) * .38s); }
.motion .journey__bar i { animation: fill 1.6s var(--ease-io) 1.6s both; }
.motion .arches__chip { animation: popIn .8s var(--ease) 1.55s both; }

@media (max-width: 860px) {
  .arches { max-width: 460px; margin: 2.4rem auto 25%; width: 100%; }
  .journey { left: 6%; right: 6%; width: auto; bottom: -19%; padding: .85rem .95rem .9rem; border-radius: 18px; }
  .journey__list { grid-template-columns: 1fr 1fr; column-gap: .7rem; }
  .arch__tag { display: none; }
  .journey__head { gap: .55rem; margin-bottom: .6rem; }
  .journey__ico { width: 30px; height: 30px; border-radius: 9px; }
  .journey__ico svg { width: 15px; height: 15px; }
  .journey__head b { font-size: .84rem; }
  .journey__head small { font-size: .72rem; }
  .journey__list { gap: .38rem; }
  .journey__list li { font-size: .78rem; gap: .5rem; }
  .journey__list i { width: 17px; height: 17px; }
  .journey__list svg { width: 10px; height: 10px; }
  .journey__bar { margin-top: .7rem; height: 4px; }
  .arches__chip { right: 0; top: 17%; font-size: .78rem; padding: .45rem .75rem; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .journey { left: -9%; width: 230px; }
  .journey__head small { display: none; }
  .arch__tag { display: none; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .hero .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .fact { padding: 1.3rem 1rem 1.3rem 0; align-content: start; }
  .hero .fact + .fact { padding-left: 1rem; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Cinta de ciudades ---------- */
.cities { padding-top: clamp(2.6rem, 5vw, 4.2rem); overflow: hidden; }
.cities__marquee { padding-block: .3rem .5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.cities .marquee__track, .cities .marquee__set { gap: clamp(1.1rem, 2.4vw, 2.2rem); align-items: center; }
.cities .marquee__set span { font-family: var(--font-display); font-size: clamp(2rem, 1.1rem + 3.6vw, 4.3rem); line-height: 1.15; color: var(--brand); white-space: nowrap; }
.cities .marquee__set span.o { color: transparent; -webkit-text-stroke: 1.3px color-mix(in srgb, var(--brand) 60%, transparent); }
.cities__star { width: clamp(15px, 1.5vw, 22px); height: auto; fill: var(--leaf); flex: none; }
@keyframes cities { to { transform: translateX(calc(-50% - clamp(1.1rem, 2.4vw, 2.2rem) / 2)); } }
.motion .cities .marquee__track { animation: cities 70s linear infinite; }
html:not(.motion) .cities .marquee__set { flex-wrap: nowrap; justify-content: flex-start; padding: 0 var(--gutter); }
html:not(.motion) .cities__marquee { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

/* ---------- Detalles en toda la web ---------- */
/* Línea del antetítulo que se dibuja al aparecer */
.kicker { display: flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; flex: none; transform-origin: left; transition: transform .9s var(--ease) .2s; }
.motion [data-reveal].is-pending .kicker::before { transform: scaleX(0); }

/* Las fotos se asientan al entrar en pantalla */
.motion [data-reveal] .ph img { transition: transform 1.4s var(--ease); }
.motion [data-reveal].is-pending .ph img { transform: scale(1.16); }
.motion .hero-split__img img { animation: settle 2s var(--ease) .2s both; }

/* Pasos escalonados al cambiar de pestaña */
.motion .panel-tab:not([hidden]) .steps li { animation: rise .6s var(--ease) both; }
.motion .panel-tab:not([hidden]) .steps li:nth-child(2) { animation-delay: .07s; }
.motion .panel-tab:not([hidden]) .steps li:nth-child(3) { animation-delay: .14s; }
.motion .panel-tab:not([hidden]) .steps li:nth-child(4) { animation-delay: .21s; }

/* Botones magnéticos (solo con ratón) */
.btn { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, translate .5s var(--ease); }

/* Transición suave entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }


/* Planes: recomendado y rejillas de 1 o 2 planes */
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.plans--1 { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.plan--top { box-shadow: 0 0 0 2px var(--leaf), 0 30px 60px -28px rgba(0, 28, 68, .7); }
.plan__badge { position: absolute; top: -14px; left: 1.7rem; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 999px; background: var(--leaf); color: #0b2a00; font: 700 .78rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 18px -8px rgba(51, 118, 0, .7); z-index: 2; }
.plan__badge svg { width: 14px; height: 14px; }
.plans { padding-top: 14px; }
@media (min-width: 901px) { .plans--3 .plan--top { transform: translateY(-10px); } .plans--3 .plan--top:hover { transform: translateY(-14px); } }
@media (max-width: 900px) { .plans--2 { grid-template-columns: 1fr; max-width: 520px; } }

/* Guía principal: banda en inicio y recursos */
.guide-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--leaf) 16%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(0, 28, 68, .35); }
.guide-band__copy { display: grid; gap: 1rem; justify-items: start; }
.guide-band__copy h2 { font-size: var(--step-3); }
.guide-band__copy p { color: var(--muted); max-width: 48ch; }
.gb__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; counter-reset: none; }
.gb__steps a { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .95rem 1rem; border-radius: 16px; background: var(--surface-2); color: var(--fg); text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), border-color .2s, background-color .2s; }
.gb__steps b { font-weight: 600; line-height: 1.3; font-size: .98rem; }
.gb__n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 1rem var(--font-body); }
.gb__steps li:last-child .gb__n { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .gb__steps a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 25%, transparent); background: var(--surface); } }
@media (max-width: 860px) { .guide-band { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .gb__steps { grid-template-columns: 1fr; } }
.section--tight-top { padding-top: clamp(1rem, 2vw, 2rem); }

/* Hoja de ruta dentro de la guía */
.roadmap { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.roadmap a { align-content: start; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; row-gap: .2rem; align-items: start; height: 100%; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s var(--ease); }
.roadmap__n { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; }
.roadmap b { font-weight: 600; line-height: 1.3; }
.roadmap a > span:last-child { color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .roadmap a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: 0 18px 34px -24px rgba(0, 28, 68, .45); } }
.prose-page .faq-list { margin-top: .6rem; }

/* Las fotos aparecen suavemente cuando terminan de cargar */
.motion .ph img:not(.is-loaded):not(.is-next) { opacity: 0; }
.motion .ph img:not(.is-next) { transition: opacity .6s ease; }
.motion [data-reveal] .ph img { transition: opacity .6s ease, transform 1.4s var(--ease); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ---------- Pago por etapas y calendario Costa / Sierra (servicios) ---------- */
.pay-table .data-table { min-width: 640px; font-size: 1rem; }
.pay-table th small { display: block; font-weight: 400; opacity: .8; font-size: .78rem; margin-top: .15rem; }
.pay-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); }
.pay-table tr.is-rec { background: color-mix(in srgb, var(--accent) 12%, var(--surface)) !important; }
.rec-pill { display: inline-block; margin-left: .4rem; background: var(--accent); color: var(--on-accent, #fff); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 99px; vertical-align: 2px; }
.pay-note { margin-top: 1rem; color: var(--muted); font-size: .92rem; max-width: 80ch; }
.head--sub { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.6rem; }
.cal-title { font-family: var(--font-display); font-size: var(--step-3); color: var(--brand); font-weight: 400; line-height: 1.2; }
.cal2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 800px) { .cal2 { grid-template-columns: 1fr; } }
.cal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; display: grid; gap: .9rem; align-content: start; }
.cal-tag { justify-self: start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cal-card h4 { font-size: 1.2rem; color: var(--brand); line-height: 1.3; }
.cal-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; counter-reset: c; }
.cal-steps li { counter-increment: c; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .7rem; padding: .55rem 0; border-top: 1px dashed var(--line); }
.cal-steps li::before { content: counter(c); grid-row: span 2; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy, #003a88); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.cal-steps b { color: var(--brand); font-size: .95rem; }
.cal-steps span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.cal-verdict { margin-top: .3rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 600; font-size: .95rem; background: color-mix(in srgb, #e3a008 14%, var(--surface)); color: var(--fg, #0b1f3d); }
.cal-verdict.is-ok { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

/* ---------- Abogada (nosotros) ---------- */
.lawyer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .lawyer { grid-template-columns: 1fr; } }
.lawyer__photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: 0 30px 60px -30px rgba(0, 28, 68, .45); }
.lawyer__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyer__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, #c60b1e 0 33%, #ffc400 33% 66%, #c60b1e 66%); }
.lawyer__chip { position: absolute; left: 1rem; bottom: 1.3rem; display: inline-flex; align-items: center; gap: .6rem; background: rgba(8, 18, 38, .82); color: #fff; padding: .55rem 1rem; border-radius: 99px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .14em; backdrop-filter: blur(6px); }
.lawyer__chip i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.lawyer__body h2 { margin-bottom: 1.4rem; font-size: clamp(1.4rem, 2.3vw, 1.9rem); color: var(--brand); line-height: 1.2; }
.lawyer__name { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; color: var(--fg); letter-spacing: -.01em; }
.lawyer__role { margin-top: .7rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lawyer__facts { margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.lawyer__facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lawyer__facts dt { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lawyer__facts dd { margin: 0; color: var(--fg); font-size: 1.02rem; }
.lawyer__facts dd b { color: var(--brand); }
@media (max-width: 520px) { .lawyer__facts div { grid-template-columns: 1fr; gap: .2rem; } }
.lawyer__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 640px) { .lawyer__pillars { grid-template-columns: 1fr; } }
.lawyer__pillars p { border-left: 4px solid var(--accent); padding: .15rem 0 .15rem .9rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.lawyer__pillars b { display: block; color: var(--brand); font-size: 1.02rem; margin-bottom: .25rem; }
.lawyer__verify { margin-top: 1.4rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .04em; color: var(--muted); }

/* ---------- Abogada en el inicio ---------- */
.lawyer-home { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -40px rgba(0, 28, 68, .35); }
@media (max-width: 760px) { .lawyer-home { grid-template-columns: 1fr; } .lawyer-home__photo { max-width: 340px; } }
.lawyer-home__photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.lawyer-home__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lawyer-home__photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, #c60b1e 0 33%, #ffc400 33% 66%, #c60b1e 66%); }
.lawyer-home__photo .lawyer__chip { left: .8rem; bottom: 1rem; font-size: .75rem; }
.lawyer-home__body h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--brand); line-height: 1.2; margin-bottom: 1rem; }
.lawyer-home__body .lawyer__name { font-size: clamp(2rem, 4vw, 3rem); }
.lawyer-home__text { margin: 1.1rem 0 1.3rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
