/* V1 FINAL · graphite, platinum and cool petroleum. No warm/brown production surfaces. */
:root,html:not([data-theme="light"]){
 --v1-bg:#080f16;--v1-deep:#060b11;--v1-panel:#121f2b;--v1-panel-hover:#192b39;
 --v1-line:rgba(179,204,227,.29);--v1-ink:#eaf2f9;--v1-sub:#b6c6d6;--v1-glow:rgba(147,203,255,.42);
 color-scheme:dark;
}
html[data-theme="light"]{
 --v1-bg:#edf2f6;--v1-deep:#e6edf3;--v1-panel:#fff;--v1-panel-hover:#e6eef5;
 --v1-line:rgba(44,71,94,.27);--v1-ink:#243747;--v1-sub:#516a7e;--v1-glow:rgba(56,108,152,.28);
 color-scheme:light;
}
/* Continuous document reading in both modes: avoid scroll snaps, hidden default scrollbar and anchoring jumps. */
html,body{background:var(--v1-bg)!important}
body .deck{
 scrollbar-width:thin;scrollbar-color:#7592ad #0a131c;
 scroll-behavior:auto!important;scroll-snap-type:none!important;overflow-anchor:none;
 overscroll-behavior-y:contain;
}
body .deck>.slide{scroll-snap-align:none!important;scroll-snap-stop:normal!important}
body .deck::-webkit-scrollbar{width:12px}
body .deck::-webkit-scrollbar-track{background:#0a131c;border-left:1px solid rgba(164,195,222,.13)}
body .deck::-webkit-scrollbar-thumb{
 border:3px solid #0a131c;border-radius:99px;background:linear-gradient(180deg,#7894ae,#3d596f);
 min-height:44px;
}
body .deck::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#bad2e7,#6988a4)}
html[data-theme="light"] body .deck{scrollbar-color:#829fb8 #e3ebf2}
html[data-theme="light"] body .deck::-webkit-scrollbar-track{background:#e3ebf2;border-left-color:#c9d5e0}
html[data-theme="light"] body .deck::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#7795ad,#48667c);border-color:#e3ebf2}
html[data-theme="light"] body .deck::-webkit-scrollbar-thumb:hover{background:#263f54}
/* Content should retain its genuinely cool colors, not grayscale filters applied on top of old beige. */
body .deck>.slide{filter:none!important}
html:not([data-theme="light"]) body .deck>.slide{
 background:radial-gradient(ellipse at 76% 12%,rgba(43,85,117,.085),transparent 48%),var(--v1-bg)!important;
}
html:not([data-theme="light"]) body .deck>#inicio.pd41-cover{
 background:radial-gradient(ellipse at 75% 26%,rgba(45,87,119,.15),transparent 46%),var(--v1-deep)!important
}
html[data-theme="light"] body .deck>.slide{background:var(--v1-bg)!important}
html[data-theme="light"] body .deck>#inicio.pd41-cover{background:#e9f0f6!important}
/* GB orbit: three distinct, accessible, continuously travelling luminous objects. */
.pd41-cover-aside{overflow:visible;isolation:isolate}
.pd41-orbit{
 --v1-orbit-radius:clamp(72px,9.5vw,136px);
 position:relative;isolation:isolate;
 border-color:rgba(158,190,222,.33)!important;
 box-shadow:0 0 100px rgba(65,128,179,.08),inset 0 0 70px rgba(65,128,179,.055)!important;
}
.pd41-orbit::before{border-style:solid!important;border-color:rgba(166,198,225,.12)!important}
.pd41-orbit::after{border-color:rgba(180,210,238,.28)!important}
.pd41-orbit-core{pointer-events:none;user-select:none;text-shadow:0 0 38px rgba(167,208,244,.14)}
.v1-orbit-node{
 position:absolute;left:50%;top:50%;z-index:3;width:42px;height:42px;margin:-21px 0 0 -21px;
 display:grid;place-items:center;
 padding:0;border:1px solid rgba(181,220,253,.82);border-radius:50%;
 background:radial-gradient(circle at 31% 22%,#d6eafb,#6489a6 33%,#203b53 70%,#102538 100%);
 color:#f8fcff;box-shadow:0 0 0 5px rgba(157,195,230,.065),0 0 20px rgba(136,190,239,.5);
 animation:v1-orbit-travel var(--orbit-duration) linear infinite;
 will-change:transform;
}
.v1-orbit-node>span{font:800 .64rem/1 var(--mono);letter-spacing:.045em;pointer-events:none}
.v1-orbit-node:is(:hover,:focus-visible){
 animation-play-state:paused;background:#edf6ff;color:#12293b;border-color:#fff;
 box-shadow:0 0 0 9px rgba(159,204,247,.13),0 0 36px rgba(171,215,252,.91);
 outline:2px solid #ecf7ff;outline-offset:4px;
}
@keyframes v1-orbit-travel{
 from{transform:rotate(var(--orbit-start)) translateX(var(--v1-orbit-radius)) rotate(var(--orbit-inverse))}
 to{transform:rotate(calc(var(--orbit-start) + 360deg)) translateX(var(--v1-orbit-radius)) rotate(calc(var(--orbit-inverse) - 360deg))}
}
html[data-theme="light"] .v1-orbit-node{
 background:radial-gradient(circle at 32% 24%,#fff,#bacfdf 33%,#627e95 72%,#355268 100%);
 border-color:#3c607b;color:#142c3d;box-shadow:0 0 0 5px rgba(65,105,140,.08),0 0 19px rgba(62,101,136,.27)
}
html[data-theme="light"] .v1-orbit-node:is(:hover,:focus-visible){
 background:#f9fcff;box-shadow:0 0 0 9px rgba(69,121,161,.13),0 0 30px rgba(79,131,179,.43)
}
@media(max-width:980px){
 .pd41-cover-inner{grid-template-columns:1fr}
 body .pd41-cover-aside{display:flex!important;min-height:196px;gap:10px;margin-block:0;align-items:center}
 .pd41-orbit{width:183px;height:183px;--v1-orbit-radius:70px;flex:0 0 183px}
 .pd41-orbit-core{font-size:2.5rem}
 .v1-orbit-node{width:36px;height:36px;margin:-18px 0 0 -18px}
 .pd41-orbit-foot{display:none}
 .pd41-orbit-label{font-size:.55rem}
}
@media(max-width:520px){
 body .pd41-cover-aside{min-height:175px;gap:9px}
 .pd41-orbit{width:165px;height:165px;flex-basis:165px;--v1-orbit-radius:61px}
 .pd41-orbit-label{font-size:.48rem;max-width:100px;line-height:1.8}
 body #inicio.pd41-cover .pd41-thesis{font-size:clamp(2.28rem,9.6vw,3.8rem)!important}
}
/* Tighter editorial feel without reintroducing beige callouts or pale project cards. */
html:not([data-theme="light"]) body #demos .gb-demo-card,
html:not([data-theme="light"]) body #modelo .pd20-model-proof>a,
html:not([data-theme="light"]) body #sistemas.pd19-case .gb-star-main,
html:not([data-theme="light"]) body #ruta.pd18-atlas :is(.pd17-atlas-stage,.pd17-atlas-map){
 background:linear-gradient(148deg,#182735,#0d1823)!important;
 border-color:rgba(157,195,226,.31)!important;color:var(--v1-ink)!important;
}
html:not([data-theme="light"]) body #demos .gb-demo-card:nth-child(2) :is(h3,h3 em,p,.gb-demo-code),
html:not([data-theme="light"]) body #demos .gb-demo-card :is(h3,h3 em,.gb-demo-code),
html:not([data-theme="light"]) body #modelo .pd20-model-proof>a :is(b,em,span){
 color:#e6f1fb!important;
}
html:not([data-theme="light"]) body #demos .gb-demo-card p{color:#b6c9da!important}
html:not([data-theme="light"]) body #demos :is(.gb-demo-badge,.gb-demo-card .tag-row span){
 background:#1c2d3d!important;border-color:#5b7892!important;color:#d4e5f3!important}
html:not([data-theme="light"]) body #demos .gb-demo-actions .primary{
 background:#dce8f2!important;color:#152638!important;border-color:#dce8f2!important}
html:not([data-theme="light"]) body #demos .gb-demo-actions .ghost{
 background:#182838!important;color:#d7e9f7!important;border-color:#658099!important}
html:not([data-theme="light"]) body #ruta.pd18-atlas .pd17-atlas-stops button,
html:not([data-theme="light"]) body #ruta.pd18-atlas .pd19-atlas-toolbar button{
 background:#172736!important;border-color:#5d7d98!important;color:#d7e7f4!important}
html:not([data-theme="light"]) body #ruta.pd18-atlas .pd17-atlas-stops button[aria-pressed="true"],
html:not([data-theme="light"]) body #ruta.pd18-atlas .pd19-atlas-toolbar button[aria-pressed="true"]{
 background:#d0e3f2!important;color:#132739!important;border-color:#d0e3f2!important}
html[data-theme="light"] body #demos .gb-demo-card,
html[data-theme="light"] body #modelo .pd20-model-proof>a,
html[data-theme="light"] body #sistemas.pd19-case .gb-star-main,
html[data-theme="light"] body #ruta.pd18-atlas :is(.pd17-atlas-stage,.pd17-atlas-map){
 background:#fff!important;border-color:#bac9d6!important;color:#273f51!important}
html[data-theme="light"] body #demos .gb-demo-card :is(.tag-row span,.gb-demo-badge){
 background:#e9f0f6!important;border-color:#b8c7d4!important;color:#40586d!important}
html[data-theme="light"] body #demos .gb-demos-foot a{background:#e4edf4!important;border-color:#b4c5d4!important;color:#344d61!important}
/* Final tactile details */
body #inicio .pd41-route-grid .pd40-route,body #demos .gb-demo-card,
body #contacto .pd19-contact-link,.pd41-career-item,.site-header .main-nav>button[data-go]{
 transition:transform .21s ease,background-color .21s ease,border-color .21s ease,box-shadow .21s ease;
}
@media(hover:hover){
 body #inicio .pd41-route-grid .pd40-route:hover,body #demos .gb-demo-card:hover,
 body #contacto .pd19-contact-link:hover,.pd41-career-item:hover{
  transform:translateY(-3px);border-color:#8eafc9!important;
  box-shadow:0 16px 42px rgba(1,10,18,.21),inset 0 1px rgba(228,241,252,.08);
 }
}
body #contacto.pd19-contact .pd19-contact-link:hover{background:#21364a!important}
html[data-theme="light"] body #contacto.pd19-contact .pd19-contact-link:hover{background:#e5f0f8!important}
:where(.v1-orbit-node,.pd41-doc,.pd40-route,.pd41-career-item summary,.pd19-contact-link,.gb-demo-card a):focus-visible{
 outline:2px solid #d4e9fa!important;outline-offset:3px!important
}
html[data-theme="light"] :where(.v1-orbit-node,.pd41-doc,.pd40-route,.pd41-career-item summary,.pd19-contact-link,.gb-demo-card a):focus-visible{
 outline-color:#355b7a!important
}
@media(prefers-reduced-motion:reduce){
 .v1-orbit-node{animation:none!important}
 .v1-orbit-node:nth-of-type(1){transform:translateY(calc(-1 * var(--v1-orbit-radius)))!important}
 .v1-orbit-node:nth-of-type(2){transform:rotate(30deg) translateX(var(--v1-orbit-radius)) rotate(-30deg)!important}
 .v1-orbit-node:nth-of-type(3){transform:rotate(150deg) translateX(var(--v1-orbit-radius)) rotate(-150deg)!important}
 body #inicio .pd41-route-grid .pd40-route,body #demos .gb-demo-card,
 body #contacto .pd19-contact-link,.pd41-career-item,.site-header .main-nav>button[data-go]{transition:none!important}
}

/* Pause all nodes as the pointer enters the ring; targets never dodge a click. */
.pd41-orbit:is(:hover,:focus-within) .v1-orbit-node{animation-play-state:paused}

/* Critical V1 override: the old V24 ivory punctuation used stronger :nth-child
   selectors. Remove the final warm surfaces at their original specificity. */
html:not([data-theme="light"]) body #demos .gb-demo-card:nth-child(2),
html:not([data-theme="light"]) body #modelo.pd20-model .pd20-model-proof>a:last-child,
html:not([data-theme="light"]) body #sistemas.pd19-case .gb-star-metrics>div:last-child{
 background:linear-gradient(148deg,#182735,#0d1823)!important;
 border-color:#6886a1!important;color:#e5f0f8!important
}
html:not([data-theme="light"]) body #demos .gb-demo-card:nth-child(2) :is(.tag-row span,.gb-demo-badge){
 background:#1c2d3d!important;color:#d4e5f3!important;border-color:#57748d!important
}
html:not([data-theme="light"]) body #sistemas.pd19-case .gb-star-metrics>div:last-child :is(strong,span){
 color:#e2effa!important
}
html[data-theme="light"] body #demos .gb-demo-card:nth-child(2),
html[data-theme="light"] body #modelo.pd20-model .pd20-model-proof>a:last-child,
html[data-theme="light"] body #sistemas.pd19-case .gb-star-metrics>div:last-child{
 background:#f8fbfe!important;border-color:#bac9d6!important;color:#23394c!important
}
html[data-theme="light"] body #demos .gb-demo-card:nth-child(2) :is(.tag-row span,.gb-demo-badge){
 background:#e8f0f7!important;color:#40586d!important;border-color:#b4c7d6!important
}

