/* =====================================================================
   AKU Company — hoja de estilos del sitio (index.html y proyectos.html)
   Identidad: negro + rojo AKU, Space Grotesk / IBM Plex Sans / Plex Mono
   ===================================================================== */
/* fuentes servidas desde el propio dominio (antes: Google Fonts). Variables:
   un archivo cubre todos los grosores. Subconjunto latino (incluye todo el español). */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/space-grotesk.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2'); }
:root {
  --bg: #0a0a0b; --bg-2: #0d0d0f; --panel: #101012; --panel-2: #151518; --panel-3: #1b1b1f;
  --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.24);
  --text: #ece9e4; --strong: #ffffff; --muted: #a8a39b; --dim: #7c776f; --faint: #5b5750;
  --red: #d6342b; --red-hi: #ef4a3f; --red-soft: rgba(214,52,43,.12); --red-line: rgba(214,52,43,.38);
  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 40px); --sec: clamp(84px, 10vw, 132px);
  --nav-h: 72px; --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--strong); margin: 0; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 3px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 64px 64px; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 70; background: linear-gradient(90deg, var(--red), #ff7a45); transform: scaleX(0); transform-origin: 0 50%; }
header, main, footer { position: relative; z-index: 1; }

/* ---------- navegación ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(10,10,11,.74); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand .brand-mark { width: auto; height: 30px; }
.brand-name { font-family: var(--f-display); font-weight: 700; letter-spacing: .22em; font-size: 17px; color: var(--text); }
.brand-name b { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.nl { position: relative; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 0; transition: color .2s; }
.nav-links a.nl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.nav-links a.nl:hover, .nav-links a.nl.active { color: var(--strong); }
.nav-links a.nl:hover::after, .nav-links a.nl.active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 20px; background: var(--line-2); }
.nav-links a.tool { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); transition: color .2s; }
.nav-links a.tool:hover { color: var(--text); }
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mmenu { display: none; }
@media (max-width: 1180px) {
  .nav-links .nl, .nav-links .tool, .nav-sep { display: none; }
  .burger { display: inline-flex; }
  .mmenu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: rgba(10,10,11,.97); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav.open .mmenu { max-height: 640px; }
  .mmenu nav { display: flex; flex-direction: column; padding: 6px var(--gut) 22px; }
  .mmenu a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
  .mmenu a small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
  .mmenu a.cta { color: var(--red); font-weight: 600; border-bottom: none; }
}
@media (max-width: 420px) { .nav-links .btn { display: none; } }

/* ---------- botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1; padding: 15px 26px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(214,52,43,.85); }
.btn-red:hover { background: var(--red-hi); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.02); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--red); transition: gap .2s, color .2s; }
.link-arrow:hover { gap: 12px; color: var(--red-hi); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -18%; bottom: -45%; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(214,52,43,.10), transparent); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; min-height: calc(92vh - var(--nav-h)); padding-top: 56px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(214,52,43,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(214,52,43,0); } }
.hero h1 { font-size: clamp(44px, 5.5vw, 84px); line-height: .96; letter-spacing: -.035em; margin: 24px 0 28px; }
.hero h1 .hl { background: linear-gradient(92deg, #ff6a4d 0%, var(--red) 55%, #b8261e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--muted); max-width: 540px; margin-bottom: 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; flex-wrap: wrap; margin-top: 56px; border-top: 1px solid var(--line); }
.stat { padding: 22px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; color: var(--strong); line-height: 1.1; }
.stat span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-art .glow { position: absolute; width: min(460px, 88%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(214,52,43,.46), transparent 66%); filter: blur(10px); animation: glow 5s ease-in-out infinite; }
.hero-art .orbit { position: absolute; width: min(520px, 98%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255,255,255,.10); animation: spin 60s linear infinite; }
.hero-art .orbit::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.hero-art .orbit-2 { width: min(400px, 78%); border-style: solid; border-color: rgba(214,52,43,.18); animation-duration: 40s; animation-direction: reverse; }
.hero-art .orbit-2::before { background: #ece9e4; box-shadow: none; width: 6px; height: 6px; margin-left: -3px; top: -3px; }
.hero-art img { position: relative; height: min(440px, 72vw); width: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 28px 50px rgba(214,52,43,.28)); }
.hero-logo { position: relative; width: min(500px, 88vw); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 28px 50px rgba(214,52,43,.22)); }
.hero-logo svg { display: block; width: 100%; height: auto; }
.hero-art .chip { position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(16,16,18,.82); border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 999px; display: flex; align-items: center; gap: 8px; animation: float 7s ease-in-out infinite; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-art .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.chip.c1 { top: 12%; left: 0; } .chip.c2 { top: 22%; right: 0; animation-delay: -2s; }
.chip.c3 { bottom: 16%; left: 4%; animation-delay: -4s; } .chip.c4 { bottom: 9%; right: 6%; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cintas cruzadas (capacidades + marcas) ---------- */
.tapes { position: relative; height: clamp(170px, 17vw, 220px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 50%, rgba(214,52,43,.08), transparent 70%); }
.tape { position: absolute; left: -6%; width: 112%; overflow: hidden; white-space: nowrap; }
.tape-a { top: 22%; z-index: 2; background: var(--red); transform: rotate(-2.4deg); box-shadow: 0 22px 44px -22px rgba(214,52,43,.9); }
.tape-b { top: 50%; z-index: 1; background: #121215; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(1.8deg); }
.tape-track { display: flex; width: max-content; animation: cinta 32s linear infinite; }
.tape-b .tape-track { animation-duration: 46s; animation-direction: reverse; }
.tapes:hover .tape-track { animation-play-state: paused; }
.tape-group { display: flex; align-items: center; }
.tape-a .tape-group { gap: 26px; padding: 13px 26px 13px 0; }
.tape-a .tape-group span { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 23px); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.tape-a .tape-group i { width: 9px; height: 9px; background: rgba(255,255,255,.75); transform: rotate(45deg); flex-shrink: 0; }
.tape-b .tape-group { gap: 54px; padding: 15px 54px 15px 0; }
.tape-b .tape-group img { height: 24px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .62; transition: opacity .2s; }
.tape-b .tape-group span { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tape-b .tape-group i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { padding: var(--sec) 0; position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section--tint { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.006)); }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.kicker i { font-style: normal; color: var(--dim); }
.sec-head { margin-bottom: 56px; }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.h2 { font-size: clamp(34px, 4.3vw, 60px); line-height: 1.02; letter-spacing: -.03em; max-width: 740px; }
.sec-lead { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 440px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-in { min-height: auto; padding-top: 40px; }
  .hero-art { min-height: 380px; order: -1; }
}

/* ---------- tarjetas (capacidades, variables) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--panel); padding: 34px 30px 32px; transition: background .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.card:hover { background: #141416; }
.card:hover::before { transform: scaleX(1); }
.card .ico { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; color: var(--red); margin-bottom: 26px; transition: border-color .25s, background .25s, transform .25s; }
.card .ico svg { width: 24px; height: 24px; }
.card:hover .ico { border-color: var(--red-line); background: var(--red-soft); transform: translateY(-2px); }
.card .num { position: absolute; top: 32px; right: 28px; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.card .unit { font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: .1em; margin-bottom: 14px; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card .link-arrow { margin-top: 16px; font-size: 14px; }
@media (max-width: 1100px) { .cards, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards-3 { grid-template-columns: 1fr; } }

/* ---------- meteorología ---------- */
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(90% 80% at 55% 20%, rgba(214,52,43,.10), transparent 60%), var(--bg-2); padding: 18px; }
.hud > .c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); opacity: .85; }
.hud > .c.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud > .c.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud > .c.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hud > .c.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.mini-stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 30px 0 32px; }
.mini-stats b { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--strong); line-height: 1.15; }
.mini-stats span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.meteo-cards { margin-top: 64px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: none; }
.duo > div { background: var(--panel); padding: 36px 32px; }
.duo h3 { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--red); }
.ticks strong { color: var(--text); font-weight: 600; }
.makers { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; }
.makers .lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.makers span.mk { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: #cfcac2; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); transition: border-color .2s, color .2s; }
.makers span.mk:hover { border-color: var(--red-line); color: #fff; }
/* también trabajamos con (Plexim, AVL) */
.also { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; margin-top: 40px; padding: 36px; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(80% 140% at 100% 0%, rgba(214,52,43,.09), transparent 60%), var(--panel); }
.also .kicker { margin-bottom: 12px; }
.also h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 12px; }
.also-lead { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 420px; }
.also-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.also-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); transition: border-color .25s, transform .25s; }
.also-card:hover { border-color: var(--red-line); transform: translateY(-3px); }
.also-card .plate { max-width: none; height: 88px; margin: 0; }
.also-card .plate img { max-height: 58px; }
.also-card b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--strong); }
.also-card small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--dim); margin: 3px 0 8px; }
.also-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .also { grid-template-columns: 1fr; padding: 26px; gap: 26px; } }
@media (max-width: 520px) { .also-cards { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- logos (marcas y universidades) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1180px) { .tiles:not(.tiles-3) { grid-template-columns: repeat(4, 1fr); } }
.tile--cta { color: var(--muted); }
.tile--cta .plus { width: 46px; height: 46px; border-radius: 50%; border: 1px dashed var(--line-3); display: grid; place-items: center; font-family: var(--f-display); font-size: 24px; color: var(--red); margin-bottom: 6px; transition: border-color .25s, transform .25s; }
.tile--cta:hover .plus { border-color: var(--red-line); transform: rotate(90deg); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 24px 16px 22px; min-height: 196px; transition: background .25s; }
.tiles-3 .tile { min-height: 168px; }
a.tile:hover, .tile:hover { background: var(--panel-2); }
.plate { width: 100%; max-width: 196px; height: 80px; border-radius: 6px; background: #f5f3ef; display: grid; place-items: center; padding: 12px 16px; margin-bottom: 8px; transition: transform .25s, box-shadow .25s; }
.tile:hover .plate { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); }
.plate img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }
.plate .wm { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: #16161a; letter-spacing: -.01em; line-height: 1.1; }
.plate--dark { background: #17171b; box-shadow: inset 0 0 0 1px var(--line-2); }
.plate--dark .wm { color: var(--text); }
.tile .name { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--text); }
.tile small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); line-height: 1.4; }
.tag { display: inline-block; white-space: nowrap; margin-top: 3px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: #ff8177; border: 1px solid var(--red-line); background: var(--red-soft); padding: 4px 9px; border-radius: 999px; }
.tag--alt { color: var(--muted); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.tile--more { color: var(--red); font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; }
/* 12 fichas de marcas: 6 × 2 → 4 × 3 → 3 × 4 → 2 × 6 (misma especificidad que la regla de 1180px) */
@media (max-width: 760px) { .tiles:not(.tiles-3) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles:not(.tiles-3) { grid-template-columns: repeat(2, 1fr); } }
.tiles > * { min-width: 0; } /* que el contenido (etiquetas sin salto) no ensanche las columnas */
@media (max-width: 560px) { .tile { padding-left: 10px; padding-right: 10px; } .tag { white-space: normal; line-height: 1.35; text-align: center; } }
@media (max-width: 640px) { .tiles-3 { grid-template-columns: repeat(2, 1fr); } .tile { min-height: 170px; } }

/* ---------- clientes: universidades y entidades por tipo ---------- */
.anchor { position: absolute; top: 0; }
#clientes { position: relative; }
.ecount { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 40px; }
.ecount span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; background: rgba(255,255,255,.02); }
.ecount b { color: var(--red); font-weight: 600; margin-right: 7px; }
.eg-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.eg-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.eg-head span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); }
.tiles.tiles-8 { grid-template-columns: repeat(8, 1fr); }
.tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tiles.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles.tiles-8 .tile, .tiles.tiles-4 .tile, .tiles.tiles-2 .tile { min-height: 0; padding: 18px 12px 16px; gap: 5px; }
.tiles.tiles-8 .plate, .tiles.tiles-2 .plate { height: 66px; padding: 10px 12px; }
.tiles.tiles-8 .plate img, .tiles.tiles-2 .plate img { max-height: 44px; }
.tiles.tiles-4 .plate { height: 76px; }
.tiles.tiles-2 .plate .wm, .tiles.tiles-4 .plate .wm { font-size: 15.5px; }
.ents { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; margin-top: 36px; align-items: start; }
.ents-side { display: grid; gap: 22px; }
@media (max-width: 1180px) { .tiles.tiles-8 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .ents { grid-template-columns: 1fr; } .tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .tiles.tiles-8, .tiles.tiles-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- contratos (inicio y proyectos.html) ---------- */
.pstats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-bottom: 40px; }
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plist--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { background: var(--panel); padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: background .25s; min-height: 220px; }
.pcard:hover { background: var(--panel-2); }
.pcard .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); letter-spacing: .04em; }
.estado { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.estado i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado.ok { color: #7fd6a8; border-color: rgba(82,183,136,.35); background: rgba(82,183,136,.08); }
.estado.run { color: #f0c060; border-color: rgba(232,185,62,.35); background: rgba(232,185,62,.08); }
.pcard h3 { font-size: 18.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.pcard .ent { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.pcard .cat { color: #ff8177; }
.pmore { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1000px) { .plist--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .plist, .plist--3 { grid-template-columns: 1fr; } }
.page-hero { padding: 72px 0 8px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: .98; letter-spacing: -.035em; margin: 20px 0 22px; max-width: 900px; }
.page-hero .lead { color: var(--muted); font-size: 17.5px; line-height: 1.7; max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn { font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); background: transparent; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fbtn:hover { color: var(--text); border-color: var(--line-3); }
.fbtn.on { background: var(--red); border-color: var(--red); color: #fff; }
.fbtn b { font-weight: 500; opacity: .7; margin-left: 6px; }
.search { position: relative; }
.search input { font: inherit; font-size: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px 10px 38px; width: 280px; max-width: 100%; transition: border-color .2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--red-line); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.count { font-family: var(--f-mono); font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--dim); font-family: var(--f-mono); font-size: 13px; background: var(--panel); grid-column: 1 / -1; }
.note { margin-top: 26px; font-size: 13px; color: var(--dim); line-height: 1.6; max-width: 760px; }

/* ---------- páginas de soluciones ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--red); }
.page-hero .hero-cta { margin-top: 30px; }
.sol-split { align-items: start; }
.sol-side .sec-lead { margin-bottom: 26px; }
.sol-brands .lbl { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.sol-brands-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.brand-chip { height: 56px; min-width: 120px; padding: 10px 16px; border-radius: 6px; background: #f5f3ef; display: grid; place-items: center; }
.brand-chip img { max-height: 36px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.brand-chip--dark { background: #17171b; box-shadow: inset 0 0 0 1px var(--line-2); }
.sol-brands-row .mk { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: #cfcac2; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); transition: border-color .2s; }
.faq-item[open] { border-color: var(--red-line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 20px; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--red); transition: transform .25s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.rel { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--text); transition: border-color .2s, transform .2s; }
.rel i { font-style: normal; color: var(--red); transition: transform .2s; }
.rel:hover { border-color: var(--red-line); transform: translateY(-2px); }
.rel:hover i { transform: translateX(4px); }
@media (max-width: 760px) { .rels { grid-template-columns: 1fr; } }

/* ---------- taller ---------- */
.photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); max-height: 720px; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: filter .6s ease; }
.photo:hover img { filter: brightness(1.06) contrast(1.04); }
/* capa "HUD" sobre el robot (posiciones en % de la foto 1200x1500, ver _build/taller_foto.py) */
.hud-box { position: absolute; left: 26%; top: 35%; width: 48%; height: 59%; z-index: 1; pointer-events: none; }
.hud-box > i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--red); filter: drop-shadow(0 0 6px rgba(214,52,43,.7)); }
.hud-box > i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-box > i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-box > i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-box > i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-lbl { position: absolute; left: 0; bottom: calc(100% + 8px); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: #fff; background: rgba(10,10,11,.72); border: 1px solid var(--red-line); padding: 4px 9px; border-radius: 3px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hud-lbl b { width: 6px; height: 6px; border-radius: 50%; background: #7fd6a8; box-shadow: 0 0 8px #7fd6a8; animation: hudBlink 1.6s ease-in-out infinite; }
/* línea de escaneo: se mueve el fondo (solo repinta), no "top" (que recalcula el diseño) */
.hud-scan { position: absolute; left: 6px; right: 6px; top: 2%; bottom: 3%; background: linear-gradient(90deg, transparent, rgba(239,74,63,.9), transparent) no-repeat; background-size: 100% 2px; background-position: 0 0; filter: drop-shadow(0 0 6px rgba(214,52,43,.8)); animation: hudScan 4.2s ease-in-out infinite; }
@keyframes hudScan { 0% { background-position: 0 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { background-position: 0 100%; opacity: 0; } }
@keyframes hudBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,.6)); pointer-events: none; }
.photo figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(10,10,11,.66); border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; gap: 8px; align-items: center; }
.photo figcaption i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.facts b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--strong); line-height: 1.15; }
.facts span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }

