/* Zogic alt v3 · híbrido BUNQ (tipografía/contraste) + Daiki (cubo hero) + Noomo (labs) */
.visually-hidden { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Header flotante, se invierte sobre blanco (mix-blend difference) */
.home .site-header { position: fixed; inset: 0 0 auto; background: transparent; border: 0; backdrop-filter: none; mix-blend-mode: difference; }
.home .nav a { color: #fff; opacity: .72; }
.home .nav a:hover { opacity: 1; color: #fff; }
.home .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); }
@media (max-width: 760px) {
  .home .site-header { position: absolute; mix-blend-mode: normal; }
}

/* ═══ HERO ═══ */
.xhero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; background: #050505; isolation: isolate;
  --px: 0; --py: 0;
}
.xhero__field {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at calc(50% + var(--px) * 8%) calc(50% + var(--py) * 8%), rgba(0,229,255,.13), transparent 60%),
    radial-gradient(80vmax 60vmax at 50% 120%, rgba(0,229,255,.06), transparent 60%);
}
.xhero__field::after { /* rejilla de puntos tipo lab, muy tenue */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
          mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.xhero__title { margin: 0; position: absolute; inset: 0; pointer-events: none; font-weight: 600; letter-spacing: -0.065em; line-height: .82; }
.xhero__title span {
  position: absolute; display: block; white-space: nowrap;
  font-size: clamp(3.6rem, 13.2vw, 15.5rem);
  transform: translate3d(calc(var(--px) * var(--d, 0) * 14px), calc(var(--py) * var(--d, 0) * 10px), 0);
  will-change: transform;
}
.xhero__l1 { --d: -1; z-index: 1; color: #f4f4f2; top: clamp(5.5rem, 15vh, 10rem); left: clamp(1rem, 3.2vw, 3rem); }
.xhero__l2 { --d: 1.6; z-index: 3; color: var(--accent); right: clamp(1rem, 3.2vw, 3rem); bottom: clamp(7.5rem, 17vh, 11rem); text-shadow: 0 0 60px rgba(0,229,255,.25); }

.xhero__cube.cubebox {
  position: relative; z-index: 2; width: min(78vh, 78vw, 900px); aspect-ratio: 1; margin: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0;
  touch-action: pan-y; /* no rompe el scroll en móvil */
  cursor: grab;
}
.xhero__cube.is-held { cursor: grabbing; }
.xhero__cube .poster, .xhero__cube canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xhero__cube .poster { object-fit: contain; filter: drop-shadow(0 30px 80px rgba(0,229,255,.18)); }

.xhero__hud {
  position: absolute; z-index: 4; display: grid; gap: .2rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #6b6b67;
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.xhero__hud b { color: var(--accent); font-weight: 500; }
.xhero__hud--tl { top: 5.2rem; left: clamp(1rem, 3.2vw, 3rem); display: none; }
.xhero__hud--tr { top: 5.2rem; right: clamp(1rem, 3.2vw, 3rem); text-align: right; }
.xhero__hud--bl { bottom: 2rem; left: clamp(1rem, 3.2vw, 3rem); }

.xhero__foot {
  position: absolute; z-index: 5; bottom: 1.6rem; right: clamp(1rem, 3.2vw, 3rem);
  display: flex; align-items: center; gap: 1.4rem;
}
.xhero__sub { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: #8a8a86; }
.when-touch { display: none; }
@media (hover: none), (pointer: coarse) { .when-touch { display: inline; } .when-fine { display: none; } }
.xbtn {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: #031014; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -.01em;
  box-shadow: 0 0 0 0 rgba(0,229,255,.5); transition: transform .2s ease, box-shadow .3s ease, background .2s;
}
.xbtn:hover { color: #031014; background: #7ff3ff; transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(0,229,255,.6); }
.banner-proto--tiny { position: absolute; z-index: 6; left: 50%; bottom: .4rem; transform: translateX(-50%); border: 0; padding: 0; font-size: .55rem; opacity: .55; white-space: nowrap; }

@media (min-width: 1100px) { .xhero__hud--tl { display: grid; top: auto; bottom: 4.4rem; } }
@media (max-width: 760px) {
  .xhero { place-items: start center; padding-top: 21vh; }
  .xhero__title span { font-size: clamp(2.4rem, 14vw, 6rem); }
  .xhero__l1 { top: 5.3rem; }
  .xhero__l2 { bottom: auto; top: calc(21vh + min(94vw, 58svh) - 1.5rem); right: 1rem; }
  .xhero__cube.cubebox { width: min(94vw, 58svh); }
  .xhero__hud--tr { top: auto; bottom: 7.5rem; right: auto; left: 1rem; text-align: left; }
  .xhero__hud--bl { display: none; }
  .xhero__foot { left: 1rem; right: 1rem; bottom: 1.6rem; flex-direction: column-reverse; align-items: stretch; gap: .8rem; text-align: center; }
  .xbtn { justify-content: center; }
}

/* ═══ BUNQ · bloques tipográficos blancos ═══ */
.bq__wrap { width: min(100% - clamp(2.5rem, 9vw, 9rem), 1320px); margin-inline: auto; position: relative; }
.bq { padding: clamp(5rem, 13vw, 11rem) 0; }
.bq--white { background: #fff; color: #0a0a0a; }
.bq--white + .bq--white.bq--rule { padding-top: 0; }
.bq__idx, .lab__idx { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8b8b87; margin: 0 0 2.5rem; }
.bq__giant { margin: 0 0 clamp(3rem, 7vw, 6rem); font-size: clamp(3.2rem, 10.5vw, 11rem); font-weight: 600; letter-spacing: -.065em; line-height: .86; }
.bq__giant--m { font-size: clamp(3rem, 8vw, 8.5rem); }
.bq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); max-width: 1100px; margin-left: auto; }
.bq__cols p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.38; letter-spacing: -.015em; color: #1a1a1a; }
.bq__figs { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(4rem, 9vw, 8rem) 0 0; border-top: 2px solid #0a0a0a; }
.bq__figs > div { padding: 1.6rem 1.5rem 0 0; }
.bq__figs dt { font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.bq__figs dt small { font-size: .5em; letter-spacing: -.02em; }
.bq__figs dd { margin: .6rem 0 0; font-size: .95rem; color: #5a5a56; }
.bq__row { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr; gap: 2rem; align-items: baseline; padding: clamp(1.8rem, 3.5vw, 3rem) 0; border-top: 1px solid #e3e3df; }
.bq__row:last-child { border-bottom: 1px solid #e3e3df; }
.bq__row h3 { margin: 0; font-size: clamp(2rem, 4.2vw, 4rem); font-weight: 600; letter-spacing: -.055em; line-height: .95; }
.bq__row p { margin: 0; font-size: 1.12rem; color: #333; max-width: 32rem; }
.bq__tags { font-family: var(--mono); font-size: .75rem; color: #8b8b87; text-align: right; }
@media (max-width: 860px) {
  .bq__cols { grid-template-columns: 1fr; }
  .bq__figs { grid-template-columns: 1fr 1fr; }
  .bq__figs > div { padding-bottom: 1.5rem; }
  .bq__row { grid-template-columns: 1fr; gap: .8rem; }
  .bq__tags { text-align: left; }
}

.ptable { list-style: none; margin: 0; padding: 0; border-top: 2px solid #0a0a0a; }
.ptable a { display: grid; grid-template-columns: 4rem 1.3fr 1fr 2rem; gap: 1rem; align-items: baseline; padding: 1.7rem 0; border-bottom: 1px solid #e3e3df; color: #0a0a0a; text-decoration: none; transition: padding .25s ease, background .25s; }
.ptable a:hover { padding-left: 1rem; background: #f4f4f2; color: #0a0a0a; }
.ptable .n { font-family: var(--mono); font-size: .75rem; color: #8b8b87; }
.ptable strong { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.045em; }
.ptable .s { color: #5a5a56; font-size: .98rem; }
.ptable .a { font-size: 1.4rem; text-align: right; }
.ptable a:hover .a { color: #00a6bd; }
@media (max-width: 700px) { .ptable a { grid-template-columns: 2.5rem 1fr 1.5rem; } .ptable .s { grid-column: 2; } .ptable .a { grid-row: 1; grid-column: 3; } }
.bq__team { margin: 3rem 0 0; color: #5a5a56; font-size: 1rem; }
.bq__team strong { color: #0a0a0a; font-weight: 600; }

/* ═══ LABS · Noomo ═══ */
.lab { position: relative; background: #050607; color: #e9e9e6; padding: clamp(5rem, 12vw, 10rem) 0; overflow: hidden; }
.lab__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.07) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.lab__in { position: relative; }
.lab__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.lab__idx { grid-column: 1 / -1; color: var(--accent); margin-bottom: 0; display: flex; align-items: center; gap: .6rem; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
.lab__title { margin: 0; font-size: clamp(3rem, 7.5vw, 7.5rem); font-weight: 600; letter-spacing: -.06em; line-height: .88; }
.lab__title em { font-style: normal; color: var(--accent); }
.lab__lede { margin: 0 0 1rem; color: #9a9a96; font-size: 1.1rem; max-width: 28rem; }
.lab__chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: .45rem; }
.lab__chips span { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; padding: .35rem .7rem; border: 1px solid rgba(0,229,255,.35); border-radius: 999px; color: var(--accent); background: rgba(0,229,255,.05); }
.lab__chips span:first-child { background: var(--accent); color: #031014; border-color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .lab__head { grid-template-columns: 1fr; } .lab__chips { grid-column: 1; } }

.lab__exps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,229,255,.18); border: 1px solid rgba(0,229,255,.18); }
.exp { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; background: #07090b; color: inherit; text-decoration: none; min-height: 18rem; transition: background .25s; overflow: hidden; }
a.exp:hover { background: #0b1216; color: inherit; }
.exp img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 2.2rem 0 .6rem; filter: saturate(.9) brightness(.9); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
a.exp:hover img { transform: scale(1.04); filter: none; }
.exp--wide { grid-row: span 2; }
.exp--wide img { aspect-ratio: 1; object-fit: contain; background: radial-gradient(closest-side, rgba(0,229,255,.12), transparent); }
.exp__id { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: #6b6b67; }
.exp__st { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .55rem; border: 1px dashed #3a3a38; border-radius: 999px; color: #8a8a86; }
.exp__st--live { border: 1px solid rgba(0,229,255,.5); color: var(--accent); }
.exp__st--live::before { content: "● "; }
.exp h3 { margin: 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -.035em; }
.exp p { margin: 0; color: #8f8f8b; font-size: .93rem; flex: 1; }
.exp__go { font-family: var(--mono); font-size: .72rem; color: var(--accent); margin-top: .6rem; }
.exp--soon { min-height: 11rem; justify-content: flex-end; background: repeating-linear-gradient(-45deg, #07090b 0 12px, #090c0e 12px 24px); }
.exp--soon h3 { color: #bdbdb9; }
@media (max-width: 960px) { .lab__exps { grid-template-columns: 1fr 1fr; } .exp--wide { grid-column: 1 / -1; grid-row: auto; } .exp--wide img { aspect-ratio: 16/10; } }
@media (max-width: 600px) { .lab__exps { grid-template-columns: 1fr; } }

/* ═══ CTA ═══ */
.xcta { background: #050505; padding: clamp(6rem, 14vw, 12rem) 0; border-top: 1px solid var(--line); }
.xcta .bq__giant { color: #fff; margin-bottom: 2.5rem; }
.xcta__mail { display: inline-block; font-size: clamp(1.6rem, 4.2vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .2rem; }
.xcta__mail:hover { color: #7ff3ff; }
.xcta__note { color: #6b6b67; margin: 1.5rem 0 0; }
.home .site-footer { background: #050505; }

@media (prefers-reduced-motion: reduce) {
  .xhero__title span { transform: none !important; }
  .led { animation: none; }
}
.xhero__cube .poster { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.exp--soon { padding-top: 3.4rem; }

/* ═══ v3.1 · claridad: qué hacemos + sentido IA-Born ═══ */
.xhero__tag {
  position: absolute; right: .1em; top: -1.9rem; font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: #cfeff3; text-shadow: none; white-space: nowrap;
}
.xhero__claim {
  position: absolute; z-index: 5; left: clamp(1rem, 3.2vw, 3rem); bottom: 2rem; width: min(31rem, 40vw);
  color: #f4f4f2; pointer-events: auto;
}
.xhero__lead { margin: 0 0 1rem; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.4; color: #b9b9b4; letter-spacing: -.01em; }
.xhero__lead strong { color: #fff; font-weight: 600; }
.xhero__kick { margin: 0 0 .55rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.xhero__svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .45rem; }
.xhero__svc a { width: 100%; text-align: center; box-sizing: border-box; }
.xhero__svc a {
  display: inline-block; padding: .5rem .85rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
  background: rgba(5,5,5,.55); backdrop-filter: blur(6px); transition: border-color .2s, background .2s;
}
.xhero__svc a:hover { border-color: var(--accent); background: rgba(0,229,255,.12); color: #fff; }
.xhero__more { margin: 0; font-size: .82rem; color: #7d7d78; }
.xhero__hud--bl { bottom: auto; top: 5.2rem; left: clamp(1rem, 3.2vw, 3rem); }
@media (min-width: 1100px) { .xhero__hud--tl { display: none; } }
.xhero__cube.cubebox { width: min(72vh, 70vw, 860px); }
@media (max-width: 760px) {
  .xhero__tag { top: -1rem; font-size: .6rem; }
  .xhero__cube.cubebox { width: min(80vw, 40svh); }
  .xhero__l2 { top: calc(21vh + min(80vw, 40svh) - 1.5rem); }
  .xhero__hud--tr, .xhero__hud--bl, .xhero__sub { display: none; }
  .xhero__claim { left: 1rem; right: 1rem; width: auto; bottom: 5.6rem; }
  .xhero__lead { font-size: .95rem; margin-bottom: .7rem; }
  .xhero__svc { grid-template-columns: 1fr 1fr; }
  .xhero__svc a { font-size: .8rem; padding: .42rem .5rem; }
  .xhero__more { font-size: .75rem; }
}

.bq__lede { margin: 0 0 clamp(2.5rem, 5vw, 4rem); max-width: 46rem; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; color: #1a1a1a; }
.bq__muted { color: #b5b5b0; }
.bq__row--key { grid-template-columns: 3rem 1.1fr 1.3fr .8fr; }
.bq__n { font-family: var(--mono); font-size: .75rem; color: #8b8b87; letter-spacing: .1em; }
.bq__also { margin: 2.5rem 0 0; font-size: 1.05rem; color: #333; max-width: 60rem; }
.bq__also span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8b8b87; margin-right: .6rem; }
@media (max-width: 860px) { .bq__row--key { grid-template-columns: 1fr; } }

/* ═══ v3.1 · reveal de proyectos (solo con JS y sin reduced-motion) ═══ */
.has-reveal [data-reveal] > li { position: relative; opacity: 0; transform: translate3d(0, 2.6rem, 0);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms); }
.has-reveal [data-reveal] > li strong { display: inline-block; transform: translate3d(-1.2rem, 0, 0); transition: transform 1s cubic-bezier(.2,.7,.2,1) calc(var(--rd, 0ms) + 80ms); }
.has-reveal [data-reveal] > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #0a0a0a;
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) calc(var(--rd, 0ms) + 120ms); pointer-events: none; }
.has-reveal [data-reveal] > li.is-in { opacity: 1; transform: none; }
.has-reveal [data-reveal] > li.is-in strong { transform: none; }
.has-reveal [data-reveal] > li.is-in::after { transform: scaleX(1); opacity: .12; transition-property: transform, opacity; transition-duration: 1.1s, .8s; transition-delay: calc(var(--rd, 0ms) + 120ms), calc(var(--rd, 0ms) + 1.1s); }
@media (prefers-reduced-motion: reduce) { [data-reveal] > li, [data-reveal] > li strong { opacity: 1 !important; transform: none !important; transition: none !important; } [data-reveal] > li::after { display: none; } }

/* Labs: flagship destacado (2×2), Wikimedia en fila completa */
.exp--feature { grid-column: span 2; grid-row: span 2; }
.exp--feature img { aspect-ratio: 16/9; object-fit: cover; }
.exp--feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.exp--row { grid-column: 1 / -1; }
@media (max-width: 960px) { .exp--feature { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .exp--feature { grid-column: auto; } }

/* ═══ Quiénes somos ═══ */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.team__p { border-top: 2px solid #0a0a0a; padding-top: 1.5rem; }
.team__p img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; background: #e9e9e6; filter: grayscale(1) contrast(1.05); transition: filter .5s ease; margin-bottom: 1.4rem; }
.team__p:hover img { filter: none; }
.team__role { margin: 0 0 .4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #00a6bd; }
.team__p h3 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.team__bio { margin: 0 0 .8rem; font-size: 1.08rem; color: #333; max-width: 30rem; }
.team__tags { margin: 0 0 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: #8b8b87; }
.team__in { color: #0a0a0a; font-weight: 600; text-decoration: none; border-bottom: 1px solid #0a0a0a; }
.team__in:hover { color: #00a6bd; border-color: #00a6bd; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
@media (hover: none) { .team__p img { filter: none; } }

/* Quiénes somos · compacto (t22u) */
#quienes-somos .bq__giant { margin-bottom: .6rem; }
#quienes-somos .bq__lede { margin-bottom: 2rem; }
.team { gap: clamp(1.25rem, 3vw, 3rem); }
.team__p { display: grid; grid-template-columns: 132px 1fr; column-gap: 1.25rem; align-items: start; padding-top: 1.1rem; }
.team__p img { grid-row: 1 / span 5; width: 132px; margin: 0; }
.team__p h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); margin-bottom: .5rem; }
.team__bio { font-size: .95rem; margin-bottom: .5rem; }
.team__tags { margin-bottom: .6rem; }
@media (max-width: 760px) { .team__p { grid-template-columns: 96px 1fr; column-gap: 1rem; } .team__p img { width: 96px; } }
.team__in { justify-self: start; }
