/* =========================================================
   ISAF Tech Consulting · estilos
   ========================================================= */

/* ---------- Tipografías (servidas desde el propio dominio) ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-greek.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --teal: #2dd4bf; --teal-2: #14a395; --teal-3: #0d7c72; --cyan: #22d3ee;
  --ink: #0b1416; --ink-2: #0f1c1f; --ink-3: #142427;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
.t-dark {
  --bg: var(--ink); --bg-2: var(--ink-2); --surface: var(--ink-2); --surface-2: #132225;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --text: #e6eff0; --muted: #93a5a7;
  --accent: #2dd4bf; --accent-2: #5eead4; --accent-soft: rgba(45, 212, 191, .1); --accent-line: rgba(45, 212, 191, .32); --on-accent: #04201d;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  background: var(--bg); color: var(--text);
}
.t-light {
  --bg: #f5f8f8; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f2f6f6;
  --line: #e1e8e8; --line-2: #cbd7d7;
  --text: #0f1b1d; --muted: #536366;
  --accent: #0d7c72; --accent-2: #0a655d; --accent-soft: rgba(13, 124, 114, .08); --accent-line: rgba(13, 124, 114, .3); --on-accent: #ffffff;
  --shadow: 0 24px 50px -30px rgba(10, 30, 32, .32);
  background: var(--bg); color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); line-height: 1.6; background: var(--ink); color: #e6eff0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
body::after { /* grano */
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--teal); color: #04201d; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.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 { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #04201d; padding: 8px 14px; border-radius: 8px; z-index: 10000; }
.skip:focus { left: 16px; }

/* ---------- Botones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); font: 600 1rem/1 var(--font);
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 18px 44px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { background: linear-gradient(110deg, transparent 30%, var(--accent-soft) 50%, transparent 70%); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.04rem; }

/* ---------- Barra de progreso y aviso ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--teal), var(--cyan)); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 9998; max-width: calc(100% - 32px);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: #0f1c1f; color: #e6eff0;
  border: 1px solid rgba(45, 212, 191, .35); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  font-weight: 500; font-size: .95rem; transition: opacity .35s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Navegación ---------- */
.nav {
  --accent: #2dd4bf; --on-accent: #04201d; --text: #e6eff0; --muted: #a9b9bb; --line-2: rgba(255, 255, 255, .15);
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--text);
  border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, transform .45s var(--ease);
}
.nav.solid { background: rgba(11, 20, 22, .94); border-bottom-color: rgba(255, 255, 255, .07); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.12rem; letter-spacing: -.01em; }
.brand b { color: var(--teal); font-weight: 700; }
.brand span { white-space: nowrap; }
.brand img { border-radius: 9px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(60deg); }
.links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: .95rem; }
.langs { display: flex; align-items: center; gap: 2px; margin-left: 20px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); }
.langs a { padding: 6px 9px; border-radius: 999px; color: var(--muted); font: 600 .72rem/1 var(--mono); letter-spacing: .06em; transition: color .2s, background .2s; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--teal); background: rgba(45, 212, 191, .14); }
.links a:not(.btn) { position: relative; color: var(--muted); transition: color .2s; }
.links a:not(.btn):hover, .links a.active { color: var(--text); }
.links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--teal); }
.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } 70%, to { transform: scale(2.4); opacity: 0; } }
.dot { position: relative; }
/* Las secciones lejos de la pantalla no se maquetan ni pintan hasta acercarse (carga más rápida en móvil) */
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ripple 2s 3; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(rgba(11, 20, 22, 0), var(--ink)); }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 52vw; height: 52vw; right: -8vw; top: -14vw; background: radial-gradient(circle, rgba(45, 212, 191, .26), transparent 62%); }
.b2 { width: 40vw; height: 40vw; left: -14vw; bottom: -18vw; background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 62%); }
.hexgrid {
  position: absolute; inset: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98'%3E%3Cg fill='none' stroke='%232dd4bf' stroke-opacity='.09'%3E%3Cpath d='M28 0v16L0 32.3v32.4L28 81v17M28 16l28 16.3v32.4L28 81'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 98px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 72% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 70% at 72% 45%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  color: var(--accent); font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.7rem, 5.3vw, 4.5rem); line-height: .96; letter-spacing: -.045em; margin: 26px 0; }
.hero-title .ln { display: block; overflow: hidden; padding: .1em 0 .12em; margin: -.1em 0 -.12em; }
/* Entrada de los titulares: animación CSS que empieza con el primer pintado, sin esperar al JavaScript */
.hero-title .ln > span { display: inline-block; animation: lnIn 1s var(--ease-out) calc(var(--i) * .08s + .05s) both; }
@keyframes lnIn { from { transform: translateY(115%); } }
.grad { background: linear-gradient(100deg, #5eead4, #2dd4bf 45%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { animation: introIn .8s var(--ease) calc(var(--i) * .07s + .1s) both; }
@keyframes introIn { from { opacity: 0; transform: translateY(18px); } }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.24rem); color: var(--muted); max-width: 560px; }
.lead.intro strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.own { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 46px; }
.own small { color: var(--muted); font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-right: 4px; }
.own-p {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.own-p svg { width: 18px; height: 18px; fill: none; stroke: var(--p); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.own-p:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--p) 60%, transparent); background: color-mix(in srgb, var(--p) 10%, transparent); }


/* =========================================================
   SECCIONES
   ========================================================= */
.sec { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ""; flex: none; width: 11px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 2 20 7.2v9.6L11 22 2 16.8V7.2z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 2 20 7.2v9.6L11 22 2 16.8V7.2z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.1vw, 3.3rem); line-height: 1.02; letter-spacing: -.035em; }
.sub { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.14rem); }
.link { color: var(--accent); border-bottom: 1px solid var(--accent-line); }

