/* =========================================================
   Blupuy — Web empresarial
   Marca: azul #2E6FCA · Sora (wordmark) · Inter (UI)
   ========================================================= */

:root {
  /* Marca */
  --blue: #2E6FCA;
  --blue-hover: #255BA8;
  --sky: #EAF1FB;

  /* Derivados */
  --blue-50: #F4F8FD;
  --blue-200: #BFD3F0;
  --blue-300: #8DB2E6;
  --navy: #0A1A33;
  --navy-2: #0F2547;
  /* Fondo del hero (más suave). Rollback: --hero-1: var(--navy-2); --hero-2: var(--navy); --hero-3: #06112A */
  --hero-1: #2A5A9E;
  --hero-2: #1D4580;
  --hero-3: #163A6E;
  --menu-bg: #1E4782; /* header con menú abierto + panel, a tono con el hero. Rollback: var(--navy-2) */

  /* Neutros */
  --ink: #0E1626;
  --text: #2B3445;
  --muted: #667085;
  --line: #E4E9F1;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;

  /* Sistema */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(14,22,38,.04), 0 8px 24px rgba(14,22,38,.06);
  --shadow-lg: 0 24px 64px rgba(10,26,51,.22);
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Sora", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--muted); }
.muted-light { color: var(--blue-300); }
.ico-sm { width: 16px; height: 16px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav-link:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(46,111,202,.28); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--sky); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 15px; }
.link-arrow .ico-sm { transition: transform .2s var(--ease); }
.link-arrow:hover .ico-sm, .card:hover .link-arrow .ico-sm, .press:hover .link-arrow .ico-sm { transform: translateX(4px); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow-light { color: var(--blue-200); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.logo-mark { width: 32px; height: 32px; color: var(--blue); }
.wordmark { font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.01em; font-size: 24px; line-height: 1; color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.site-header .wordmark, .site-header .nav-link, .site-header .link-quiet { color: #fff; transition: color .3s; }
/* Ícono sobre fondo oscuro: rect blanco, trazo azul */
.site-header:not(.scrolled):not(.open) .logo-mark { color: #fff; --mark-stroke: var(--blue); }
.site-header.scrolled, .site-header.open {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .wordmark, .site-header.open .wordmark { color: var(--blue); }
.site-header.scrolled .logo-mark, .site-header.open .logo-mark { color: var(--blue); }
.site-header.scrolled .nav-link, .site-header.scrolled .link-quiet,
.site-header.open .nav-link, .site-header.open .link-quiet { color: var(--ink); }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: none; border: 0; font-size: 15px; font-weight: 500;
}
.nav-link:hover { background: rgba(255,255,255,.12); }
.site-header.scrolled .nav-link:hover { background: var(--bg-soft); }
.has-menu .ico-sm { width: 14px; height: 14px; transition: transform .2s; }
.has-menu.open .ico-sm { transform: rotate(180deg); }

/* Header con un menú abierto: fondo oscuro, como el panel */
.site-header.menu-open {
  background: var(--menu-bg);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header.menu-open .wordmark,
.site-header.menu-open .nav-link,
.site-header.menu-open .link-quiet { color: #fff; }
.site-header.menu-open .logo-mark { color: #fff; --mark-stroke: var(--blue); }
.site-header.menu-open .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.site-header.menu-open .nav-link:hover { background: rgba(255,255,255,.1); }
/* Botón del menú activo: queda marcado en gris */
.site-header .has-menu.open .nav-link,
.site-header .has-menu.open .nav-link:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Panel desplegable a todo el ancho */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--menu-bg);
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 32px 64px rgba(6,17,42,.35);
  padding: 36px 0 44px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.has-menu.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.mega-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-content: start; }
.mega-item { display: block; padding: 10px 14px; margin: 0 -14px; border-radius: 12px; transition: background .2s; }
.mega-item strong { display: block; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mega-item span { display: block; margin-top: 2px; color: #B9C9E0; font-size: 14.5px; line-height: 1.45; max-width: 380px; }
.mega-item:hover { background: rgba(255,255,255,.06); }
.mega-item:hover strong { color: var(--blue-200); }
.mega-aside { border-left: 1px solid rgba(255,255,255,.12); padding: 10px 0 0 32px; }
.mega-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #8FA3C2; margin-bottom: 12px; }
.mega-aside a { display: block; padding: 4px 0; color: #fff; font-size: 15px; font-weight: 500; }
.mega-aside a:hover { color: var(--blue-200); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.link-quiet { font-size: 15px; font-weight: 500; }
.site-header:not(.scrolled):not(.open) .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.site-header:not(.scrolled):not(.open) .btn-primary:hover { background: var(--sky); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, top .25s, background .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.site-header.scrolled .menu-toggle span, .site-header.open .menu-toggle span { background: var(--ink); }
.site-header.open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.site-header.open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { padding: 8px 24px 24px; background: #fff; border-top: 1px solid var(--line); }
.mobile-menu > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 18px; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 70% 0%, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  padding: calc(var(--header-h) + 72px) 0 120px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,111,202,.55) 0%, rgba(46,111,202,0) 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-rings { position: absolute; right: 8%; top: 50%; width: 0; height: 0; }
.hero-rings span {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(141,178,230,.18); transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite;
}
.hero-rings span:nth-child(1) { width: 380px; height: 380px; }
.hero-rings span:nth-child(2) { width: 600px; height: 600px; animation-delay: 1s; }
.hero-rings span:nth-child(3) { width: 840px; height: 840px; animation-delay: 2s; }
.hero-rings span:nth-child(4) { width: 1100px; height: 1100px; animation-delay: 3s; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.04em; line-height: 1.0; font-weight: 600; }
.hero .lead { margin-top: 24px; font-size: 20px; color: #C9D6EA; max-width: 520px; }
.hero-form {
  margin-top: 36px; display: flex; gap: 8px; max-width: 480px; padding: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-form input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; background: transparent;
  color: #fff; font: inherit; font-size: 16px;
}
.hero-form input::placeholder { color: #B3C4DD; }
.hero-form input:focus { outline: none; }
.hero-secondary { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; color: #fff; opacity: .9; }
.hero-secondary:hover { opacity: 1; }
.fineprint { margin-top: 28px; font-size: 12px; color: #A9BCD8; max-width: 460px; }

/* Ventana UI del hero */
.hero-visual { position: relative; perspective: 1400px; }
.ui-window {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden; transform: rotateY(-8deg) rotateX(4deg); transform-origin: left center;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ui-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE7; }
.ui-body { display: grid; grid-template-columns: 64px 1fr; min-height: 340px; }
.ui-side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ui-logo { width: 28px; height: 28px; color: var(--blue); margin-bottom: 8px; }
.ui-side b { width: 24px; height: 8px; border-radius: 4px; background: var(--line); }
.ui-side b.on { background: var(--blue); }
.ui-main { padding: 22px 24px; color: var(--ink); }
.ui-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.ui-amount { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; }
.ui-amount span { color: var(--muted); font-size: 20px; }
.ui-chart { width: 100%; height: 96px; margin: 12px 0 16px; }
.draw { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2.4s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ui-rows div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ui-rows em { font-style: normal; flex: 1; color: var(--text); }
.ui-rows strong { font-weight: 600; }
.dot { width: 22px; height: 22px; border-radius: 7px; background: var(--sky); box-shadow: inset 0 0 0 6px var(--sky), inset 0 0 0 20px var(--blue); }
.dot.alt { box-shadow: inset 0 0 0 6px var(--sky), inset 0 0 0 20px var(--blue-300); }

.float-card { position: absolute; left: -48px; bottom: -48px; width: 230px; animation: floatY 6s 1s ease-in-out infinite; }

/* Tarjeta (pcard) reutilizable */
.pcard {
  position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px;
  background: linear-gradient(135deg, #3A7DDA 0%, var(--blue) 45%, #1E4F97 100%);
  box-shadow: 0 20px 40px rgba(10,26,51,.35), inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff; overflow: hidden;
}
.pcard::after {
  content: ""; position: absolute; width: 180%; height: 120%; right: -100%; top: -40%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 60%);
}
.pcard-mark { width: 30px; height: 30px; color: rgba(255,255,255,.18); }
.pcard-chip { position: absolute; left: 18px; top: 46%; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #E9EEF6, #B9C6DA); }
.pcard-num { position: absolute; left: 18px; bottom: 16px; font-size: 14px; letter-spacing: .12em; font-weight: 500; }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 64px; max-width: 820px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.035em; }
.underline { position: relative; white-space: nowrap; color: var(--blue); }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C50 2 150 2 198 6' fill='none' stroke='%232E6FCA' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--sky); color: var(--blue); flex: none;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature-ico.light { background: rgba(255,255,255,.15); color: #fff; }

.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { font-size: 19px; margin: 20px 0 8px; letter-spacing: -0.015em; }
.feature p { font-size: 15px; color: var(--muted); }

/* Testimonios */
.tcard { margin: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tcard-photo { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; }
.tcard-photo span { font-family: var(--font-brand); font-size: 56px; color: rgba(255,255,255,.9); position: relative; }
.tcard-photo::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 14px solid rgba(255,255,255,.14); bottom: -30%; right: -15%; }
.tcard-photo.p1 { background: linear-gradient(140deg, #4A8BE3, var(--blue) 60%, #1E4F97); }
.tcard-photo.p2 { background: linear-gradient(140deg, #1E4F97, var(--navy-2)); }
.tcard-photo.p3 { background: linear-gradient(140deg, var(--blue-300), var(--blue)); }
.tcard figcaption { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.tcard blockquote { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.5; flex: 1; }
.who { font-size: 14px; color: var(--muted); }
.who strong { color: var(--ink); font-weight: 600; }

.quote-xl { margin: 80px auto 0; max-width: 900px; text-align: center; }
.quote-xl blockquote { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }
.quote-xl figcaption { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; text-align: left; font-size: 15px; color: var(--muted); }
.quote-xl strong { color: var(--ink); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.split + .split { margin-top: 120px; }
.split-rev .split-copy { order: 2; }
.split-copy h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.split-copy > p:not(.eyebrow) { margin: 18px 0 24px; color: var(--muted); font-size: 18px; max-width: 480px; }
.split-visual {
  position: relative; aspect-ratio: 1.2; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(90% 90% at 30% 20%, #fff 0%, var(--sky) 70%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}

.v-cards .pcard { position: absolute; width: 52%; transition: transform .6s var(--ease); }
.v-cards .pc-a { transform: translate(-30%, -24%) rotate(-12deg); }
.v-cards .pc-b { transform: translate(0, 0) rotate(-2deg); z-index: 2; }
.v-cards .pc-c { transform: translate(30%, 24%) rotate(9deg); background: linear-gradient(135deg, #16335F, var(--navy)); }
.v-cards:hover .pc-a { transform: translate(-40%, -30%) rotate(-16deg); }
.v-cards:hover .pc-c { transform: translate(40%, 30%) rotate(13deg); }

.mini-panel { width: 82%; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.mini-title { font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill { font-size: 12px; background: var(--sky); color: var(--blue); padding: 3px 10px; border-radius: 999px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-row em { flex: 1; font-style: normal; }
.mini-row strong { color: var(--ink); font-weight: 600; }
.sq { width: 28px; height: 28px; border-radius: 8px; background: var(--sky); }
.status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.status.ok { background: #E6F4EC; color: #1C7A47; }
.status.wait { background: var(--sky); color: var(--blue); }

.invoice { width: 64%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 24px; transform: rotate(-3deg); }
.inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 600; color: var(--ink); font-size: 14px; }
.inv-logo { width: 28px; height: 28px; color: var(--blue); }
.inv-line, .inv-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.inv-line em, .inv-total em { font-style: normal; color: var(--muted); }
.inv-total { border: 0; padding-top: 14px; }
.inv-total b { font-size: 20px; color: var(--ink); }
.inv-btn { display: block; margin-top: 16px; text-align: center; padding: 10px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; }

.v-match { place-items: initial; }
.receipt {
  position: absolute; left: 14%; top: 18%; width: 30%; aspect-ratio: .7; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-6deg);
}
.receipt span { height: 8px; border-radius: 4px; background: var(--line); }
.receipt span.short { width: 50%; background: var(--blue-200); }
.match-line { position: absolute; left: 40%; top: 50%; width: 22%; border-top: 2px dashed var(--blue); }
.match-badge { position: absolute; left: 49%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(46,111,202,.15); animation: pulse 3s ease-in-out infinite; }
.match-badge svg { width: 22px; height: 22px; }
.tx-chip { position: absolute; right: 10%; bottom: 26%; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 18px; font-size: 14px; }
.tx-chip em { font-style: normal; color: var(--muted); }
.tx-chip b { color: var(--ink); }

/* Cards genéricas */
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .link-arrow { margin-top: 8px; }
.card-art { height: 180px; border-radius: var(--radius); background: var(--sky); margin-bottom: 14px; position: relative; overflow: hidden; display: grid; place-items: center; }
.art-1 span { position: absolute; border-radius: 50%; border: 2px solid var(--blue); opacity: .4; }
.art-1 span:nth-child(1) { width: 60px; height: 60px; opacity: 1; background: var(--blue); }
.art-1 span:nth-child(2) { width: 110px; height: 110px; }
.art-1 span:nth-child(3) { width: 170px; height: 170px; opacity: .2; }
.art-2 .pcard.mini { width: 58%; transform: rotate(-8deg); }
.search-pill { display: flex; align-items: center; gap: 10px; width: 80%; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 14px; color: var(--muted); }
.search-pill svg { width: 18px; height: 18px; color: var(--blue); }
.search-pill span { flex: 1; }
.search-pill kbd { font: inherit; font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }

.card-num .big { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; color: var(--blue); line-height: 1; margin-bottom: 24px; flex: 0; }
.card-blue { background: var(--blue); border-color: var(--blue); }
.card-blue .big, .card-blue h3, .card-blue .link-arrow { color: #fff; }
.card-blue p { color: #D5E3F7; }

/* Operaciones */
.plain h3 { font-size: 21px; margin: 20px 0 8px; }
.plain p { color: var(--muted); font-size: 16px; }
.guidance {
  margin-top: 64px; padding: 40px 48px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue) 0%, #1E4F97 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.guidance::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.guidance > * { position: relative; z-index: 1; }
.guidance h3 { color: #fff; font-size: 26px; margin: 16px 0 8px; }
.guidance p { color: #D5E3F7; max-width: 620px; }

/* Stats */
.stats { background: var(--navy); color: #fff; overflow: hidden; }
.stats h2 { color: #fff; }
.stats-bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(141,178,230,.15); }
.stats-bg span:nth-child(1) { width: 700px; height: 700px; left: -250px; top: -300px; }
.stats-bg span:nth-child(2) { width: 500px; height: 500px; right: -150px; bottom: -280px; background: radial-gradient(circle, rgba(46,111,202,.35), transparent 65%); border: 0; }
.stat-row { position: relative; }
.stat { padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.stat p:not(.stat-num) { color: #A9BAD4; margin-top: 12px; font-size: 15px; }

/* Seguridad */
.split-sec h2 { margin-bottom: 40px; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.sec-list li { display: flex; gap: 18px; }
.sec-list h3 { font-size: 19px; margin: 4px 0 6px; }
.sec-list p { color: var(--muted); font-size: 15px; }
.v-shield { background: radial-gradient(circle at 50% 50%, #16335F 0%, var(--navy) 70%); border: 0; }
.shield-rings span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(141,178,230,.3); transform: translate(-50%,-50%); animation: ripple 4s ease-out infinite; }
.shield-rings span { width: 40%; aspect-ratio: 1; }
.shield-rings span:nth-child(2) { animation-delay: 1.33s; }
.shield-rings span:nth-child(3) { animation-delay: 2.66s; }
@keyframes ripple { from { width: 30%; opacity: 1; } to { width: 110%; opacity: 0; } }
.shield-mark { width: 26%; height: auto; aspect-ratio: 1; color: var(--blue); position: relative; filter: drop-shadow(0 20px 40px rgba(46,111,202,.6)); }

/* Prensa */
.press { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.press:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.press-logo { font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: .04em; }
.press-logo.serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; font-style: italic; }
.press-logo.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.press p { color: var(--text); font-size: 17px; flex: 1; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 140px 0; background: linear-gradient(160deg, var(--blue) 0%, #1E4F97 60%, var(--navy) 100%); color: #fff; }
.cta-bg span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); transform: translate(-50%,-50%); }
.cta-bg span:nth-child(1) { width: 500px; height: 500px; }
.cta-bg span:nth-child(2) { width: 820px; height: 820px; }
.cta-bg span:nth-child(3) { width: 1180px; height: 1180px; }
.cta .container { position: relative; }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 28px; color: #fff; --mark-stroke: var(--blue); }
.cta-mark { filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.cta h2 { color: #fff; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; max-width: 820px; margin: 0 auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* Paneles */
.panel { padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.panel-sky { background: var(--sky); border-color: transparent; }
.panel .eyebrow { margin: 0; }
.panel-price { font-size: 56px; font-weight: 600; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.panel-price span { font-size: 20px; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.panel > p:not(.eyebrow):not(.panel-price) { color: var(--muted); max-width: 440px; margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #A9BAD4; padding: 80px 0 48px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.logo-light .wordmark { color: #fff; }
.logo-light .logo-mark { color: var(--blue); }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.f-title { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-cols a { display: block; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin: 56px 0 32px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.legal { font-size: 12px; color: #7F93B3; line-height: 1.7; max-width: 980px; }
.legal + .legal { margin-top: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-actions .link-quiet { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 24px auto 0; width: 100%; }
  .ui-window { transform: none; }
  .float-card { left: -16px; bottom: -40px; width: 180px; }
  .hero-rings { right: 50%; top: 70%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 48px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 88px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split + .split { margin-top: 88px; }
  .split-rev .split-copy { order: 0; }
  .guidance { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-actions .btn { display: none; }
  .hero { padding: calc(var(--header-h) + 40px) 0 96px; }
  .hero .lead { font-size: 18px; }
  .hero-form { flex-direction: column; border-radius: 20px; }
  .hero-form .btn { width: 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-head { margin-bottom: 40px; }
  .panel { padding: 32px 24px; }
  .panel-price { font-size: 44px; }
  .card-num .big { font-size: 52px; }
  .ui-body { grid-template-columns: 48px 1fr; min-height: 0; }
  .ui-main { padding: 18px; }
  .ui-amount { font-size: 26px; }
  .float-card { width: 140px; bottom: -32px; }
  .pcard { padding: 12px; border-radius: 12px; }
  .pcard-num { font-size: 11px; left: 12px; bottom: 10px; }
  .pcard-chip { left: 12px; width: 26px; height: 20px; }
  .tx-chip { right: 6%; padding: 10px 12px; gap: 10px; font-size: 13px; }
  .cta { padding: 100px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}
