@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("/fuentes/Geist-Variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/fuentes/GeistMono-Variable.woff2") format("woff2"); }
.lang a { display: inline-flex; align-items: center; padding: 6px 10px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--tint); color: var(--ink); }
.lang a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; margin-top: 18px; }
.legal .fecha { margin-top: 14px; font: 13px var(--mono); color: var(--faint); }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: 40px; }
.legal p { color: var(--ink-2); margin-top: 12px; max-width: 68ch; }
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 18px; }
.nf .hero-cta { margin-top: 28px; }
/* ==========================================================================
   Maqueta de duehub.app, la web institucional de DueHub.

   Estructura de la landing de DueHub Match (rieles de 1 px, rótulos mono con punto,
   titulares livianos en dos tonos, trama de barras inclinadas del isotipo en una esquina,
   banner final de color), con identidad propia: clara, en blancos y grises fríos, azul
   cobalto y tinta azul marino. Match conserva su fucsia y turquesa donde aparece.

   Servir esta carpeta:  python3 -m http.server 4700   →   http://localhost:4700/
   ========================================================================== */
:root {
  color-scheme: light;
  --ink: #0b1b33; --ink-2: #2a3a55; --muted: #5b6b82; --faint: #627189; --soft: #7e8ca3;
  --canvas: #f4f6fa; --surface: #ffffff; --surface-2: #f8fafc; --tint: #eaf0fb;
  --line: #e3e8f0; --line-strong: #cfd7e3;
  --blue: #2f6bff; --blue-action: #2c68fc; --blue-deep: #1437a8; --sky: #8ec5ff; --sky-wash: #e7f1ff;
  --grad: linear-gradient(100deg, #1437a8 0%, #2f6bff 55%, #8ec5ff 100%);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rail: min(1240px, calc(100% - 32px));
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.band { position: relative; border-top: 1px solid var(--line); }
.col { width: var(--rail); margin-inline: auto; border-inline: 1px solid var(--line); position: relative; }
.inner { padding: clamp(56px, 8vw, 104px) var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.18); }
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; margin-top: 18px; }
.soft { color: var(--soft); }
.lede { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 18px; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 500; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-action); color: #fff; box-shadow: 0 10px 24px -12px rgba(47,107,255,.7); }
.btn-primary:hover { background: #245de8; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .arr { font-family: var(--mono); }

.trama { position: absolute; pointer-events: none; z-index: 0; }
.trama svg { display: block; width: 100%; height: 100%; }
.band > .col > *:not(.trama) { position: relative; z-index: 1; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,246,250,.84); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .col { display: flex; align-items: center; gap: 24px; height: 64px; padding-inline: var(--pad); border-inline-color: transparent; }
.nav .logo img { height: 24px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0 auto; padding: 0; font-size: 14px; color: var(--ink-2); }
.nav ul a:hover { color: var(--blue-deep); }
.nav .right { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.lang button { border: 0; background: none; padding: 6px 10px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--tint); color: var(--ink); }

/* Héroe */
.hero .col { display: grid; grid-template-columns: 1fr 1.05fr; min-height: min(720px, calc(100vh - 64px)); }
.hero-copy { padding: clamp(56px, 9vw, 116px) var(--pad) 56px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: .98; margin-top: 26px; }
.hero .lede { font-size: 18px; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-media { position: relative; border-left: 1px solid var(--line); overflow: hidden; background: #eef3fc; }
.mesh { position: absolute; inset: 0; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .75; animation: flota 20s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { width: 72%; height: 70%; left: -16%; top: -18%; background: #8ec5ff; }
.mesh i:nth-child(2) { width: 60%; height: 64%; right: -18%; top: 10%; background: #2f6bff; opacity: .45; animation-delay: -7s; }
.mesh i:nth-child(3) { width: 56%; height: 50%; left: 16%; bottom: -20%; background: #c9dcff; animation-delay: -12s; }
@keyframes flota { from { transform: translate(0,0) scale(1); } to { transform: translate(5%, 4%) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .mesh i, .flujo i { animation: none !important; } }

.ledger { position: absolute; z-index: 2; left: 6%; right: 12%; top: 11%; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -36px rgba(11,27,51,.35); }
.ledger-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ledger-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ledger-bar i:first-child { background: var(--blue); } .ledger-bar i:nth-child(2) { background: var(--sky); }
.ledger-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.ledger-body { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 0; padding: 16px; }
.ledger-col h4 { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font: 12.5px var(--mono); color: var(--ink-2); }
.ledger-row b { color: var(--ink); font-weight: 500; }
.ledger-row.ok { border-color: #bfd4ff; background: var(--sky-wash); }
.ledger-row.open { border-style: dashed; color: var(--faint); background: transparent; }
.links { position: relative; }
.links span { position: absolute; left: 6px; right: 6px; height: 2px; border-radius: 2px; background: var(--blue); opacity: .55; }
.ledger-foot { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font: 12.5px var(--mono); color: var(--muted); }
.ledger-foot b { color: var(--blue-deep); font-weight: 500; }
.esfera { position: absolute; z-index: 1; width: min(96%, 660px); aspect-ratio: 1; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-media::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 68%); pointer-events: none; }
.ledger.main { left: 4%; right: auto; width: 440px; max-width: 64%; top: 5%; transform: scale(.86); transform-origin: top left; }
.ledger.ap { left: auto; right: 4%; width: 460px; max-width: 66%; top: auto; bottom: 15%; transform: scale(.86); transform-origin: bottom right; }
.ap-row span:first-child { white-space: nowrap; }
.ap-rows { padding: 10px 14px 12px; display: grid; gap: 6px; }
.ap-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ap-row .num { font: 12.5px var(--mono); color: var(--muted); }
.ap-row b.num { color: var(--ink); font-weight: 500; }
.st { font: normal 500 11px var(--mono); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: var(--sky-wash); color: var(--blue-deep); }
.st.wait { background: #fff4e0; color: #8a5a00; }
.ledger-row span, .ledger-row b { white-space: nowrap; }
.pill { position: absolute; z-index: 3; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #e8eef9; font: 13px var(--mono); white-space: nowrap; box-shadow: 0 18px 40px -18px rgba(11,27,51,.6); }
.pill img { height: 18px; width: auto; }

/* Franja de áreas */
.strip .col { display: grid; grid-template-columns: 220px 1fr; }
.strip .label { padding: 24px var(--pad); font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); display: flex; align-items: center; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.strip li { display: grid; place-items: center; padding: 20px 8px; border-right: 1px solid var(--line); font: 500 14px var(--sans); color: var(--ink); text-align: center; letter-spacing: -.01em; }
.strip li:last-child { border-right: 0; }

/* Declaración */
.statement p.big { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.14; letter-spacing: -.03em; max-width: 30ch; }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.area { padding: 30px 26px 8px 0; }
.area + .area { padding-left: 26px; border-left: 1px solid var(--line); }
.area .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--blue-deep); font: 600 13px var(--mono); }
.area h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-top: 18px; }
.area p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Productos */
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 48px; }
.product { position: relative; overflow: hidden; border-radius: 16px; padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.product.match { background: #111114; color: #f2f2f4; border: 1px solid #2c2c34; }
.product.match .status { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #c4c4cc; }
.product.match .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf95; box-shadow: 0 0 0 3px rgba(60,207,149,.2); }
.product.match img.plogo { height: 44px; width: auto; margin-top: 6px; }
.product.match h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; max-width: 20ch; }
.product.match h3 span { background: linear-gradient(100deg, #ff6fdd, #b98cf0 48%, #00ddff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product.match p { color: #9b9ba5; max-width: 46ch; }
.product.match ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product.match li { font: 12.5px var(--mono); color: #c4c4cc; border: 1px solid #3a3a44; border-radius: 999px; padding: 6px 11px; }
.product.match .go { margin-top: auto; align-self: flex-start; background: linear-gradient(100deg, #ff6fdd, #b98cf0 48%, #00ddff); color: #111114; }
.product.next { background: var(--surface); border: 1px dashed var(--line-strong); }
.product.next .status { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product.next h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.product.next p { color: var(--muted); }
.product.next .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.product.next .tags span { font: 12.5px var(--mono); color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.principle { padding: 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle .n { font: 12px var(--mono); color: var(--blue-deep); }
.principle h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: 12px; }
.principle p { color: var(--muted); font-size: 15.5px; margin-top: 8px; max-width: 52ch; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about .lede { margin-top: 0; font-size: 18px; color: var(--ink-2); }
.about .lede + .lede { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.about dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.about dl div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about dt { color: var(--muted); font-size: 14.5px; }
.about dd { margin: 0; font-weight: 500; text-align: right; }

/* Seguridad */
.sec-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); }
.sec-list li { display: grid; gap: 6px; padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-list b { font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.sec-list b::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); flex: none; }
.sec-list span { color: var(--muted); font-size: 14.5px; }

/* Preguntas */
.faq { max-width: 820px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-size: 18px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--mono); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 64ch; }

/* Caminos de contacto */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; position: relative; z-index: 1; }
.route { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.route:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.route span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #cfe0ff; }
.route b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.route em { font-style: normal; font-size: 13.5px; color: #dbe8ff; }

/* Contacto (banner final) */
.cta .col { border-inline-color: transparent; }
.cta-card { position: relative; overflow: hidden; background: linear-gradient(100deg, #1437a8 0%, #2459f0 55%, #4a8cff 100%); color: #fff; padding: clamp(48px, 7vw, 96px) var(--pad); }
.cta-card .eyebrow { color: #dbe8ff; } .cta-card .eyebrow::before { background: #fff; box-shadow: none; }
.cta-card h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.03; margin-top: 18px; max-width: 18ch; font-weight: 500; }
.cta-card p { margin-top: 16px; max-width: 46ch; font-size: 17px; color: #dbe8ff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.btn-white { background: #fff; color: var(--blue-deep); }
.mail { font: 500 15px var(--mono); color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.copy { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: 500 13px var(--sans); cursor: pointer; }

/* Pie */
.foot .col { padding: 48px var(--pad) 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-top img { height: 24px; width: auto; }
.foot-top p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; }
.foot ul a:hover { color: var(--blue-deep); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Responsive */
@media (max-width: 1000px) {
  .nav ul { display: none; }
  .hero .col { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 560px; border-left: 0; border-top: 1px solid var(--line); }
  .strip .col { grid-template-columns: 1fr; }
  .strip .label { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip ul { grid-template-columns: repeat(3, 1fr); }
  .strip li:nth-child(3n) { border-right: 0; }
  .strip li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(3) { padding-left: 0; border-left: 0; }
  .area:nth-child(n+3) { border-top: 1px solid var(--line); }
  .products, .about, .sec-grid { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav .col { gap: 12px; }
  .nav .right .btn { display: none; }
  .ledger.main, .ledger.ap { max-width: none; width: 92%; transform: none; }
  .ledger.main { left: 4%; top: 4%; }
  .ledger.ap { right: 4%; bottom: 11%; }
  .st { font-size: 10px; padding: 2px 6px; }
  .esfera { width: 96%; top: 50%; }
  .ledger-body { grid-template-columns: 1fr 14px 1fr; padding: 10px; }
  .ledger-row { font-size: 10px; padding: 6px 7px; gap: 6px; }
  .ap-row { grid-template-columns: 1fr auto auto; font-size: 12px; }
  .ap-row > span.num { display: none; }
  .hero-media { min-height: 700px; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .strip li:nth-child(2n) { border-right: 0 !important; }
  .areas, .principles, .sec-list { grid-template-columns: 1fr; }
  .area { padding-left: 0 !important; border-left: 0 !important; }
  .area + .area { border-top: 1px solid var(--line); }
  .pill { font-size: 11.5px; }
  .foot-top { grid-template-columns: 1fr; }
}