/* V1 continuity: the advanced-only Atlas and Training were still warm in V24. */
html:not([data-theme="light"]) body #formacion :is(.gb-edu-panel,.gb-edu-head,.builder-note,.education-list){
 background:#12202b!important;border-color:#55728b!important;color:#e1edf6!important
}
html:not([data-theme="light"]) body #formacion :is(.gb-edu-head h2,.gb-panel-lead,.builder-note li,.education-list li,.builder-note>span,.education-list .eyebrow,.education-list li b){
 color:#d5e6f3!important;border-color:#4c6a83!important
}
html[data-theme="light"] body #formacion :is(.gb-edu-panel,.gb-edu-head,.builder-note,.education-list){
 background:#fff!important;border-color:#bacbd8!important;color:#2c4559!important
}
html[data-theme="light"] body #formacion :is(.gb-edu-head h2,.gb-panel-lead,.builder-note li,.education-list li,.builder-note>span,.education-list .eyebrow,.education-list li b){
 color:#355169!important;border-color:#b8c9d7!important
}
html[data-theme="light"] body #ruta.pd18-atlas :is(.pd17-atlas-stops button,.pd19-atlas-toolbar button,.pd17-stage-link,.pd18-map-caption,.pd19-map-status){
 background:#e4edf5!important;border-color:#b4c7d7!important;color:#29455c!important
}
html[data-theme="light"] body #ruta.pd18-atlas :is(.pd17-atlas-stops button[aria-pressed="true"],.pd19-atlas-toolbar button[aria-pressed="true"]){
 background:#243f54!important;border-color:#243f54!important;color:#fff!important
}
