* { box-sizing: border-box; }

:root {
  --ink: #111923;
  --muted: #5f6d7c;
  --line: #d5dee8;
  --paper: #f5f8fb;
  --card: rgba(255,255,255,.86);
  --green: #0f7a62;
  --green-soft: #dff7ef;
  --blue: #255dd8;
  --cyan: #4abed2;
  --amber: #c98632;
  --red: #c9503b;
  --shadow: 0 24px 70px rgba(18,39,62,.13);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(118deg, rgba(74,190,210,.22) 0%, rgba(74,190,210,0) 34%),
    linear-gradient(242deg, rgba(15,122,98,.18) 0%, rgba(15,122,98,0) 38%),
    linear-gradient(180deg, #fbfcfd 0%, #eef4f8 48%, #f8fafb 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(18,39,62,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,39,62,.046) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.72) 38%, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, transparent 0 44%, rgba(255,255,255,.42) 45% 55%, transparent 56%),
    linear-gradient(28deg, transparent 0 58%, rgba(37,93,216,.08) 59% 71%, transparent 72%);
  opacity: .78;
}

a { color: inherit; text-decoration: none; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(251,252,253,.84);
  border-bottom: 1px solid rgba(213,222,232,.82);
  box-shadow: 0 10px 30px rgba(18,39,62,.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

header > a {
  font-weight: 950;
  letter-spacing: 0;
  font-size: 12px;
}

nav {
  display: flex;
  gap: 28px;
  color: #3a4656;
  font-size: 12.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .12em;
}

main {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 600px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 42px;
}

.label {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: opacity .26s ease, transform .26s ease, color .26s ease;
}

h1 {
  margin: 18px 0 0;
  max-width: 720px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 64px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
  min-height: 3.1em;
  transition: opacity .26s ease, transform .26s ease;
}

.lead {
  max-width: 620px;
  color: #536171;
  font-size: 19px;
  line-height: 1.7;
  transition: opacity .26s ease, transform .26s ease;
}

.hero.hero-changing .label,
.hero.hero-changing h1,
.hero.hero-changing .lead {
  opacity: .28;
  transform: translateY(8px);
}

.plan-visual {
  position: relative;
  min-height: 460px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(199,211,224,.95);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.96), rgba(248,252,255,.78)),
    linear-gradient(28deg, rgba(74,190,210,.16), rgba(15,122,98,.08));
  box-shadow: var(--shadow);
}

.plan-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(37,93,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,93,216,.052) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.visual-panel {
  position: absolute;
  inset: 16px;
  z-index: 1;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 16px, 0) scale(.982);
  transition:
    opacity .48s cubic-bezier(.2,.8,.2,1),
    transform .48s cubic-bezier(.2,.8,.2,1),
    filter .48s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.visual-panel.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #0b5d4c;
  background: rgba(223,247,239,.92);
  border: 1px solid rgba(15,122,98,.18);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15,122,98,.08);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15,122,98,.13);
}

.spain-map,
.lens,
.browser-mock,
.won-card {
  position: relative;
  height: 386px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(213,222,232,.96);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 38px rgba(18,39,62,.08);
}

.spain-map {
  background:
    linear-gradient(145deg, rgba(255,249,236,.98), rgba(239,250,246,.94)),
    linear-gradient(28deg, rgba(201,134,50,.1), transparent 58%);
  border-color: rgba(214,196,163,.95);
}

.spain-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(116deg, transparent 0 44%, rgba(15,122,98,.08) 45% 52%, transparent 53%),
    linear-gradient(rgba(201,134,50,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,134,50,.07) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.spain-map svg {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
}

.route {
  fill: none;
  stroke: rgba(190,165,114,.95);
  stroke-width: 2;
  stroke-dasharray: 8 12;
}

.visual-vigia.is-active .route {
  animation: dashMove 5.5s linear infinite;
}

.route-2 { opacity: .74; }
.spain-shape { fill: rgba(15,122,98,.10); stroke: #0f6b5d; stroke-width: 4; }
.portugal-line { fill: none; stroke: #d6c9ad; stroke-width: 3; stroke-dasharray: 6 10; }

.zone-bubble {
  position: absolute;
  padding: 9px 11px;
  border: 1px solid rgba(208,185,145,.96);
  border-radius: 8px;
  background: rgba(255,252,245,.94);
  box-shadow: 0 14px 30px rgba(81,58,25,.13);
}

.visual-panel.is-active .zone-bubble,
.visual-panel.is-active .note {
  animation: floatIn .56s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--delay, 0s);
}

.zone-bubble::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(15,122,98,.13);
}

.zone-bubble b {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.zone-bubble span {
  color: #657269;
  font-size: 13px;
}

.bubble-norte { left: 34px; top: 92px; --delay: .05s; }
.bubble-madrid { right: 34px; top: 76px; --delay: .11s; }
.bubble-levante { right: 52px; bottom: 74px; --delay: .17s; }
.bubble-levante::before { background: var(--amber); box-shadow: 0 0 0 7px rgba(201,134,50,.15); }
.bubble-sur { left: 96px; bottom: 50px; --delay: .23s; }
.bubble-sur::before { background: var(--red); box-shadow: 0 0 0 7px rgba(201,80,59,.14); }

.map-legend {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #657269;
  font-size: 12px;
  font-weight: 900;
}

.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.map-legend i:nth-of-type(2) { background: var(--amber); }
.map-legend i:nth-of-type(3) { background: var(--red); }

.lens {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(216,255,79,.56) 0 17%, rgba(216,255,79,.24) 18% 30%, rgba(236,242,246,.92) 31% 45%, rgba(255,255,255,.98) 46% 100%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,246,251,.88));
  border-color: rgba(213,222,232,.96);
}

.lens::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(130deg, rgba(255,255,255,.42), transparent 45%);
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(191,204,218,.95);
}

.r1 { inset: 24px; }
.r2 { inset: 72px; }
.r3 {
  inset: 126px;
  background: rgba(216,255,79,.26);
  border-color: rgba(201,134,50,.34);
}

