      /* Mat's brand: the kit's tokens set to his palette, always dark, one font family. */
      :root,
      :root[data-theme="light"],
      :root[data-theme="dark"] {
        color-scheme: dark;
        --text-primary: #f3f4f6;
        --text-secondary: #a3a9b6;
        --text-tertiary: #a3a9b680;
        --text-primary-on: #ffffff;
        --text-secondary-on: #e0e3ff;
        --fill-primary: #4752c4;
        --fill-primary-on: #0f1117;
        --fill-tertiary: #171a23;
        --fill-system-green: #10b981;
        --stroke-primary: #2a2f3d;
        --stroke-secondary: #21252f;
        --hover-wash: rgb(255 255 255 / 0.05);
        --mk-shadow: none;
        --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
        --r-s: 10px;
        --r-m: 14px;
        --r-l: 14px;
        --r-xl: 16px;
        --x-violet: #4752c4;
        --x-violet-hover: #3b45a8;
        --x-violet-soft: #1b1f3d;
        --x-violet-text: #c3c9ff;
        --x-green: #34d399;
        --x-input: #11131a;
        --x-raised: #1e222d;
        --x-focus: #aab3ff;
      }
      html, body { background: #0f1117; }
      body { font-family: var(--sans); }
      :focus-visible { outline: 2px solid var(--x-focus); outline-offset: 3px; border-radius: 6px; }
      [tabindex="-1"]:focus { outline: none; }

      .x-skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border: 1px solid var(--stroke-primary); border-radius: var(--r-s); background: var(--fill-tertiary); color: var(--text-primary); box-shadow: 0 8px 24px rgb(0 0 0 / .25); transform: translateY(-160%); transition: transform var(--dur-quick) ease; }
      .x-skip-link:focus { transform: translateY(0); }

      /* Top bar: brand, menu, and the fixed quote button */
      .x-top {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px 20px;
        margin-inline: calc(var(--gutter) * -1);
        padding: 10px var(--gutter);
        background: rgb(15 17 23 / 0.94);
        border-bottom: 1px solid var(--stroke-primary);
      }
      .x-brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); font: var(--weight-bold) var(--size-body)/1.2 var(--sans); color: var(--text-primary); text-decoration: none; }
      .x-brand img, .x-brand__mark { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--stroke-primary); }
      .x-brand img { object-fit: cover; }
      .x-brand__mark { display: grid; place-items: center; background: var(--x-violet-soft); color: var(--x-violet-text); font-size: 11px; font-weight: var(--weight-bold); letter-spacing: .04em; }
      .x-menu { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; justify-self: center; }
      .x-menu::-webkit-scrollbar { display: none; }
      .x-menu a {
        flex: none;
        display: inline-flex;
        align-items: center;
        min-height: var(--tap);
        padding: 0 14px;
        border-radius: var(--r-s);
        color: var(--text-secondary);
        font: var(--weight-medium) var(--size-small)/1.2 var(--sans);
        text-decoration: none;
        white-space: nowrap;
      }
      .x-menu a:hover { color: var(--text-primary); background: var(--hover-wash); }
      .x-menu a[aria-current="location"] { color: var(--text-primary); background: var(--x-raised); box-shadow: inset 0 0 0 1px var(--stroke-primary); }
      .x-menu a:focus-visible { outline-offset: -2px; }
      @media (max-width: 1023px) {
        .x-top { grid-template-columns: minmax(0, 1fr) auto; }
        .x-menu { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
      }

      /* Buttons */
      .x-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--tap);
        padding: 0 18px;
        border-radius: var(--r-s);
        border: 1px solid transparent;
        background: var(--x-violet);
        color: #fff;
        font: var(--weight-bold) var(--size-body)/1.2 var(--sans);
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: background var(--dur-quick) ease;
      }
      .x-cta:hover { background: var(--x-violet-hover); }
      .x-cta--ghost { background: transparent; border-color: var(--stroke-primary); color: var(--text-primary); }
      .x-cta--ghost:hover { background: var(--x-raised); }
      .x-cta--full { width: 100%; }

      /* Views: one per menu button */
      .x-view { padding-block: clamp(32px, 5vw, 64px) 24px; min-width: 0; scroll-margin-top: 96px; }
      @media (max-width: 1023px) { .x-view { scroll-margin-top: 128px; } }
      .x-view[hidden] { display: none; }
      .x-view > * + * { margin-top: clamp(28px, 3.5vw, 44px); }
      .x-view .head { margin-bottom: 0; }
      .x-view .head h2 { font-weight: var(--weight-bold); }
      .x-h3 { font: var(--weight-bold) var(--size-heading)/1.3 var(--sans); margin-bottom: 14px; }

      /* Inicio */
      .x-hero { display: grid; gap: 22px; max-width: 880px; padding-top: clamp(8px, 3vw, 32px); }
      .x-hero h1 { font: var(--weight-bold) clamp(36px, 6.2vw, 64px)/1.05 var(--sans); letter-spacing: -0.02em; }
      .x-hero__text { font-size: var(--size-lede); line-height: 1.5; color: var(--text-secondary); max-width: 60ch; }
      .x-hero__meta { font-size: var(--size-small); color: var(--text-secondary); }
      .x-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
      .x-points li { padding: 18px 0; border-top: 1px solid var(--stroke-primary); }
      .x-points strong { display: block; font: var(--weight-bold) var(--size-body)/1.4 var(--sans); margin-bottom: 4px; }
      .x-points span { color: var(--text-secondary); font-size: var(--size-small); line-height: 1.5; }
      .x-tool { padding: 22px 24px; border-radius: var(--r-m); background: var(--fill-tertiary); }
      .x-tool p { color: var(--text-secondary); font-size: var(--size-small); max-width: 70ch; margin-bottom: 16px; }

      /* Check lists */
      .x-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--size-small); line-height: 1.45; }
      .x-checks li { position: relative; padding-left: 22px; }
      .x-checks li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 5px; height: 9px; border: solid var(--x-green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
      .x-checks small { display: block; color: var(--text-secondary); margin-top: 2px; }
      .x-checks--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 24px; }

      /* Plans */
      .x-guide { margin: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: var(--size-small); }
      .x-guide div { padding: 12px 0 12px 14px; border-left: 2px solid var(--stroke-primary); }
      .x-guide dt { color: var(--text-secondary); }
      .x-guide dd { margin: 2px 0 0; }
      .x-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
      .x-plan { display: grid; gap: 14px; padding: 24px 22px; border-radius: var(--r-m); background: var(--fill-tertiary); border: 1px solid var(--stroke-primary); }
      .x-plan--featured { border-color: var(--x-violet); box-shadow: 0 0 0 1px var(--x-violet); }
      .x-plan__badge { justify-self: start; padding: 4px 10px; border-radius: var(--r-pill); background: var(--x-violet); color: #fff; font: var(--weight-bold) var(--size-caption)/1.3 var(--sans); }
      .x-plan__badge--alt { background: transparent; color: var(--x-violet-text); border: 1px solid var(--stroke-primary); }
      .x-plan h3 { font: var(--weight-bold) var(--size-heading)/1.3 var(--sans); }
      .x-price { font: var(--weight-bold) var(--size-figure)/1.1 var(--sans); }
      .x-price small { font: var(--type-label); color: var(--text-secondary); }
      .x-plan__desc { color: var(--text-secondary); font-size: var(--size-small); }
      .x-plan__lead { font: var(--weight-medium) var(--size-small)/1.3 var(--sans); color: var(--x-violet-text); }
      .x-plan__group { font: var(--weight-bold) var(--size-small)/1.3 var(--sans); margin-top: 4px; }
      .x-plan__meta { padding-top: 12px; border-top: 1px solid var(--stroke-primary); font-size: var(--size-small); color: var(--text-secondary); }
      .x-collab { display: grid; gap: 8px 24px; padding: 16px 18px; border-radius: var(--r-m); background: var(--x-violet-soft); border: 1px solid var(--x-violet); font-size: var(--size-small); line-height: 1.5; }
      .x-collab h3 { font: var(--weight-bold) var(--size-body)/1.35 var(--sans); }
      .x-collab p { max-width: 72ch; color: var(--text-secondary); }
      .x-collab p strong { color: var(--text-primary); }
      .x-collab .x-cta { justify-self: start; }
      @media (min-width: 761px) { .x-collab { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .x-collab > div { display: grid; gap: 4px; } }
      @media (max-width: 760px) { .x-collab > div { display: grid; gap: 6px; } }
      /* Si ya tienes servidor: a price list, not cards */
      .x-services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke-primary); }
      .x-service { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--stroke-primary); }
      @media (min-width: 761px) { .x-service { grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.6fr); } }
      .x-service h3 { font: var(--weight-bold) var(--size-heading)/1.3 var(--sans); }
      .x-service__price { margin-top: 4px; font: var(--weight-bold) var(--size-body)/1.3 var(--sans); color: var(--x-green); }
      .x-service__body { display: grid; gap: 10px; color: var(--text-secondary); font-size: var(--size-small); line-height: 1.5; max-width: 68ch; }
      .x-service__body strong { color: var(--text-primary); }
      .x-service__body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

      /* Trabajos */
      .x-works { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
      .x-works h3 { margin-top: 10px; font: var(--weight-bold) var(--size-body)/1.3 var(--sans); }

      /* Cotizador */
      .x-quote { display: grid; gap: 16px; align-items: start; }
      @media (min-width: 900px) { .x-quote { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .x-quote__side { position: sticky; top: 84px; } }
      .x-panel { padding: 20px; border-radius: var(--r-m); background: var(--fill-tertiary); border: 1px solid var(--stroke-primary); }
      .x-group { font: var(--weight-bold) var(--size-small)/1.3 var(--sans); margin: 22px 0 10px; }
      .x-group:first-child { margin-top: 0; }
      .x-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
      .x-switch button { min-height: var(--tap); border-radius: var(--r-s); border: 1px solid var(--stroke-primary); background: var(--x-raised); color: var(--text-primary); font: var(--weight-medium) var(--size-body)/1.2 var(--sans); cursor: pointer; }
      .x-switch button[aria-pressed="true"] { border-color: var(--x-violet); background: var(--x-violet-soft); }
      .x-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--x-raised); border-left: 3px solid var(--x-green); font-size: var(--size-small); }
      .x-items { display: grid; gap: 8px; }
      .x-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-s); background: var(--x-raised); border: 1px solid var(--stroke-primary); font-size: var(--size-small); cursor: pointer; }
      .x-item:hover { border-color: #444b5c; }
      .x-item:has(input:checked) { border-color: var(--x-violet); }
      .x-item:has(input:focus-visible) { outline: 2px solid var(--x-focus); outline-offset: 2px; }
      .x-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--x-violet); }
      .x-item b { color: var(--x-violet-text); white-space: nowrap; }
      .x-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--stroke-primary); margin-bottom: 14px; }
      .x-total span { color: var(--text-secondary); font-size: var(--size-small); }
      .x-total strong { font: var(--weight-bold) 34px/1 var(--sans); color: var(--x-green); text-align: right; }
      .x-total__note { grid-column: 1 / -1; color: var(--text-secondary); font-size: var(--size-small); line-height: 1.45; }
      .x-tip { margin-bottom: 16px; padding: 10px 12px; border-radius: var(--r-s); background: var(--x-violet-soft); border: 1px solid var(--x-violet); color: var(--text-primary); font-size: var(--size-small); }
      .x-field { display: grid; gap: 5px; margin-bottom: 12px; }
      .x-field label { font-size: var(--size-meta); color: var(--text-secondary); }
      .x-field input, .x-field textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--stroke-primary); background: var(--x-input); color: var(--text-primary); font: 400 16px/1.4 var(--sans); }
      .x-field textarea { resize: vertical; }
      .x-field input:focus-visible, .x-field textarea:focus-visible { outline: 2px solid var(--x-focus); outline-offset: 1px; border-color: var(--x-violet); }
      .x-actions { display: grid; gap: 8px; }
      .x-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
      .x-status { min-height: 1.3em; margin-top: 10px; font-size: var(--size-small); color: var(--x-green); }
      .x-status.is-error { color: #f87171; }
      .x-out { margin-top: 10px; }
      .x-out[hidden], .x-tip[hidden], .x-note[hidden] { display: none; }
      .x-out textarea { min-height: 180px; font-size: 14px; }

      /* Contacto */
      .x-channels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
      .x-channel { display: grid; gap: 4px; align-content: center; min-height: 88px; padding: 18px 22px; border-radius: var(--r-m); border: 1px solid var(--stroke-primary); background: var(--fill-tertiary); color: var(--text-primary); text-decoration: none; transition: border-color var(--dur-quick) ease, background var(--dur-quick) ease; }
      .x-channel:hover { border-color: #444b5c; }
      .x-channel strong { font: var(--weight-bold) var(--size-heading)/1.2 var(--sans); }
      .x-channel span { font-size: var(--size-small); color: var(--text-secondary); }
      .x-channel--main { background: var(--x-violet); border-color: var(--x-violet); }
      .x-channel--main:hover { background: var(--x-violet-hover); border-color: var(--x-violet-hover); }
      .x-channel--main span { color: #e8eaff; }
      .x-faq { display: grid; gap: 8px; }
      .x-faq details { border-radius: var(--r-m); border: 1px solid var(--stroke-primary); }
      .x-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--tap); padding: 14px 18px; font: var(--weight-medium) var(--size-body)/1.3 var(--sans); cursor: pointer; list-style: none; border-radius: var(--r-m); }
      .x-faq summary::-webkit-details-marker { display: none; }
      .x-faq summary::after { content: "+"; flex: none; color: var(--x-violet-text); font-size: 20px; line-height: 1; transition: transform var(--dur-quick) ease; }
      .x-faq details[open] summary::after { transform: rotate(45deg); }
      .x-faq details p { padding: 0 18px 16px; color: var(--text-secondary); max-width: 70ch; line-height: 1.5; }

      .x-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--stroke-primary); font-size: var(--size-small); color: var(--text-secondary); }


      .x-works--experience { margin-bottom: 28px; }
      .x-work-card { width: 100%; min-height: 190px; display: grid; align-content: start; justify-items: start; gap: 9px; padding: 18px; text-align: left; border: 1px solid var(--stroke-primary); border-radius: var(--r-m); background: var(--fill-tertiary); color: var(--text-primary); cursor: pointer; transition: border-color var(--dur-quick) ease, transform var(--dur-quick) ease, background var(--dur-quick) ease; }
      .x-work-card:hover { border-color: var(--x-violet); background: var(--x-raised); transform: translateY(-2px); }
      .x-work-card:focus-visible { outline: 2px solid var(--x-focus); outline-offset: 3px; }
      .x-work-card__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--x-violet-soft); border: 1px solid var(--stroke-primary); color: var(--x-violet-text); font-weight: var(--weight-bold); }
      .x-work-card__mark.is-placeholder { color: var(--text-secondary); font-size: 10px; font-weight: var(--weight-medium); letter-spacing: .04em; border-style: dashed; }
      .x-work-card__name { font: var(--weight-bold) var(--size-body)/1.3 var(--sans); }
      .x-work-card__meta { font-size: var(--size-small); color: var(--text-secondary); line-height: 1.4; }
      .x-work-card__action { margin-top: auto; padding-top: 8px; font-size: var(--size-small); color: var(--x-violet-text); }
      .x-portfolio-note { color: var(--text-secondary); font-size: var(--size-small); line-height: 1.5; }
      .x-project-dialog { width: min(560px, calc(100% - 28px)); max-width: 560px; max-height: min(84vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid var(--stroke-primary); border-radius: var(--r-xl); background: var(--fill-tertiary); color: var(--text-primary); box-shadow: 0 24px 80px rgb(0 0 0 / .55); }
      .x-project-dialog::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(5px); }
      .x-project-dialog form { display: flex; justify-content: flex-end; }
      .x-project-dialog__close { width: 38px; height: 38px; border: 1px solid var(--stroke-primary); border-radius: 10px; background: var(--x-raised); color: var(--text-primary); font-size: 24px; cursor: pointer; }
      .x-project-dialog__preview { min-height: 190px; margin: 4px 0 20px; display: grid; place-content: center; justify-items: center; gap: 10px; border: 1px dashed var(--stroke-primary); border-radius: var(--r-m); background: var(--x-raised); color: var(--text-secondary); }
      .x-project-dialog__preview span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--x-violet-soft); color: var(--text-secondary); border: 1px dashed var(--stroke-primary); font-size: 11px; font-weight: var(--weight-medium); }
      .x-project-dialog__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
      .x-project-dialog__image-placeholder { min-height: 112px; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 12px; border: 1px dashed var(--stroke-primary); border-radius: var(--r-s); background: var(--x-raised); color: var(--text-secondary); text-align: center; font-size: var(--size-small); }
      .x-project-dialog__image-placeholder span { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
      .x-project-dialog__preview small, .x-project-dialog__foot { color: var(--text-secondary); font-size: var(--size-small); }
      .x-project-dialog__kind { margin-bottom: 6px; color: var(--x-violet-text); font-size: var(--size-small); }
      .x-project-dialog h3 { margin-bottom: 10px; font: var(--weight-bold) var(--size-heading)/1.3 var(--sans); }
      .x-project-dialog > p { line-height: 1.55; }
      .x-project-dialog__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--stroke-primary); }

      @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
      }

      @media (max-width: 599px) {
        .x-project-dialog { max-height: calc(100dvh - 24px); padding: 16px; }
        .x-project-dialog__preview { min-height: 140px; }
      }