/* ---------- contacto ---------- */
.cta-box { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); background: radial-gradient(120% 140% at 85% 0%, rgba(214,52,43,.22), transparent 55%), var(--bg-2); }
.cta-box::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.08); pointer-events: none; }
.cta-box h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1; letter-spacing: -.03em; max-width: 720px; margin-bottom: 22px; }
.cta-box p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 520px; margin-bottom: 38px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-meta { margin-top: 34px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- cotización SERCOP (cotizacion.html + botón flotante) ---------- */
.btn-wrap { white-space: normal; text-align: left; line-height: 1.3; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.hero-note i { width: 6px; height: 6px; border-radius: 50%; background: #7fd6a8; box-shadow: 0 0 10px rgba(127,214,168,.7); flex-shrink: 0; }
.cot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 28px; align-items: start; }
.cot-form, .cot-ok { position: relative; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); padding: clamp(22px, 4vw, 40px); }
.cot-sol { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: #ff8177; border: 1px solid var(--red-line); background: var(--red-soft); padding: 6px 12px; border-radius: 999px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field label b { color: var(--red); font-weight: 500; }
.field label em { font-style: normal; color: var(--dim); text-transform: none; letter-spacing: .02em; }
.field input, .field textarea { font: inherit; font-size: 15.5px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; line-height: 1.55; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-line); box-shadow: 0 0 0 3px var(--red-soft); }
.field.err input, .field.err textarea { border-color: var(--red); }
.field .hint { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.budget { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid rgba(82,183,136,.35); border-radius: 6px; background: rgba(82,183,136,.07); }
.budget p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.budget b { color: #9fe3bf; font-weight: 600; }
.budget-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: #0a0a0b; background: #7fd6a8; }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.privacy { font-size: 12.5px; color: var(--dim); max-width: 360px; line-height: 1.5; }
.form-msg { margin-top: 14px; font-size: 14px; color: #ff8177; }
.form-msg:empty { display: none; }
.cot-form button[disabled] { opacity: .65; cursor: wait; transform: none; }
.cot-ok { text-align: center; padding-top: 52px; padding-bottom: 52px; }
.cot-ok:focus { outline: none; }
.ok-ico { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: #0a0a0b; background: #7fd6a8; box-shadow: 0 0 0 10px rgba(127,214,168,.12); }
.ok-ico svg { width: 30px; height: 30px; }
.cot-ok h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; margin-bottom: 12px; }
.cot-ok p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.cot-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 20px); }
.side-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 24px; }
.side-card h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 12px; }
.side-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.side-card a { color: var(--text); border-bottom: 1px solid var(--red-line); transition: color .2s; }
.side-card a:hover { color: var(--red-hi); }
.side-card .ticks { display: grid; gap: 10px; }
.side-card .ticks li { font-size: 14.5px; }
.side-card--red { border-color: var(--red-line); background: radial-gradient(120% 120% at 100% 0%, rgba(214,52,43,.14), transparent 60%), var(--panel); }
@media (max-width: 980px) { .cot { grid-template-columns: 1fr; } .cot-side { position: static; } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }
/* botón flotante (todas las páginas menos cotizacion.html) */
.fab { position: fixed; right: clamp(14px, 2.2vw, 28px); bottom: clamp(14px, 2.2vw, 28px); z-index: 55; display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px 11px 13px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; box-shadow: 0 16px 36px -12px rgba(214,52,43,.95), inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .2s, background .2s, opacity .2s; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--red); animation: fabRing 3.2s ease-out infinite; pointer-events: none; }
.fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.fab small { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.fab:hover { background: var(--red-hi); transform: translateY(-2px); }
@keyframes fabRing { 0% { transform: scale(1); opacity: .9; } 60%, 100% { transform: scale(1.18, 1.45); opacity: 0; } }
@media (max-width: 520px) { .fab { padding: 10px 15px 10px 11px; font-size: 13px; } .fab small { font-size: 8.5px; } }
.menu-open .fab { opacity: 0; pointer-events: none; }
/* con JS, el botón aparece al bajar (arriba ya está el botón del inicio) */
.js .fab { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .fab.show { opacity: 1; transform: none; pointer-events: auto; }
.js .fab.show:hover { transform: translateY(-2px); }
.menu-open .fab.show { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { body .foot { padding-bottom: 96px; } } /* que el botón flotante no tape el pie */

/* ---------- pie de página ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot .about { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 320px; margin-top: 16px; }
.foot h3, .foot h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a, .foot li { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- aparición al desplazar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- estación meteorológica animada ----------
   Se dibuja al entrar en pantalla (JS agrega .pre/.on) y luego corren
   viento, lluvia, sol, señal 4G, pulsos de datos y humedad del suelo */
.meteo-svg { display: block; width: 100%; height: auto; font-family: var(--f-mono); }
.meteo-svg .d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.meteo-svg.pre .d { stroke-dashoffset: 1; }
.meteo-svg.pre .s, .meteo-svg.pre .lbl { opacity: 0; }
.meteo-svg.on .d { transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1) var(--d, 0s); stroke-dashoffset: 0; }
.meteo-svg.on .s, .meteo-svg.on .lbl { transition: opacity .6s ease var(--d, 0s); opacity: 1; }
@keyframes mtWind { from { stroke-dashoffset: 46; } to { stroke-dashoffset: 0; } }
.meteo-svg .wind { stroke-dasharray: 9 37; animation: mtWind 1.6s linear infinite; }
@keyframes mtDrop { 0% { transform: translateY(-12px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.meteo-svg .drop { animation: mtDrop 1.35s linear infinite; }
@keyframes mtWave { 0%, 100% { opacity: .12; } 40% { opacity: 1; } }
.meteo-svg .wave { animation: mtWave 1.8s ease-in-out infinite; }
@keyframes mtLed { 0%, 100% { fill-opacity: .15; } 50% { fill-opacity: .85; } }
.meteo-svg .led { animation: mtLed 1.4s ease-in-out infinite; }
@keyframes mtRod { 0%, 88%, 100% { stroke: #a8a39b; } 90%, 94% { stroke: #ffffff; } 92%, 96% { stroke: #a8a39b; } }
.meteo-svg .rod { animation: mtRod 7s linear infinite; }
@keyframes mtRing { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.meteo-svg .ring { transform-box: fill-box; transform-origin: center; animation: mtRing 2.4s ease-out infinite; }
@keyframes mtRays { to { transform: rotate(360deg); } }
.meteo-svg .rays { transform-box: fill-box; transform-origin: center; animation: mtRays 18s linear infinite; }
@keyframes mtBeam { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.meteo-svg .beam { stroke-dasharray: 3 9; animation: mtBeam 1.2s linear infinite; }
@keyframes mtPanel { 0%, 100% { fill-opacity: .08; } 50% { fill-opacity: .32; } }
.meteo-svg .panel { animation: mtPanel 3.2s ease-in-out infinite; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-art img, .hero-art .glow, .hero-art .orbit, .hero-art .chip, .tape-track, .pulse-dot, .fab::before, .hud-lbl b { animation: none; }
  .hud-scan { display: none; }
  .meteo-svg * { animation: none !important; transition: none !important; }
  .meteo-svg .pulse, .meteo-svg .drop, .meteo-svg .ring { display: none; }
}

/* SEO: marcas y productos (generados por _build/build.py) */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); line-height: 1.5; }
.spec-table thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--panel); }
.spec-table tbody th { color: var(--strong); font-weight: 600; }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table a { color: var(--red); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chip-link { display: inline-flex; border-radius: 6px; transition: transform .2s; }
.chip-link:hover { transform: translateY(-2px); }

/* =====================================================================
   v2 · Rediseño (06-oct-2026)
   Portada con red neuronal, titulares en cortina, luz que sigue al
   cursor, botones magnéticos, AKU IA con chat y pie con marca gigante.
   Todo es mejora progresiva y se apaga con "reducir movimiento".
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }

/* grano de película (textura premium, muy sutil) */
body::after { content: ""; position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
  animation: grano 9s steps(10) infinite; }
@keyframes grano { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); } 50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); } }
@media (max-width: 760px) { body::after { animation: none; opacity: .035; } }

/* cuadrícula de fondo: un halo rojo sigue al cursor */
.bg-grid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--cx, -999px) var(--cy, -999px), rgba(214,52,43,.075), transparent 62%); }