/* ---------- Bento de servicios ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: 26px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 30, 32, .04), 0 18px 40px -30px rgba(10, 30, 32, .25);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s), box-shadow .45s, border-color .45s;
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgba(13, 124, 114, .08), transparent 55%); }
.tile.in:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: 0 30px 60px -30px rgba(10, 30, 32, .38); }
.tile:hover::after { opacity: 1; }
.tile-ia { grid-column: span 2; grid-row: span 2; }
.tile-code, .tile-saas, .tile-strat { grid-column: span 2; flex-direction: row; align-items: stretch; }
.tile-code .tile-txt, .tile-saas .tile-txt, .tile-strat .tile-txt { flex: 0 0 36%; }
.tile-txt h3 { margin: 14px 0 6px; font-family: var(--display); font-size: 1.28rem; font-weight: 650; letter-spacing: -.02em; }
.tile-txt p { color: var(--muted); font-size: .94rem; max-width: 48ch; }
.tile-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tile-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viz { position: relative; flex: 1; min-width: 0; min-height: 160px; overflow: hidden; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }

/* IA: lectura del pliego */
.viz-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; align-content: center; gap: 20px; padding: 26px; background: linear-gradient(180deg, var(--surface-2), #e8f0f0); }
.doc-status { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(10, 30, 32, .3); color: var(--muted); font: 500 .74rem/1 var(--mono); white-space: nowrap; }
.doc-status b { color: var(--accent); }
.doc-status .spin { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.doc-status.done .spin { animation: none; background: var(--accent); border-top-color: var(--accent); }
.doc-stack { position: relative; }
.doc-stack::before, .doc-stack::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.doc-stack::before { transform: rotate(5deg) translate(12px, 8px); opacity: .55; }
.doc-stack::after { transform: rotate(1.5deg) translate(6px, 4px); opacity: .85; }
.tile-ia .viz-doc { row-gap: 26px; padding: 30px; }
.tile-ia .doc { padding: 20px 18px 26px; }
.tile-ia .doc-lines { gap: 11px; }
.tile-ia .doc-lines i { height: 8px; }
.tile-ia .extract { gap: 13px; }
.tile-ia .extract li { padding: 13px 15px; }
.doc { position: relative; z-index: 1; overflow: hidden; padding: 16px 16px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -24px rgba(10, 30, 32, .4); transform: rotate(-2deg); }
.doc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.doc-head b { color: #fff; background: var(--accent); font: 700 .62rem/1 var(--mono); padding: 4px 6px; border-radius: 4px; }
.doc-lines { display: grid; gap: 8px; }
.doc-lines i { display: block; width: var(--w); height: 7px; border-radius: 4px; background: #e2eaea; transition: background .35s, box-shadow .35s; }
.doc-lines i.on { background: rgba(13, 124, 114, .6); box-shadow: 0 0 0 3px rgba(13, 124, 114, .12); }
.scan { position: absolute; left: 0; right: 0; top: -60px; height: 48px; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(45, 212, 191, .26) 75%, rgba(45, 212, 191, .55)); border-bottom: 2px solid var(--teal); }
.doc.scanning .scan { animation: scan 3.6s linear forwards; }
@keyframes scan { 0% { top: -60px; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.extract { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.extract li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(10, 30, 32, .3);
  opacity: .28; transform: translateX(14px); transition: opacity .45s, transform .6s var(--ease), border-color .45s;
}
.extract li.on { opacity: 1; transform: none; border-color: var(--accent-line); }
.extract small { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.extract b { grid-column: 1; font-family: var(--display); font-size: 1.04rem; }
.extract em { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; font: 600 .68rem/1 var(--mono); font-style: normal; color: var(--accent-2); background: var(--accent-soft); padding: 5px 7px; border-radius: 6px; }

/* Código */
.viz-code { display: flex; flex-direction: column; background: #0b1416; border-color: #0b1416; }
.ed-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #93a5a7; font: 500 .7rem/1 var(--mono); white-space: nowrap; }
.ed-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a3d; }
.ed-bar i:nth-child(1) { background: #f2809a; } .ed-bar i:nth-child(2) { background: #f5c26b; } .ed-bar i:nth-child(3) { background: #2dd4bf; }
.ed-bar span { margin-left: 8px; color: #e6eff0; }
.ed-ok { margin-left: auto; color: #5eead4; font-weight: 500; }
.ed-ok::before { content: "● "; }
.ed { flex: 1; margin: 0; padding: 14px 16px; overflow: hidden; color: #e6eff0; font: 400 .78rem/1.75 var(--mono); white-space: pre; }
.ed .kw { color: #c4a5fd; } .ed .dec { color: #f5c26b; } .ed .fn { color: #5eead4; } .ed .str { color: #9ae6b4; } .ed .ty { color: #7dd3fc; } .ed .pu { color: #93a5a7; } .ed .cm { color: #56706f; }
.caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--teal); animation: blink 1s steps(1) infinite; }
.viz-code.hecho .caret { animation: none; opacity: 0; }
.viz-code.fading .ed code { opacity: 0; transition: opacity .35s; }
@keyframes blink { 50% { opacity: 0; } }

/* Cloud: pipeline */
.viz-pipe { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font: 500 .78rem/1 var(--mono); }
.pipe li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s; }
.pipe .st { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); }
.pipe li.run { color: var(--text); border-color: var(--accent-line); }
.pipe li.run .st { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.pipe li.done { color: var(--text); }
.pipe li.done .st { border-color: var(--accent); background: var(--accent); }
.pipe li.done .st::after { content: ""; position: absolute; left: 3.5px; top: .5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.pipe-bar { height: 4px; overflow: hidden; border-radius: 3px; background: var(--line); }
.pipe-bar i { display: block; height: 100%; width: var(--pp, 0%); background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .6s var(--ease); }
.pipe-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .84rem; transition: color .3s; }
.pipe-live span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.viz-pipe.live .pipe-live { color: var(--accent); }
.viz-pipe.live .pipe-live span { background: var(--accent); animation: ping 1.6s 3; }

/* Automatización */
.viz-auto { display: grid; place-items: center; padding: 14px; }
.flow { width: 100%; height: auto; max-height: 170px; overflow: visible; }
.flow path[id] { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 5; }
.tile-auto.vivo .flow path[id] { animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.flow .pulse { fill: var(--accent); }
.flow .node rect { fill: #fff; stroke: var(--line-2); }
.flow .node text { font: 600 12px var(--font); fill: var(--text); text-anchor: middle; }
.flow .hub path { fill: #0b1416; stroke: var(--teal); stroke-width: 2; }
.flow .hub circle { fill: var(--teal); }

/* SaaS: capas */
.viz-layers { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; padding: 12px 16px; }
.iso { position: relative; height: 196px; perspective: 900px; }
.iso-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.iso i {
  position: absolute; left: 50%; top: 64%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 124, 114, .16), rgba(13, 124, 114, .05)); border: 1.5px solid rgba(13, 124, 114, .35);
  transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--l) * 13px));
  transition: transform .7s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.viz-layers.open .iso i { transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--l) * 21px)); }
.tile-saas:hover .iso i { transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--l) * 25px)); }
.iso i.on { background: linear-gradient(135deg, rgba(45, 212, 191, .6), rgba(13, 124, 114, .38)); border-color: var(--teal-3); box-shadow: 0 0 34px rgba(45, 212, 191, .4); }
.layer-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .86rem; }
.layer-names li { padding: 6px 10px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; transition: all .35s; white-space: nowrap; }
.layer-names li.on { color: var(--text); background: #fff; border-color: var(--accent-line); box-shadow: 0 8px 20px -14px rgba(10, 30, 32, .35); }

/* Estrategia: hoja de ruta */
.viz-gantt { display: grid; align-content: center; gap: 11px; padding: 18px 18px 16px; }
.g-head, .g-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; }
.g-head { grid-template-columns: 104px repeat(8, 1fr); color: var(--muted); font: 500 .64rem/1 var(--mono); text-align: center; }
.g-head::before { content: ""; }
.g-row small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.g-track { position: relative; height: 14px; border-radius: 7px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12.5%); }
.g-track i { position: absolute; top: 0; bottom: 0; left: var(--a); width: var(--b); border-radius: 7px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) var(--d); }
.tile-strat.in .g-track i { transform: scaleX(1); }
.g-now { position: absolute; top: 34px; bottom: 12px; left: 122px; width: 2px; border-radius: 2px; background: #f2809a; animation-play-state: paused; }
.g-now b { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); padding: 2px 5px; border-radius: 4px; background: #f2809a; color: #fff; font: 600 .58rem/1.2 var(--mono); }
.viz-gantt.playing .g-now { animation-play-state: running; }

/* ---------- Cifras ---------- */
.stats { padding: 0 0 clamp(60px, 8vw, 110px); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat { display: grid; align-content: start; gap: 10px; padding: 34px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.odo { display: flex; height: 1em; overflow: hidden; color: var(--text); font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 3.9rem); line-height: 1; letter-spacing: -.04em; }
.stat > span { color: var(--muted); font-size: .93rem; }

/* ---------- Manifiesto ---------- */

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects-sec { position: relative; isolation: isolate; background: radial-gradient(1100px 600px at 85% 0%, rgba(45, 212, 191, .1), transparent 60%), #0b1416; }
.stack { display: grid; gap: 22px; }
.project {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  border-radius: 26px; border: 1px solid var(--line); background: #0f1c1f;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7);
}
.p-visual {
  position: relative; display: grid; place-items: center; min-height: 320px; padding: 34px 28px; perspective: 900px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--p) 24%, transparent), transparent 65%), var(--p2);
  border-right: 1px solid var(--line);
}
.mock {
  width: 100%; min-width: 0; max-width: 360px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 12px; border-radius: 14px; font-size: .76rem;
  background: rgba(8, 14, 16, .8); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 34px 64px -22px rgba(0, 0, 0, .75);
  transition: transform .25s var(--ease);
}
.mock-top { display: flex; align-items: center; gap: 8px; padding: 2px 2px 8px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.mock-top svg, .mock-top img { width: 18px; height: 18px; flex: none; }
.mock-top b { font-size: .82rem; }
.mock-search { margin-left: auto; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.mock-search::before { content: "⌕ "; color: var(--p); }
.mock-row, .mock-ai, .enc-map { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(var(--r, 0) * .12s + .25s); }
.project.in .mock-row, .project.in .mock-ai, .project.in .enc-map { opacity: 1; transform: none; }
.project.in .mock-row.dim { opacity: .55; }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.mock-row p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mock-row em { flex: none; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 600; color: var(--p); border: 1px solid color-mix(in srgb, var(--p) 40%, transparent); }
.flag { padding: 1px 5px; border-radius: 4px; font-size: .66rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .07); }
.bar { flex: none; width: 56px; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--p); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .7s; }
.project.in .bar i { transform: scaleX(1); }
.mock-ai { padding: 8px; border-radius: 8px; line-height: 1.45; color: var(--text); background: color-mix(in srgb, var(--p) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--p) 40%, transparent); }
.mock-ai span { margin-right: 4px; padding: 0 5px; border-radius: 4px; font-size: .66rem; font-weight: 700; color: #04201d; background: var(--p); }
.mock-ai small { color: var(--muted); }
/* Encaix: minimapa con locales coloreados por nota */
.enc-map {
  position: relative; height: 96px; overflow: hidden; border-radius: 8px; background-color: #f7f6f3;
  background-image:
    radial-gradient(circle at 84% 86%, #dcebd9 0 15%, transparent 16%),
    linear-gradient(28deg, transparent 46%, #e3e1dc 46% 50%, transparent 50%),
    linear-gradient(-62deg, transparent 47%, #e3e1dc 47% 50%, transparent 50%),
    linear-gradient(90deg, transparent 62%, #ebe9e4 62% 65%, transparent 65%),
    linear-gradient(0deg, transparent 30%, #ebe9e4 30% 33%, transparent 33%);
}
.enc-map i { position: absolute; left: var(--x); top: var(--y); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.enc-map .hi { background: #0f766e; }
.enc-map .mid { background: #d79b28; }
.enc-map .lo { background: #b85c5c; }
.enc-map b { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #0f766e; border: 3px solid #fff; animation: pingEnc 2s 3; }
@keyframes pingEnc { 0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .5); } 70% { box-shadow: 0 0 0 12px rgba(15, 118, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); } }
.mock-note { justify-self: end; color: var(--muted); font-size: .62rem; opacity: .7; }
.p-body { position: relative; padding: 42px 46px; }
.p-num { position: absolute; top: 14px; right: 28px; color: transparent; font: 700 5.2rem/1 var(--display); letter-spacing: -.05em; -webkit-text-stroke: 1px rgba(255, 255, 255, .12); }
.tag { color: var(--p); font: 600 .74rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project h3 { margin: 10px 0 14px; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; }
.project .p-body > p:not(.tag) { color: var(--muted); }
.feats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.feats li { position: relative; padding-left: 26px; font-size: .95rem; }
.feats li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--p); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.p-link { display: inline-flex; gap: 6px; margin-top: 24px; color: var(--p); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--p) 40%, transparent); }
.p-link span { transition: transform .25s; }
.p-link:hover span { transform: translateY(3px); }

/* =========================================================
   DEMO MULTILINGÜE
   ========================================================= */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy map" "res map"; align-items: start; column-gap: clamp(32px, 5vw, 72px); }
.demo-copy { grid-area: copy; }
.demo-map { grid-area: map; position: sticky; top: 96px; }
.demo-results { grid-area: res; }
.demo h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.demo-search {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 6px 10px 6px 18px;
  border-radius: 16px; background: #fff; border: 1.5px solid var(--line-2); box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s;
}
.demo-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(13, 124, 114, .12), var(--shadow); }
.demo-search svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.demo-search input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1.12rem/1 var(--font); }
.demo-search input::-webkit-search-cancel-button { display: none; }
.demo-search kbd { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); font: 600 .8rem/1 var(--mono); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-chips button { padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: .86rem; font-weight: 500; line-height: 1; cursor: pointer; transition: all .2s; }
.demo-chips button:hover, .demo-chips button.on { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.demo-status { min-height: 1.5em; margin-top: 22px; color: var(--muted); font: 500 .82rem/1.45 var(--mono); }
.demo-status b { color: var(--accent); }
/* Siempre son 15 idiomas: se reserva su sitio para que la página no salte al aparecer los resultados */
.demo-results { --filas: 8; list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 40px; gap: 6px 10px; align-content: start;
  min-height: calc(var(--filas) * 40px + (var(--filas) - 1) * 6px); }
.demo-results li {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); font-size: .9rem; cursor: default;
  opacity: 0; transform: translateY(6px); animation: resIn .45s var(--ease) forwards; animation-delay: calc(var(--n) * 45ms);
  transition: border-color .2s, box-shadow .2s;
}
.demo-results li:hover, .demo-results li:focus { outline: none; border-color: var(--accent); box-shadow: 0 8px 20px -14px rgba(13, 124, 114, .6); }
@keyframes resIn { to { opacity: 1; transform: none; } }
.lc { flex: none; padding: 4px 5px; border-radius: 5px; background: var(--accent); color: #fff; font: 700 .64rem/1 var(--mono); }
.lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lname { flex: none; margin-left: auto; color: var(--muted); font-size: .74rem; }
.demo-map { position: relative; padding: clamp(14px, 2vw, 26px); border-radius: 28px; background: radial-gradient(circle at 25% 75%, rgba(13, 124, 114, .07), transparent 60%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
#europe { width: 100%; height: auto; }
.madrid { position: absolute; left: var(--x, 30%); top: var(--y, 70%); width: 0; height: 0; pointer-events: none; }
.madrid i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; animation: ping2 2s 3; }
@keyframes ping2 { 0% { box-shadow: 0 0 0 0 rgba(13, 124, 114, .55); } 70% { box-shadow: 0 0 0 18px rgba(13, 124, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(13, 124, 114, 0); } }
.madrid b { position: absolute; left: 12px; top: 10px; white-space: nowrap; padding: 6px 8px; border-radius: 7px; background: #0f1b1d; color: #fff; font: 600 .7rem/1 var(--font); }
.demo-note { margin-top: 26px; color: var(--muted); font-size: .82rem; }

/* ---------- Para quién ---------- */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who-item { position: relative; padding: 28px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(10, 30, 32, .3); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), border-color .3s, box-shadow .3s; }
.who-item:hover { border-color: var(--accent-line); box-shadow: 0 30px 50px -30px rgba(10, 30, 32, .4); }
.who-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.who-ico svg { width: 23px; height: 23px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.who-item h3 { margin: 18px 0 8px; font-family: var(--display); font-size: 1.16rem; letter-spacing: -.015em; }
.who-item p { color: var(--muted); font-size: .95rem; }

/* ---------- Método ---------- */
.alt { background: #eef3f3; }
.process { position: relative; }
.process-line { position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
.process-line i { display: block; width: 100%; height: 100%; transform-origin: left; transform: scaleX(var(--pp, 0)); background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li h3 { color: var(--muted); transition: color .5s; }
.steps li.on h3, .no-js .steps li h3 { color: var(--text); }
.n { position: relative; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line-2); color: var(--muted); font: 700 1rem/1 var(--mono); transition: all .5s var(--ease); }
.steps li.on .n { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 6px rgba(13, 124, 114, .12), 0 14px 30px -12px rgba(13, 124, 114, .7); }
.steps h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .96rem; }
.steps small { display: inline-block; margin-top: 14px; padding: 6px 9px; border-radius: 8px; color: var(--accent-2); background: var(--accent-soft); font: 500 .72rem/1.35 var(--mono); }

/* ---------- Preguntas ---------- */
.faq-in { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 60px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.faq details[open] { border-color: var(--accent-line); box-shadow: 0 18px 40px -28px rgba(10, 30, 32, .35); }
.faq summary { position: relative; padding: 21px 64px 21px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; top: 50%; right: 20px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7c72' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(13, 124, 114, .16); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 22px 22px; color: var(--muted); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { isolation: isolate; overflow: hidden; }
.contact-glow {
  position: absolute; inset: -20% -10% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 420px at 15% 22%, rgba(45, 212, 191, .2), transparent 60%), radial-gradient(520px 380px at 85% 72%, rgba(34, 211, 238, .13), transparent 60%);
}
.sec h2.mega { margin-bottom: clamp(32px, 4vw, 52px); font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .95; letter-spacing: -.05em; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(32px, 5vw, 72px); }
.contact .sub { margin-top: 0; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.mail { color: var(--accent); font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; border-bottom: 2px solid var(--accent-line); overflow-wrap: anywhere; transition: border-color .2s; }
.mail:hover { border-color: var(--accent); }
.copy { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; transition: color .2s, border-color .2s; }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy:hover { color: var(--accent); border-color: var(--accent); }
.form { position: relative; padding: 32px; border-radius: 24px; background: rgba(15, 28, 31, .9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-fields { display: grid; gap: 16px; transition: opacity .4s, transform .4s var(--ease), visibility 0s; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; resize: vertical; color: var(--text); font: inherit;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .bad { border-color: #f2809a !important; }
.f-err { color: #f7a3b6; font-size: .82rem; font-weight: 500; }
.meet .meet-tel { grid-column: 1 / -1; }
.meet .meet-tel[hidden] { display: none; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { color: var(--muted); font-size: .85rem; }
.form-legal { color: var(--muted); font-size: .8rem; }
.form-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Campo trampa para robots: fuera de la vista y del teclado */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.pills legend { margin-bottom: 8px; padding: 0; font-size: .9rem; font-weight: 500; }
.form .pills label { display: block; cursor: pointer; }
.pills input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pills span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .86rem; transition: all .2s; }
.pills input:checked + span { color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent); }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s; }
.form-done h3 { font-family: var(--display); font-size: 1.6rem; }
.form-done p { max-width: 36ch; color: var(--muted); }
.form-done a { color: var(--accent); }
.form-done svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form-done path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.sent .form-fields { opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .4s, transform .4s var(--ease), visibility 0s .4s; }
.form.sent .form-done { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .15s, transform .5s var(--ease) .15s, visibility 0s; }
.form.sent .form-done circle { animation: draw .7s .2s ease forwards; }
.form.sent .form-done path { animation: draw .45s .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* No se ha podido enviar: aviso en ámbar (no el visto verde), correo ya redactado y copiar el mensaje */
.form.fallo .form-done svg { stroke: #fbbf24; }
.form-done h3:focus { outline: none; }
.form-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.form .form-acc .btn { margin-top: 0; }
.form .form-done > .btn { justify-self: center; }
.form-done .form-acc a.btn:not(.btn-ghost) { color: var(--on-accent); }
.form-copiar.ok { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-2); }
.form-copiar.ok::after { content: "✓"; }
/* Sugerencia de corrección del correo («¿Quería decir …?») */
.f-hint { margin-top: -10px; }
.f-hint button { min-height: 32px; padding: 4px 0; border: 0; background: none; color: var(--accent-2); font: inherit; font-size: .88rem; text-align: left;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.f-hint b { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Pie ---------- */
.foot { position: relative; overflow: hidden; padding: 72px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-grid nav { display: grid; align-content: start; gap: 8px; }
.foot h2 { margin: 0 0 6px; color: var(--text); font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot .brand { color: var(--text); font-size: 1rem; }
.foot-tag { max-width: 280px; margin-top: 12px; }
.foot-social { margin-top: 14px; font-size: .9rem; } .foot-social a { color: var(--accent); font-weight: 600; }
.wordmark {
  margin: 48px 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--display); font-weight: 700; font-size: 17vw; line-height: .82; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(45, 212, 191, .2);
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 60%), #2dd4bf, rgba(45, 212, 191, 0) 70%);
  -webkit-background-clip: text; background-clip: text;
}
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Páginas legales y 404 ---------- */
.legal { min-height: 70vh; padding: 140px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { margin-bottom: 30px; font-family: var(--display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; }
.legal h2 { margin: 40px 0 12px; color: var(--accent); font-family: var(--display); font-size: 1.3rem; }
.legal p, .legal li { margin-bottom: 10px; color: var(--muted); }
.legal a, .article p a, .article li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   RECORRIDO DE UNA LICITACIÓN (scroll guiado)
   ========================================================= */
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
.story-stage { grid-column: 2; grid-row: 1; position: sticky; top: max(92px, calc(50vh - 245px)); z-index: 2; }
.story-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
.story-step h3 { color: var(--muted); transition: color .5s; }
.story-step.active h3, .no-js .story-step h3 { color: var(--text); }
.story-step:first-child { min-height: 62vh; justify-content: flex-start; padding-top: 4vh; }
.story-step:last-child { min-height: 66vh; }
.st-n { color: var(--accent); font: 600 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.story-step h3 { margin: 12px 0; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.03em; }
.story-step p { max-width: 44ch; color: var(--muted); font-size: 1.06rem; }
.story-step small { align-self: flex-start; margin-top: 16px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); font: 500 .72rem/1.2 var(--mono); }

.stage-win {
  overflow: hidden; border-radius: 22px; color: #e6eff0; border: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(600px 320px at 85% 0%, rgba(45, 212, 191, .13), transparent 60%), #0b1416;
  box-shadow: 0 40px 80px -40px rgba(10, 30, 32, .6);
}
.stage-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #93a5a7; font: 500 .72rem/1 var(--mono); white-space: nowrap; }
.stage-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a3d; }
.stage-bar i:nth-child(1) { background: #f2809a; } .stage-bar i:nth-child(2) { background: #f5c26b; } .stage-bar i:nth-child(3) { background: #2dd4bf; }
.stage-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; color: #e6eff0; }
.stage-count { margin-left: auto; color: #5eead4; font-weight: 600; }
.stage-progress { height: 2px; background: rgba(255, 255, 255, .06); }
.stage-progress i { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width .6s var(--ease); }
.scenes { position: relative; height: 440px; }
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 26px 30px;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s, transform .6s var(--ease), visibility 0s .6s;
}
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .08s, transform .6s var(--ease) .08s, visibility 0s; }
.sc-label { display: flex; align-items: center; gap: 10px; color: #93a5a7; font: 500 .76rem/1.2 var(--mono); }
.sc-pill { padding: 4px 8px; border-radius: 6px; background: rgba(45, 212, 191, .14); color: #5eead4; font: 700 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@keyframes rise { from { opacity: 0; transform: translateY(28px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* 1 · publicación */

/* 2 · ingesta */
.ingest { display: grid; grid-template-columns: 136px 56px minmax(0, 1fr); align-items: stretch; }
.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.srcs li { padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .1); color: #93a5a7; font: 500 .7rem/1.2 var(--mono); white-space: nowrap; opacity: .35; }
.scene.on .srcs li { animation: srcOn .45s calc(var(--k) * .12s + .2s) both; }
@keyframes srcOn { from { opacity: .35; } to { opacity: 1; color: #e6eff0; border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .08); } }
.ing-lines { width: 100%; height: 100%; }
.ing-lines path { fill: none; stroke: rgba(45, 212, 191, .55); stroke-width: 1.3; stroke-dasharray: 120; stroke-dashoffset: 120; vector-effect: non-scaling-stroke; }
.scene.on .ing-lines path { animation: draw .6s calc(var(--k) * .12s + .35s) both; }
.merged { align-self: center; padding: 16px; border-radius: 14px; background: #f5f8f8; color: #0f1b1d; box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .8); }
.scene.on .merged { animation: rise .7s var(--ease-out) 1.3s both; }
.merged small { color: #536366; font: 600 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.merged b { display: block; margin: 6px 0 10px; font-family: var(--display); font-size: 1.12rem; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { padding: 4px 8px; border-radius: 999px; background: rgba(13, 124, 114, .1); color: #0a655d; font: 600 .66rem/1.2 var(--mono); }

/* 3 · lectura con IA */
.sc-ext { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-ext li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); opacity: 0; }
.scene.on .sc-ext li { animation: slideIn .5s var(--ease-out) calc(var(--k) * .55s + .75s) both; }
.sc-ext small { color: #93a5a7; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.sc-ext b { grid-column: 1; font-size: .95rem; }
.sc-ext em { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 5px 7px; border-radius: 6px; background: rgba(45, 212, 191, .12); color: #5eead4; font: 600 .66rem/1 var(--mono); font-style: normal; white-space: nowrap; }

/* 4 · encaje */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.fit { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 26px; }
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.r-bg { stroke: rgba(255, 255, 255, .08); }
.r-fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.scene.on .r-fg { animation: ring 1.4s var(--ease-out) .3s both; }
@keyframes ring { to { stroke-dashoffset: 26.1; } }
.ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { font-family: var(--display); font-size: 3rem; line-height: 1; counter-reset: n var(--n); }
.ring strong::after { content: counter(n); }
.scene.on .ring strong { animation: count 1.4s var(--ease-out) .3s both; }
@keyframes count { from { --n: 0; } to { --n: 92; } }
.ring small { margin-top: 6px; color: #5eead4; font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding: 9px 12px 9px 38px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .9rem; opacity: 0; }
.checks li::before { content: "✓"; position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #04201d; font-size: .62rem; font-weight: 800; }
.scene.on .checks li { animation: slideIn .45s var(--ease-out) calc(var(--k) * .22s + .5s) both; }

/* 5 · alerta */
.notifs { display: grid; gap: 10px; }
.ntf { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f5f8f8; color: #0f1b1d; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); opacity: 0; }
.scene.on .ntf { animation: drop .55s var(--ease-out) calc(var(--k) * .45s + .3s) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
.app { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 800; }
.app.mail { background: #0d7c72; }
.ntf b { display: block; font-size: .84rem; }
.ntf p { overflow: hidden; color: #536366; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.ntf time { color: #536366; font: 500 .7rem/1 var(--mono); }

/* 6 · oferta */
.board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 176px; }
.col { padding: 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.col .col-t { margin: 0; color: #93a5a7; font: 600 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.scene.on .col.last { animation: colOn .4s 3.1s both; }
@keyframes colOn { to { border-color: rgba(45, 212, 191, .6); background: rgba(45, 212, 191, .08); } }
.kcard { position: absolute; top: 40px; left: 8px; width: calc((100% - 20px) / 3 - 16px); display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: #f5f8f8; color: #0f1b1d; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.scene.on .kcard { animation: move 3s var(--ease) .5s both; }
@keyframes move {
  0%, 22% { left: 8px; }
  45%, 62% { left: calc((100% - 20px) / 3 + 18px); }
  85%, 100% { left: calc((100% - 20px) / 3 * 2 + 28px); }
}
.kcard b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard small { color: #536366; font: 500 .66rem/1.2 var(--mono); }
.kbar { height: 4px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: #e1e8e8; }
.kbar i { display: block; width: 0; height: 100%; background: #0d7c72; }
.scene.on .kbar i { animation: fill 3s var(--ease) .5s both; }
@keyframes fill { to { width: 100%; } }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.todo li { position: relative; padding: 6px 11px 6px 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); color: #93a5a7; font-size: .78rem; }
.todo li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
.scene.on .todo li { animation: doneTxt .3s calc(var(--k) * .55s + 1.1s) both; }
.scene.on .todo li::before { animation: tick .3s calc(var(--k) * .55s + 1.1s) both; }
@keyframes doneTxt { to { color: #e6eff0; border-color: rgba(45, 212, 191, .5); } }
@keyframes tick { to { background: var(--teal); border-color: var(--teal); } }

/* Índice lateral de secciones */

@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-stage { grid-column: 1; grid-row: 1; top: 0; margin: 0 -16px; padding: 10px 16px 16px; background: linear-gradient(var(--bg) 88%, rgba(245, 248, 248, 0)); }
  .story-steps { grid-row: 2; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 62vh; justify-content: center; padding-top: 0; }
  .story-step h3 { font-size: 1.5rem; }
  .scenes { height: 300px; }
  .scene { gap: 12px; padding: 16px; }
  .ingest { grid-template-columns: 104px 36px minmax(0, 1fr); }
  .srcs { gap: 4px; } .srcs li { padding: 3px 6px; font-size: .6rem; }
  .merged { padding: 12px; } .merged b { font-size: .95rem; }
  .sc-ext { gap: 6px; } .sc-ext li { padding: 6px 9px; } .sc-ext b { font-size: .82rem; }
  .fit { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; } .ring { width: 112px; height: 112px; } .ring strong { font-size: 2.1rem; }
  .checks { gap: 5px; } .checks li { padding: 6px 8px 6px 32px; font-size: .78rem; } .checks li::before { left: 8px; }
  .ntf { grid-template-columns: 30px minmax(0, 1fr); padding: 9px 11px; } .ntf time { display: none; } .app { width: 30px; height: 30px; }
  .board { height: 132px; gap: 6px; } .col { padding: 7px; } .col .col-t { font-size: .56rem; }
  .kcard { top: 34px; left: 5px; width: calc((100% - 12px) / 3 - 10px); padding: 7px; }
  @keyframes move { 0%, 22% { left: 5px; } 45%, 62% { left: calc((100% - 12px) / 3 + 11px); } 85%, 100% { left: calc((100% - 12px) / 3 * 2 + 17px); } }
  .todo li { font-size: .68rem; padding: 4px 8px 4px 24px; }
}

/* =========================================================
   PÁGINAS DE PROYECTO
   ========================================================= */
.links a[aria-current="page"] { color: var(--text); }
.phero { position: relative; isolation: isolate; overflow: hidden; padding: 132px 0 96px; }
.phero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 520px at 85% 15%, color-mix(in srgb, var(--p) 20%, transparent), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(34, 211, 238, .08), transparent 60%); }
.phero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(rgba(11, 20, 22, 0), var(--ink)); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font: 500 .76rem/1 var(--mono); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--p); font-weight: 600; }
.phero-title { margin: 12px 0 22px; font-family: var(--display); font-size: clamp(3.2rem, 7.5vw, 6rem); line-height: .95; letter-spacing: -.05em; }
.phero .lead { max-width: 580px; }
.phero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; }
.phero-facts li { position: relative; padding: 9px 13px 9px 30px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .88rem; }
.phero-facts li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: var(--p); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.p-visual.phero-visual { min-height: 440px; border: 1px solid var(--line); border-radius: 26px; }
.phero-visual .mock { max-width: 400px; }
.ready .phero .mock-row, .ready .phero .mock-ai, .ready .phero .enc-map, .no-js .phero .mock-row, .no-js .phero .mock-ai, .no-js .phero .enc-map { opacity: 1; transform: none; }
.ready .phero .mock-row.dim { opacity: .55; }
.ready .phero .bar i, .no-js .phero .bar i { transform: scaleX(1); }
.p-link:hover span { transform: translateX(4px); }
.who.three { grid-template-columns: repeat(3, 1fr); }
.chips-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.chips-list li { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -32px rgba(10, 30, 32, .35); }
.chips-list b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 1.15rem; }
.chips-list span { color: var(--muted); font-size: .93rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -32px rgba(10, 30, 32, .35); }
.plan.hl { border: 1.5px solid var(--accent); box-shadow: 0 24px 50px -30px rgba(13, 124, 114, .55); }
.plan h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.3rem; }
.plan p { color: var(--muted); font-size: .95rem; }
.note { max-width: 860px; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.enc-kpis { padding-bottom: 0; }
.cta-band { isolation: isolate; overflow: hidden; text-align: center; }
.cta-band .kicker { justify-content: center; }
.cta-band h2 { max-width: 900px; margin-inline: auto; font-size: clamp(2.3rem, 5.2vw, 4.2rem) !important; }
.cta-band .sub { margin-inline: auto; }
.cta-band .cta { justify-content: center; }
.pnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pnext a { display: block; padding: 30px; border-radius: 22px; background: var(--ink-2); color: #e6eff0; border: 1px solid rgba(255, 255, 255, .06); border-top: 3px solid var(--p); transition: opacity .9s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .4s; }
.pnext a:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 30, 32, .6); }
.pnext small { color: var(--p); font: 600 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pnext h3 { margin: 10px 0 8px; font-family: var(--display); font-size: 1.8rem; letter-spacing: -.03em; }
.pnext p { color: #93a5a7; }
.pnext span { display: inline-block; margin-top: 18px; color: var(--p); font-weight: 600; }
/* Portada de páginas sin maqueta: arte con el icono de la sección */
.phero.single .phero-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.phero-title.long { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
.art-meta { margin-top: 18px; color: var(--muted); font: 500 .78rem/1.4 var(--mono); }
.phero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.art-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--p) 35%, transparent); animation: spin 40s linear infinite; }
.art-ring.r2 { inset: 22%; border-style: dashed; border-color: color-mix(in srgb, var(--p) 25%, transparent); animation-duration: 60s; animation-direction: reverse; }
.art-hex { position: relative; width: 46%; aspect-ratio: 1; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--p) 40%, #0f1c1f), #0b1416 75%); box-shadow: 0 0 80px color-mix(in srgb, var(--p) 40%, transparent); }
.art-hex svg { width: 42%; height: 42%; fill: none; stroke: var(--p); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.phero-art i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--p); box-shadow: 0 0 14px var(--p); transform: rotate(calc(var(--k) * 60deg)) translateX(min(190px, 44vw)); animation: orbit 24s linear infinite; animation-delay: calc(var(--k) * -4s); opacity: .8; }
@keyframes orbit { from { transform: rotate(0deg) translateX(min(190px, 44vw)); } to { transform: rotate(360deg) translateX(min(190px, 44vw)); } }
.btn.visit span { transition: transform .25s; }
.btn.visit:hover span { transform: translate(3px, -3px); }

/* Tarjetas enlazables */
.link-card { display: block; position: relative; color: inherit; transition: opacity .9s var(--ease) var(--d, 0s), transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.link-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 30px 50px -30px rgba(10, 30, 32, .45); }
.link-card .more { position: absolute; top: 26px; right: 24px; color: var(--accent); font-weight: 700; transition: transform .25s; }
.link-card:hover .more { transform: translateX(4px); }
.pnext.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .9rem; }
.tile-link span { transition: transform .25s; }
.tile-link:hover span { transform: translateX(4px); }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(10, 30, 32, .3); }
.person-pic { width: 120px; height: 120px; overflow: hidden; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle at 35% 30%, #1d4d48, #0b1416 75%); }
.person-pic img { width: 100%; height: 100%; object-fit: cover; }
.person-pic svg { width: 46px; height: 46px; fill: none; stroke: #5eead4; stroke-width: 1.5; stroke-linecap: round; }
.person-ini { color: #5eead4; font: 700 2rem/1 var(--display); }
.person-role { color: var(--accent); font: 600 .74rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.person h3 { margin: 8px 0 10px; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.person p:not(.person-role) { color: var(--muted); }
.person-in { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; }

/* Publicaciones */
.pubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pub { display: flex; flex-direction: column; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(10, 30, 32, .3); transition: opacity .9s var(--ease) var(--d, 0s), transform .4s var(--ease), border-color .3s; }
a.pub:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.pub small { color: var(--accent); font: 600 .76rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.pub h3 { margin: 12px 0 10px; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.pub p { flex: 1; color: var(--muted); font-size: .95rem; }
.pub span { margin-top: 18px; color: var(--accent); font-weight: 600; }

/* Artículo */
.article { max-width: 760px; margin-inline: auto; font-size: 1.08rem; line-height: 1.75; }
.article h2 { margin: 44px 0 12px; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.article p, .article li { color: #2c3b3e; }
.article p { margin-bottom: 16px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--accent); }
.article blockquote { margin: 34px 0; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--accent-soft); color: var(--text); font-weight: 500; }
.art-note { margin-top: 34px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: .9rem; }

/* Prueba de la ficha inteligente con IA */
.ia-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ia-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.ia-points li { position: relative; padding-left: 28px; color: var(--muted); }
.ia-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ia-box { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ia-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 18px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.ia-drop:hover, .ia-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.ia-drop svg { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ia-drop span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.ia-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ia-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .86rem; }
.ia-check input { margin-top: 3px; accent-color: var(--accent); }
.ia-check a { color: var(--accent); text-decoration: underline; }
.ia-box .btn { justify-self: start; }
.ia-box .btn[disabled] { opacity: .6; cursor: progress; }
.ia-status { min-height: 1.4em; color: var(--muted); font: 500 .84rem/1.4 var(--mono); }
.ia-status.err { color: #b4233c; }
.ia-result { display: grid; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.ia-result h3 { margin: 4px 0 6px; font-family: var(--display); font-size: 1.05rem; }
.ia-result p { color: var(--text); }
.ia-result ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ia-result li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; }
.ia-result li em { padding: 4px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); font: 600 .7rem/1 var(--mono); font-style: normal; white-space: nowrap; }
.ia-result .ia-warn { color: var(--muted); font-size: .82rem; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }

/* Datos en vivo (portada) */

/* Reunión en el formulario */
.meet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.meet legend { margin-bottom: 8px; padding: 0; font-size: .9rem; font-weight: 500; }
.meet select, .meet input[type="date"] { width: 100%; padding: 11px 12px; border-radius: 10px; color: var(--text); font: inherit; font-size: .9rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color-scheme: dark; }
.meet option { color: #0f1b1d; }

@media (max-width: 1080px) {
  .phero-grid { grid-template-columns: minmax(0, 1fr); }
  .phero-art { width: min(300px, 80%); }
  .team, .pubs, .ia-grid { grid-template-columns: minmax(0, 1fr); }
  .pnext.three { grid-template-columns: 1fr 1fr; }
  .p-visual.phero-visual { min-height: 360px; }
  .who.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .phero { padding: 108px 0 72px; }
  .phero-facts li { font-size: .82rem; }
  .who.three, .pnext { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-ia { grid-row: auto; }
  .project { grid-template-columns: minmax(0, 1fr); }
  .p-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-grid, .faq-in, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid { grid-template-areas: "copy" "map" "res"; }
  .demo-map { position: relative; top: 0; margin-top: 22px; }
  .demo-results { margin-top: 16px; }
  .faq-in { gap: 0; }
  .who { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div { grid-column: 1 / -1; }
}
/* Menú en hamburguesa a partir de tableta (hay muchas secciones) */
@media (max-width: 1140px) {
  .burger { display: block; }
  .langs { margin-left: auto; margin-right: 6px; }
  .links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: #0b1416; border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  html.menu-abierto { overflow: hidden; }
  .nav:has(.links.open) { background: #0b1416; }
  .links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .links a.active::after { display: none; }
  .links .btn { margin-top: 16px; }
}
@media (max-width: 720px) {
  .team .person { grid-template-columns: minmax(0, 1fr); }
  .pnext.three, .meet { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .cta .btn { flex: 1 1 auto; }
  .own { margin-top: 34px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-ia, .tile-code, .tile-saas, .tile-strat { grid-column: auto; flex-direction: column; }
  .tile { padding: 22px; }
  .viz-doc, .tile-ia .viz-doc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .tile-ia .doc-lines { gap: 8px; }
  .tile-ia .doc-lines i { height: 6px; }
  .extract, .tile-ia .extract { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .extract li, .tile-ia .extract li { padding: 9px 10px; }
  .extract b { font-size: .92rem; }
  .viz-layers { grid-template-columns: .9fr 1.1fr; padding: 10px 12px; }
  .iso { height: 170px; }
  .iso i { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .layer-names { font-size: .78rem; }
  .g-head, .g-row { grid-template-columns: 84px 1fr; }
  .g-head { grid-template-columns: 84px repeat(8, 1fr); }
  .g-now { left: 102px; }
  .stat { padding: 24px 18px; }
  .p-body { padding: 30px 22px; }
  .p-num { font-size: 3.6rem; }
  .who { grid-template-columns: minmax(0, 1fr); }
  .process-line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .process-line i { transform-origin: top; transform: scaleY(var(--pp, 0)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps li { position: relative; padding-left: 80px; }
  .steps .n { position: absolute; left: 0; top: 0; margin: 0; }
  .demo-results { --filas: 15; grid-template-columns: minmax(0, 1fr); }
  .demo-status { min-height: 2.9em; }
  .form { padding: 22px; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .intro { opacity: 1; transform: none; }
  .hero-title .ln > span { transform: none; }
}

/* Portada: franja «Quiénes somos» y publicaciones */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-teaser h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.teaser-pubs { display: grid; gap: 12px; }
.teaser-pubs a { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
.teaser-pubs a:hover { border-color: var(--accent-line); transform: translateX(4px); }
.teaser-pubs small { display: block; margin-bottom: 6px; color: var(--accent); font: 600 .76rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.teaser-pubs b { font-family: var(--display); font-size: 1.08rem; line-height: 1.3; }
.teaser-pubs a.all { background: transparent; border-style: dashed; color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .about-teaser { grid-template-columns: minmax(0, 1fr); } }

/* Pantallas táctiles: zonas de pulsación de al menos 24 px (WCAG 2.2) sin mover el diseño (relleno + margen negativo) */
@media (pointer: coarse) {
  .crumbs a, .tile-link { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .tile-link { display: inline-flex; margin-top: 4px; }
  .langs a { padding: 9px 10px; }
  /* Zonas de 44 px de alto con una capa invisible: el aspecto no cambia (idiomas, pie, «Privacidad» del formulario) */
  .langs a, .foot-bottom a, .form-legal a, .form-done p a { position: relative; }
  .foot-bottom a, .form-legal a, .form-done p a { display: inline-block; }   /* sin partirse en dos líneas */
  .langs a::after, .foot-bottom a::after, .form-legal a::after, .form-done p a::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 44px; margin-top: -22px; }
  .foot-bottom { row-gap: 24px; }
  .foot-grid nav { gap: 0; }
  .foot-grid nav a { display: flex; align-items: center; min-height: 44px; padding: 5px 0; }
  .f-hint button { min-height: 44px; }
}

/* Aviso de idioma sugerido (según el navegador; aparece una vez y no redirige) */
.lang-sug { --accent: #2dd4bf; --accent-2: #5eead4; --on-accent: #04201d; --text: #e6eff0; --muted: #a9b9bb; --line: rgba(255, 255, 255, .08);
  position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 420px;
  padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(45, 212, 191, .3); background: #0f1c1f; color: #e6eff0;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s var(--ease); }
.lang-sug.on { opacity: 1; transform: none; }
.lang-sug p { flex: 1 1 100%; margin: 0; font-size: .92rem; }
.lang-sug-x { min-height: 36px; padding: 6px 4px; border: 0; background: none; color: #a9b9bb; font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 600px) { .lang-sug { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Tecnologías con las que construimos (logotipos de Simple Icons, monocromos) */
.tec-sec .sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.tec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.tec li { display: grid; justify-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: .8rem; text-align: center; transition: color .25s, border-color .25s, transform .25s var(--ease); }
.tec li:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-2px); }
.tec svg { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 1080px) { .tec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tec { gap: 6px; } .tec li { gap: 8px; padding: 12px 2px 10px; font-size: .68rem; } .tec svg { width: 26px; height: 26px; } }

/* Galería de capturas reales de cada producto */
.gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); align-items: start; }
.gal-it { grid-column: span 3; margin: 0; }
.gal-it.gal-principal { grid-column: span 6; }
.gal-it.gal-principal.con-movil { grid-column: span 4; }
.gal-it.gal-movil { grid-column: span 2; }
.gal-it.gal-ancha { grid-column: span 6; }
.gal-a { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: #e9eef0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .2); transition: transform .35s var(--ease), box-shadow .35s; }
.gal-a:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--p, #2dd4bf) 50%, transparent); }
.gal-a img { display: block; width: 100%; height: auto; }
.gal-barra { display: flex; gap: 6px; padding: 9px 12px; background: #1a2729; }
.gal-barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.gal-movil .gal-a { max-width: 300px; margin-inline: auto; border: 8px solid #1a2729; border-radius: 34px; }
.gal-it figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.gal-movil figcaption { text-align: center; }
.gal-dlg { width: min(1240px, 94vw); max-height: 94vh; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: #0b1416; color: #e6eff0; }
.gal-dlg::backdrop { background: rgba(4, 10, 12, .86); }
.gal-dlg[open] { display: flex; flex-direction: column; max-height: 94dvh; overflow: hidden; }
.gal-dlg figure { margin: 0; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
/* La imagen cede altura para que el pie y los botones quepan siempre (el visor no se desplaza por dentro) */
.gal-dlg img { display: block; flex: 0 1 auto; min-height: 0; max-width: 100%; margin: 0 auto; object-fit: contain; }
.gal-dlg figcaption { flex: none; min-height: 70px; padding: 14px 168px 16px 18px; color: #a9b9bb; font-size: .92rem; }
.gal-dlg button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  background: rgba(11, 20, 22, .85); color: #e6eff0; font-size: 1.2rem; cursor: pointer; }
.gal-dlg .gal-x { right: 12px; bottom: 10px; }
.gal-dlg .gal-p { right: 112px; bottom: 10px; }
.gal-dlg .gal-n { right: 62px; bottom: 10px; }
/* Móvil: el pie ocupa todo el ancho y los botones van en su propia fila, debajo */
@media (max-width: 560px) {
  .gal-dlg { width: calc(100vw - 16px); max-width: none; }
  .gal-dlg figcaption { min-height: 0; padding: 12px 14px 66px; font-size: .9rem; }
  .gal-dlg .gal-x { right: 10px; }
  .gal-dlg .gal-n { right: 62px; }
  .gal-dlg .gal-p { right: 114px; }
}
@media (max-width: 700px) {
  .gal { grid-template-columns: minmax(0, 1fr); }
  .gal-it, .gal-it.gal-principal, .gal-it.gal-principal.con-movil, .gal-it.gal-movil, .gal-it.gal-ancha { grid-column: auto; }
}

/* =========================================================
   Formal con identidad (nov 2026): cabecera con capturas reales, llamadas a contactar,
   el hexágono como sello y «dato con su fuente»
   ========================================================= */
.hero-shots { position: relative; justify-self: end; width: min(640px, 100%); aspect-ratio: 1.08; margin: 0 0 40px; }
.shot { position: absolute; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .25); }
.shot img, .p-shot img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; gap: 5px; padding: 7px 10px; background: #1a2729; }
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.shot-a { left: 0; top: 3%; width: 88%; }
.shot-b { right: 0; top: 47%; width: 60%; }
.shot-m { left: 5%; top: 40%; width: 23%; border: 6px solid #1a2729; border-radius: 24px; }
.shot-note { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  font-size: .82rem; color: var(--text); background: rgba(11, 20, 22, .94); border: 1px solid var(--accent-line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); }
.shot-note b { color: var(--accent); font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.shot-note.n1 { left: 5%; top: -1%; }
.shot-note.n2 { right: 3%; top: calc(47% - 22px); }
.shot-note.n3 { left: 0; top: 31%; }
.hero-shots .fuente { position: absolute; left: 0; right: 0; top: calc(100% + 12px); justify-content: center; }
.own small { flex-basis: 100%; }
.own-p b { font-weight: 600; }
.own-p span { color: var(--muted); font-size: .82rem; font-weight: 400; }
.own-p span::before { content: "·"; margin-right: 7px; }

/* Dato con su fuente: cifras y capturas dicen de dónde salen */
.fuente { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font: 500 .74rem/1.45 var(--mono); letter-spacing: .02em; }
.fuente::before { content: ""; flex: none; width: 10px; height: 11px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 2 20 7.2v9.6L11 22 2 16.8V7.2z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 24'%3E%3Cpath d='M11 2 20 7.2v9.6L11 22 2 16.8V7.2z' fill='none' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Llamada a contactar al final de una sección */
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: clamp(28px, 4vw, 44px);
  padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.sec-cta p { max-width: 60ch; font-family: var(--display); font-size: clamp(1.04rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; }
.t-dark .sec-cta { background: rgba(255, 255, 255, .03); }

/* Proyectos propios: captura real en un marco de navegador */
.p-shot { margin: 0; width: 100%; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); }
.project .fuente { margin-top: 18px; }

/* Principios: lista sobria con el hexágono, no otra cuadrícula de tarjetas */
.principles { list-style: none; margin: clamp(44px, 6vw, 68px) 0 0; padding: clamp(28px, 3vw, 36px) 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 56px); }
.principles h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--display); font-size: 1.14rem; }
.principles h3::before { content: ""; flex: none; width: 12px; height: 13px; background: var(--accent); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.principles p { color: var(--muted); font-size: .96rem; }

/* Contacto: qué pasa después y la reunión, plegada */
.next-h { margin: 34px 0 14px; font-family: var(--display); font-size: 1.12rem; }
.next-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: paso; position: relative; min-height: 30px; padding: 4px 0 0 46px; }
.next-steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 31px; height: 34px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: var(--accent-soft); color: var(--accent); font: 600 .82rem/1 var(--mono); outline: 1px solid var(--accent-line); }
.conf { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.meet-d { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.meet-d summary { display: flex; align-items: center; gap: 6px; padding: 12px 0; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 500; }
.meet-d summary::-webkit-details-marker { display: none; }
.meet-d summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.meet-d[open] summary::after { content: "−"; }
.meet-d[open] { padding-bottom: 14px; }

/* Móvil: botón fijo para pedir reunión (aparece al pasar la cabecera y se oculta junto al formulario) */
.mcta { display: none; }
@media (max-width: 720px) {
  .mcta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; display: flex; justify-content: center; background: #2dd4bf; color: #04201d;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .mcta.on { opacity: 1; transform: none; pointer-events: auto; }
  .bento .viz { display: none; }
  .bento { grid-auto-rows: auto; gap: 12px; }
  .tile { gap: 0; padding: 22px; }
  .hero-shots { aspect-ratio: 1.15; margin-bottom: 76px; }
  .shot-note { font-size: .72rem; padding: 6px 9px; }
  .shot-note.n3 { display: none; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .sec-cta { padding: 18px; }
  .sec-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 1080px) {
  .hero-shots { justify-self: center; width: min(620px, 100%); margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .mcta { transition: none; } }

/* Menú: desplegables de Servicios y Proyectos (ratón, teclado y pantallas táctiles) */
.nav-dd { position: relative; display: flex; align-items: center; gap: 6px; }
.dd-btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.dd-btn:hover { color: var(--text); }
.dd-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu { display: grid; }
.dd-menu a b { display: block; color: var(--text); font-weight: 600; font-size: .92rem; }
.dd-menu a small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.links .dd-menu a.dd-all { color: var(--accent); font-weight: 600; font-size: .88rem; }
@media (min-width: 1141px) {
  .dd-menu { position: absolute; top: calc(100% + 14px); left: -18px; z-index: 60; width: 340px; padding: 8px; border-radius: 16px; background: #0f1c1f;
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav-dd:not(.cerrado):hover .dd-menu, .nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .links .dd-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
  .links .dd-menu a:hover, .links .dd-menu a:focus-visible { background: rgba(255, 255, 255, .05); }
  .links .dd-menu a.dd-all { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 10px 10px; }
}
@media (max-width: 1140px) {
  .nav-dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-dd > a:not(.btn) { border-bottom: 0; }
  .dd-btn { width: 44px; height: 44px; }
  .dd-menu { display: none; grid-column: 1 / -1; padding: 0 0 10px 10px; }
  .nav-dd.open .dd-menu { display: grid; }
  .links .dd-menu a:not(.btn) { padding: 9px 4px; border-bottom: 0; font-size: .95rem; }
}

/* Páginas índice de servicios y de proyectos */
.ix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ix { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px rgba(10, 30, 32, .25); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.ix:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(10, 30, 32, .4); }
.ix h3 { margin-top: 8px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.015em; }
.ix p { color: var(--muted); font-size: .95rem; }
.ix-more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.ix-proj-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.ix-proj { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2vw, 26px); }
.ix .p-shot { display: block; border-color: var(--line); box-shadow: 0 20px 40px -26px rgba(10, 30, 32, .5); }
.ix-body { display: flex; flex-direction: column; gap: 8px; }
.ix-body small { color: color-mix(in srgb, var(--p, #2dd4bf) 50%, #0b1416); font: 600 .74rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ix-body h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
@media (min-width: 901px) and (max-width: 1080px) { .ix-grid:not(.ix-proj-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ix-grid, .ix-proj { grid-template-columns: minmax(0, 1fr); } }

/* Móvil: titular de portada en tres líneas y sin el número decorativo de cada proyecto */
@media (max-width: 720px) {
  .hero-title { font-size: clamp(2.2rem, 9.4vw, 3.4rem); }
  .p-num { display: none; }
}
@media (max-width: 720px) {
  .kicker, .tag, .fuente, .teaser-pubs small, .ix-body small, .own small, .steps small, .art-meta, .eyebrow { font-size: .8rem; }
  .own-p span { font-size: .84rem; }
  /* Ningún texto por debajo de 12 px en el móvil */
  .langs a, .foot h2, .pnext small, .person-role, .story-step small { font-size: .75rem; }
}
@media (max-width: 480px) { .tec li { font-size: .75rem; } }
@media (max-width: 374px) { .tec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* «PostgreSQL» a 12 px no cabe en cuatro columnas */
/* Pantallas muy estrechas (320 px): la marca cabe en una línea junto a los idiomas y el menú */
@media (max-width: 374px) {
  .nav .brand { gap: 8px; font-size: 1rem; }
  .nav .brand img { width: 30px; height: 30px; }
  .langs { margin-right: 2px; }
  .langs a { padding-left: 7px; padding-right: 7px; }
}
/* Cabeceras con icono (índices, Quiénes somos, Publicaciones): giran unos segundos y se quedan quietas */
.phero-art.quieto, .phero-art.quieto * { animation-play-state: paused !important; }
/* «Cómo funciona», paso 3: resumen del pliego sin enseñar cómo se obtiene */
.resumen { display: grid; gap: 12px; max-width: 420px; width: 100%; margin-inline: auto; }
.res-t { color: #93a5a7; font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.resumen .sc-ext li { padding: 12px 14px; }
.res-ref { color: #5eead4; font-size: .85rem; font-weight: 600; opacity: 0; }
.scene.on .res-ref { animation: rise .5s var(--ease-out) 2.2s both; }
.sc4 .notifs { margin-bottom: 14px; }

/* Autodiagnóstico: botones para llevárselo y PDF con solo esa sección */
.diag-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media print {
  @page { margin: 12mm; }
  html.imprimir-diag body *:not(.diag-camino):not(.diag-imprimir):not(.diag-imprimir *) { display: none !important; }
  html.imprimir-diag .diag-camino { margin: 0 !important; padding: 0 !important; min-height: 0 !important; background: none !important; }
  html.imprimir-diag .diag-imprimir { padding: 18px !important; border-radius: 0; }
  html.imprimir-diag .diag-imprimir * { animation: none !important; transition: none !important; box-shadow: none !important; filter: none !important; backdrop-filter: none !important; }
  html.imprimir-diag .diag-imprimir .reveal { opacity: 1 !important; transform: none !important; }
  html.imprimir-diag .diag-imprimir, html.imprimir-diag .diag-imprimir *, html.imprimir-diag .diag-imprimir *::before, html.imprimir-diag .diag-imprimir *::after { background-image: none !important; }
  html.imprimir-diag .diag-imprimir { background: #0b1416 !important; }
  html.imprimir-diag body::after, html.imprimir-diag body::before { display: none !important; }
  html.imprimir-diag .es-meter i { background: #2dd4bf !important; }
  html.imprimir-diag .diag-imprimir *, html.imprimir-diag .diag-imprimir { -webkit-mask-image: none !important; mask-image: none !important; mix-blend-mode: normal !important; }
  html.imprimir-diag .diag-imprimir::after, html.imprimir-diag .diag-camino::before, html.imprimir-diag .diag-camino::after { display: none !important; }
  html.imprimir-diag .diag-imprimir, html.imprimir-diag .diag-imprimir * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.imprimir-diag .diag-imprimir::before { content: attr(data-diag); display: block; margin: 0 18px 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #5eead4; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  html.imprimir-diag .diag-acc, html.imprimir-diag .sfp-again, html.imprimir-diag .sfp-nav { display: none !important; }
}


/* Portada más corta en el móvil (quitar, no añadir): el ordenador no cambia */
@media (max-width: 640px) {
  /* Las capturas de la cabecera ya salen en Proyectos */
  .hero .hero-shots { display: none; }
  /* Proyectos: tarjetas que se deslizan de lado, con la siguiente asomando; las viñetas resumen el párrafo largo */
  .projects-sec .stack { grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .projects-sec .stack::-webkit-scrollbar { display: none; }
  .projects-sec .project { scroll-snap-align: start; }
  .projects-sec .p-visual { min-height: 0; padding: 18px 16px; }
  .projects-sec .p-body { padding: 22px 20px 24px; }
  .projects-sec .p-body > p:not(.tag):not(.fuente) { display: none; }
  .projects-sec .project h3 { margin-bottom: 4px; }
  .projects-sec .feats { margin-top: 12px; }
  /* Servicios: tarjetas más apretadas, con el icono al lado del título (el texto se queda entero) */
  .bento { gap: 12px; }
  .bento .tile { padding: 18px 18px 16px; gap: 0; }
  .bento .tile-txt { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .bento .tile-ico { width: 36px; height: 36px; border-radius: 10px; }
  .bento .tile-txt h3 { margin: 0; font-size: 1.14rem; }
  .bento .tile-txt p, .bento .tile-link { grid-column: 1 / -1; }
  .bento .tile-txt p { margin-top: 10px; }
  .bento .tile-link { margin-top: 8px; justify-self: start; }
  /* Cómo trabajamos: la etiqueta de cada paso repite lo que dice su texto */
  .steps li small { display: none; }
}

/* Publicaciones con foto (de dominio público; el crédito va en cada artículo) */
.pub { overflow: hidden; }
.pub-img { display: block; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -28px -28px 22px; background: var(--surface); }
.art-foto { margin: 0 0 36px; }
.art-foto img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.art-foto figcaption { margin-top: 10px; color: var(--muted); font: 500 .78rem/1.4 var(--mono); }
.art-foto figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Texto justificado en el aviso legal y en las publicaciones, con guiones para que no queden huecos grandes */
.legal p, .legal li, .article p, .article li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.article blockquote, .art-foto figcaption { text-align: left; }

/* ---------- Publicaciones: índice tipo revista (una destacada y tarjetas de varios estilos) ---------- */
.pub-txt { display: flex; flex: 1; flex-direction: column; }
.pubs.revista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Destacada: foto grande a la izquierda y texto al lado */
.pub-dest { grid-column: 1 / -1; flex-direction: row; padding: 0; }
.pub-dest .pub-img { flex: 0 0 56%; width: 56%; height: auto; min-height: 340px; margin: 0; aspect-ratio: auto; }
.pub-dest .pub-txt { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.pub-dest h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
/* Sobre la foto: el texto encima de la imagen, con un velo oscuro */
.pub-sobre { position: relative; justify-content: flex-end; min-height: 440px; padding: 0; border-color: transparent; color: #fff; background: var(--ink); }
.pub-sobre .pub-img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; transition: transform .6s var(--ease); }
.pub-sobre:hover .pub-img { transform: scale(1.04); }
.pub-sobre::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8, 16, 18, .94) 0, rgba(8, 16, 18, .6) 55%, rgba(8, 16, 18, .12)); }
.pub-sobre .pub-txt { position: relative; z-index: 2; flex: 0; padding: 28px; }
.pub-sobre small, .pub-sobre span { color: #5eead4; }
.pub-sobre h3 { color: #fff; }
.pub-sobre p { color: rgba(255, 255, 255, .78); }
/* Miniatura: la foto pequeña, como sello */
.pub-mini .pub-img { width: 92px; height: 92px; margin: 0 0 22px; aspect-ratio: 1; border-radius: 18px; }
/* Ancha: a lo ancho, con la foto a la derecha */
.pub-ancha { grid-column: 1 / -1; flex-direction: row-reverse; padding: 0; }
.pub-ancha .pub-img { flex: 0 0 42%; width: 42%; height: auto; min-height: 260px; margin: 0; aspect-ratio: auto; }
.pub-ancha .pub-txt { justify-content: center; padding: clamp(26px, 3.5vw, 42px); }
@media (max-width: 900px) {
  .pubs.revista { grid-template-columns: minmax(0, 1fr); }
  .pub-dest, .pub-ancha { flex-direction: column; }
  .pub-dest .pub-img, .pub-ancha .pub-img { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  .pub-sobre { min-height: 380px; }
}

/* ---------- Artículos: cada uno coloca su foto de una manera ---------- */
.article .foto-credito { margin: 0 0 30px; color: var(--muted); font: 500 .78rem/1.4 var(--mono); text-align: left; hyphens: manual; }
.foto-credito a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Portada: la foto de fondo en la cabecera, tras un velo para que el título se lea */
.phero.con-foto .phero-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.phero.con-foto .phero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 20, 22, .95) 0%, rgba(11, 20, 22, .72) 55%, rgba(11, 20, 22, .4) 100%); }
.phero.con-foto .phero-bg::after, .phero.con-foto .hexgrid { z-index: 2; }
/* Dividida: la foto al lado del título */
.phero-foto { margin: 0; }
.phero-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
/* Lateral: la foto flota junto al texto */
.art-foto.lado { float: right; width: 44%; margin: 6px 0 18px 30px; }
.art-foto.lado img { aspect-ratio: 4 / 3; }
.article ul, .article ol { overflow: hidden; }
.article h2 { clear: both; }
/* Intermedia: índice al principio y la foto, más ancha que el texto, a mitad del artículo */
.art-indice { margin: 0 0 40px; padding: 22px 26px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 18px 18px 0; background: var(--surface); }
.art-indice p { margin: 0 0 10px; color: var(--accent); font: 600 .76rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.art-indice ol { margin: 0; padding-left: 20px; }
.art-indice li { margin-bottom: 6px; text-align: left; }
.art-indice a { color: var(--text); text-decoration: none; }
.art-indice a:hover { color: var(--accent); text-decoration: underline; }
.art-foto.medio { margin: 44px -80px; }
.art-foto.medio figcaption { padding-inline: 80px; }
/* Ancha: a todo lo ancho de la página, antes del texto */
.art-foto.ancha { position: relative; left: 50%; width: min(1200px, calc(100vw - 32px)); margin: 0 0 40px; transform: translateX(-50%); }
.art-foto.ancha img { aspect-ratio: 21 / 9; border-radius: 22px; }
.art-foto.ancha figcaption { max-width: 760px; margin-inline: auto; }
@media (max-width: 960px) {
  .art-foto.medio { margin: 36px 0; }
  .art-foto.medio figcaption { padding-inline: 0; }
}
@media (max-width: 700px) {
  .art-foto.lado { float: none; width: 100%; margin: 0 0 28px; }
  .art-foto.lado img { aspect-ratio: 16 / 9; }
  .art-foto.ancha img { aspect-ratio: 16 / 9; border-radius: 16px; }
}

/* Aviso legal: fecha e índice */
.legal-fecha { color: var(--muted); font: 500 .8rem/1.4 var(--mono); }
.legal-toc { margin: 18px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 24px; margin: 0; padding-left: 20px; }
.legal .legal-toc li { margin: 0; text-align: left; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal ul { padding-left: 22px; }

/* Proponer una reunión: botones con el estilo de la web en lugar de los desplegables del navegador */
.meet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mt-grupo { min-width: 0; margin: 0; padding: 0; border: 0; }
.mt-grupo legend { margin-bottom: 8px; padding: 0; color: var(--muted); font: 600 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mt-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  color: var(--text); font: inherit; font-size: .9rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, color .2s; }
.mt-chip:hover { border-color: var(--accent-line); background: rgba(255, 255, 255, .07); }
.mt-chip small { color: var(--muted); font-size: .78rem; }
.mt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mt-chip:has(input:checked), .mt-chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.mt-chip:has(input:checked) small, .mt-chip[aria-pressed="true"] small { color: var(--accent); }
.mt-chip:has(input:focus-visible), .mt-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt-dia { flex: none; flex-direction: column; gap: 2px; min-width: 76px; padding: 8px 10px; scroll-snap-align: start; text-align: center; }
.mt-dia small { font: 600 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mt-dia b { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.mt-otra { margin-top: 8px; }
.mt-fecha { display: block; width: 100%; max-width: 240px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; color: var(--text); font: inherit; font-size: .9rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color-scheme: dark; accent-color: var(--accent); }
.mt-fecha[hidden] { display: none; }
.t-light .mt-fecha { color-scheme: light; }
.mt-chips .mt-chip { flex: 1 1 0; justify-content: center; text-align: center; }
@media (max-width: 520px) {
  .mt-chips .mt-chip { padding: 9px 8px; }
  .mt-chips .mt-chip span { display: flex; flex-direction: column; gap: 2px; }
}
.mt-chips { flex-wrap: nowrap; }
.mt-chips .mt-chip { min-width: 0; }
@media (max-width: 520px) { .mt-chips .mt-chip { padding-inline: 4px; font-size: .82rem; letter-spacing: -.01em; } }
@media (max-width: 360px) { .mt-chips { flex-wrap: wrap; } .mt-chips .mt-chip { flex: 1 1 40%; } }

/* Proponer una reunión, versión despejada: los días en cuadrícula (sin barra), más aire y «Otra fecha» discreto */
.meet-d { padding: 0 20px; border-radius: 14px; }
.meet-d summary { padding: 16px 0; }
.meet-d[open] { padding-bottom: 22px; }
.meet { gap: 26px; }
.mt-grupo { position: relative; }
.mt-grupo legend { margin-bottom: 12px; }
.mt-dias { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 0; scroll-snap-type: none; }
.mt-dia { min-width: 0; min-height: 62px; justify-content: center; gap: 4px; padding: 10px 6px; }
.mt-chips { gap: 10px; }
.mt-chips .mt-chip { min-height: 50px; padding-block: 12px; }
.mt-chip { border-radius: 12px; }
.mt-otra { position: absolute; top: -6px; right: 0; margin: 0; padding: 4px 6px; gap: 6px; min-height: 0; border: 0; background: none; color: var(--accent); font-size: .82rem; font-weight: 600; }
.mt-otra::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.mt-otra:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.mt-otra[aria-pressed="true"] { background: none; color: var(--accent); text-decoration: underline; }
.mt-fecha { margin-top: 12px; }
@media (max-width: 520px) {
  .meet-d { padding: 0 14px; }
  .mt-dias { gap: 6px; }
  .mt-dia { min-height: 56px; padding: 8px 2px; }
  .mt-dia b { font-size: .8rem; }
  .mt-dia small { font-size: .62rem; }
}
/* «Otra fecha» a la altura del título «Día» (el título queda fuera de la caja del grupo) */
.mt-otra { top: auto; bottom: calc(100% + 6px); }