.visual-pro.is-active .r3 {
  animation: lensPulse 2.8s ease-in-out infinite;
}

.lens strong {
  z-index: 1;
  font-size: 58px;
  letter-spacing: 0;
}

.lens > span {
  z-index: 1;
  position: absolute;
  margin-top: 76px;
  color: #61707e;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.note {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(216,225,235,.96);
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(33,47,64,.11);
  font-size: 14px;
}

.n1 { left: 14px; top: 118px; --delay: .05s; }
.n2 { right: 12px; top: 142px; --delay: .12s; }
.n3 { left: 58px; bottom: 84px; --delay: .19s; }
.n4 { right: 36px; bottom: 62px; --delay: .26s; }

.browser-mock {
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(239,248,255,.94)),
    linear-gradient(42deg, rgba(74,190,210,.13), rgba(37,93,216,.10));
  border-color: rgba(213,226,241,.96);
}

.browser-mock::before,
.won-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37,93,216,.055) 1px, transparent 1px),
    linear-gradient(rgba(37,93,216,.048) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
}

.dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff7168;
}

.dots i:nth-child(2) { background: #ffbd4a; }
.dots i:nth-child(3) { background: #20c878; }

.mock-head {
  position: relative;
  z-index: 1;
  padding: 16px;
  overflow: hidden;
  color: white;
  border-radius: 8px;
  background: linear-gradient(135deg, #11233f 0%, #255dd8 58%, #1aa789 100%);
  box-shadow: 0 16px 34px rgba(37,93,216,.18);
}

.mock-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,.22) 45%, transparent 57%);
  transform: translateX(-120%);
}

.visual-business.is-active .mock-head::after {
  animation: sweep 1.5s ease .18s both;
}

.mock-head span,
.score-row small {
  display: block;
  color: #cae0ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mock-head strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.score-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 10px 0;
}

.score-row div,
.doc-card,
.bars p {
  border: 1px solid rgba(220,231,244,.98);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(18,39,62,.05);
}

.score-row div {
  padding: 12px;
  border-top-color: rgba(74,190,210,.72);
}

.score-row small { color: #77869a; }

.score-row b {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 26px;
  letter-spacing: 0;
}

.bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.bars p {
  margin: 0;
  padding: 10px;
}

.bars span {
  display: block;
  margin-bottom: 6px;
  color: #39485b;
  font-weight: 850;
  font-size: 13px;
}

.bars em {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
  transform-origin: left;
}

.visual-business.is-active .bars em {
  animation: barReveal .66s cubic-bezier(.2,.8,.2,1) both;
}

.doc-card {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  padding: 12px;
}

.doc-card b { display: block; }

.doc-card span {
  display: block;
  margin-top: 4px;
  color: #647388;
  font-size: 13px;
}

.won-card {
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(239,250,246,.93)),
    linear-gradient(38deg, rgba(15,122,98,.12), rgba(37,93,216,.08));
  border-color: rgba(213,226,241,.96);
}

.won-head {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: white;
  border-radius: 8px;
  background: linear-gradient(135deg, #121a28, #20385f);
  box-shadow: 0 16px 34px rgba(18,39,62,.18);
}

.won-head span,
.won-metrics span {
  display: block;
  color: #aeb8c6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.won-head strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.won-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 10px 0;
}

.won-metrics div {
  min-height: 88px;
  padding: 10px;
  border: 1px solid rgba(219,227,236,.98);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(18,39,62,.05);
}

.won-metrics b {
  display: block;
  margin-top: 11px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.won-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.won-lines p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(219,227,236,.98);
  border-radius: 8px;
  color: #5d6876;
  background: rgba(255,255,255,.88);
}

.won-lines b { color: var(--ink); }

.stamp {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 3px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 14px 30px rgba(15,122,98,.17);
}

.visual-enterprise.is-active .stamp {
  animation: stampPop .52s cubic-bezier(.2,.8,.2,1) .18s both;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(203,211,220,.96);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(18,39,62,.08);
}

.flow article {
  position: relative;
  min-height: 190px;
  padding: 34px 28px 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 46px 1fr;
  column-gap: 16px;
  row-gap: 18px;
  align-content: start;
  align-items: start;
  border-right: 1px solid rgba(203,211,220,.96);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,253,255,.88)),
    rgba(255,255,255,.84);
  transition:
    background .34s cubic-bezier(.2,.8,.2,1),
    transform .34s cubic-bezier(.2,.8,.2,1),
    box-shadow .34s cubic-bezier(.2,.8,.2,1),
    opacity .2s ease;
}

.flow article::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 11px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: .82;
}

.flow article::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 11px;
  right: 0;
  bottom: 0;
  width: 58%;
  opacity: .54;
  background:
    radial-gradient(circle at 72% 28%, rgba(15,122,98,.2), transparent 30%),
    linear-gradient(120deg, transparent 0 28%, rgba(15,122,98,.07) 29% 47%, transparent 48%),
    linear-gradient(90deg, transparent, rgba(74,190,210,.08));
}