/* navegación: se compacta al bajar y se esconde mientras se baja */
.nav { transition: transform .5s var(--ease-out), background .3s, border-color .3s, box-shadow .3s; }
.nav--scrolled { background: rgba(10,10,11,.86); border-bottom-color: var(--line-2); box-shadow: 0 18px 40px -30px rgba(0,0,0,.9); }
.nav--hidden { transform: translateY(-101%); }
.brand img { transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

/* botones: brillo que cruza y relleno al pasar */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-red::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.32) 50%, transparent 72%); transform: translateX(-130%); transition: transform .9s var(--ease-out); }
.btn-red:hover::after { transform: translateX(130%); }
.btn-ghost::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-soft); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.btn-ghost:hover::after { transform: scaleY(1); }
.btn-ghost:hover { border-color: var(--red-line); }
.magnet { transition: transform .35s var(--ease-out), background .2s, border-color .2s, box-shadow .2s, color .2s; }

/* ---------- portada ---------- */
.hero { isolation: isolate; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s ease; }
.hero-fx.on { opacity: 1; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(75% 70% at 32% 42%, rgba(10,10,11,.35) 0%, rgba(10,10,11,.72) 62%, var(--bg) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.js .hero-art { opacity: 0; scale: .9; filter: blur(14px); transition: opacity 1.4s ease .25s, scale 1.6s var(--ease-out) .25s, filter 1.4s ease .25s; }
.js .hero.ready .hero-art { opacity: 1; scale: 1; filter: none; }
.hero-art .chip { box-shadow: 0 12px 30px -16px rgba(0,0,0,.9); }
.hero-art .chip i { box-shadow: 0 0 10px var(--red); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-3); border-radius: 999px; transition: border-color .2s; }
.scroll-cue:hover { border-color: var(--red); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: cue 1.9s var(--ease-io) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(15px); } }
@media (max-width: 960px), (max-height: 700px) { .scroll-cue { display: none; } }
.h2 .hl, .page-hero h1 .hl, .cta-box h2 .hl { background: linear-gradient(92deg, #ff6a4d 0%, var(--red) 55%, #b8261e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* la foto del taller se amplía 1.12 para el paralaje; el recuadro del robot
   se amplía igual alrededor del centro de la foto (50% 50% de la foto =
   50% 25.4% del recuadro, que ocupa left 26% w 48%, top 35% h 59%) */
.photo .hud-box { scale: 1.12; transform-origin: 50% 25.4%; }
.stat b, .mini-stats b, .facts b { font-variant-numeric: tabular-nums; }

/* titulares en cortina: cada palabra sube desde abajo */
.cortina .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .07em 0 .1em; margin: -.07em 0 -.1em; }
.cortina .wi { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--rd, 0s) + var(--i, 0) * 42ms); }
.cortina.in .wi { transform: none; }

