/* NEXO: permanent dark palette and a shared violet surface system. */
:root, html[data-theme=dark] {
  color-scheme: dark;
  --paper:#0b0b14; --ink:#f4efff; --muted:#bbb3cc; --blue:#bea7ff;
  --line:#433650; --card:#241b35; --bg:#0b0b14; --bg-secondary:#11101e;
  --text:#f4efff; --cyan:#aaafff; --purple:#bb94ff; --purple-light:#d8baff;
  --surface-border:#705384; --surface-shadow:inset 0 1px #ffffff09,0 4px 0 #07070d,0 20px 36px -25px #000b;
}
body { background:var(--paper); color:var(--ink); }
.skip-link { background:#4b2868; color:#fff; }
html[data-theme=dark] .nexo-flow-section[data-flow-tone=blue] { --section-band:#101220; }
html[data-theme=dark] .nexo-flow-section[data-flow-tone=pearl] { --section-band:#0b0b14; }
html[data-theme=dark] .nexo-flow-section[data-flow-tone=lavender] { --section-band:#151020; }
html[data-theme=dark] :is(.hero,.interior-hero,.project-hero,.diagnostic-intro,.forms-hero) {
  --paper:#0b0b14; --ink:#f4efff; --muted:#bbb3cc; --blue:#bea7ff;
  color-scheme:dark; color:var(--ink); background:radial-gradient(ellipse at 80% 50%,#572b792b,transparent 65%),#0b0b14;
}
.hero-art img { filter:drop-shadow(0 18px 34px #753c9b30); }
html[data-theme=dark] .header, html[data-theme=dark] .page-index>.header { background:#0b0b14; }
html[data-theme=dark] :is(.button,.btn.primary,.nav-cta,.mobile-cta) {
  background:linear-gradient(115deg,#7433c7,#394ed4)!important; color:#fff!important;
  border:1px solid #9762d7; box-shadow:0 5px 20px #6e28b324;
}
html[data-theme=dark] :is(.button,.btn.primary,.nav-cta,.mobile-cta):hover { background:linear-gradient(115deg,#813bd9,#465ae2)!important; }
html[data-theme=dark] :is(.button.secondary,.btn.secondary) { background:#292039!important; color:#eee5ff!important; border-color:#705384; }
html[data-theme=dark] .hamburger span, html[data-theme=dark] .hamburger span::before, html[data-theme=dark] .hamburger span::after { background:var(--ink); }
.theme-toggle { display:none!important; }
html[data-theme=dark] :is(.mini-item,.method-step,.principle,.editorial-service,.overview-row,.plan-preview-item,.editorial-plan,.support-grid>article,.pricing-common,.home-project,.project-card,.video-card,.video-collection,.faq-item,.faq-list details,.workflow-choice,.workflow-panel,.contact-form-panel,.contact-direct,.service-process-section,.service-process-step,.process-guide-card,.expectations-summary,.contact-panel,.diagnostic-sidebar,.diagnostic-card,.diagnostic-storage,.diagnostic-send,.forms-switch-panel,.forms-card,.forms-note) {
  min-width:0;
  background:linear-gradient(145deg,#2b203f,#1d172c)!important;
  border:1px solid var(--surface-border)!important; border-radius:20px;
  box-shadow:var(--surface-shadow)!important; color:var(--ink);
}
html[data-theme=dark] :is(.mini-grid,.method-grid,.principles) { gap:24px; border:0; }
html[data-theme=dark] :is(.mini-item,.method-step) { padding:25px; }
html[data-theme=dark] .overview-list { display:grid; gap:14px; }
html[data-theme=dark] .overview-row { padding:16px 20px; }
html[data-theme=dark] .editorial-service { padding:32px; margin-block:0 28px; }
html[data-theme=dark] :is(.pricing-common,.video-collection) { padding:28px; }
html[data-theme=dark] .video-collection { margin-block:0 28px; }
html[data-theme=dark] .video-card { padding:10px; }
html[data-theme=dark] .video-card figcaption { padding:12px 5px 6px; }
html[data-theme=dark] .faq-item, html[data-theme=dark] .faq-list details { overflow:hidden; margin-bottom:14px; }
html[data-theme=dark] .faq-item summary, html[data-theme=dark] .faq-list details summary { padding:22px; }
html[data-theme=dark] .faq-item>p, html[data-theme=dark] .faq-list details>p { padding:0 22px 22px; margin:0; }
html[data-theme=dark] :is(.plan-preview-item h3,.workflow-choice-copy>strong,.support-grid .support-price) { color:var(--ink); }
html[data-theme=dark] :is(.workflow-choice-copy>span:not(.workflow-choice-action),.principle p,.visual-category-copy>p:not(.eyebrow)) { color:var(--muted); }
html[data-theme=dark] :is(.workflow-choice-action,.plan-preview-item .preview-link,.principle-number) { color:#d1b5ff; }
html[data-theme=dark] :is(.workflow-choice-number,.workflow-choice-action>span,.principle svg,.home-project-caption>.arrow,.home-project-caption p,.support-grid .text-link,.plan-categories a[aria-current=true],.pricing-badge,.plan-tag,.step-number,.mini-number) {
  color:#e0caff!important; background:#3b2854!important; border-color:#8157a4!important; box-shadow:none;
}
html[data-theme=dark] .principle svg { stroke:#d0abff; }
html[data-theme=dark] :is(.workflow-choice:hover,.workflow-choice[aria-pressed=true],.plan-preview-item:hover,.overview-row:hover) { background:linear-gradient(145deg,#3a2853,#251c39)!important; border-color:#bc86f0!important; }
html[data-theme=dark] .editorial-plan.recommended { background:linear-gradient(145deg,#382348,#241b3a)!important; border-color:#c18cf3!important; }
html[data-theme=dark] :is(.mini-number,.step-number) { display:inline-grid; place-items:center; width:34px; min-height:34px; padding:5px; border:1px solid; border-radius:10px; margin-bottom:16px; }
html[data-theme=dark] .method-step .step-number { margin-bottom:0; }
html[data-theme=dark] .method-step .step-number { font-size:13px; line-height:1; letter-spacing:.04em; }
html[data-theme=dark] .page-contacto .contact-direct { background:linear-gradient(145deg,#41245c,#21172f)!important; }
html[data-theme=dark] .page-contacto .contact-direct .text-link { color:#fff; background:#a679d41c; border-color:#aa7dd078; }
html[data-theme=dark] .page-contacto .contact-socials { border-color:#7a548f; }
html[data-theme=dark] .page-contacto .contact-socials .social-network-link { background:#9e73ce12; border-color:#8d66aa; color:#f0e6ff; }
html[data-theme=dark] .page-contacto .contact-socials .arrow { color:#d8b6ff; }
html[data-theme=dark] :is(.form-field input,.form-field select,.form-field textarea) { color:#f4efff; background:#110e1d!important; border-color:#78628f; }
html[data-theme=dark] .form-field :is(input,textarea)::placeholder { color:#b4a9c4; opacity:1; }
html[data-theme=dark] .form-field :is(input,select,textarea):focus { background:#1c142a!important; outline-color:#c18cf3; }
html[data-theme=dark] .form-field [aria-invalid=true] { background:#351826!important; border-color:#fb91b2; }
html[data-theme=dark] .field-error { color:#ffa1bd; }
html[data-theme=dark] :is(.project-thumb,.home-project-image,.video-frame) { background:#100d19; border-color:#614679; }
html[data-theme=dark] .page-portafolio .web-browser-bar { background:#352547; border-color:#705384; }
html[data-theme=dark] .web-project-category { color:#dfcceb; }
html[data-theme=dark] .web-visit { background:#422a5c; color:#f1dcff; border-color:#9368b3; }
html[data-theme=dark] .web-visit:hover { background:#67418a; color:#fff; }
html[data-theme=dark] .video-carousel-button { background:#332344; color:#e8d5ff; border-color:#9869b7; }
html[data-theme=dark] .video-carousel-button:hover { background:#513168; color:#fff; }
html[data-theme=dark] .video-carousel-controls, html[data-theme=dark] .web-carousel-controls { border-color:#614679; }
html[data-theme=dark] :is(.portfolio-filter,.plan-categories a) { color:#cbbede; border-color:#705384; }
html[data-theme=dark] :is(.portfolio-filter.active,.portfolio-filter:hover) { background:#45305c!important; color:#f2dcff; border-color:#c18cf3; }
html[data-theme=dark] .closing::before { background:radial-gradient(ellipse at 50% 70%,#392049,#171022 75%); }
/* Override the old auxiliary stylesheet's transparent surfaces and pale selection fills. */
html[data-theme=dark] .editorial-aux main :is(.diagnostic-card,.diagnostic-sidebar,.diagnostic-storage,.diagnostic-send,.forms-switch-panel,.service-process-section,.service-process-step,.process-guide-card,.expectations-summary,.contact-panel,.expectation-points>div) { background:linear-gradient(145deg,#2b203f,#1d172c)!important; border-color:#705384!important; box-shadow:var(--surface-shadow)!important; }
html[data-theme=dark] .editorial-aux main :is(.diagnostic-chip,.diagnostic-option,.diagnostic-step,.forms-subnav a) { background:#151020!important; color:var(--ink)!important; border-color:#624d79!important; }
html[data-theme=dark] .editorial-aux main :is(.diagnostic-step[aria-current],.forms-subnav a[aria-current],.diagnostic-chip:has(input:checked),.diagnostic-option:has(input:checked)) { background:#4b2c65!important; color:#f9efff!important; border-color:#b77ae0!important; }
html[data-theme=dark] .editorial-aux main :is(.diagnostic-step-number,.diagnostic-section-number,.process-detail-number,.expectation-badge) { background:#43285d!important; color:#e4c6ff!important; border-color:#9871b2!important; }
html[data-theme=dark] .editorial-aux main .project-pill-row>span { background:#39254d!important; color:#ead4ff!important; border-color:#8b60a8!important; }
html[data-theme=dark] .editorial-aux main .diagnostic-step[aria-current=step] .diagnostic-step-number { background:#683b96!important; color:#fff!important; }
html[data-theme=dark] .service-process-grid { gap:18px; }
html[data-theme=dark] .service-process-step { padding:20px; }
html[data-theme=dark] .service-process-section { padding:28px; }
html[data-theme=dark] .diagnostic-storage { padding:22px; border-radius:18px; }
html[data-theme=dark] .editorial-aux .diagnostic-storage { padding:22px; border-radius:18px; }
html[data-theme=dark] .editorial-aux .diagnostic-step.is-complete .diagnostic-step-number { background:#173d35!important; color:#b1e7d0!important; }
html[data-theme=dark] .diagnostic-sidebar progress,
html[data-theme=dark] .diagnostic-sidebar progress::-webkit-progress-bar { background:#3d2d51; }
html[data-theme=dark] .diagnostic-sidebar progress::-webkit-progress-value { background:#b77ae0; }
html[data-theme=dark] .diagnostic-sidebar progress::-moz-progress-bar { background:#b77ae0; }
html[data-theme=dark] .editorial-aux main .service-process-section .service-process-step,
html[data-theme=dark] .editorial-aux main .expectation-points>div,
html[data-theme=dark] .video-collection .video-card { background:linear-gradient(145deg,#38284c,#291e3b)!important; border-color:#9066aa!important; }
html[data-theme=dark] .editorial-aux main :is(.diagnostic-field input:not([type=checkbox]):not([type=radio]),.diagnostic-field textarea,.diagnostic-field select) { background:#110e1d!important; color:#f4efff!important; border-color:#78628f!important; }
html[data-theme=dark] .editorial-aux main input::placeholder,
html[data-theme=dark] .editorial-aux main textarea::placeholder { color:#b4a9c4!important; opacity:1; }
html[data-theme=dark] .editorial-aux .header .nav-cta { background:linear-gradient(115deg,#7433c7,#394ed4); color:#fff; }
html[data-theme=dark] .editorial-aux main .diagnostic-save { color:var(--ink)!important; }
html[data-theme=dark] .editorial-aux main .btn.secondary:hover { background:#43285d; color:#f9efff; }
html[data-theme=dark].form-integrated body { background:#151020; }
/* The two hero files are selected in JavaScript; only the matching video downloads. */
html[data-theme=dark] .page-index .home-hero-motion { height:auto; min-height:0; background:#0b0b14; }
html[data-theme=dark] .page-index .home-hero-content { height:auto; min-height:clamp(650px,calc(100svh - var(--header-height)),920px); padding-block:64px 108px; align-items:center; }
html[data-theme=dark] .page-index .home-hero-content .hero-copy { width:49%; max-width:600px; }
html[data-theme=dark] .page-index .home-hero-content h1 { font-size:clamp(52px,5.7vw,84px); line-height:1.04; }
.home-hero-content .accent { color:#bc9aff; }
html[data-theme=dark] .page-index .home-hero-content .lede { font-size:18px; max-width:425px; }
html[data-theme=dark] .page-index .home-hero-motion .hero-stage { position:absolute; inset:0; width:100%; height:100%; max-width:none; margin:0; aspect-ratio:auto; background:#0d111e; z-index:-1; }
html[data-theme=dark] .page-index :is(.hero-poster,.hero-loop-video) { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; mask-image:none; }
.hero-poster img { display:block; width:100%; height:100%; object-fit:inherit; object-position:inherit; }
html[data-theme=dark] .page-index .home-hero-motion .hero-stage::after { background:linear-gradient(90deg,#0b0b14 0%,#0b0b14f5 30%,#0b0b14a6 42%,transparent 63%),linear-gradient(0deg,#0b0b14a8,transparent 18%); }
html[data-theme=dark] .page-index .hero-bottom { position:absolute; bottom:22px; padding-block:0; align-items:center; }
.hero-disciplines>span { background:#1a1426c9; color:#ded0ef; border:1px solid #63477d; }
.hero-motion-toggle { display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:10px 14px; border:1px solid #8c69a7; border-radius:999px; color:#f4eaff; background:#21162eeb; font:inherit; font-size:12px; cursor:pointer; }
.hero-motion-toggle:hover { background:#3f2856; }
@media(min-width:1200px) and (max-height:650px) { html[data-theme=dark] .page-index .home-hero-content { min-height:560px; padding-block:36px 88px; } html[data-theme=dark] .page-index .home-hero-content h1 { font-size:clamp(48px,5vw,66px); } }
@media(min-width:768px) and (max-width:1199px) {
  html[data-theme=dark] .page-index .home-hero-content { min-height:650px; padding-block:58px 100px; }
  html[data-theme=dark] .page-index .home-hero-content .hero-copy { width:52%; }
  html[data-theme=dark] .page-index .home-hero-content h1 { font-size:clamp(42px,5.4vw,64px); }
  html[data-theme=dark] .page-index .home-hero-content .lede { font-size:16px; }
  html[data-theme=dark] .page-index :is(.hero-poster,.hero-loop-video) { inset:auto 0 0; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; mask-image:linear-gradient(180deg,transparent,#000 18%); }
}
@media(max-width:1050px) { html[data-theme=dark] :is(.editorial-service,.pricing-common,.video-collection) { padding:24px; } }
@media(max-width:767px) {
  html[data-theme=dark] :is(.mini-item,.method-step) { padding:22px; }
  html[data-theme=dark] :is(.editorial-service,.pricing-common,.video-collection) { padding:22px; border-radius:16px; }
  html[data-theme=dark] .overview-row { padding:12px 16px; }
  html[data-theme=dark] .video-card { padding:7px; border-radius:14px; }
  html[data-theme=dark] .page-index .home-hero-content { min-height:0; padding-block:32px clamp(430px,114vw,730px); }
  html[data-theme=dark] .page-index .home-hero-content .hero-copy { width:100%; max-width:560px; }
  html[data-theme=dark] .page-index .home-hero-content h1 { font-size:clamp(42px,10.4vw,64px); }
  html[data-theme=dark] .page-index .home-hero-content .lede { font-size:16px; max-width:440px; }
  html[data-theme=dark] .page-index :is(.hero-poster,.hero-loop-video) { inset:auto 0 0; width:100%; height:auto; aspect-ratio:9/16; object-fit:contain; mask-image:linear-gradient(180deg,transparent,#000 18%,#000 96%,transparent); }
  html[data-theme=dark] .page-index .home-hero-motion .hero-stage::after { background:linear-gradient(180deg,#0b0b14,transparent 58%); }
  html[data-theme=dark] .page-index .hero-bottom { bottom:16px; gap:12px; }
  .hero-disciplines { gap:8px; font-size:9px; }
  .hero-disciplines>span { padding:4px 6px; border-radius:6px; }
  .hero-motion-toggle { padding:9px 11px; font-size:11px; }
}
@media(max-width:374px) { .hero-bottom { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