.flow article:nth-child(2)::before { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.flow article:nth-child(3)::before { background: linear-gradient(90deg, var(--blue), var(--amber)); }
.flow article:nth-child(4)::before { background: linear-gradient(90deg, var(--amber), var(--green)); }
.flow article:nth-child(2)::after {
  background:
    linear-gradient(90deg, rgba(37,93,216,.055) 1px, transparent 1px),
    linear-gradient(rgba(37,93,216,.05) 1px, transparent 1px),
    radial-gradient(circle at 78% 30%, rgba(74,190,210,.2), transparent 32%),
    linear-gradient(120deg, transparent 0 30%, rgba(37,93,216,.065) 31% 52%, transparent 53%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}
.flow article:nth-child(3)::after {
  background:
    radial-gradient(circle at 72% 34%, rgba(216,255,79,.18), transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(37,93,216,.13), transparent 30%),
    linear-gradient(120deg, transparent 0 35%, rgba(201,134,50,.08) 36% 55%, transparent 56%);
}
.flow article:nth-child(4)::after {
  background:
    radial-gradient(circle at 78% 30%, rgba(201,134,50,.14), transparent 30%),
    radial-gradient(circle at 88% 64%, rgba(15,122,98,.13), transparent 34%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(15,122,98,.04) 12px 14px);
}

.flow article.is-changing {
  opacity: .46;
  transform: translateY(4px);
}

.flow article.pulse {
  z-index: 1;
  background: linear-gradient(150deg, rgba(223,247,239,.92), rgba(237,247,255,.96));
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15,122,98,.13);
}

.flow article:last-child { border-right: 0; }
.flow b,
.flow strong,
.flow span {
  position: relative;
  z-index: 1;
}
.flow b {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  color: var(--green);
  font-weight: 950;
  line-height: 1;
}
.flow strong {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px 6px;
  border-radius: 8px;
  color: #0f594d;
  background: linear-gradient(90deg, rgba(223,247,239,.98), rgba(237,247,255,.92));
  box-shadow: inset 0 0 0 1px rgba(15,122,98,.08);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}
.flow article:nth-child(2) strong { color: #174da8; background: linear-gradient(90deg, rgba(232,249,255,.98), rgba(239,244,255,.94)); }
.flow article:nth-child(3) strong { color: #6f4b12; background: linear-gradient(90deg, rgba(245,249,255,.98), rgba(255,247,231,.95)); }
.flow article:nth-child(4) strong { color: #0f594d; background: linear-gradient(90deg, rgba(255,247,231,.95), rgba(225,247,239,.98)); }
.flow span {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 92%;
  color: #5d6876;
  line-height: 1.5;
}

.plans { margin: 92px 0; }

.plans h2,
.access h2 {
  font-size: 44px;
  letter-spacing: 0;
}

.hint {
  margin: -18px 0 18px;
  color: #677484;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(203,211,220,.96);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(18,39,62,.07);
}

th,
td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(223,228,234,.96);
}

th {
  color: #677484;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td:first-child { font-weight: 950; }

td:last-child {
  text-align: right;
  color: #0f426b;
  font-weight: 950;
}

.plan-row {
  cursor: pointer;
  transition:
    background .24s cubic-bezier(.2,.8,.2,1),
    color .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s cubic-bezier(.2,.8,.2,1);
}

.plan-row:hover,
.plan-row:focus {
  outline: 0;
  background: linear-gradient(90deg, rgba(223,247,239,.86), rgba(237,247,255,.95));
}

.plan-row:hover td,
.plan-row:focus td {
  color: var(--ink);
}

.plan-row:hover td:last-child,
.plan-row:focus td:last-child {
  color: #0f426b;
}

.mark {
  color: #fff;
  background: linear-gradient(100deg, #121a28, #19325d 58%, #0f7a62);
  box-shadow: inset 5px 0 0 var(--cyan);
}

.mark:hover,
.mark:focus {
  color: #fff;
  background: linear-gradient(100deg, #121a28, #19325d 58%, #0f7a62);
}

.mark td {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.16);
}

.mark:hover td,
.mark:focus td {
  color: #fff;
}

.mark td:last-child,
.mark:hover td:last-child,
.mark:focus td:last-child { color: #c8fff0; }

.access {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 34px;
  margin-bottom: 100px;
}

form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(203,211,220,.96);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 46px rgba(18,39,62,.07);
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(203,211,220,.96);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #121a28, #19325d);
  box-shadow: 0 14px 30px rgba(18,39,62,.16);
  font-weight: 950;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dashMove {
  to { stroke-dashoffset: -80; }
}

@keyframes lensPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(216,255,79,0); }
  50% { transform: scale(1.035); box-shadow: 0 0 44px rgba(216,255,79,.34); }
}

@keyframes sweep {
  to { transform: translateX(120%); }
}

@keyframes barReveal {
  from { transform: scaleX(.18); opacity: .48; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes stampPop {
  from { opacity: 0; transform: rotate(-18deg) scale(.72); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  nav { display: none; }
  h1 { font-size: 62px; }
  .hero,
  .flow,
  .access { grid-template-columns: 1fr; }
  .plan-visual { max-width: 520px; width: 100%; }
  .flow article { border-right: 0; border-bottom: 1px solid rgba(203,211,220,.96); }
  .flow article:last-child { border-bottom: 0; }
  table { font-size: 14px; }
  th,
  td { padding: 14px 10px; }
}

@media (max-width: 700px) {
  main { width: min(100% - 24px, 1220px); }
  header { padding: 0 18px; }
  h1 { font-size: 46px; }
  .lead { font-size: 17px; }
  .plan-visual { min-height: 450px; }
  .spain-map,
  .lens,
  .browser-mock,
  .won-card { height: 376px; }
  .table-scroll { overflow-x: auto; }
  table { min-width: 560px; }
}

/* ============================================================
   Landing real — cabecera, CTAs y secciones nuevas
   ============================================================ */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 86px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 0 0 8px 0;
  font-weight: 800;
}
.skip-link:focus { left: 0; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease,
    background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #14a583, #0f7a62);
  box-shadow: 0 12px 26px rgba(15,122,98,.26);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(15,122,98,.34); }

.btn-ghost {
  color: #22313f;
  background: rgba(255,255,255,.6);
  border-color: rgba(31,48,63,.16);
}
.btn-ghost:hover { background: #fff; border-color: rgba(31,48,63,.3); }

.btn-line {
  color: #173a5e;
  background: transparent;
  border-color: rgba(23,58,94,.28);
}
.btn-line:hover { background: rgba(23,58,94,.06); border-color: rgba(23,58,94,.5); }

.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Cabecera / marca ---------- */
header { gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-lockup {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.footer-lockup img { height: clamp(46px, 5vw, 58px); width: auto; display: block; }
.logo-mark { width: 26px; height: 26px; color: var(--green); flex: none; }
.brand-word { font-size: 15px; font-weight: 650; letter-spacing: .2px; color: #25333f; }
.brand-word b { font-weight: 900; }

nav a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--green); }

.header-actions { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Hero: acciones y confianza ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: #5c6a7a;
  font-size: 13.5px;
  font-weight: 600;
}
.hero-trust .dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15,122,98,.14);
}

/* ---------- Tira de confianza ---------- */
.trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 30px 0 6px;
  padding: 18px 22px;
  border: 1px solid rgba(203,211,220,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 10px 30px rgba(18,39,62,.05);
}
.trust-label {
  margin: 0;
  color: #66788b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-list li {
  padding: 7px 13px;
  border: 1px solid rgba(203,211,220,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #38485b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* ---------- Flujo: encabezado ---------- */
.flow-block { margin-top: 26px; }
.flow-eyebrow {
  margin: 0 0 14px;
  color: #66788b;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ---------- Encabezado de sección ---------- */
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head .label { display: block; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 44px; line-height: 1.04; letter-spacing: 0; }
.section-head .section-sub {
  margin: 14px 0 0;
  color: #536171;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Capacidades ---------- */
.caps { margin: 96px 0; }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap {
  padding: 22px;
  border: 1px solid rgba(203,211,220,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(18,39,62,.06);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
.cap:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(18,39,62,.1); }
.cap-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(15,122,98,.16);
  border-radius: 12px;
}
.cap-icon svg { width: 23px; height: 23px; }
.cap h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: 0; }
.cap p { margin: 0; color: #566371; font-size: 15px; line-height: 1.55; }

/* ---------- Planes: explorador + detalle ---------- */
.plans-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.plan-detail {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid rgba(203,211,220,.95);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.97), rgba(238,247,243,.9));
  box-shadow: 0 18px 46px rgba(18,39,62,.09);
}
.plan-detail-eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.plan-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.plan-detail-head h3 { margin: 0; font-size: 28px; letter-spacing: 0; }
.plan-detail-price { margin: 0; }
.plan-detail-price b { color: #0f426b; font-size: 15px; font-weight: 900; white-space: nowrap; }
.plan-detail-features { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.plan-detail-features li {
  position: relative;
  padding-left: 26px;
  color: #48566a;
  font-size: 14.5px;
  line-height: 1.45;
}
.plan-detail-features li::before,
.access-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}
.plan-detail-cta { width: 100%; }
.plan-detail-note { margin: 12px 0 0; color: #6a7787; font-size: 12.5px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { margin: 96px 0; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  overflow: hidden;
  border: 1px solid rgba(203,211,220,.95);
  border-radius: 10px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 26px rgba(18,39,62,.05);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 2px solid #8794a5;
  border-bottom: 2px solid #8794a5;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: #566371; font-size: 15px; line-height: 1.6; }

/* ---------- Acceso: copy y formulario ---------- */
.access-lead { color: #536171; font-size: 17px; line-height: 1.6; max-width: 460px; }
.access-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.access-points li { position: relative; padding-left: 26px; color: #3c4a5c; font-weight: 600; }

.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 800; color: #4a5867; letter-spacing: .2px; }
select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(203,211,220,.96);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.access input:focus,
.access textarea:focus,
.access select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,122,98,.14);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201,80,59,.12);
}
/* Campo trampa anti-bots: fuera de pantalla, no display:none (algunos bots lo detectan) */
.field-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; padding: 11px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.form-status.is-ok { color: #0b5d4c; background: var(--green-soft); border: 1px solid rgba(15,122,98,.2); }
.form-status.is-error { color: #9a2f20; background: #fdece8; border: 1px solid rgba(201,80,59,.24); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  padding: 40px 0 0;
  border-top: 1px solid rgba(203,211,220,.9);
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-inner {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px 48px;
  background: #050505;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(5,5,5,.2);
}
.footer-brand { flex: 0 0 auto; max-width: 360px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { margin: 0; color: #5d6a79; font-size: 14.5px; line-height: 1.55; }
.footer-cols { flex: 1 1 460px; display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 24px 28px; }
.footer-cols h4 { margin: 0 0 14px; color: rgba(255,255,255,.5); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.footer-cols a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: normal; }
.footer-cols a:hover { color: #c8b28a; }
.footer-bottom {
  width: min(1220px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 0 10px 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #78868f;
  font-size: 12.5px;
}

/* ---------- Responsive de las secciones nuevas ---------- */
@media (max-width: 1100px) {
  .plans-explorer { grid-template-columns: 1fr; }
  .plan-detail { position: static; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .section-head h2 { font-size: 33px; }
  .caps-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 32px 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
  header { padding: 0 15px; gap: 12px; }
  .header-actions .btn-ghost { display: none; }
  .brand-word { font-size: 14px; }
  .btn { padding: 9px 13px; font-size: 13.5px; }
  .btn-lg { padding: 13px 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* Tabla de planes: cabe sin scroll lateral (ocultamos "Uso principal") */
  table { min-width: 0; }
  .plans th:nth-child(2), .plans td:nth-child(2) { display: none; }
  th, td { padding: 13px 10px; }
}

/* ============================================================
   Panel Vigilancia: radar de oportunidades
   ============================================================ */
.radar {
  position: relative;
  height: 386px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(206,219,224,.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(15,122,98,.06), transparent 62%),
    linear-gradient(160deg, rgba(247,251,253,.98), rgba(236,245,246,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 16px 38px rgba(18,39,62,.08);
  display: grid;
  place-items: center;
}
.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(23,58,94,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,58,94,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 80%);
}
.radar-scope { position: relative; width: 252px; height: 252px; border-radius: 50%; }
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-ring { fill: none; stroke: rgba(15,122,98,.2); stroke-width: 1; }
.rg-cross { stroke: rgba(15,122,98,.14); stroke-width: 1; }
.rg-blip { fill: rgba(23,58,94,.32); }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(15,122,98,.34), rgba(15,122,98,.05) 42deg, transparent 74deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 99%, transparent 100%);
  mask: radial-gradient(circle, #000 0 99%, transparent 100%);
}
.visual-vigia.is-active .radar-sweep { animation: radarSweep 4.8s linear infinite; }
@keyframes radarSweep { to { transform: rotate(360deg); } }
.radar-hit {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(15,122,98,.45);
  transform: translate(-50%, -50%);
}
.visual-vigia.is-active .radar-hit { animation: radarPing 2.6s ease-out infinite; }
.radar-hit.rh-2 { animation-delay: .9s; }
.radar-hit.rh-3 { animation-delay: 1.7s; }
@keyframes radarPing {
  0% { box-shadow: 0 0 0 0 rgba(15,122,98,.45); }
  70%, 100% { box-shadow: 0 0 0 17px rgba(15,122,98,0); }
}
.radar-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5a6b74;
  font-size: 12px;
  font-weight: 700;
}
.radar-caption i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(15,122,98,.14);
}
.radar-caption b { color: #38485b; font-weight: 800; }

@media (max-width: 700px) {
  .radar { height: 376px; }
  .radar-scope { width: 232px; height: 232px; }
}

/* ============================================================
   Hero como escaparate (pestañas) + coherencia de paneles
   ============================================================ */

.hero-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hero-tab {
  padding: 8px 15px;
  border: 1px solid rgba(23,58,94,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: none;
  color: #3a4a5c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
    box-shadow .2s ease, transform .2s ease;
}
.hero-tab:hover { transform: translateY(-1px); border-color: rgba(15,122,98,.4); color: var(--ink); }
.hero-tab.is-active {
  color: #fff;
  background: linear-gradient(120deg, #16233a, #0f7a62);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(15,122,98,.22);
}
.hero-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Mapa (Vigilancia): fuera parchment/ámbar → neutro + verde/navy */
.spain-map {
  background:
    linear-gradient(145deg, rgba(247,251,253,.98), rgba(236,245,246,.94)),
    linear-gradient(28deg, rgba(15,122,98,.08), transparent 58%);
  border-color: rgba(206,219,224,.95);
}
.spain-map::before {
  background:
    linear-gradient(116deg, transparent 0 44%, rgba(15,122,98,.08) 45% 52%, transparent 53%),
    linear-gradient(rgba(23,58,94,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,58,94,.05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}
.route { stroke: rgba(23,58,94,.42); }
.portugal-line { stroke: rgba(23,58,94,.28); }
.zone-bubble {
  border-color: rgba(206,219,224,.96);
  background: rgba(255,255,255,.95);
  box-shadow: 0 14px 30px rgba(18,39,62,.12);
}
.zone-bubble span { color: #64717f; }
.bubble-levante::before { background: #c39a52; box-shadow: 0 0 0 7px rgba(195,154,82,.16); }
.bubble-sur::before { background: #6b7a8c; box-shadow: 0 0 0 7px rgba(107,122,140,.16); }
.map-legend { color: #64717f; }
.map-legend i:nth-of-type(2) { background: #c39a52; }
.map-legend i:nth-of-type(3) { background: #6b7a8c; }

/* Lente (Cálculo): fuera verde lima → verde de marca */
.lens {
  background:
    radial-gradient(circle, rgba(15,122,98,.34) 0 17%, rgba(15,122,98,.15) 18% 30%, rgba(236,242,246,.92) 31% 45%, rgba(255,255,255,.98) 46% 100%),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(240,246,251,.88));
}
.r3 { background: rgba(15,122,98,.16); border-color: rgba(15,122,98,.34); }

@keyframes lensPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(15,122,98,0); }
  50% { transform: scale(1.035); box-shadow: 0 0 44px rgba(15,122,98,.3); }
}

/* ============================================================
   Escaparate: presupuesto privado en tiempo real (barra viva)
   ============================================================ */
.quote-flow {
  margin: 30px 0 6px;
  padding: 13px 20px 15px;
  border: 1px solid rgba(203,211,220,.9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(245,250,252,.7));
  box-shadow: 0 12px 34px rgba(18,39,62,.06);
}
.qf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.qf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #16233a;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.qf-live {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 4px rgba(229,72,77,.16);
  animation: qfLive 1.6s ease-in-out infinite;
}
.qf-caption {
  margin: 0;
  color: #54626f;
  font-size: 14px;
  font-weight: 600;
  transition: color .3s ease;
}
.qf-caption.is-done { color: var(--green); font-weight: 800; }

.qf-track { display: flex; align-items: flex-start; }
.qf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
  width: 150px;
  text-align: center;
}
.qf-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px dashed rgba(23,58,94,.25);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.qf-step.is-now .qf-dot {
  border-color: transparent;
  background: #16233a;
  box-shadow: 0 0 0 5px rgba(22,35,58,.12);
}
.qf-step.is-now .qf-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: qfPulse 1s ease-in-out infinite;
}
.qf-step.is-done .qf-dot {
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(15,122,98,.22);
}
.qf-step.is-done .qf-dot::before { content: "✓"; }
.qf-name {
  white-space: nowrap;
  color: #8794a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  transition: color .3s ease;
}
.qf-step.is-now .qf-name { color: #16233a; }
.qf-step.is-done .qf-name { color: #41505f; }
.qf-bar {
  position: relative;
  flex: 1;
  min-width: 20px;
  height: 3px;
  margin-top: 11px;
  border-radius: 999px;
  background: rgba(23,58,94,.12);
  overflow: hidden;
}
.qf-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #14a583);
  transition: width .55s ease;
}
.qf-bar.is-filled::after { width: 100%; }

@keyframes qfLive { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes qfPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }

@media (max-width: 720px) {
  .qf-track { flex-direction: column; align-items: stretch; gap: 0; }
  .qf-step { flex-direction: row; width: auto; gap: 12px; text-align: left; padding: 3px 0; }
  .qf-name { max-width: none; }
  .qf-bar {
    width: 3px;
    height: 16px;
    min-width: 0;
    margin: 0 0 0 10px;
  }
  .qf-bar::after { width: 100%; height: 0; transition: height .55s ease; }
  .qf-bar.is-filled::after { height: 100%; }
}

/* Hero estable: texto anclado arriba, panel centrado (evita el baile) */
.plan-visual { align-self: center; }

/* ===== Franja "El Marcador" (#scoreboard) — sustituye a #flujo ===== */

/* Full-bleed seguro: overflow-x:clip evita scroll horizontal por el 100vw
   sin romper position:sticky del header (a diferencia de overflow:hidden). */
html{ overflow-x:clip; }

.wd-scoreboard{
  position:relative;
  margin:46px 0 0;
  background:linear-gradient(140deg,#08241d,#123f33);
  color:#fff;
  padding:44px 40px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 26px 60px rgba(8,36,29,.24);
}
.wd-inner{ max-width:100%; margin:0; padding:0; }

.wd-anchor{
  position:absolute; top:-90px; left:0; width:1px; height:1px;
  pointer-events:none;
}

.wd-head{ position:relative; max-width:780px; }
.wd-eyebrow{
  margin:0 0 10px; color:#c39a52; font-size:12px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
}
.wd-heading{
  margin:0 0 12px; color:#fff; font-weight:600; line-height:1.15;
  font-size:clamp(24px,3.4vw,34px);
}
.wd-sub{ margin:0 0 18px; max-width:640px; color:rgba(255,255,255,.74); font-size:16px; line-height:1.5; }
.wd-sweep{
  display:block; height:1px; width:230px;
  background:linear-gradient(90deg, rgba(195,154,82,0), rgba(195,154,82,.9), rgba(195,154,82,0));
  transform:scaleX(0); transform-origin:left; transition:transform .9s ease;
}
.wd-scoreboard.is-in .wd-sweep{ transform:scaleX(1); }

/* ---- Grid de tiles ---- */
.wd-tiles{
  position:relative; display:grid; grid-template-columns:repeat(4,1fr);
  gap:16px; margin-top:32px;
}
.wd-tiles::after{
  content:''; position:absolute; left:8px; right:8px; bottom:-10px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(195,154,82,.35), transparent);
  transform:scaleX(0); transform-origin:left; transition:transform .9s ease .9s;
}
.wd-scoreboard.is-in .wd-tiles::after{ transform:scaleX(1); }

.wd-tile{
  position:relative;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s ease, border-color .2s ease;
}
.wd-tile:hover, .wd-tile:focus-within{
  transform:translateY(-2px); border-color:rgba(195,154,82,.4);
}
.wd-tile:hover .wd-num{ text-shadow:0 0 12px rgba(20,165,131,.5); }

.wd-visual{
  position:relative; height:96px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
.wd-t-title{ margin:0 0 8px; color:#fff; font-size:15px; font-weight:600; line-height:1.3; }
.wd-t-copy{ margin:0; color:rgba(255,255,255,.74); font-size:14px; line-height:1.55; }

.wd-num{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:26px; font-weight:600; letter-spacing:-.01em; color:#fff;
}

/* ---- Tile 1: gauge (se LLENA = mejora, no se encoge) ---- */
.wd-gauge{ width:150px; height:auto; }
.wd-gauge-track{ fill:none; stroke:rgba(255,255,255,.12); stroke-width:12; stroke-linecap:round; }
.wd-arc{
  fill:none; stroke:#14a583; stroke-width:12; stroke-linecap:round;
  stroke-dasharray:289; stroke-dashoffset:289;
  transition:stroke-dashoffset 1.2s ease-out;
}
.wd-scoreboard.is-in .wd-arc{ stroke-dashoffset:52; }
.wd-tile--gauge .wd-num{ position:absolute; left:0; right:0; bottom:2px; text-align:center; }
.wd-was{
  position:absolute; top:12px; left:0; right:0; text-align:center;
  font-size:11px; font-weight:600; letter-spacing:.02em;
  color:rgba(255,255,255,.5); text-decoration:line-through;
  text-decoration-color:rgba(201,134,50,.7);
}

/* ---- Tile 2: calibre ---- */
.wd-caliper{
  width:2px; height:44px;
  background:linear-gradient(180deg, rgba(195,154,82,0), #c39a52, rgba(195,154,82,0));
  transition:transform .25s ease 1s;
}
.wd-caliper--l{ transform:translateX(-14px); }
.wd-caliper--r{ transform:translateX(14px); }
.wd-scoreboard.is-in .wd-caliper{ transform:translateX(0); }
.wd-tile--caliper .wd-num{ color:#3fd0a5; font-size:24px; }

/* ---- Tile 3: feed vivo ---- */
.wd-feed{ flex-direction:column; gap:10px; }
.wd-dots{ display:flex; gap:10px; }
.wd-dot{
  width:12px; height:12px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #dff7ef, #0f7a62);
  box-shadow:0 0 10px rgba(15,122,98,.5);
  animation:wd-pulse 3s ease-in-out infinite;
}
.wd-dot:nth-child(2){ animation-delay:.3s; }
.wd-dot:nth-child(3){ animation-delay:.6s; }
@keyframes wd-pulse{ 0%,100%{opacity:.35} 50%{opacity:1} }
.wd-num--feed{ color:#3fd0a5; font-size:28px; line-height:1; }
.wd-badge-today{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600; color:#dff7ef;
  background:rgba(20,165,131,.14); border:1px solid rgba(20,165,131,.35);
  border-radius:999px; padding:5px 11px;
}
.wd-badge-today svg{ width:13px; height:13px; color:#3fd0a5; }

/* ---- Tile 3: Scribe (sobres A/B/C y firma) ---- */
/* Colores por CLASE (nunca var() en atributos SVG). */
.wd-scribe{ flex-direction:column; gap:8px; }
.wd-scribe > svg{ height:64px; width:auto; overflow:visible; }
.wd-env-body{ fill:#fff; stroke:rgba(15,122,98,.18); stroke-width:1.5; }
.wd-env--b .wd-env-body{ fill:#eef6f3; }
.wd-env--c .wd-env-body{ fill:#dcebe5; }
.wd-env-flap{ fill:none; stroke:#b9cfc6; stroke-width:1.6; stroke-linejoin:round; }
.wd-env-tag{ fill:#0f7a62; }
.wd-env--a .wd-env-tag{ fill:#c39a52; }
.wd-env-letter{ fill:#fff; font:700 12px Inter, ui-sans-serif, system-ui, sans-serif; text-anchor:middle; }
.wd-sign{ fill:none; stroke:#123f33; stroke-width:1.8; stroke-linecap:round; stroke-dasharray:60; stroke-dashoffset:60;
  transition:stroke-dashoffset .7s ease-out .9s; }
.wd-env{ transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.wd-env--b{ transform:translate(-26px, -6px); }
.wd-env--c{ transform:translate(-56px, -12px); }
.wd-scoreboard.is-in .wd-env--b,
.wd-scoreboard.is-in .wd-env--c{ transform:none; }
.wd-scoreboard.is-in .wd-sign{ stroke-dashoffset:0; }

/* ---- Tile 4: evidencia / cadena de custodia ---- */
/* Colores del mock por CLASE (nunca var() en atributos SVG: evita cajas negras). */
.wd-evidence svg{ width:150px; height:auto; }
.wd-ev-paper{ fill:#fff; }
.wd-ev-line{ fill:var(--line); }
.wd-ev-hl{ fill:var(--green-soft); }
.wd-ev-hltext{ fill:var(--green); }
.wd-trace{
  stroke:var(--green);
  stroke-dasharray:170; stroke-dashoffset:170;
  transition:stroke-dashoffset .6s ease-out .5s;
}
.wd-scoreboard.is-in .wd-trace{ stroke-dashoffset:0; }
.wd-chip{
  position:absolute; right:2px; bottom:8px;
  display:inline-flex; align-items:center; gap:6px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px; font-weight:600; color:#16233a;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:5px 10px; box-shadow:0 6px 16px rgba(13,27,62,.35);
  opacity:0; transform:translateY(4px);
  transition:opacity .4s ease .9s, transform .4s ease .9s;
}
.wd-scoreboard.is-in .wd-chip{ opacity:1; transform:none; }
.wd-chip-dot{ width:7px; height:7px; border-radius:50%; background:var(--green); }

/* ---- Responsive ---- */
@media (max-width:900px){
  .wd-tiles{ grid-template-columns:repeat(2,1fr); }
  .wd-tiles::after{ display:none; }
}
@media (max-width:720px){ .wd-scoreboard{ padding:30px 20px; margin-top:34px; } }
@media (max-width:560px){ .wd-tiles{ grid-template-columns:1fr; } }

/* ---- Reduced motion: congela TODA la sección en su estado resuelto ---- */
@media (prefers-reduced-motion: reduce){
  .wd-sweep{ transform:scaleX(1) !important; }
  .wd-arc{ transition:none !important; stroke-dashoffset:52 !important; }
  .wd-caliper{ transition:none !important; transform:translateX(0) !important; }
  .wd-dot{ animation:none !important; opacity:1 !important; }
  .wd-env{ transition:none !important; transform:none !important; }
  .wd-sign{ transition:none !important; stroke-dashoffset:0 !important; }
  .wd-trace{ transition:none !important; stroke-dashoffset:0 !important; }
  .wd-chip{ transition:none !important; opacity:1 !important; transform:none !important; }
  .wd-tile{ transition:none !important; }
  .wd-tiles::after{ transition:none !important; transform:scaleX(1) !important; }
}

/* ============================================================
   Sección "Bajo invitación" (No se vende en abierto)
   ============================================================ */
.invite {
  margin: 92px 0 0;
  padding: 46px 44px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(140deg, #08241d, #123f33);
  box-shadow: 0 26px 60px rgba(8,36,29,.24);
}
.invite-eyebrow {
  margin: 0 0 12px;
  color: #c39a52;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.invite-h {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}
.invite-copy {
  margin: 0 0 18px;
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.6;
}
.invite-copy:last-of-type { margin-bottom: 26px; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.invite .btn-primary {
  color: #0d2b22;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.invite .btn-primary:hover { background: #eef4f1; }
.invite .btn-line {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.34);
}
.invite .btn-line:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

@media (max-width: 720px) {
  .invite { padding: 32px 22px; margin-top: 60px; }
  .invite-actions .btn { width: 100%; }
}

/* ===== Flujo de trabajo ===== */
.fl-wrap { position: relative; padding: 44px 44px 34px; border-radius: 20px; background: rgba(255,255,255,.9);
  border: 1px solid rgba(203,211,220,.96); box-shadow: 0 24px 70px rgba(18,39,62,.13); }
.fl-eyebrow { margin: 0; color: #0f7a62; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.fl-h { margin: 10px 0 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 850; line-height: 1.1; max-width: 760px; }
.fl-sub { margin: 12px 0 0; color: #536171; font-size: 16px; line-height: 1.6; max-width: 700px; }
.fl-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(31,48,63,.16); background: #fff; color: #22313f; font-size: 20px; cursor: pointer; }
.fl-steps { position: relative; margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.fl-steps::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, #14a583, #4abed2 55%, #255dd8); border-radius: 2px; }
.fl-step { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.fl-dot { justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #0f7a62; position: relative; z-index: 1;
  box-shadow: 0 0 0 5px rgba(15,122,98,.12); }
.fl-text { text-align: right; }
.fl-step:nth-child(even) .fl-text { order: 3; text-align: left; }
.fl-step:nth-child(even) .fl-card { order: 1; }
.fl-step:nth-child(even) .fl-dot { order: 2; }
.fl-when { display: inline-flex; align-items: center; gap: 8px; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #0f7a62; letter-spacing: .02em; }
.fl-plan { font: 800 10.5px Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #123f33;
  background: #dff7ef; border: 1px solid rgba(15,122,98,.22); border-radius: 999px; padding: 3px 8px; }
.fl-text h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 850; line-height: 1.25; }
.fl-text p { margin: 0; color: #536171; font-size: 14.5px; line-height: 1.55; }
.fl-card { background: #fff; border: 1px solid rgba(203,211,220,.96); border-radius: 12px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(18,39,62,.07); font-size: 13px; color: #22313f; }
.fl-card .k { color: #6b7785; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fl-card .t { margin-top: 4px; font-weight: 800; font-size: 14px; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fl-chip { font: 700 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #173a5e; background: #eef4f8; border-radius: 6px; padding: 4px 7px; }
.fl-chip.ok { color: #0b5d4c; background: #dff7ef; }
.fl-rows { display: grid; gap: 6px; margin-top: 8px; }
.fl-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 7px; background: #f5f8fb; }
.fl-row.hl { background: #dff7ef; color: #0b5d4c; font-weight: 800; }
.fl-row b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fl-env { display: flex; gap: 8px; margin-top: 8px; }
.fl-env span { flex: 1; text-align: center; padding: 10px 0; border-radius: 8px; background: #eef6f3; border: 1px solid rgba(15,122,98,.18); font-weight: 900; color: #0f7a62; }
.fl-note { margin: 26px 0 0; color: #6b7785; font-size: 12.5px; text-align: center; }
.fl-cta { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.fl-step:last-child .fl-dot { background:#0f7a62; box-shadow:0 0 0 6px rgba(15,122,98,.22); }
.fl-step:last-child .fl-when { color:#123f33; font-size:13px; }
.fl-step:last-child h3 { color:#0b5d4c; }
/* Ventana emergente (<dialog> nativo: Esc, foco y capa superior del navegador) */
dialog.fl-modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 40px 20px; border: 0; background: transparent; color: inherit; overflow-y: auto; overscroll-behavior: contain; }
dialog.fl-modal[open] { display: flex; align-items: flex-start; justify-content: center; }
dialog.fl-modal::backdrop { background: rgba(9,22,30,.42); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.fl-modal .fl-wrap { width: 100%; max-width: 880px; }
.fl-wrap:focus { outline: none; }
html.fl-abierto { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  dialog.fl-modal[open] .fl-wrap { animation: fl-entra .22s ease-out; }
  @keyframes fl-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .fl-wrap { padding: 30px 20px 26px; }
  .fl-steps::before { left: 13px; }
  .fl-step { grid-template-columns: 28px 1fr; gap: 10px 12px; align-items: start; }
  .fl-dot { grid-row: 1 / span 2; justify-self: start; margin-top: 4px; }
  .fl-text, .fl-step:nth-child(even) .fl-text { order: 0; text-align: left; grid-column: 2; }
  .fl-card, .fl-step:nth-child(even) .fl-card { order: 0; grid-column: 2; }
  .fl-step:nth-child(even) .fl-dot { order: 0; }
  dialog.fl-modal { padding: 16px 0 0; }
  .fl-modal .fl-wrap { border-radius: 20px 20px 0 0; min-height: 100%; padding-top: 58px; }
  .fl-close { position: fixed; top: 26px; right: 14px; z-index: 2; box-shadow: 0 6px 18px rgba(18,39,62,.16); }
}

/* Botón de cierre: anula el relleno y el degradado globales de <button> */
.fl-close { padding: 0; line-height: 0; font-weight: 400; background: #fff; color: #22313f;
  box-shadow: 0 4px 12px rgba(18,39,62,.10); transition: background .15s ease, color .15s ease; }
.fl-close:hover { background: #eef4f8; color: #0f7a62; }
.fl-close:focus-visible { border-radius: 50%; outline-offset: 3px; }
.fl-close svg { display: block; }

/* Animación de entrada del flujo: la línea se dibuja de arriba abajo y los
   pasos aparecen en orden. Se reinicia cada vez que se abre la ventana. */
@media (prefers-reduced-motion: no-preference) {
  dialog.fl-modal[open] .fl-steps::before { transform-origin: top; animation: fl-linea 1s cubic-bezier(.3,.7,.3,1) .1s both; }
  dialog.fl-modal[open] .fl-step { animation: fl-paso .45s cubic-bezier(.2,.7,.3,1) var(--fl-d, .25s) both; }
  dialog.fl-modal[open] .fl-step .fl-dot { animation: fl-punto .45s cubic-bezier(.3,1.6,.5,1) calc(var(--fl-d, .25s) + .1s) both; }
  dialog.fl-modal[open] .fl-step .fl-card { animation: fl-tarjeta .5s cubic-bezier(.2,.7,.3,1) calc(var(--fl-d, .25s) + .12s) both; }
  dialog.fl-modal[open] .fl-step:last-child .fl-dot { animation: fl-punto .45s cubic-bezier(.3,1.6,.5,1) calc(var(--fl-d, .25s) + .1s) both,
    fl-latido 2s ease-in-out calc(var(--fl-d, .25s) + .5s) 3; }
  dialog.fl-modal[open] .fl-note, dialog.fl-modal[open] .fl-cta { animation: fl-paso .4s ease-out 1.2s both; }
  dialog.fl-modal[open] .fl-step:nth-child(1) { --fl-d: 0.15s; }
  dialog.fl-modal[open] .fl-step:nth-child(2) { --fl-d: 0.27s; }
  dialog.fl-modal[open] .fl-step:nth-child(3) { --fl-d: 0.39s; }
  dialog.fl-modal[open] .fl-step:nth-child(4) { --fl-d: 0.51s; }
  dialog.fl-modal[open] .fl-step:nth-child(5) { --fl-d: 0.63s; }
  dialog.fl-modal[open] .fl-step:nth-child(6) { --fl-d: 0.75s; }
  dialog.fl-modal[open] .fl-step:nth-child(7) { --fl-d: 0.87s; }
  dialog.fl-modal[open] .fl-step:nth-child(8) { --fl-d: 0.99s; }
  @keyframes fl-linea { from { transform: translateX(-1px) scaleY(0); } to { transform: translateX(-1px) scaleY(1); } }
  @keyframes fl-paso { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fl-tarjeta { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes fl-punto { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes fl-latido { 0%, 100% { box-shadow: 0 0 0 6px rgba(15,122,98,.22); } 50% { box-shadow: 0 0 0 11px rgba(15,122,98,.06); } }
}