/* cintas con bordes que se desvanecen */
.tapes { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }

/* aparición: con un leve desenfoque y la línea del kicker que se dibuja */
.js [data-reveal] { transition: opacity .8s ease, transform .9s var(--ease-out), filter .8s ease; transition-delay: var(--rd, 0s); }
/* el leve desenfoque al aparecer solo en computadora: en el celular cuesta mucho pintarlo */
@media (min-width: 961px) and (hover: hover) {
  .js [data-reveal] { filter: blur(6px); }
  .js [data-reveal].in { filter: none; }
}
.js [data-reveal] .kicker::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .2s; }
.js [data-reveal].in .kicker::before { transform: none; }

/* ---------- luz que sigue al cursor ----------
   Las grillas de 1px (fondo = color de línea) se iluminan cerca del cursor
   y cada tarjeta lleva su propio halo. JS pone --gx/--gy y --mx/--my. */
.cards, .tiles, .plist, .duo, .grid-cards, .ia-feats { background: radial-gradient(380px circle at var(--gx, -999px) var(--gy, -999px), rgba(239,74,63,.6), transparent 60%), var(--line); }
.card, .pcard, .duo > div, .ia-feats li { background: radial-gradient(480px circle at var(--mx, -999px) var(--my, -999px), rgba(214,52,43,.10), transparent 45%), var(--panel); }
.card:hover, .pcard:hover, .ia-feats li:hover { background: radial-gradient(480px circle at var(--mx, -999px) var(--my, -999px), rgba(214,52,43,.14), transparent 45%), #141416; }
.tile { background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(214,52,43,.10), transparent 55%), var(--bg); }
a.tile:hover, .tile:hover { background: radial-gradient(320px circle at var(--mx, -999px) var(--my, -999px), rgba(214,52,43,.13), transparent 55%), var(--panel-2); }
.rel, .side-card, .also-card, .faq-item { background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(214,52,43,.09), transparent 55%), var(--panel); }
.card h3 { transition: color .25s; }
.card:hover h3 { color: #fff; }
.card .ico { transition: border-color .25s, background .25s, transform .5s var(--ease-out); }
.card:hover .ico { transform: translateY(-3px) rotate(-6deg); }
.card .num { transition: color .25s; }
.card:hover .num { color: var(--red); }

/* foto del taller: se descubre como un telón y tiene paralaje */
.photo img { scale: 1.12; will-change: translate; }
.js .photo[data-reveal] { clip-path: inset(16% 0 0 0 round 6px); transition: clip-path 1.5s var(--ease-out), opacity .8s ease, transform .9s var(--ease-out), filter .8s ease; }
.js .photo[data-reveal].in { clip-path: inset(0 0 0 0 round 6px); }

/* caja de contacto: borde con un destello que gira */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.cta-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 64%, rgba(239,74,63,.95) 78%, rgba(255,160,120,.6) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: giroBorde 7s linear infinite; }
@keyframes giroBorde { to { --ang: 360deg; } }

