
  :root {
    --bg: #05070d;
    --line: #202a44;
    --line-gold: rgba(211, 171, 92, 0.28);
    --nav-text: #e7e4da;
    --nav-text-dim: #b9b6ac;
    --text-faint: #5c6580;
    --gold: #d3ab5c;
    --gold-bright: #e8c67e;
    --font-display: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --photo-nosotros: none;
    --photo-servicios: none;
    --photo-cinta: none;
    --photo-automocion: url("/assets/images/sectores/automocion.jpg");
    --photo-alimentaria: url("/assets/images/sectores/alimentaria.jpg");
    --photo-textil: url("/assets/images/sectores/textil.jpg");
    --photo-diagnostico: url("/assets/images/empresa/diagnostico.jpg");
    --photo-plan: url("/assets/images/empresa/plan.jpg");
    --photo-ejecucion: url("/assets/images/empresa/ejecucion.jpg");
    --photo-seguimiento: url("/assets/images/empresa/seguimiento.jpg");
    --photo-confianza: url("/assets/images/empresa/confianza.jpg");
    --photo-mision: url("/assets/images/empresa/mision-vision.jpg");
    --photo-valores: url("/assets/images/empresa/valores.jpg");
    --photo-empresahero: url("/assets/images/empresa/hero-empresa.jpg");
    --photo-servicioshero: url("/assets/images/servicios/hero-servicios.jpg");
    --photo-equipo: url("/assets/images/servicios/equipo.jpg");
    --photo-servicio01: url("/assets/images/servicios/servicio-01.jpg");
    --photo-servicio02: url("/assets/images/servicios/servicio-02.jpg");
    --photo-servicio03: url("/assets/images/servicios/servicio-03.jpg");
    --photo-servicio04: url("/assets/images/servicios/servicio-04.jpg");
    --photo-servicio05: url("/assets/images/servicios/servicio-05.jpg");
    --photo-servicio06: url("/assets/images/servicios/servicio-06.jpg");
    --photo-servicio07: url("/assets/images/servicios/servicio-07.jpg");
    --photo-servicio08: url("/assets/images/servicios/servicio-08.jpg");
    --photo-servicio09: url("/assets/images/servicios/servicio-09.jpg");
    --photo-servicio10: url("/assets/images/servicios/servicio-10.jpg");
    --photo-contactohero: url("/assets/images/contacto/hero-contacto.jpg");
    --photo-proyectoshero: url("/assets/images/proyectos/hero-proyectos.jpg");
    --photo-sectoreshero: url("/assets/images/sectores/hero-sectores.jpg");
    --photo-bg: none;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: var(--font-display);
  }

  html { scroll-snap-type: y mandatory; overflow-x: hidden; }
  @media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }

  .container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
  }

  img { display: block; max-width: 100%; }
  a { text-decoration: none; }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  /* ---------- Nav: fixed, fully transparent, always visible ---------- */
  /* ---------- Progress rail: a measuring-tape track with a sliding marker that tracks scroll position ---------- */
  .progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    background-image: repeating-linear-gradient(90deg, rgba(211, 171, 92, 0.3) 0 1px, transparent 1px 14px);
    pointer-events: none;
  }
  .progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, rgba(211, 171, 92, 0.05), rgba(211, 171, 92, 0.55));
  }
  .progress-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
  }
  .progress-marker .gear-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    animation: gearSpin 3.2s linear infinite;
    transform-origin: 50% 50%;
  }
  @keyframes gearSpin { to { transform: rotate(360deg); } }
  .spark {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6e0 0%, #ffb347 55%, rgba(255, 140, 40, 0) 100%);
    box-shadow: 0 0 8px rgba(255, 179, 71, 0.95), 0 0 3px rgba(255, 246, 224, 1);
    pointer-events: none;
    z-index: 3;
    animation: sparkFly 0.85s ease-out forwards;
  }
  @keyframes sparkFly {
    0% { transform: translate(-50%, -50%) translate(0, 0) scale(1); opacity: 1; }
    55% { opacity: 1; }
    100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
  }
  .progress-ticks { position: absolute; inset: 0; pointer-events: none; }
  .progress-ticks .tick {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 7px;
    background: rgba(211, 171, 92, 0.6);
    transform: translateX(-50%);
  }
  @media (prefers-reduced-motion: reduce) {
    .progress-marker .gear-icon { animation: none; }
    .spark { display: none; }
  }
  .rail-label {
    position: fixed;
    top: 11px;
    right: clamp(1.25rem, 4vw, 3rem);
    z-index: 60;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.18s ease;
    pointer-events: none;
  }
  @media (max-width: 760px) { .rail-label { display: none; } }
  @media (prefers-reduced-motion: reduce) {
    .progress-fill, .progress-marker { transition: none; }
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    background: transparent;
  }

  .brand img {
    height: 46px;
    width: auto;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
  }

  .nav-links a {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nav-text);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    transition: color 0.18s ease;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--gold);
    transition: right 0.3s cubic-bezier(.65, 0, .35, 1);
  }
  .nav-links a:hover { color: var(--gold); }
  .nav-links a:hover::after { right: 0; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--nav-text);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }

  .mobile-panel {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 49;
    background: rgba(5, 7, 13, 0.96);
    padding: 5.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    flex-direction: column;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line-gold);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s ease, visibility 0s linear 0.5s;
  }
  .mobile-panel.open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s ease, visibility 0s linear 0s;
  }
  .mobile-panel a {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nav-text);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .mobile-panel.open a { opacity: 1; transform: translateY(0); }
  .mobile-panel.open a:nth-child(1) { transition-delay: 0.15s; }
  .mobile-panel.open a:nth-child(2) { transition-delay: 0.22s; }
  .mobile-panel.open a:nth-child(3) { transition-delay: 0.29s; }
  .mobile-panel.open a:nth-child(4) { transition-delay: 0.36s; }
  .mobile-panel.open a:nth-child(5) { transition-delay: 0.43s; }
  @media (prefers-reduced-motion: reduce) {
    .mobile-panel, .mobile-panel a { transition: none; }
  }

  @media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
  }

  /* ---------- Floating action buttons: quick contact + back to top ---------- */
  .fab-contact, .fab-top {
    position: fixed;
    right: clamp(1.25rem, 4vw, 2rem);
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(5, 7, 13, 0.5);
    border: 1px solid var(--line-gold);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold-bright);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }
  .fab-contact svg, .fab-top svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .fab-contact:hover, .fab-top:hover {
    background: rgba(5, 7, 13, 0.78);
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px rgba(211, 171, 92, 0.25);
    transform: translateY(-2px);
  }

  .fab-contact { bottom: clamp(1.25rem, 4vw, 2rem); }
  .fab-contact .fab-label {
    position: absolute;
    right: 58px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nav-text);
    background: rgba(5, 7, 13, 0.7);
    border: 1px solid var(--line-gold);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
  }
  .fab-contact:hover .fab-label { opacity: 1; transform: translateX(0); }

  .fab-top {
    bottom: calc(clamp(1.25rem, 4vw, 2rem) + 3 * clamp(3.5rem, 8vw, 4rem));
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    cursor: pointer;
  }
  .fab-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

  @media (max-width: 760px) {
    .fab-contact, .fab-top { width: 44px; height: 44px; }
    .fab-contact .fab-label { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .fab-contact, .fab-top, .fab-contact .fab-label { transition: none; }
  }

  /* ---------- Hero: only the image, full viewport ---------- */
  .hero {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .hero img, .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(230, 198, 126, 0.16), transparent 38%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  .hero:hover::after { opacity: 1; }
  @media (prefers-reduced-motion: reduce), (hover: none) {
    .hero::after { display: none; }
  }

  /* ---------- Hero title: two slides that dissolve into each other ---------- */
  .hero-text {
    position: absolute;
    left: clamp(1.5rem, 5vw, 4rem);
    right: clamp(1.5rem, 5vw, 4rem);
    bottom: clamp(2.75rem, 10vh, 5.75rem);
    z-index: 4;
    display: grid;
    align-items: start;
    pointer-events: none;
  }

  .hero-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 36rem;
    animation: heroTextCycle 20s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  }

  .hero-slide.slide-b { animation-delay: -10s; }

  .hero-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    text-align: center;
  }

  .hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 1.3vw + 1.6rem, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
  }

  .hero-sub {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--nav-text-dim);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    text-align: center;
  }

  @keyframes heroTextCycle {
    0%    { opacity: 0; filter: blur(18px); transform: translateY(14px); }
    12.5% { opacity: 1; filter: blur(0);    transform: translateY(0); }
    50%   { opacity: 1; filter: blur(0);    transform: translateY(0); }
    62.5% { opacity: 0; filter: blur(18px); transform: translateY(-14px); }
    100%  { opacity: 0; filter: blur(18px); transform: translateY(-14px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; filter: none; transform: none; }
    .hero-slide.slide-a { opacity: 1; }
  }

  /* ---------- Story: sticky image that dissolves behind scrolling text (test colors) ---------- */
  .story { position: relative; background: var(--bg); }

  .story-visual { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 0; }

  .story-img {
    position: absolute;
    top: -6%;
    left: 0;
    right: 0;
    height: 112%;
    opacity: 0;
    will-change: opacity, transform;
    background-image: var(--photo-bg);
    background-size: cover;
    background-position: center 38%;
  }
  .story-img::after { content: ""; position: absolute; inset: 0; background: var(--tint); }
  .story-img[data-slide="0"] { background-image: var(--photo-nosotros); --tint: rgba(9, 13, 24, 0.35); }
  .story-img[data-slide="1"] { background-image: var(--photo-servicios); --tint: rgba(43, 28, 10, 0.4); }

  /* ---------- Reveal wipe: shutter slides away once, on first entering view ---------- */
  .wipe-shutter {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border-right: 2px solid var(--gold-bright);
    transform: translateX(0%);
    transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);
    pointer-events: none;
    z-index: 2;
  }
  .reveal-wipe.in-view .wipe-shutter,
  .reveal-wipe-group.in-view .wipe-shutter { transform: translateX(101%); }
  .sector-col--automocion .wipe-shutter { transition-delay: 0s; }
  .sector-col--alimentaria .wipe-shutter { transition-delay: 0.15s; }
  .sector-col--textil .wipe-shutter { transition-delay: 0.3s; }
  @media (prefers-reduced-motion: reduce) {
    .wipe-shutter { display: none; }
  }

  /* ---------- Reveal mask: heading slides up from behind its own box once, on first entering view ---------- */
  .reveal-mask { overflow: hidden; }
  .reveal-mask .reveal-inner {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.9s cubic-bezier(.16, 1, .3, 1);
  }
  .reveal-mask.in-view .reveal-inner { transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal-mask .reveal-inner { transition: none; transform: none; }
  }

  .story-panels { position: relative; z-index: 1; margin-top: calc(-1 * 100svh); }

  .story-panel {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 2rem clamp(1.25rem, 6vw, 5rem) clamp(3rem, 10vh, 6rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Quiénes somos sits opposite the hero title: centered, clear of the bottom-left corner */
  .story-panel[data-slide="0"] {
    align-items: center;
    justify-content: flex-end;
    padding-block: clamp(4rem, 10vh, 7rem);
  }

  /* Faint watermark motif that fills the empty side opposite the text */
  .story-decor {
    position: absolute;
    top: 50%;
    width: clamp(200px, 26vw, 400px);
    height: auto;
    transform: translateY(-50%);
    opacity: 0.14;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.2px;
    pointer-events: none;
  }
  .story-decor * { vector-effect: non-scaling-stroke; }
  .story-panel[data-slide="0"] .story-decor { left: clamp(1.5rem, 6vw, 6rem); }
  .story-panel[data-slide="1"] .story-decor { right: clamp(1.5rem, 6vw, 6rem); }
  @media (max-width: 900px) { .story-decor { display: none; } }

  .story-decor circle,
  .story-decor line,
  .story-decor polygon {
    transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1);
  }
  .story-decor.in-view circle:nth-of-type(2) { transition-delay: 0.12s; }
  .story-decor.in-view circle:nth-of-type(3) { transition-delay: 0.24s; }
  .story-decor.in-view line:nth-of-type(2) { transition-delay: 0.1s; }
  .story-decor.in-view line:nth-of-type(3) { transition-delay: 0.2s; }
  .story-decor.in-view line:nth-of-type(4) { transition-delay: 0.3s; }
  .story-decor.in-view circle,
  .story-decor.in-view line,
  .story-decor.in-view polygon {
    stroke-dashoffset: 0;
  }
  @media (prefers-reduced-motion: reduce) {
    .story-decor circle, .story-decor line, .story-decor polygon { transition: none; stroke-dashoffset: 0; }
  }

  .story-text { max-width: 32rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
  .story-text .eyebrow {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
  }
  .story-text h2 {
    margin: 0;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.4vw + 1.4rem, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
    text-wrap: balance;
    text-align: center;
  }
  .story-text > p { margin: 0; color: var(--nav-text-dim); font-size: 1rem; line-height: 1.65; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); text-align: justify; }

  .tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.2rem; }
  .tag-row .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--nav-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 3px;
    padding: 0.35rem 0.65rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  .more-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--gold);
    display: inline-flex;
    width: fit-content;
    margin-top: 0.2rem;
    transition: color 0.18s ease;
  }
  .more-link:hover { color: var(--gold-bright); }
  .more-link .arrow { display: inline-block; margin-left: 0.3em; transition: transform 0.25s cubic-bezier(.65, 0, .35, 1); }
  .more-link:hover .arrow { transform: translateX(5px); }
  .story-text .more-link { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

  /* ---------- Reusable section heading ---------- */
  .section-head { max-width: 34rem; margin-bottom: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 0.7rem; }
  .section-head .eyebrow { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: center; }
  .section-head h2 { margin: 0; font-weight: 600; font-size: clamp(1.9rem, 1.4vw + 1.4rem, 2.6rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--nav-text); text-wrap: balance; text-align: center; }
  .section-head p { margin: 0; color: var(--nav-text-dim); font-size: 1rem; line-height: 1.6; max-width: 46ch; text-align: justify; }

  /* ---------- Stats: compact reveal over a photo, count up once in view ---------- */
  .stats {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .stats-bg { position: absolute; top: -6%; left: 0; right: 0; height: 112%; will-change: transform; background-image: var(--photo-cinta); background-size: cover; background-position: center 45%; }
  .stats-bg::after { content: ""; position: absolute; inset: 0; background: rgba(4, 6, 12, 0.58); }
  .stats-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
  }
  .stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .stat.in-view { opacity: 1; transform: translateY(0); }
  .stat-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-text);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
  @media (max-width: 700px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

  /* ---------- Sectores: photo backdrop, three panels touching, centered ---------- */
  .sectors {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .sectors-bg { position: absolute; top: -6%; left: 0; right: 0; height: 112%; will-change: transform; background-image: var(--photo-bg); background-size: cover; background-position: center 38%; }
  .sectors-bg::after { content: ""; position: absolute; inset: 0; background: rgba(4, 6, 12, 0.6); }
  .sectors-inner { position: relative; z-index: 1; width: 100%; }
  .sectors .section-head { max-width: 34rem; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; align-items: center; }
  .sector-row { display: flex; max-width: 62rem; margin-inline: auto; }
  .sector-col {
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    aspect-ratio: 3 / 4;
    background-image: var(--photo-bg);
    background-size: cover;
    background-position: center 38%;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.15s ease-out;
    --mx: 50%;
    --my: 50%;
  }
  .sector-col::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--tint); }
  .sector-col--automocion { background-image: var(--photo-automocion); --tint: rgba(10, 20, 40, 0.4); }
  .sector-col--alimentaria { background-image: var(--photo-alimentaria); --tint: rgba(45, 36, 12, 0.35); }
  .sector-col--textil { background-image: var(--photo-textil); --tint: rgba(35, 14, 38, 0.35); }
  .sector-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
  }
  .sector-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  .sector-col:hover .sector-overlay::before { opacity: 1; }
  .sector-overlay h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--nav-text); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); text-align: center; }
  .sector-overlay p { margin: 0; font-size: 0.84rem; line-height: 1.5; color: var(--nav-text-dim); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); text-align: justify; }
  @media (prefers-reduced-motion: reduce) {
    .sector-col { transition: none; }
  }
  @media (max-width: 700px) {
    .sector-row { flex-direction: column; max-width: 24rem; }
    .sector-col { aspect-ratio: 16 / 10; }
  }

  /* ---------- Sectores (subpágina) ---------- */
  .page-sectores { background: var(--bg); }
  .sectores-page {
    height: 100svh;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .sectores-page-head {
    position: relative;
    overflow: hidden;
    padding: clamp(3.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(0.75rem, 2vw, 1rem);
  }
  .sectores-page-head-bg {
    position: absolute;
    inset: 0;
    background-image: var(--photo-sectoreshero);
    background-size: cover;
    background-position: center 30%;
  }
  .sectores-page-head-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 6, 12, 0.55) 0%, rgba(4, 6, 12, 0.82) 65%, var(--bg) 100%);
  }
  .sectores-page-head-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
  }
  .sectores-page-head .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
  }
  .eyebrow-gear {
    width: 15px;
    height: 15px;
    fill: var(--gold);
    animation: gearSpin 6s linear infinite;
  }
  .sectores-page-head h1 {
    margin: 0.4rem 0 0.5rem;
    font-weight: 600;
    font-size: clamp(1.6rem, 1.2vw + 1.3rem, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  }
  .sectores-page-head-inner > p { margin: 0; color: var(--nav-text-dim); font-size: 0.92rem; line-height: 1.5; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
  @media (prefers-reduced-motion: reduce) {
    .eyebrow-gear { animation: none; }
  }
  .sectores-page-grid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .sector-card {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 0;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: flex-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sectores-page-grid:hover .sector-card { flex-grow: 1; }
  .sectores-page-grid:hover .sector-card:hover { flex-grow: 2.2; }
  .sector-card:focus-visible { outline: none; }
  .sector-card-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 12, 0.85) 0%, rgba(4, 6, 12, 0.15) 60%, rgba(4, 6, 12, 0.1) 100%);
    transition: opacity 0.35s ease;
  }
  .sector-card:hover .sector-card-tint { opacity: 0.7; }
  .sector-card-title {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.2rem;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--nav-text);
    text-align: left;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  }
  @media (max-width: 760px) {
    .sectores-page-grid:hover .sector-card { flex-grow: 1; }
    .sectores-page-grid:hover .sector-card:hover { flex-grow: 1.4; }
  }

  /* ---------- Sector expand overlay ---------- */
  .sector-expand {
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .sector-expand.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
  }
  .sector-expand-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.55s ease;
  }
  .sector-expand-panel.is-active { opacity: 1; visibility: visible; }
  .sector-expand-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
  .sector-expand-tint { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 6, 12, 0.9) 0%, rgba(4, 6, 12, 0.35) 45%, rgba(4, 6, 12, 0.25) 100%); }
  .sector-expand-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 46rem;
    padding: clamp(2rem, 6vw, 5rem);
  }
  .sector-expand-content .eyebrow {
    margin: 0 0 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .sector-expand-content h2 {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--nav-text);
  }
  .sector-expand-content p { margin: 0; max-width: 42ch; color: var(--nav-text-dim); font-size: 1.05rem; line-height: 1.65; text-align: justify; }
  .sector-expand-content .sector-expand-sub {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line-gold);
    max-width: 36ch;
    font-size: 0.88rem;
    color: var(--gold-bright);
    line-height: 1.55;
  }
  .sector-expand-close {
    position: absolute;
    top: clamp(1.25rem, 4vw, 2rem);
    right: clamp(1.25rem, 4vw, 2rem);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(5, 7, 13, 0.6);
    border: 1px solid var(--line-gold);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .sector-expand-close:hover { background: rgba(5, 7, 13, 0.85); border-color: var(--gold-bright); transform: rotate(90deg); }
  .sector-expand-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
  @media (prefers-reduced-motion: reduce) {
    .sector-card { transition: none; }
    .sector-expand, .sector-expand-panel, .sector-expand-close { transition: none; }
  }

  /* ---------- Servicios (subpágina) ---------- */
  .page-servicios { background: var(--bg); }
  .servicios-hero-v2 {
    position: relative;
    isolation: isolate;
    z-index: 0;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(5rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .servicios-hero-v2-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--photo-servicioshero);
    background-size: cover;
    background-position: center;
  }
  .servicios-hero-v2-tint {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(4, 6, 12, 0.88) 0%, rgba(4, 6, 12, 0.72) 55%, rgba(4, 6, 12, 0.5) 100%);
  }
  .servicios-hero-v2-text { flex: 1; min-width: 0; }
  .servicios-hero-v2-text .eyebrow { margin: 0 0 0.6rem; }
  .servicios-hero-v2-text h1 {
    margin: 0 0 0.9rem;
    font-weight: 600;
    font-size: clamp(2rem, 1.6vw + 1.6rem, 3rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  }
  .servicios-hero-v2-text > p { margin: 0; max-width: 34rem; color: var(--nav-text-dim); font-size: 1.05rem; line-height: 1.6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
  .hero-v2-stats { display: flex; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2rem; }
  .hero-v2-stat { display: flex; flex-direction: column; gap: 0.3rem; }
  .hero-v2-stat .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 700; color: var(--gold-bright); }
  .hero-v2-stat .label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--nav-text-dim); }
  .servicios-hero-v2-graphic {
    position: relative;
    flex: 0 0 clamp(13rem, 26vw, 20rem);
    aspect-ratio: 1;
  }
  .servicios-hero-v2-graphic::before {
    content: "";
    position: absolute;
    inset: -14%;
    border: 1px dashed var(--line-gold);
    border-radius: 50%;
    opacity: 0.5;
    animation: gearSpin 70s linear infinite;
  }
  .hero-gear { position: absolute; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)); }
  .hero-gear--big { width: 100%; height: 100%; top: 0; left: 0; animation: gearSpin 34s linear infinite; }
  .hero-gear--small { width: 40%; height: 40%; bottom: -4%; left: -8%; animation: gearSpinReverse 15s linear infinite; }
  @keyframes gearSpinReverse { to { transform: rotate(-360deg); } }
  @media (max-width: 800px) {
    .servicios-hero-v2 { flex-direction: column; text-align: center; padding-top: clamp(6rem, 12vw, 7rem); }
    .servicios-hero-v2-text .eyebrow { justify-content: center; }
    .servicios-hero-v2-text > p { margin-inline: auto; }
    .hero-v2-stats { justify-content: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .servicios-hero-v2-graphic::before, .hero-gear--big, .hero-gear--small { animation: none; }
  }
  .servicios-editorial {
    min-height: 100svh;
    display: flex;
    scroll-snap-align: start;
  }
  .servicios-editorial-photo {
    position: relative;
    flex: 0 0 42%;
    overflow: hidden;
  }
  .servicio-photo-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .servicio-photo-layer.is-active { opacity: 1; }
  .servicios-editorial-photo-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(4, 6, 12, 0.05) 0%, rgba(4, 6, 12, 0.65) 100%);
  }
  .servicios-editorial-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  }
  .servicios-catalog-head { max-width: 34rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.7rem; }
  .servicios-catalog-head h2 { margin: 0; font-weight: 600; font-size: clamp(1.7rem, 1.3vw + 1.3rem, 2.3rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--nav-text); }
  .servicio-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: padding-left 0.25s ease;
  }
  .servicio-item:last-child { border-bottom: none; }
  .servicio-item:hover, .servicio-item:focus-visible, .servicio-item.is-active { padding-left: 0.6rem; outline: none; }
  .servicio-item-row { display: flex; align-items: baseline; gap: 0.9rem; }
  .servicio-item .num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); flex-shrink: 0; }
  .servicio-item .name { font-size: clamp(1rem, 1.1vw, 1.15rem); font-weight: 600; color: var(--nav-text-dim); transition: color 0.25s ease; }
  .servicio-item:hover .name, .servicio-item:focus-visible .name, .servicio-item.is-active .name { color: var(--gold-bright); }
  .servicio-item-desc {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: calc(0.78rem * 1 + 0.9rem + 1px);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--nav-text-dim);
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  }
  .servicio-item:hover .servicio-item-desc, .servicio-item:focus-visible .servicio-item-desc, .servicio-item.is-active .servicio-item-desc {
    max-height: 3.5rem;
    opacity: 1;
    margin-top: 0.4rem;
  }
  @media (max-width: 800px) {
    .servicios-editorial { flex-direction: column; }
    .servicios-editorial-photo { flex: 0 0 15rem; }
    .servicio-item-desc { margin-left: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .servicio-photo-layer, .servicio-item, .servicio-item-desc { transition: none; }
  }

  .servicios-team {
    position: relative;
    isolation: isolate;
    z-index: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 4vw, 2.75rem);
    padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
    scroll-snap-align: start;
    overflow: hidden;
  }
  .servicios-team-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--photo-equipo);
    background-size: cover;
    background-position: center;
  }
  .servicios-team-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
      linear-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212, 175, 55, 0.14) 1px, transparent 1px);
    background-size: 38px 38px;
  }
  .servicios-team-tint {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 45%, rgba(4, 6, 12, 0.35) 0%, rgba(4, 6, 12, 0.92) 78%);
  }
  .servicios-team-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    max-width: 72rem;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem);
  }
  .team-frame-corner { position: absolute; width: 20px; height: 20px; border: 1.5px solid var(--gold); opacity: 0.6; }
  .team-frame-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
  .team-frame-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
  .team-frame-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
  .team-frame-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
  .servicios-team-headline { flex: 1 1 18rem; }
  .servicios-team-headline .eyebrow { margin: 0 0 0.5rem; }
  .team-big-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(4rem, 9vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--gold-bright);
    animation: numGlow 3.2s ease-in-out infinite alternate;
  }
  @keyframes numGlow {
    from { text-shadow: 0 0 16px rgba(212, 175, 55, 0.25); }
    to { text-shadow: 0 0 38px rgba(212, 175, 55, 0.65); }
  }
  .servicios-team-headline h2 { margin: 0.3rem 0 0.9rem; font-weight: 600; font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--nav-text); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
  .servicios-team-headline > p { margin: 0; max-width: 30ch; color: var(--nav-text-dim); font-size: 0.95rem; line-height: 1.6; text-align: justify; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
  .servicios-team-roles { flex: 1 1 22rem; display: flex; flex-direction: column; }
  .team-role {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid var(--line);
    transition: padding-left 0.25s ease;
  }
  .team-role:last-child { border-bottom: none; }
  .team-role:hover, .team-role.is-active { padding-left: 0.9rem; }
  .team-role.is-active .team-role-label { color: var(--nav-text); }
  .team-role.is-active .team-role-icon-wrap { border-color: var(--gold-bright); box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }
  .team-role-icon-wrap, .team-role-label { transition: border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease; }
  .team-role-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
  }
  .team-role-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    opacity: 0.6;
    animation: rolePulse 2.8s ease-out infinite;
  }
  @keyframes rolePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
  }
  .team-role-icon { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .team-role-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 700; color: var(--gold-bright); min-width: 1.5rem; }
  .team-role-label { color: var(--nav-text-dim); font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
  @media (prefers-reduced-motion: reduce) {
    .team-big-num, .team-role-pulse { animation: none; }
  }

  /* ---------- Proyectos (subpágina) ---------- */
  .page-proyectos { background: var(--bg); }
  .proyectos-page { padding-bottom: clamp(4rem, 8vw, 6rem); scroll-snap-align: start; scroll-snap-stop: always; }
  .proyectos-page-head {
    position: relative;
    overflow: hidden;
    padding: clamp(3.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
  .proyectos-page-head-bg {
    position: absolute;
    inset: 0;
    background-image: var(--photo-proyectoshero);
    background-size: cover;
    background-position: center 35%;
  }
  .proyectos-page-head-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 6, 12, 0.6) 0%, rgba(4, 6, 12, 0.86) 65%, var(--bg) 100%);
  }
  .proyectos-page-head-inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; text-align: center; }
  .proyectos-page-head .eyebrow { justify-content: center; }
  .proyectos-page-head h1 {
    margin: 0.4rem 0 0.5rem;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.4vw + 1.5rem, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  }
  .proyectos-page-head-inner > p { margin: 0; color: var(--nav-text-dim); font-size: 0.98rem; line-height: 1.6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

  .proyectos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(12rem, 16vw);
    grid-auto-flow: dense;
    gap: 0;
  }
  .proyecto-card {
    position: relative;
    grid-column: span 2;
    grid-row: span 1;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: clip-path 0.85s cubic-bezier(.65,0,.35,1), opacity 0.3s ease, box-shadow 0.3s ease;
  }
  .proyecto-card.reveal-pending { opacity: 0; clip-path: inset(0 0 100% 0); }
  .proyecto-card.is-featured { grid-column: span 2; grid-row: span 2; }
  .proyecto-card:hover { box-shadow: inset 0 0 0 1px var(--gold-bright), 0 18px 40px rgba(0, 0, 0, 0.45); z-index: 1; }
  .proyecto-card:focus-visible { outline: none; box-shadow: none; }
  .proyecto-card-media {
    position: absolute;
    inset: -6%;
    background-size: 104% 104%;
    background-position: 50% 50%;
    transition: transform 0.4s ease-out;
    animation: proyectoKenBurns 26s ease-in-out infinite;
  }
  @keyframes proyectoKenBurns {
    0%, 100% { background-size: 104% 104%; background-position: 50% 50%; }
    50% { background-size: 118% 118%; background-position: 46% 54%; }
  }
  .proyecto-card-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
    transform: translateX(-140%);
    pointer-events: none;
  }
  .proyecto-card:hover .proyecto-card-sheen { transform: translateX(140%); transition: transform 0.9s ease; }
  .proyecto-card-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 12, 0.92) 0%, rgba(4, 6, 12, 0.2) 58%, rgba(4, 6, 12, 0.05) 100%);
    transition: opacity 0.3s ease;
  }
  .proyecto-card:hover .proyecto-card-tint { opacity: 0.85; }
  .proyecto-card-corner {
    position: absolute;
    width: 0;
    height: 0;
    border-color: var(--gold-bright);
    transition: width 0.3s ease, height 0.3s ease;
  }
  .proyecto-card-corner.tl { top: 8px; left: 8px; border-top: 1.5px solid; border-left: 1.5px solid; transition-delay: 0s, 0.12s; }
  .proyecto-card-corner.tr { top: 8px; right: 8px; border-top: 1.5px solid; border-right: 1.5px solid; transition-delay: 0.06s, 0.18s; }
  .proyecto-card-corner.bl { bottom: 8px; left: 8px; border-bottom: 1.5px solid; border-left: 1.5px solid; transition-delay: 0.06s, 0.18s; }
  .proyecto-card-corner.br { bottom: 8px; right: 8px; border-bottom: 1.5px solid; border-right: 1.5px solid; transition-delay: 0.12s, 0.24s; }
  .proyecto-card:hover .proyecto-card-corner, .proyecto-card:focus-visible .proyecto-card-corner { width: 18px; height: 18px; }
  .proyecto-card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.25rem; }
  .proyecto-card-loc { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-bright); }
  .proyecto-card-title { font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--nav-text); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
  .proyecto-card.is-featured .proyecto-card-title { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
  .proyecto-card-count { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--nav-text); background: rgba(4, 6, 12, 0.65); border: 1px solid var(--line-gold); border-radius: 999px; padding: 0.25rem 0.6rem; display: flex; align-items: center; gap: 0.3rem; }
  .proyecto-card-empty { grid-column: 1 / -1; text-align: center; color: var(--nav-text-dim); padding: 3rem 1rem; font-size: 1rem; }
  .proyecto-card-placeholder,
  .proyecto-modal-photo.is-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(212, 175, 55, 0.08) 100%);
    background-size: 220% 220%;
    animation: placeholderShimmer 7s ease-in-out infinite;
  }
  .proyecto-placeholder-mark { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--gold); opacity: 0.75; }
  .proyecto-placeholder-mark svg { width: 30px; height: 30px; fill: currentColor; animation: gearSpin 16s linear infinite; }
  .proyecto-placeholder-mark span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
  @keyframes placeholderShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  @media (max-width: 900px) {
    .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
    .proyecto-card { grid-column: span 1; }
    .proyecto-card.is-featured { grid-column: span 2; grid-row: span 2; }
  }
  @media (prefers-reduced-motion: reduce) {
    .proyecto-card, .proyecto-card-media, .proyecto-card-corner, .proyecto-card-sheen { transition: none; animation: none; }
    .proyecto-card.reveal-pending { opacity: 1; clip-path: none; }
    .proyecto-card-media { inset: 0; }
    .proyecto-placeholder-mark svg, .proyecto-card-placeholder, .proyecto-modal-photo.is-placeholder { animation: none; }
  }

  .proyecto-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }
  .proyecto-modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s linear 0s; }
  .proyecto-modal-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease, transform 8s linear;
    transform: scale(1);
  }
  .proyecto-modal.is-open .proyecto-modal-photo { transform: scale(1.06); }
  .proyecto-modal-photo.is-shuttering { animation: proyectoShutter 0.6s ease; }
  @keyframes proyectoShutter {
    0% { clip-path: inset(0 0 0 0); }
    49% { clip-path: inset(0 0 100% 0); }
    51% { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
  }
  .proyecto-modal-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 12, 0.95) 0%, rgba(4, 6, 12, 0.35) 38%, rgba(4, 6, 12, 0.05) 62%, rgba(4, 6, 12, 0.35) 100%);
    pointer-events: none;
  }
  .proyecto-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-gold);
    background: rgba(4, 6, 12, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold-bright);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .proyecto-nav:hover { background: rgba(5, 7, 13, 0.85); border-color: var(--gold-bright); transform: translateY(-50%) scale(1.08); }
  .proyecto-nav.prev { left: clamp(0.75rem, 3vw, 2rem); }
  .proyecto-nav.next { right: clamp(0.75rem, 3vw, 2rem); }
  .proyecto-modal-dots { position: absolute; left: 0; right: 0; top: clamp(1rem, 3vw, 1.75rem); display: flex; justify-content: center; gap: 0.4rem; }
  .proyecto-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: background 0.25s ease, transform 0.25s ease; }
  .proyecto-dot.is-active { background: var(--gold-bright); transform: scale(1.25); }
  .proyecto-modal-counter {
    position: absolute;
    left: clamp(1rem, 3vw, 1.75rem);
    top: clamp(1rem, 3vw, 1.75rem);
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    min-height: 1.2em;
  }
  .proyecto-modal-thumbs {
    position: absolute;
    right: clamp(1rem, 4vw, 2.25rem);
    bottom: clamp(1rem, 4vw, 2.25rem);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
  }
  .proyecto-modal-thumb {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .proyecto-modal-thumb:hover { opacity: 0.85; }
  .proyecto-modal-thumb.is-active { opacity: 1; border-color: var(--gold-bright); transform: translateY(-4px); }
  .proyecto-modal-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 34rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
  }
  .proyecto-modal-caption .eyebrow { margin: 0 0 0.5rem; }
  .proyecto-modal-caption h2 { margin: 0 0 0.5rem; font-weight: 600; font-size: clamp(1.3rem, 1.6vw + 1rem, 2rem); line-height: 1.2; color: var(--nav-text); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
  .proyecto-modal-cliente { margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--gold-bright); }
  .proyecto-modal-desc { margin: 0; color: var(--nav-text-dim); font-size: 0.9rem; line-height: 1.55; text-align: justify; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
  .proyecto-modal-close {
    position: absolute;
    top: clamp(0.85rem, 3vw, 1.5rem);
    right: clamp(0.85rem, 3vw, 1.5rem);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(4, 6, 12, 0.6);
    border: 1px solid var(--line-gold);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .proyecto-modal-close:hover { background: rgba(5, 7, 13, 0.85); border-color: var(--gold-bright); transform: rotate(90deg); }
  .proyecto-modal-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
  @media (max-width: 640px) {
    .proyecto-modal-caption { max-width: none; }
    .proyecto-nav { width: 38px; height: 38px; }
    .proyecto-modal-thumbs { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .proyecto-modal, .proyecto-modal-photo, .proyecto-modal-thumb { transition: none; animation: none; }
    .proyecto-modal.is-open .proyecto-modal-photo { transform: none; }
  }
  /* ---------- Contacto (subpágina) ---------- */
  .page-contacto { background: var(--bg); }
  .contacto-page {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .contacto-page-bg {
    position: absolute;
    inset: 0;
    background-image: var(--photo-contactohero);
    background-size: cover;
    background-position: center 40%;
  }
  .contacto-page-tint {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(4, 6, 12, 0.55) 0%, rgba(4, 6, 12, 0.88) 75%);
  }
  .contacto-floating-card {
    position: relative;
    z-index: 1;
    width: min(68rem, 100%);
    background: rgba(8, 10, 17, 0.26);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3.25rem);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  }
  .contacto-card-head { max-width: 38rem; margin: 0 auto clamp(2rem, 4vw, 2.75rem); text-align: center; }
  .contacto-card-head .eyebrow { justify-content: center; }
  .contacto-card-head h1 {
    margin: 0.4rem 0 0.5rem;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.6vw + 1.4rem, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
  }
  .contacto-card-head > p { margin: 0 0 1.2rem; color: var(--nav-text-dim); font-size: 0.98rem; line-height: 1.6; }
  .contacto-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    background: rgba(4, 6, 12, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--nav-text-dim);
  }
  .contacto-hero-badge strong { color: var(--gold-bright); }
  .contacto-hero-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); flex-shrink: 0; }
  .contacto-hero-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    animation: contactoPulse 2.2s ease-out infinite;
  }
  @keyframes contactoPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .contacto-hero-dot::after { animation: none; }
  }

  .contacto-body { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; margin-inline: auto; }
  .contacto-summary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
  .contacto-summary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .contacto-summary-action svg { width: 16px; height: 16px; stroke: var(--gold-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .contacto-summary-action:hover { border-color: var(--gold-bright); background: rgba(212, 175, 55, 0.08); }
  .contacto-summary-whatsapp { background: var(--gold-bright); color: #04060c; border-color: var(--gold-bright); font-weight: 600; }
  .contacto-summary-whatsapp svg { stroke: #04060c; }
  .contacto-summary-whatsapp:hover { transform: translateY(-2px); }
  .contacto-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--nav-text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 0;
  }
  .contacto-accordion-toggle:hover { color: var(--gold-bright); }
  .contacto-accordion-chevron { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
  .contacto-accordion-toggle[aria-expanded="true"] .contacto-accordion-chevron { transform: rotate(180deg); }
  .contacto-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .contacto-accordion-panel.is-open { max-height: 30rem; }
  .contacto-accordion-panel .contacto-info-list { padding-top: 0.3rem; }
  @media (prefers-reduced-motion: reduce) {
    .contacto-accordion-panel, .contacto-accordion-chevron { transition: none; }
  }
  .contacto-section-label {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-bright);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line-gold);
  }
  .contacto-info-list { display: flex; flex-direction: column; gap: 0.9rem; }
  .contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    transition: background 0.25s ease;
    animation: contactoItemIn 0.6s cubic-bezier(.22,1,.36,1) both;
  }
  .contacto-info-item:nth-child(1) { animation-delay: 0s; }
  .contacto-info-item:nth-child(2) { animation-delay: 0.08s; }
  .contacto-info-item:nth-child(3) { animation-delay: 0.16s; }
  .contacto-info-item:nth-child(4) { animation-delay: 0.24s; }
  .contacto-info-item:nth-child(5) { animation-delay: 0.32s; }
  @keyframes contactoItemIn {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
  }
  .contacto-info-item:hover { background: rgba(255, 255, 255, 0.06); }
  @media (prefers-reduced-motion: reduce) {
    .contacto-info-item { animation: none; }
  }
  .contacto-info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--line-gold);
  }
  .contacto-info-icon svg { width: 17px; height: 17px; stroke: var(--gold-bright); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .contacto-info-body { min-width: 0; }
  .contacto-info-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--nav-text-dim); margin: 0 0 0.25rem; }
  .contacto-info-value { margin: 0; font-size: 1rem; color: var(--nav-text); line-height: 1.45; }
  .contacto-info-value a { color: var(--nav-text); text-decoration: none; border-bottom: 1px solid var(--line-gold); transition: color 0.2s ease, border-color 0.2s ease; }
  .contacto-info-value a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
  .contacto-info-value-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
  .contacto-info-pill {
    border-bottom: none !important;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    color: var(--gold-bright) !important;
  }
  .contacto-info-pill:hover { background: rgba(212, 175, 55, 0.12); }

  .contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }
  .contacto-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  @media (max-width: 520px) { .contacto-form-row { grid-template-columns: 1fr; } }
  .contacto-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .contacto-field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nav-text-dim); }
  .contacto-field input, .contacto-field textarea, .contacto-field select {
    font: inherit;
    color: var(--nav-text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .contacto-field input:focus, .contacto-field textarea:focus, .contacto-field select:focus {
    outline: none;
    border-color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.05);
  }
  .contacto-field textarea { resize: vertical; min-height: 6rem; }
  .contacto-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.3rem; }
  .contacto-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--gold-bright);
    background: var(--gold-bright);
    color: #04060c;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .contacto-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25); }
  .contacto-submit svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .contacto-email-alt { font-size: 0.85rem; color: var(--nav-text-dim); }
  .contacto-email-alt a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid var(--line-gold); }
  .contacto-email-alt a:hover { border-color: var(--gold-bright); }
  .contacto-form-note { margin: 0; font-size: 0.8rem; color: var(--text-faint); line-height: 1.5; }
  .contacto-form-status { margin: 0; font-size: 0.85rem; color: var(--gold-bright); min-height: 1.2em; }

  /* ---------- Legal pages (Términos, Cookies) ---------- */
  .page-legal { background: var(--bg); }
  .legal-page {
    min-height: 100svh;
    padding: clamp(6rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .legal-page-inner { max-width: 42rem; margin-inline: auto; }
  .legal-page .eyebrow { margin: 0 0 0.5rem; }
  .legal-page h1 {
    margin: 0.4rem 0 0.6rem;
    font-weight: 600;
    font-size: clamp(1.8rem, 1.6vw + 1.4rem, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
  }
  .legal-updated { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-faint); margin: 0 0 2.5rem; }
  .legal-page h2 { margin: 2rem 0 0.7rem; font-size: 1.1rem; font-weight: 600; color: var(--gold-bright); }
  .legal-page p { margin: 0 0 1rem; color: var(--nav-text-dim); font-size: 0.98rem; line-height: 1.7; text-align: justify; }
  .legal-page ul { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--nav-text-dim); font-size: 0.98rem; line-height: 1.7; }
  .legal-page li { margin-bottom: 0.4rem; }
  .legal-page a { color: var(--gold-bright); border-bottom: 1px solid var(--line-gold); text-decoration: none; }
  .legal-page a:hover { border-color: var(--gold-bright); }

  /* ---------- 404 page ---------- */
  .page-notfound { background: var(--bg); }
  .notfound-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 6vw, 3rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .notfound-inner { max-width: 30rem; }
  .notfound-code {
    margin: 0;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--gold-bright);
    animation: numGlow 3.2s ease-in-out infinite alternate;
  }
  @media (prefers-reduced-motion: reduce) {
    .notfound-code { animation: none; }
  }
  .notfound-title { margin: 0.75rem 0 1rem; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; color: var(--nav-text); }
  .notfound-text { margin: 0 0 2rem; color: var(--nav-text-dim); line-height: 1.65; }
  .notfound-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--gold-bright);
    background: var(--gold-bright);
    color: #04060c;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .notfound-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25); }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--line-gold); padding-block: clamp(1.5rem, 3vw, 2.25rem); background: var(--bg); scroll-snap-align: end; }
  .footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  @media (max-width: 760px) {
    .footer-top { grid-template-columns: 1fr; }
  }
  .footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
  .footer-brand img { height: 34px; width: auto; }
  .footer-brand span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nav-text-dim); }
  .footer-tagline { max-width: 30ch; margin: 0 0 1rem; font-size: 0.95rem; color: var(--nav-text-dim); text-align: justify; }
  .footer-urgent-note { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--nav-text-dim); }
  .footer-urgent-note strong { color: var(--gold-bright); }
  .footer-urgent-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); flex-shrink: 0; }
  .footer-urgent-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    animation: footerPulse 2.2s ease-out infinite;
  }
  @keyframes footerPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .footer-urgent-dot::after { animation: none; }
  }
  .footer-col-title {
    display: block;
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-bright);
    font-weight: 500;
  }
  .footer-contact-col { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.6rem 1.5rem; }
  .footer-contact-col .footer-col-title { flex-basis: 100%; margin-bottom: 0.4rem; }
  .footer-contact-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-faint);
    text-decoration: none;
    line-height: 1.4;
  }
  .footer-contact-row svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--gold-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  a.footer-contact-row { transition: color 0.2s ease; }
  a.footer-contact-row:hover { color: var(--gold-bright); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
  }
  .footer-legal-links { display: flex; flex-wrap: wrap; gap: 1rem; }
  .footer-legal-links a { color: var(--text-faint); text-decoration: none; border-bottom: 1px solid var(--line-gold); transition: color 0.2s ease; }
  .footer-legal-links a:hover { color: var(--gold-bright); }

  /* ---------- Empresa page: typographic, no background photo ---------- */
  .page-empresa { background: var(--bg); }

  .empresa-hero {
    position: relative;
    z-index: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .empresa-hero-text {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin-left: auto;
    margin-right: clamp(2rem, 8vw, 7rem);
    padding: clamp(5rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
    text-align: center;
  }
  @media (max-width: 760px) {
    .empresa-hero-text { margin-inline: auto; }
  }
  .empresa-hero-fill {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: -2;
  }
  .empresa-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    aspect-ratio: 920 / 875;
    background-image: var(--photo-empresahero);
    background-size: cover;
    background-position: center;
    z-index: -1;
  }
  .empresa-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(4, 6, 12, 0.35) 0%, rgba(4, 6, 12, 0.55) 70%, rgba(4, 6, 12, 0.92) 100%); }
  @media (max-width: 760px) {
    .empresa-hero-bg { opacity: 0.55; }
  }
  .empresa-hero .eyebrow {
    margin: 0 0 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  }
  .empresa-hero h1 {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: clamp(2rem, 1.6vw + 1.6rem, 3rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  }
  .empresa-hero-text > p {
    margin: 0 auto;
    max-width: 38ch;
    color: var(--nav-text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }

  /* ---------- Empresa wizard: full-screen steps with own background photo ---------- */
  .wizard { position: relative; height: 100svh; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
  .wizard-slides { position: relative; width: 100%; height: 100%; }
  .wizard-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  .wizard-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
  .wizard-slide--top { align-items: flex-start; }
  .wizard-slide--top .wizard-content { padding-top: clamp(6.5rem, 15vh, 9rem); padding-bottom: clamp(1.5rem, 5vw, 4rem); }
  .wizard-slide--right { justify-content: flex-end; }
  .wizard-slide--right .wizard-content { padding-left: clamp(4.5rem, 9vw, 7rem); padding-right: clamp(1.5rem, 5vw, 4rem); }
  .wizard-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
  .wizard-bg-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4, 6, 12, 0.88) 0%, rgba(4, 6, 12, 0.55) 45%, rgba(4, 6, 12, 0.32) 100%);
  }
  .wizard-bg-tint--center { background: rgba(4, 6, 12, 0.74); }
  .wizard-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    max-height: 92svh;
    overflow-y: auto;
    padding: clamp(1.5rem, 5vw, 4rem) clamp(4.5rem, 9vw, 7rem) clamp(4rem, 10vh, 6rem) clamp(1.5rem, 5vw, 4rem);
    scrollbar-width: thin;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .wizard-slide.is-active .wizard-content { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
  @media (prefers-reduced-motion: reduce) {
    .wizard-content { transition: none; opacity: 1; transform: none; }
  }
  .wizard-slide--team { align-items: center; justify-content: center; }
  .wizard-content--team { max-width: 60rem; text-align: left; }
  .wizard-team-grid { display: flex; gap: clamp(2rem, 5vw, 4rem); align-items: flex-start; }
  .wizard-team-col { flex: 1; min-width: 0; }
  .wizard-team-col h2 {
    margin: 0 0 0.9rem;
    font-weight: 600;
    font-size: clamp(1.9rem, 1.6vw + 1.5rem, 2.5rem);
    line-height: 1.15;
    color: var(--nav-text);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  }
  .wizard-team-col > p { margin: 0 0 1rem; color: var(--nav-text-dim); line-height: 1.7; text-align: justify; }
  .wizard-team-divider { width: 1px; align-self: stretch; background: linear-gradient(to bottom, transparent, var(--gold), transparent); flex-shrink: 0; }
  .wizard-org-svg { width: 100%; max-width: 300px; height: auto; display: block; margin-inline: auto; }
  .org-line { stroke: var(--gold); stroke-width: 1.2; opacity: 0.55; }
  .org-hub-circle { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(211, 171, 92, 0.5)); }
  .org-hub-count { font-family: var(--font-mono); font-size: 20px; font-weight: 700; fill: var(--bg); text-anchor: middle; dominant-baseline: central; }
  .org-node-circle { fill: var(--bg); stroke: var(--gold-bright); stroke-width: 1.5; }
  .org-node-count { font-family: var(--font-mono); font-size: 14px; font-weight: 700; fill: var(--gold-bright); text-anchor: middle; dominant-baseline: central; }
  .org-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; fill: var(--nav-text-dim); text-transform: uppercase; }
  .org-label--hub { font-size: 11.5px; font-weight: 700; fill: var(--gold-bright); letter-spacing: 0.1em; }
  @media (max-width: 760px) {
    .wizard-team-grid { flex-direction: column; }
    .wizard-team-divider { display: none; }
  }

  .wizard-slide--map { align-items: center; }
  .wizard-slide--map .wizard-content {
    text-align: justify;
    max-width: 27rem;
  }
  .wizard-coverage { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 0.6rem; }
  .wizard-coverage .tag-row { justify-content: flex-start; }
  .wizard-coverage-total {
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-gold);
  }
  .wizard-coverage-total-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--nav-text-dim);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
  .wizard-coverage-total-text strong { color: var(--gold-bright); font-weight: 700; }
  .wizard-coverage-label {
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .wizard-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
  .map-line { stroke: var(--gold); stroke-width: 1.2; opacity: 0.5; fill: none; }
  .map-line--dashed { stroke-dasharray: 6 6; opacity: 0.35; }
  .globe { animation: globeSpin 90s linear infinite; transform-origin: 400px 230px; }
  .globe-outline { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.6; }
  .globe-meridian { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.4; }
  .globe-parallel { stroke: var(--gold); stroke-width: 1; opacity: 0.4; }
  @keyframes globeSpin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    .globe { animation: none; }
  }
  .map-node circle:not(.pulse) { fill: var(--gold-bright); }
  .map-node .pulse {
    fill: none;
    stroke: var(--gold-bright);
    stroke-width: 1.4;
    opacity: 0.7;
    animation: mapPulse 2.6s ease-out infinite;
  }
  .map-node text { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--gold); font-weight: 600; }
  .map-node--hub text { fill: var(--gold-bright); font-weight: 700; }
  @keyframes mapPulse {
    0% { r: 6; opacity: 0.7; }
    100% { r: 26; opacity: 0; }
  }
  @media (max-width: 700px) {
    .wizard-map-svg { opacity: 0.5; }
  }
  @media (prefers-reduced-motion: reduce) {
    .map-node .pulse { animation: none; opacity: 0; }
  }

  .wizard-slide--journey,
  .wizard-slide--grid { align-items: center; justify-content: center; }
  .wizard-content--journey { max-width: 62rem; text-align: left; }
  .wizard-journey { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
  .journey-point { flex: 1; min-width: 0; }
  .journey-marker {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 0.7rem;
  }
  .journey-marker--end { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(230, 198, 126, 0.6); }
  .journey-label { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
  .journey-text { margin: 0; color: var(--nav-text-dim); line-height: 1.7; text-align: justify; }
  .journey-arrow { width: 90px; height: 20px; flex-shrink: 0; }
  .journey-arrow line, .journey-arrow polyline { stroke: var(--gold); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .journey-dot { fill: var(--gold-bright); filter: drop-shadow(0 0 4px rgba(230, 198, 126, 0.9)); animation: journeyDotMove 2.4s ease-in-out infinite alternate; }
  @keyframes journeyDotMove { from { cx: 4; } to { cx: 88; } }
  @media (max-width: 700px) {
    .wizard-journey { flex-direction: column; align-items: stretch; gap: 1.5rem; }
    .journey-arrow { width: 20px; height: 60px; transform: rotate(90deg); align-self: center; }
  }
  @media (prefers-reduced-motion: reduce) {
    .journey-dot { animation: none; }
  }

  .wizard-content--grid { max-width: 58rem; text-align: center; }
  .wizard-content--grid h2 { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
  .wizard-pillars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.75rem, 2.5vw, 1.75rem); }
  .value-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; max-width: 10rem; transition: transform 0.25s ease; }
  .value-pillar:hover { transform: translateY(-4px); }
  .pillar-bar { position: relative; width: 3px; height: var(--h, 70px); background: linear-gradient(to top, var(--gold), var(--gold-bright)); margin-bottom: 1rem; }
  .pillar-bar::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--gold-bright);
    box-shadow: 0 0 8px rgba(230, 198, 126, 0.6);
  }
  .value-pillar h3 { margin: 0 0 0.4rem; font-size: 0.98rem; font-weight: 600; color: var(--nav-text); }
  .value-pillar p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--nav-text-dim); }
  @media (max-width: 760px) {
    .wizard-pillars { flex-wrap: wrap; row-gap: 2rem; }
    .value-pillar { flex: 1 1 40%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .value-pillar { transition: none; }
  }
  .wizard-step {
    margin: 0 0 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }
  .wizard-content h2 {
    margin: 0 0 0.9rem;
    font-weight: 600;
    font-size: clamp(1.9rem, 1.6vw + 1.5rem, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--nav-text);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
    text-wrap: balance;
  }
  .wizard-content > p {
    margin: 0 0 1rem;
    color: var(--nav-text-dim);
    font-size: 1.02rem;
    line-height: 1.7;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    text-align: justify;
  }
  .wizard-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
  .wizard-list li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--nav-text-dim);
    font-size: 0.92rem;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }
  .wizard-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1.5px; background: var(--gold); }

  .wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
  .wizard-steps li { display: flex; align-items: center; gap: 0.85rem; color: var(--nav-text-dim); font-size: 0.92rem; }
  .wizard-steps-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .wizard-checks { display: flex; flex-direction: column; gap: 0.55rem; }
  .wizard-check { display: flex; align-items: center; gap: 0.65rem; color: var(--nav-text-dim); font-size: 0.92rem; }
  .wizard-check svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--gold-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .wizard-quote {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.3vw + 1rem, 1.7rem);
    font-weight: 600;
    font-style: italic;
    color: var(--gold-bright);
    line-height: 1.35;
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  }
  .wizard-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 0.5rem; }
  .wizard-stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
  .wizard-stats strong { font-family: var(--font-mono); font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem); color: var(--gold-bright); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); line-height: 1; }
  .wizard-stats span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nav-text-dim); }
  .tag-row--left { justify-content: flex-start; margin-top: 0.85rem; }

  .wizard-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(5, 7, 13, 0.5);
    border: 1px solid var(--line-gold);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .wizard-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .wizard-arrow:hover { background: rgba(5, 7, 13, 0.78); border-color: var(--gold-bright); }
  .wizard-arrow--prev { left: clamp(1rem, 3vw, 2rem); }
  .wizard-arrow--next { right: clamp(1rem, 3vw, 2rem); }
  .wizard-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

  .wizard-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(1.25rem, 3vw, 2rem);
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.6rem;
  }
  .wizard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .wizard-dot.is-active { background: var(--gold-bright); border-color: var(--gold-bright); transform: scale(1.25); }

  @media (max-width: 700px) {
    .wizard-content { padding-left: clamp(1.25rem, 5vw, 2rem); padding-right: clamp(1.25rem, 5vw, 2rem); max-width: 100%; }
    .wizard-arrow { width: 38px; height: 38px; }
    .wizard-list li { font-size: 0.86rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .wizard-slide { transition: none; }
  }

  /* ---------- Custom cursor: gold crosshair ---------- */
  html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23e8c67e' stroke-width='1.3'/%3E%3Cline x1='12' y1='0' x2='12' y2='6' stroke='%23e8c67e' stroke-width='1.3'/%3E%3Cline x1='12' y1='18' x2='12' y2='24' stroke='%23e8c67e' stroke-width='1.3'/%3E%3Cline x1='0' y1='12' x2='6' y2='12' stroke='%23e8c67e' stroke-width='1.3'/%3E%3Cline x1='18' y1='12' x2='24' y2='12' stroke='%23e8c67e' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23e8c67e'/%3E%3C/svg%3E") 12 12, auto;
  }

  /* ---------- Entry loader ---------- */
  .page-loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
  .loader-text { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
  .loader-bar { width: 200px; height: 2px; background: rgba(211, 171, 92, 0.2); overflow: hidden; }
  .loader-bar-fill { width: 0%; height: 100%; background: var(--gold-bright); animation: loaderFill 1.1s ease forwards; }
  @keyframes loaderFill { to { width: 100%; } }
  @media (prefers-reduced-motion: reduce) {
    .loader-bar-fill { animation: none; width: 100%; }
  }

  /* ---------- Page-change scan line ---------- */
  .scan-line {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    box-shadow: 0 0 12px rgba(230, 198, 126, 0.8);
    z-index: 250;
    pointer-events: none;
    opacity: 0;
  }
  .scan-line.is-active { animation: scanSweep 0.7s ease-in-out; }
  @keyframes scanSweep {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  /* ---------- Film grain overlay ---------- */
  .grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- Icon hover shake ---------- */
  @keyframes iconShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
  }
  .map-node:hover circle:not(.pulse) { animation: iconShake 0.4s; }
  @media (prefers-reduced-motion: reduce) {
    .map-node:hover circle:not(.pulse) { animation: none; }
  }

  /* ---------- Wizard step counter (big) ---------- */
  .wizard-counter {
    position: absolute;
    left: 50%;
    bottom: clamp(3.2rem, 7vw, 4.2rem);
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
  }

  /* ---------- Industrial doors transition ---------- */
  .industrial-doors { position: fixed; inset: 0; z-index: 280; pointer-events: none; display: flex; }
  .door { width: 50%; height: 100%; background: linear-gradient(135deg, #0a0d16, #1a2035); transform: scaleX(0); }
  .door-left { transform-origin: left; border-right: 1px solid var(--line-gold); }
  .door-right { transform-origin: right; border-left: 1px solid var(--line-gold); }
  .industrial-doors.is-closing .door { transition: transform 0.35s cubic-bezier(.7, 0, .3, 1); transform: scaleX(1); }
  .industrial-doors.is-opening .door { transition: transform 0.35s cubic-bezier(.7, 0, .3, 1) 0.05s; transform: scaleX(0); }

  /* ---------- Extra FAB: sound toggle ---------- */
  .fab-sound { opacity: 1; visibility: visible; }
  .fab-sound { bottom: calc(clamp(1.25rem, 4vw, 2rem) + 2 * clamp(3.5rem, 8vw, 4rem)); }
  .sound-mute-slash { opacity: 0; transition: opacity 0.2s ease; }
  .fab-sound.is-muted .sound-mute-slash { opacity: 1; }
  .fab-sound.is-muted .sound-wave { opacity: 0; }

  /* ---------- Extra FAB: language switcher ---------- */
  .fab-lang { opacity: 1; visibility: visible; bottom: calc(clamp(1.25rem, 4vw, 2rem) + clamp(3.5rem, 8vw, 4rem)); }
  .fab-lang svg { width: 20px; height: 20px; }
  .lang-menu {
    position: fixed;
    right: calc(clamp(1.25rem, 4vw, 2rem) + 3.5rem);
    bottom: calc(clamp(1.25rem, 4vw, 2rem) + clamp(3.5rem, 8vw, 4rem) - 1rem);
    z-index: 56;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 10rem;
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid var(--line-gold);
    background: rgba(5, 7, 13, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .lang-menu.is-open { opacity: 1; visibility: visible; transform: translateX(0); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s; }
  .lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--nav-text-dim);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .lang-option:hover { background: rgba(212, 175, 55, 0.1); color: var(--nav-text); }
  .lang-option.is-active { color: var(--gold-bright); }
  .lang-option-check { width: 12px; height: 12px; stroke: var(--gold-bright); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
  .lang-option.is-active .lang-option-check { opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .lang-menu { transition: none; }
  }

  /* ---------- Privacy notice bar (informational, not analytics) ---------- */
  .mc-privacy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    background: rgba(5, 7, 13, 0.97);
    border-top: 1px solid var(--line-gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.34, 1.2, .64, 1);
  }
  .mc-privacy-bar.is-visible { transform: translateY(0); }
  .mc-privacy-text {
    flex: 1 1 20rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--nav-text-dim);
  }
  .mc-privacy-text a { color: var(--gold-bright); text-decoration: underline; }
  .mc-privacy-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .mc-privacy-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .mc-privacy-btn-accept { background: var(--gold-bright); color: #14100a; border: 1px solid var(--gold-bright); }
  .mc-privacy-btn-accept:hover { background: #fff3d0; }
  .mc-privacy-btn-reject { background: transparent; color: var(--nav-text-dim); border: 1px solid var(--line-gold); }
  .mc-privacy-btn-reject:hover { color: var(--nav-text); border-color: var(--gold-bright); }
  @media (max-width: 560px) {
    .mc-privacy-bar { flex-direction: column; align-items: stretch; }
    .mc-privacy-actions { justify-content: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mc-privacy-bar { transition: none; }
  }

  /* ---------- Footer easter egg: blueprint mode ---------- */
  .footer-egg {
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
    margin-left: 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--text-faint);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    vertical-align: middle;
  }
  .footer-egg:hover, .footer-egg:focus-visible {
    opacity: 1;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
  }

  /* ---------- Blueprint mode ---------- */
  html.blueprint-mode {
    --bg: #0a1e42;
    --gold: #ffffff;
    --gold-bright: #ffffff;
    --nav-text: #eaf2ff;
    --nav-text-dim: #b9cbe8;
    --line: #2c4b82;
    --line-gold: rgba(255, 255, 255, 0.35);
  }

