/* KTKZ — Orbital. La decoración se recorta en su propio contenedor; el documento no oculta overflow. */
:root {
  color-scheme: dark;
  --bg: #060709; --surface: #0d0f15; --text: #f3f2f8; --muted: #c3c3d2;
  --soft: #adacc2; --accent: #b5adff; --line: #ffffff24; --header-height: 84px;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  /* Roles compartidos: la decoración orbital mantiene su escala independiente.
     Rangos en la raíz estándar de 16 px; rem respeta la preferencia del lector. */
  --type-caption: clamp(.75rem, .71rem + .15vw, .875rem);
  --type-label: clamp(.8125rem, .77rem + .2vw, .9375rem);
  --type-secondary: clamp(.9375rem, .89rem + .22vw, 1.0625rem);
  --type-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --type-small-title: clamp(1.0625rem, .98rem + .3vw, 1.25rem);
  --type-element-title: clamp(1.3125rem, 1.2rem + .35vw, 1.5rem);
  --leading-copy: 1.75;
  --leading-title: 1.35;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--type-body)/var(--leading-copy) var(--font-body); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url('../assets/starfield.svg') repeat; background-size: 540px; opacity: .48; pointer-events: none; }
::selection { background: #b5adff55; color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { color: inherit; }
button { border: 0; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
section[id] { scroll-margin-top: 100px; }
.section-py { padding-block: 110px; position: relative; border-top: 1px solid var(--line); }
.section-tag { display: block; margin-bottom: 24px; font-size: var(--type-label); font-weight: 600; letter-spacing: .18em; line-height: 1.7; text-transform: uppercase; color: #d0cde3; }
.section-title { font: 400 clamp(36px, 4.5vw, 58px)/1.12 var(--font-display); letter-spacing: -.03em; margin-bottom: 24px; }
em { color: var(--accent); font-style: normal; }
.section-desc { color: var(--muted); max-width: 700px; font-size: var(--type-body); }
.section-header { margin-bottom: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; min-height: 46px; border: 1px solid var(--line); border-radius: 100px; font-size: var(--type-label); font-weight: 600; line-height: 1.5; text-align: center; background: transparent; transition: border-color .2s, background .2s, transform .2s; }
.btn-primary { background: #f3f1ff; color: #111119; border-color: #f3f1ff; }
.btn-primary:hover { background: #d8d2ff; border-color: #d8d2ff; transform: translateY(-2px); }
.btn-secondary:hover, .btn-whatsapp:hover { background: #b5adff12; border-color: var(--accent); transform: translateY(-2px); }
.btn-whatsapp { border-color: #b5adff80; background: #a39bff08; color: var(--text); }
.btn-lg { min-height: 51px; padding: 15px 24px; }
.btn-sm { min-height: 40px; padding: 10px 18px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-size: var(--type-secondary); color: #e3deff; border-bottom: 1px solid #b5adff55; padding-block: 12px; }
.text-link:hover { color: #fff; border-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 20px; z-index: 1100; transform: translateY(-160%); background: #f3f1ff; color: #111119; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.noscript-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-block: 16px; font-size: var(--type-label); }

/* Marca original, encuadrada sin alterar proporciones. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { display: block; width: 112px; height: 36px; position: relative; overflow: hidden; }
.brand-mark img { position: absolute; width: 150%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -45.3%); clip-path: inset(36.4% 16% 45.8% 16%); }
.navbar-brand-mark { width: 100px; height: 31px; }
.navbar-brand-mark img { mix-blend-mode: screen; }
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 50; background: #060709c9; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: #08090ff5; border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav-desktop { display: flex; gap: 30px; }
.nav-link { font-size: var(--type-label); color: var(--muted); padding-block: 12px; position: relative; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-wa-btn { font-size: var(--type-label); }
.header-wa-btn svg { display: none; }
.menu-toggle { width: 44px; height: 44px; padding: 10px; display: none; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.bar { display: block; background: #edeafa; width: 20px; height: 1px; margin: 5px 0; }
.mobile-nav-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 100%); z-index: 101; background: #0b0d14; border-left: 1px solid var(--line); padding: 28px; visibility: hidden; transform: translateX(100%); transition: transform .3s, visibility 0s .3s; display: flex; flex-direction: column; gap: 30px; }
.mobile-nav-drawer.open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.drawer-header .brand { display: block; }
.brand-sub { color: var(--soft); font-size: var(--type-caption); letter-spacing: .06em; }
.drawer-close, .modal-close-btn { background: transparent; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); font-size: 25px; flex-shrink: 0; }
.drawer-links { display: flex; flex-direction: column; gap: 5px; }
.drawer-link { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--type-small-title); }
.drawer-footer { margin-top: auto; }
.drawer-backdrop { position: fixed; inset: 0; background: #0009; z-index: 100; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer-backdrop.show { opacity: 1; visibility: visible; }

/* Hero: agujero negro local con capas luminosas independientes. */
.hero-section { min-height: 740px; position: relative; isolation: isolate; overflow: hidden; background: #030405; }
.hero-visual { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.hero-visual picture { display: block; height: 100%; }
.black-hole-scene { position: absolute; width: min(930px, 74vw); aspect-ratio: 1; right: -80px; top: -85px; transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0); }
.black-hole-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.photon-ring { position: absolute; width: 31%; aspect-ratio: 1; left: 49%; top: 47%; transform: translate(-50%, -50%); opacity: .6; }
.photon-track, .accretion-track { display: block; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 12%, #e5dfff 19%, transparent 26% 60%, #b5adff 69%, transparent 78%); mask-image: radial-gradient(transparent 64%, #000 66% 68%, transparent 70%); }
.accretion-ring { position: absolute; left: 49%; top: 47%; width: 83%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(17deg) scaleY(.26); opacity: .35; }
.accretion-track { background: conic-gradient(transparent 0 20%, #c9c0ff 27%, transparent 38% 70%, #e1dcff 77%, transparent 85%); }
.singularity-glow { position: absolute; left: 49%; top: 47%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(transparent 38%, #a39bff15 48%, #e0d9ff28 51%, transparent 65%); opacity: .35; }
.shooting-star { position: absolute; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #cfc7ffcc); opacity: 0; transform: rotate(-32deg); }
.meteor-one { top: 20%; left: 52%; }
.meteor-two { top: 72%; left: 81%; width: 80px; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #030405ee 0%, #030405cc 29%, #03040555 49%, transparent 75%), linear-gradient(0deg, #030405 0%, transparent 30%); pointer-events: none; }
.hero-section::after { content: ''; position: absolute; inset: 0; background: url('../assets/starfield.svg') repeat; opacity: .45; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 24px; padding-block: 88px 56px; min-height: 600px; }
.hero-content { max-width: 700px; }
.hero-eyebrow { font-size: var(--type-caption); letter-spacing: .18em; margin-bottom: 28px; }
.hero-title { font: 600 clamp(44px, 4.2vw, 60px)/1.15 var(--font-body); letter-spacing: -.045em; margin-bottom: 28px; text-wrap: balance; }
.hero-title em { display: inline-block; }
.hero-subtitle { color: var(--muted); max-width: 540px; font-size: var(--type-body); line-height: var(--leading-copy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* Una franja editorial abierta: índices orbitales, títulos y divisores finos. */
.hero-badges-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-block: 0; padding: 26px 0 34px; border-top: 1px solid var(--line); list-style: none; }
.hero-badge-item { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.hero-badge-item + .hero-badge-item { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-badge-index { color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.hero-badge-item strong { display: block; font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); letter-spacing: -.025em; margin-bottom: 9px; color: var(--text); }
.hero-badge-detail { display: block; color: var(--muted); font-size: var(--type-secondary); line-height: 1.65; }
.hero-axis { align-self: center; color: #bbbbcf; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-axis > span { height: 170px; width: 1px; background: linear-gradient(transparent, #d7d2fa80); margin-right: 7px; }
.hero-axis b { font: 300 30px/1 system-ui; }
.hero-axis small { margin-top: 30px; font-size: 8px; line-height: 2.4; letter-spacing: .26em; text-align: right; }
.hero-bottom { display: flex; align-items: center; gap: 24px; padding-block: 20px 26px; border-top: 1px solid #ffffff1a; position: relative; }
.hero-bottom p { margin-left: auto; font-size: var(--type-label); color: var(--muted); }
.hero-bottom p span { padding-inline: 12px; color: var(--soft); }
.status-pill { display: flex; align-items: center; gap: 10px; color: #d0cde3; font-size: var(--type-label); }
.pulse-dot-green { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #c3c0ff; box-shadow: 0 0 10px #b5adff80; }
.scroll-cue { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.motion-toggle { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: #c8c1ef; font-size: 12px; flex-shrink: 0; }
.motion-toggle:hover { border-color: var(--accent); }

/* Sobre mí: narrativa y órbitas de identidad. */
.about-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 90px; align-items: start; }
.about-content > p { color: var(--muted); margin-bottom: 18px; max-width: 600px; }
.about-content strong { color: #e7e4f5; font-weight: 500; }
.about-transparency-note { font-size: var(--type-secondary); color: var(--muted); border-left: 1px solid #b5adff65; padding: 4px 0 4px 20px; margin-top: 30px; }
.about-transparency-note p { margin-top: 12px; }
.about-card-aside { min-width: 0; }
.identity-orbit { position: relative; height: 305px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at center, #b5adff09 0%, transparent 70%); }
.orbit-ring { display: block; position: absolute; border: 1px solid #b5adff30; border-radius: 50%; pointer-events: none; }
.identity-orbit .orbit-one { width: 295px; height: 295px; }
.identity-orbit .orbit-two { width: 350px; height: 180px; transform: rotate(-35deg); border-color: #b5adff16; }
.orbit-star { position: absolute; right: 20%; top: 30px; font-size: 20px; color: #d5d0ff; }
.about-avatar-row { position: relative; z-index: 1; text-align: center; }
.about-brand-mark { width: 124px; height: 124px; margin: 0 auto 12px; border-radius: 50%; background: #060709; border: 1px solid #ffffff2b; box-shadow: 0 0 40px #b5adff07; }
.about-brand-mark img { width: 130%; transform: translate(-50%, -45.2%); clip-path: inset(36.3% 16% 45.8% 16%); }
.about-identity-name { font-size: var(--type-element-title); font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.role { color: var(--muted); font-size: var(--type-label); line-height: 1.6; margin-top: 10px; }
.orbit-label { position: absolute; bottom: 0; font-size: 7px; letter-spacing: .25em; color: var(--soft); }
.about-points-list { border-top: 1px solid var(--line); margin-top: 28px; }
.about-point { padding-block: 22px; display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.about-point-icon { font-size: 22px; color: var(--accent); width: 28px; flex-shrink: 0; line-height: 1.3; }
.about-point strong { display: block; font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 10px; }
.about-point div > span { display: block; color: var(--muted); font-size: var(--type-secondary); line-height: var(--leading-copy); }

/* Proyectos : demo verificable + espacio para el próximo negocio. */
.projects-section { background: linear-gradient(160deg, #0c0b1300, #12101b33, #0c0b1300); }
.projects-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.project-featured-layout, .next-project-card { border: 1px solid var(--line); border-radius: 16px; min-width: 0; background: #0a0b1080; overflow: hidden; }
.project-image-col { display: block; position: relative; aspect-ratio: 1000 / 556; overflow: hidden; border-bottom: 1px solid var(--line); background: #17120a; }
.project-image-col img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.project-image-col:hover img { transform: scale(1.025); }
.project-demo-ribbon { position: absolute; top: 18px; left: 18px; background: #090a12f5; border: 1px solid #ffffff40; padding: 6px 12px; border-radius: 30px; color: #e5e1ff; font-size: var(--type-caption); letter-spacing: .02em; }
.image-open { position: absolute; bottom: 18px; right: 18px; display: grid; place-items: center; border: 1px solid #fff6; background: #090a1299; width: 36px; height: 36px; border-radius: 50%; }
.project-info-col { padding: 30px; }
.project-sector { display: block; font-size: var(--type-caption); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.project-title { font: 400 32px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 16px; }
.project-narrative { color: var(--muted); font-size: var(--type-body); }
.project-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; font-size: var(--type-secondary); font-weight: 500; color: #e3deff; }
.project-flow-step { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.project-flow b { font-weight: 400; color: var(--soft); }
.project-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 22px; }
.stack-pill { border: 1px solid var(--line); padding: 5px 11px; border-radius: 5px; font-size: var(--type-label); color: #d0cde3; }
.project-cta-group { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.project-cta-group .btn { padding-inline: 18px; }
.next-project-card { display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.project-orbit-art { min-height: 300px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #b5adff0d, transparent 65%); }
.project-orbit-art .orbit-ring:first-child { width: 230px; height: 230px; }
.project-orbit-art .orbit-ring:nth-child(2) { width: 310px; height: 150px; transform: rotate(-35deg); border-color: #b5adff20; }
.project-orbit-art b { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid #b5adff70; color: #e2ddff; font: 200 32px/1 system-ui; }
.project-orbit-star { position: absolute; right: 18%; top: 70px; color: var(--accent); }
.next-project-copy { padding: 30px; }
.next-project-copy .section-tag { font-size: var(--type-caption); margin-bottom: 16px; }
.next-project-copy h3 { font: 400 34px/1.15 var(--font-display); letter-spacing: -.03em; margin-bottom: 18px; }
.next-project-copy p { color: var(--muted); font-size: var(--type-body); }
.next-project-copy .text-link { margin-top: 25px; }
.project-footnote { max-width: 780px; color: var(--soft); font-size: var(--type-secondary); margin-top: 28px; }

/* Servicios : cuatro alcances reales; responsive incluido. */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg, #15132033, #07080c44); padding: 28px 22px; transition: border-color .25s, transform .25s; }
.service-card:hover { border-color: #b5adff70; transform: translateY(-4px); }
.service-icon-box { color: var(--accent); height: 44px; margin-bottom: 24px; }
.service-title { font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 18px; }
.service-desc { font-size: var(--type-secondary); color: var(--muted); }
.service-highlight-list { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.service-highlight-list li { color: var(--muted); font-size: var(--type-label); line-height: 1.7; margin-bottom: 10px; padding-left: 13px; position: relative; }
.service-highlight-list li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

/* Proceso : una trayectoria legible, sin datos ficticios. */
.process-section { background: radial-gradient(ellipse at 10% 80%, #a69bff08, transparent 65%); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.process-step-card { min-width: 0; position: relative; padding-top: 30px; border-top: 1px solid #b5adff40; }
.process-step-card::before { content: ''; width: 5px; height: 5px; position: absolute; top: -3px; left: 0; border-radius: 50%; background: #b5adff; box-shadow: 0 0 12px #b5adff55; }
.step-num-badge { color: var(--accent); font-size: var(--type-label); letter-spacing: .15em; margin-bottom: 20px; }
.step-title { font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 16px; }
.step-desc { color: var(--muted); font-size: var(--type-secondary); }

/* Contacto : horizonte de cierre y consulta conservada. */
.contact-section { isolation: isolate; background: #060709; overflow: hidden; }
.contact-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #060709 0%, #060709e6 35%, #060709bc 70%, #060709 100%), url('../assets/black-hole-small.webp') center bottom / cover no-repeat; opacity: .7; z-index: -1; pointer-events: none; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 90px; align-items: start; }
.contact-text-col, .contact-form-col { min-width: 0; }
.contact-text-col .section-title { max-width: 520px; }
.contact-methods { margin-top: 36px; }
.contact-method-card { display: flex; align-items: center; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact-method-card:hover .method-details strong { color: var(--accent); }
.method-icon-box { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #b5adff40; border-radius: 50%; color: var(--accent); }
.method-details { min-width: 0; }
.method-details strong { display: block; font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 9px; }
.method-details span { display: block; font-size: var(--type-secondary); color: var(--muted); overflow-wrap: anywhere; }
.contact-form-card { background: #0d0e16d6; border: 1px solid #b5adff36; border-radius: 16px; padding: 32px; }
.form-header { margin-bottom: 25px; }
.form-header h3 { font: 400 clamp(28px, 2.2vw, 32px)/1.25 var(--font-display); margin-bottom: 14px; }
.form-header p { color: var(--muted); font-size: var(--type-secondary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: var(--type-label); font-weight: 500; margin-bottom: 10px; color: #ded9ee; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-width: 0; background: #08090d; border: 1px solid #ffffff2b; border-radius: 7px; padding: 13px 14px; font-size: 16px; line-height: 1.5; color: #e2deef; }
.form-group select { padding-right: 38px; }
.form-group textarea { resize: vertical; min-height: 105px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #adacc2; opacity: 1; }
.form-note { color: var(--soft); font-size: var(--type-label); margin-top: 20px; line-height: var(--leading-copy); }

/* Cierre coherente y overlays accesibles. */
.site-footer { border-top: 1px solid var(--line); padding-top: 45px; }
.footer-top-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 50px; padding-bottom: 40px; }
.footer-brand-name { display: flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 700; letter-spacing: .03em; margin-bottom: 15px; }
.footer-brand-name span { color: var(--accent); font-size: 12px; }
.footer-brand p { color: var(--muted); font-size: var(--type-secondary); max-width: 360px; }
.footer-demo-pill { display: block; margin-top: 16px; color: var(--soft); font-size: var(--type-label); }
.footer-col h2 { font-size: var(--type-small-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 18px; }
.footer-links-list { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 12px; font-size: var(--type-label); color: var(--muted); }
.footer-links-list a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 24px; color: var(--soft); font-size: var(--type-caption); }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; padding: 24px; background: #000b; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.modal-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-dialog { width: min(720px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; background: #10111a; border: 1px solid #b5adff55; border-radius: 16px; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 28px; border-bottom: 1px solid var(--line); }
.modal-title-box { min-width: 0; }
.modal-title-box > span { display: block; color: var(--accent); font-size: var(--type-caption); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.modal-title-box h2 { font: 400 29px/1.2 var(--font-display); overflow-wrap: anywhere; }
.modal-body { padding: 28px; }
.modal-section { margin-bottom: 28px; }
.modal-section h3 { font-size: var(--type-element-title); font-weight: 600; line-height: var(--leading-title); margin-bottom: 16px; }
.modal-section p { color: var(--muted); font-size: var(--type-body); }
.modal-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modal-tech-item { padding: 16px; background: #090b11; border: 1px solid var(--line); border-radius: 8px; }
.modal-tech-item strong { display: block; margin-bottom: 10px; font-size: var(--type-small-title); line-height: var(--leading-title); }
.modal-tech-item span { color: var(--muted); font-size: var(--type-secondary); }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 20px 28px; border-top: 1px solid var(--line); }

/* Movimiento: el texto permanece visible en HTML, incluso sin JavaScript. */
@keyframes orbital-enter { from { opacity: .55; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes horizon-enter { from { opacity: .4; } to { opacity: 1; } }
@keyframes stellar-breathe { from { opacity: .3; } to { opacity: .55; } }
@keyframes accretion-spin { to { transform: rotate(360deg); } }
@keyframes singularity-breathe { to { opacity: .75; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orbit-tilt { from { transform: rotate(-35deg); } to { transform: rotate(-19deg); } }
@keyframes stellar-drift { from { transform: translateY(-3px); } to { transform: translateY(5px); } }
@keyframes meteor-pass {
  0%, 72% { opacity: 0; transform: translate(-80px, 50px) rotate(-32deg); }
  76% { opacity: .65; }
  83%, 100% { opacity: 0; transform: translate(100px, -65px) rotate(-32deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow { animation: orbital-enter .8s ease-out both; }
  .hero-title { animation: orbital-enter 1s .08s ease-out both; }
  .hero-subtitle { animation: orbital-enter 1s .16s ease-out both; }
  .hero-actions { animation: orbital-enter 1s .24s ease-out both; }
  .hero-badges-row { animation: orbital-enter 1s .32s ease-out both; }
  .hero-visual { animation: horizon-enter 1.7s ease-out both; }
  .hero-section::after { animation: stellar-breathe 14s ease-in-out 2 alternate; }
  .reveal.is-inview { animation: orbital-enter .8s ease-out both; }
  .photon-track { animation: accretion-spin 24s linear infinite; }
  .accretion-track { animation: accretion-spin 37s linear infinite reverse; }
  .singularity-glow { animation: singularity-breathe 6s ease-in-out infinite alternate; }
  .meteor-one { animation: meteor-pass 15s ease-in-out infinite; }
  .meteor-two { animation: meteor-pass 21s 6s ease-in-out infinite; }
  .identity-orbit .orbit-one, .project-orbit-art .orbit-ring:first-child { animation: orbit-turn 38s linear infinite; }
  .identity-orbit .orbit-two, .project-orbit-art .orbit-ring:nth-child(2) { animation: orbit-tilt 20s ease-in-out infinite alternate; }
  .orbit-star, .project-orbit-star { animation: stellar-drift 6s ease-in-out infinite alternate; }
  .orbit-one::after, .project-orbit-art .orbit-ring:first-child::after { content: ''; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; background: #c6bdff; border-radius: 50%; box-shadow: 0 0 10px #b5adff66; }
  .ambient-animation { animation-play-state: paused; }
  .motion-visible .ambient-animation { animation-play-state: running; }
  .service-card:nth-of-type(2).is-inview, .process-step-card:nth-child(2).is-inview { animation-delay: .08s; }
  .service-card:nth-of-type(3).is-inview, .process-step-card:nth-child(3).is-inview { animation-delay: .16s; }
  .service-card:nth-of-type(4).is-inview, .process-step-card:nth-child(4).is-inview { animation-delay: .24s; }
}
.motion-suspended .ambient-animation, .motion-paused .ambient-animation { animation-play-state: paused !important; }
.motion-paused .hero-eyebrow, .motion-paused .hero-title, .motion-paused .hero-subtitle, .motion-paused .hero-actions, .motion-paused .hero-badges-row, .motion-paused .hero-visual, .motion-paused .reveal, .motion-paused .hero-section::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .black-hole-scene { transform: none; }
  .motion-toggle { display: none; }
}

@media (min-width: 1600px) {
  .container { width: min(1360px, calc(100% - 128px)); }
  .hero-section { min-height: 800px; }
  .hero-grid { min-height: 692px; padding-top: 130px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .nav-desktop { gap: 18px; }
  .header-inner { gap: 20px; }
  .about-layout, .contact-layout { gap: 45px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { padding: 30px; }
}
@media (max-width: 900px) {
  :root { --header-height: 76px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero-section { min-height: 730px; }
  .hero-grid { min-height: 600px; padding-block: 80px 48px; grid-template-columns: minmax(0, 1fr) 50px; }
  .hero-title { font-size: clamp(44px, 6.2vw, 54px); }
  .hero-badges-row { gap: 18px; }
  .hero-badge-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-badge-item + .hero-badge-item { padding-left: 18px; }
  .hero-shade { background: linear-gradient(90deg, #030405e6 0%, #030405aa 38%, #03040533 100%), linear-gradient(0deg, #030405, transparent 40%); }
  .hero-bottom { gap: 16px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 45px; }
  .about-card-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
  .about-points-list { margin-top: 0; }
  .projects-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
  .project-info-col, .next-project-copy { padding: 24px; }
  .project-cta-group .btn { width: 100%; }
  .project-orbit-art { min-height: 250px; }
  .next-project-copy h3 { font-size: 30px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-form-card { padding: 24px; }
}
@media (max-width: 650px) {
  :root { --header-height: 72px; }
  .container { width: calc(100% - 40px); }
  .section-py { padding-block: 72px; }
  .section-tag { letter-spacing: .12em; margin-bottom: 20px; }
  .section-title { font-size: 40px; }
  .section-header { margin-bottom: 32px; }
  .navbar-brand-mark { width: 90px; height: 28px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-wa-btn { min-height: 40px; padding: 9px 12px; gap: 10px; }
  .hero-section { min-height: 760px; }
  .hero-grid { display: block; min-height: 0; padding-block: 58px 40px; }
  .hero-content { max-width: 480px; }
  .hero-eyebrow { letter-spacing: .1em; }
  .hero-title { font-size: clamp(35px, 8.5vw, 48px); margin-bottom: 24px; }
  .hero-subtitle { max-width: 430px; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn { padding: 13px 18px; min-height: 48px; gap: 14px; }
  .hero-badges-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 4px 12px; }
  .hero-badge-item { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-block: 20px; }
  .hero-badge-item + .hero-badge-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero-badge-item strong { margin-bottom: 7px; }
  .hero-axis { display: none; }
  .black-hole-scene { width: 630px; right: calc(50% - 315px); top: 240px; }
  .hero-shade { background: linear-gradient(180deg, #030405e6 0%, #030405cf 30%, #03040588 50%, #030405d9 70%, #030405 100%); }
  .hero-bottom { flex-wrap: wrap; gap: 14px; padding-block: 18px 24px; }
  .hero-bottom p { margin-left: 0; width: calc(100% - 94px); }
  .hero-bottom p span { padding-inline: 5px; }
  .status-pill { width: 100%; }
  .scroll-cue { position: absolute; right: 0; bottom: 20px; }
  .motion-toggle { position: absolute; right: 46px; bottom: 20px; }
  .about-transparency-note { padding-left: 16px; }
  .about-card-aside { display: block; }
  .identity-orbit { height: 310px; }
  .about-points-list { margin-top: 25px; }
  .about-point { padding-block: 20px; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-info-col { padding: 24px; }
  .project-title { font-size: 29px; }
  .project-demo-ribbon { top: 12px; left: 12px; }
  .project-cta-group { flex-direction: column; }
  .project-cta-group .btn { width: 100%; }
  .project-orbit-art { min-height: 220px; }
  .next-project-copy { padding: 24px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card { padding: 26px; }
  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-form-card { padding: 24px; }
  .footer-top-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; }
  .modal-backdrop { padding: 16px; }
  .modal-dialog { max-height: calc(100dvh - 32px); }
  .modal-header, .modal-body { padding: 20px; }
  .modal-title-box h2 { font-size: 25px; }
  .modal-tech-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-footer { padding: 20px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 36px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { min-width: 190px; }
  .hero-section { min-height: 800px; }
  .services-grid, .process-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { padding: 26px; }
  .contact-form-card { padding: 20px; }
  .contact-form-card .btn { gap: 8px; padding-inline: 12px; }
  .project-info-col { padding: 20px; }
  .project-cta-group { flex-direction: column; }
  .project-cta-group .btn { width: 100%; }
}