/* encabezado de páginas internas: halo que respira */
.page-hero { position: relative; overflow-x: clip; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -55%; width: min(760px, 120vw); aspect-ratio: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(214,52,43,.16), transparent); animation: deriva 16s ease-in-out infinite alternate; }
@keyframes deriva { to { transform: translate(-90px, 70px) scale(1.12); } }

/* ---------- AKU IA ---------- */
#aku-ia { overflow: hidden; }
#aku-ia::before { content: ""; position: absolute; left: 50%; top: 0; width: 1100px; height: 700px; margin-left: -550px; pointer-events: none; background: radial-gradient(closest-side, rgba(214,52,43,.09), transparent); }
.ia-split { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; margin-bottom: 28px; align-items: stretch; }
.ia-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border: 1px solid var(--line); align-content: stretch; }
.ia-feats li { position: relative; display: grid; gap: 6px; padding: 24px 26px 24px 58px; transition: background .25s; }
.ia-feats li::before { content: ""; position: absolute; left: 26px; top: 30px; width: 12px; height: 12px; border: 2px solid var(--red); transform: rotate(45deg); transition: transform .5s var(--ease-out), background .25s; }
.ia-feats li:hover::before { transform: rotate(225deg); background: var(--red); }
.ia-feats b { font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--strong); letter-spacing: -.01em; }
.ia-feats span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ia-chat { position: relative; display: flex; flex-direction: column; min-height: 420px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(214,52,43,.16), transparent 55%), linear-gradient(180deg, #0f0f12, #0b0b0d);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.02) inset; }
.ia-chat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.ia-chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.ia-chat-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.ia-chat-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); }
.ia-chat-bar .dots i:first-child { background: var(--red); }
.ia-chat-bar b { font-family: var(--f-display); font-size: 14px; letter-spacing: .06em; color: var(--strong); }
.ia-chat-bar small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; }
.ia-chat-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #7fd6a8; font-size: 11px; }
.ia-chat-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: #7fd6a8; box-shadow: 0 0 10px #7fd6a8; animation: hudBlink 1.6s ease-in-out infinite; }
.ia-chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding: 22px 18px 16px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; animation: msgIn .5s var(--ease-out) both; }
.msg--u { align-self: flex-end; background: linear-gradient(135deg, var(--red-hi), var(--red)); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 12px 28px -16px rgba(214,52,43,.9); }
.msg--a { align-self: flex-start; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.msg--a::before { content: "AKU IA"; display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: #ff8177; margin-bottom: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.msg .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: hudBlink .8s steps(1) infinite; }
.msg .pensando { display: inline-flex; gap: 5px; padding: 4px 0; }
.msg .pensando i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pensando 1.1s ease-in-out infinite; }
.msg .pensando i:nth-child(2) { animation-delay: .15s; } .msg .pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes pensando { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.ia-chat-body.out .msg { animation: msgOut .5s ease forwards; }
@keyframes msgOut { to { opacity: 0; transform: translateY(-8px); } }
.ia-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255,255,255,.02); color: var(--faint); font-size: 14px; }
.ia-chat-input i { width: 30px; height: 30px; border-radius: 6px; background: var(--red); position: relative; }
.ia-chat-input i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -3px 0 0 -5px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.ia-chat-input { gap: 10px; padding: 6px 6px 6px 14px; transition: border-color .2s; }
.ia-chat-input:focus-within { border-color: rgba(214,52,43,.6); }
.ia-chat-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 6px 0; }
.ia-chat-input input::placeholder { color: var(--faint); }
.ia-chat-input button { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.ia-chat-input button:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.ia-chat-input.ocupado button { opacity: .45; pointer-events: none; }
.ia-sugerencias { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 14px 10px; }
.ia-sugerencias[hidden] { display: none; }
.ia-sugerencias button { font: inherit; font-size: 12.5px; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ia-sugerencias button:hover { border-color: rgba(214,52,43,.6); background: rgba(214,52,43,.08); }
.ia-aviso { margin: 0 14px 14px; font-size: 11.5px; color: var(--dim); }
.ia-aviso a { color: #ff8177; }
.ia-chat-body.ia-real { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg a { color: inherit; text-decoration: underline; word-break: break-all; }
.msg--a a { color: #ff8177; }
.msg--error { border-color: rgba(214,52,43,.55); }
@media (max-width: 960px) { .ia-split { grid-template-columns: 1fr; } .ia-chat { min-height: 380px; } }
@media (max-width: 520px) { .msg { max-width: 94%; font-size: 14px; } .ia-chat-bar small { display: none; } }

/* ---------- pie: marca gigante ---------- */
.foot-mark { display: flex; justify-content: center; align-items: baseline; margin: 64px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(46px, 11.2vw, 168px); line-height: .82; letter-spacing: -.045em; white-space: nowrap; overflow: hidden; user-select: none; }
.foot-mark span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 80%); -webkit-background-clip: text; background-clip: text; transition: -webkit-text-stroke-color .5s; }
.foot-mark b { color: var(--red); text-shadow: 0 0 40px rgba(214,52,43,.6); }
.foot-mark:hover span { -webkit-text-stroke-color: rgba(214,52,43,.65); }

/* ---------- cursor (solo con mouse) ---------- */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); transition: opacity .3s; }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(255,255,255,.32); transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, border-color .3s; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--red); background: rgba(214,52,43,.08); }
.cursor-ring.texto, .cursor-dot.texto { opacity: 0 !important; }

/* ---------- estación meteorológica v2: gemelo digital en vivo ----------
   _build/meteo.svg.html + bloque "estación en vivo" de site.js: lecturas
   que cambian, telemetría con reloj y gráfica, ciclo de lluvia con nube y
   rayo, y el sensor que se ilumina al acercar el mouse. */
.meteo-svg .val { fill: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .02em; transition: fill .3s; }
.meteo-svg .tag text:first-child { transition: fill .3s; }
@keyframes mtGust { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -260; } }
.meteo-svg .gust { stroke-dasharray: 60 200; animation: mtGust 4.2s linear infinite; }
@keyframes mtSonar { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
.meteo-svg .sonar { animation: mtSonar .7s ease-in-out infinite; }
@keyframes mtLeds { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.meteo-svg .leds circle { animation: mtLeds 1.2s steps(2) infinite; }
.meteo-svg .leds circle:nth-child(2) { animation-delay: .4s; } .meteo-svg .leds circle:nth-child(3) { animation-delay: .8s; }
.meteo-svg .vivo { animation: hudBlink 1.4s ease-in-out infinite; }
.meteo-svg .halo { transform-box: fill-box; transform-origin: center; animation: glow 4s ease-in-out infinite; }
.meteo-svg .nivel { transition: y 1.2s ease, height 1.2s ease; }
/* ciclo de lluvia */
.meteo-svg .lluvia, .meteo-svg .nube { opacity: 0; transition: opacity 1.2s ease, transform 1.6s var(--ease-out); }
.meteo-svg .nube { transform: translateX(-36px); }
.meteo-svg.llueve .lluvia { opacity: 1; }
.meteo-svg.llueve .nube { opacity: 1; transform: none; }
.meteo-svg.on.llueve .sol { opacity: .22; }
.meteo-svg.llueve .viento-fondo { opacity: 1; }
@keyframes mtLluvia { from { transform: translate(0, 0); } to { transform: translate(-46px, 520px); } }
.meteo-svg .lluvia line { animation: mtLluvia .95s linear infinite; }
.meteo-svg .rayo, .meteo-svg .flash { opacity: 0; }
@keyframes mtRayo { 0%, 100% { opacity: 0; } 8%, 30% { opacity: 1; } 18% { opacity: .2; } 45% { opacity: 0; } }
@keyframes mtFlash { 0%, 100% { opacity: 0; } 8% { opacity: .16; } 18% { opacity: 0; } 28% { opacity: .1; } 40% { opacity: 0; } }
.meteo-svg.destello .rayo { animation: mtRayo .8s ease-out; }
.meteo-svg.destello .flash { animation: mtFlash .8s ease-out; }
.meteo-svg.destello .rod { stroke: #fff; }
/* foco al pasar el mouse cerca de un sensor */
.meteo-svg .sensor, .meteo-svg .tag { transition: opacity .35s ease, filter .35s ease; }
.meteo-svg[data-foco] .sensor:not(.foco), .meteo-svg[data-foco] .tag:not(.foco) { opacity: .28; }
.meteo-svg .sensor.foco { filter: url(#mt-glow); }
.meteo-svg .tag.foco .val { fill: #ff8177; }
.meteo-svg .tag.foco text:first-child { fill: #fff; }
.meteo-svg.vivo-on { cursor: crosshair; }

/* ---------- cómo trabajamos: línea de tiempo que se llena al bajar ----------
   JS pone --p (0 a 1) en .timeline y .on en cada paso alcanzado. */
.timeline { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 9px; right: 9px; top: 9px; height: 2px; }
.timeline::before { background: var(--line-2); }
.timeline::after { background: linear-gradient(90deg, var(--red), #ff7a45); transform: scaleX(var(--p)); transform-origin: left; box-shadow: 0 0 14px rgba(214,52,43,.7); }
.tl-step { position: relative; padding-top: 42px; }
.tl-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-3); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s, transform .5s var(--ease-out); }
.tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .5s var(--ease-out); }
.tl-step.on .tl-dot { border-color: var(--red); box-shadow: 0 0 0 6px var(--red-soft), 0 0 22px rgba(214,52,43,.6); transform: scale(1.1); }
.tl-step.on .tl-dot::after { transform: scale(1); }
.tl-num { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); margin-bottom: 10px; transition: color .4s; }
.tl-step.on .tl-num { color: var(--red); }
.tl-step h3 { font-size: 20px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.01em; }
.tl-step p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 40px; }
  .timeline::before, .timeline::after { left: 9px; right: auto; top: 9px; bottom: 9px; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(var(--p)); transform-origin: top; }
  .tl-step { padding-top: 0; }
  .tl-dot { left: -40px; }
}

/* las secciones lejos de la pantalla no se maquetan ni se pintan hasta acercarse
   (el inicio tiene ~1.200 elementos: esto es lo que más alivia al celular) */
main > section:not(#inicio), .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* animaciones pausadas mientras su sección no está en pantalla (JS pone .fuera) */
.fuera, .fuera *, .fuera *::before, .fuera *::after { animation-play-state: paused !important; }

/* ---------- AKU IA: subtítulos y proyectos piloto ---------- */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sub-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sub-head span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); }
.card--piloto .num { color: var(--red); opacity: .7; }
.piloto-dev { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: #e8b93e; }
.piloto-dev i { width: 7px; height: 7px; border-radius: 50%; background: #e8b93e; box-shadow: 0 0 10px rgba(232,185,62,.7); animation: hudBlink 1.6s ease-in-out infinite; }

/* ---------- estación meteorológica 3D (assets/meteo3d.js) ----------
   Se superpone al dibujo SVG (que define el alto del cuadro y queda de
   respaldo). Visible solo cuando el 3D arrancó (.m3d--on). */
.m3d { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 1s ease; background: #120c12; }
.m3d--on { opacity: 1; pointer-events: auto; }
.m3d-activo .meteo-svg { visibility: hidden; }
.m3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.m3d-canvas:active { cursor: grabbing; }
.m3d-tags { position: absolute; inset: 0; pointer-events: none; }
.m3d-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; white-space: nowrap; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: #cfcac2; transition: opacity .3s; will-change: transform; }
.m3d-tag i { flex: none; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(214,52,43,.25), 0 0 10px var(--red); }
.m3d-tag span { text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.m3d-tag b { font-weight: 600; color: #fff; font-size: 11.5px; background: rgba(10,10,11,.62); border: 1px solid rgba(255,255,255,.14); padding: 3px 8px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* a la derecha de la pantalla la etiqueta se abre hacia la izquierda */
.m3d-tag.der { flex-direction: row-reverse; translate: -100% 0; }
.m3d-tag.der i { margin-left: 0; margin-right: -3.5px; }
.m3d-tag { translate: 0 -50%; }
.m3d-tag.der { translate: -100% -50%; }
.m3d-telem { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end; padding: 11px 14px; border-radius: 8px; background: rgba(10,10,11,.66); border: 1px solid rgba(255,255,255,.13); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.m3d-telem small { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--dim); margin-bottom: 4px; }
.m3d-telem b { font-family: var(--f-mono); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.m3d-spark { display: block; width: 100%; height: 30px; }
.m3d-spark .l { fill: none; stroke: var(--red-hi); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.m3d-spark .a { fill: rgba(214,52,43,.22); stroke: none; }
.m3d-red { text-align: right; }
.m3d-red small span { color: #cfcac2; }
.m3d-vivo { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #ff8177; }
.m3d-vivo i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: hudBlink 1.4s ease-in-out infinite; }
.m3d-hint { position: absolute; top: 12px; right: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: rgba(255,255,255,.7); background: rgba(10,10,11,.55); border: 1px solid rgba(255,255,255,.12); padding: 5px 10px; border-radius: 999px; pointer-events: none; transition: opacity .6s; }
.m3d--usado .m3d-hint { opacity: 0; }
@media (max-width: 560px) { .m3d-telem { grid-template-columns: auto 1fr; } .m3d-red { display: none; } .m3d-tag span { display: none; } }

/* ---------- movimiento reducido (v2) ---------- */
@media (prefers-reduced-motion: reduce) {
  body::after, .page-hero::before, .cta-box::before, .scroll-cue span, .ia-chat-bar .live i { animation: none; }
  .js .hero-art { opacity: 1; scale: 1; filter: none; transition: none; }
  .js [data-reveal] { filter: none; }
  .js .photo[data-reveal] { clip-path: none; }
  .cortina .wi { transform: none; transition: none; }
  .msg { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
