/* =========================================================
   ZARIA · Páginas de servicio (primera: Commercial Strategy & Sales)
   Estructura tomada de 1.pdf (1440 px de ancho) como
   calc(N * var(--u)). Estilos comunes en base.css.
   ========================================================= */

body.page-service { background: var(--c-sand-deep); }

.page-service {
  /* Ancho de los bloques: desde la derecha del menú fijo hasta el
     margen derecho del CTA de la portada (52) */
  --sp-box: calc(1178 * var(--u));
  /* Ritmo vertical entre bloques (punto de partida 64–80 px) */
  --sp-gap: calc(72 * var(--u));
}

/* =========================================================
   0 · PANTALLA DE ENTRADA (efecto de escritura)
   Solo con JS (html.js.is-intro). service-page.js escribe el
   nombre (1200 ms), lo mantiene con el cursor (650 ms) y
   desvanece la capa (450 ms).
   ========================================================= */
.intro-screen { display: none; }
.js .intro-screen {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--c-beige);
  opacity: 1;
  /* Seguridad: si el JS fallara, la capa desaparece sola */
  animation: intro-failsafe 0s linear 5s forwards;
}
.intro-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms cubic-bezier(.4, 0, .2, 1);
}
.intro-screen__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: min(calc(120 * var(--u)), 14vh);
  line-height: .95;
  letter-spacing: -.01em;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-title-brown);
  opacity: 0;                     /* aparece cuando la tipografía está lista */
}
.intro-screen.is-ready .intro-screen__title { opacity: 1; }

/* Cada carácter ocupa su sitio desde el principio (visibility):
   el centrado y los saltos de línea no se mueven al escribir. */
.tw-char { position: relative; visibility: hidden; }
.tw-char.is-typed { visibility: visible; }
/* Cursor: barra vertical tras el último carácter visible.
   Posición absoluta: no ocupa espacio ni desplaza el texto. */
.tw-char.is-caret::after {
  content: "";
  position: absolute;
  top: .06em; bottom: .02em;
  left: calc(100% + .05em);
  width: .07em;
  background: currentColor;
  visibility: visible;
}
.is-blinking .tw-char.is-caret::after { animation: tw-blink 1s steps(1, end) infinite; }

@keyframes tw-blink { 50% { opacity: 0; } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

html.is-intro, html.is-intro body { overflow: hidden; }

/* =========================================================
   1 · PORTADA QUE GIRA
   .sp-hero: contenedor estable (tamaño fijo, perspectiva y
   detección del cursor). .sp-hero__inner gira 180° sobre su
   eje vertical. El CTA y el menú quedan fuera del giro.
   ========================================================= */
.sp-hero {
  position: relative;
  height: calc(776 * var(--u));
  min-height: 520px;
  overflow: hidden;
  background: var(--c-sand-deep);          /* lo que asoma durante el giro */
  perspective: calc(3200 * var(--u));
}
.sp-hero__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.45, .05, .25, 1);
}
.sp-hero.is-flipped .sp-hero__inner { transform: rotateY(180deg); }

.sp-hero__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sp-hero__face--front { background: var(--c-umber); }
.sp-hero__face--front > .media { position: absolute; inset: 0; }
/* Portadas de servicio (revisión 10 nov.): foto de prueba de cada
   servicio con el tratamiento .vintage (components.css) y un degradado
   horizontal común a las cuatro: color sólido al 100 % en el borde
   izquierdo, de arriba abajo (también en la zona del menú), que pierde
   opacidad poco a poco hacia la derecha hasta dejar ver la foto.
   Cada página solo fija su color: --hero-solid (canales R G B). */
.sp-hero__face--front { --hero-solid: 138 90 58; }   /* Commercial #8A5A3A */
.sp-hero__fade {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right,
    rgb(var(--hero-solid)) 0%, rgb(var(--hero-solid)) 13%,
    rgb(var(--hero-solid) / .94) 26%, rgb(var(--hero-solid) / .8) 40%,
    rgb(var(--hero-solid) / .6) 54%, rgb(var(--hero-solid) / .38) 68%,
    rgb(var(--hero-solid) / .18) 82%, rgb(var(--hero-solid) / .05) 93%,
    rgb(var(--hero-solid) / 0) 100%);
}
.sp-hero__face--front .sp-hero__title { z-index: 2; }
.sp-hero__face--back {
  display: flex; align-items: center; justify-content: center;
  padding: calc(120 * var(--u)) var(--nav-clear);
  background: var(--c-ivory);
  color: var(--c-title-brown);
  transform: rotateY(180deg);
}

/* Variante: título centrado en vertical (mismo margen izquierdo) */
/* (Antes .sp-hero--center centraba el título en vertical; ahora los
   cuatro títulos comparten la posición de Commercial Strategy & Sales) */

/* Título del frente: es un botón (teclado y táctil).
   Regla común de las cuatro portadas (medidas de Commercial Strategy
   & Sales): mismo margen izquierdo, misma distancia de la última línea
   al borde inferior (anclado abajo), mismo tamaño, peso e interlineado.
   Los saltos de línea los decide el ancho común (8,5em): cabe la
   palabra más larga («Development») y cada nombre se reparte solo. */
.sp-hero__title {
  position: absolute;
  left: var(--nav-clear);
  bottom: calc(96 * var(--u));
  max-width: 8.5em;
  margin: 0;
  font-weight: 800;
  font-size: calc(104 * var(--u));
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.sp-hero__title-btn {   /* ya no es botón: la portada no gira */
  display: block;
  margin: 0; padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  color: var(--c-beige);
  cursor: auto;
}
.sp-hero__title-btn:focus-visible { outline: 2px solid var(--c-beige); outline-offset: calc(12 * var(--u)); }

/* Reverso: la cita, centrada, con ancho de lectura moderado */
.sp-quote {
  max-width: calc(860 * var(--u));
  text-align: center;
}
.sp-quote__text { margin: 0; }
.sp-quote__text p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: calc(38 * var(--u));
  line-height: 1.35;
  letter-spacing: -.005em;
}
.sp-quote__meta {
  display: flex; flex-direction: column; align-items: center;
  gap: calc(4 * var(--u));
  margin-top: calc(36 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: 1.5;
  color: rgba(67, 21, 6, .78);
}
.sp-quote__meta::before {
  content: "";
  width: calc(40 * var(--u));
  height: 1px;
  margin-bottom: calc(20 * var(--u));
  background: rgba(67, 21, 6, .35);
}
.sp-quote__name {
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-title-brown);
}
.sp-quote__source {
  margin-top: calc(14 * var(--u));
  font-size: calc(12 * var(--u));
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(67, 21, 6, .35);
  color: var(--c-rust);
  transition: border-color .2s ease;
}
.sp-quote__source:hover { border-color: currentColor; }
.sp-quote__source:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* CTA fuera del giro: cambia de tono cuando se ve el reverso */
.sp-hero__cta {
  position: absolute;
  top: calc(71 * var(--u));     /* misma posición que en las demás portadas */
  right: calc(52 * var(--u));
  z-index: 2;
  transition: color .3s ease, border-color .3s ease, background-color .2s ease;
}
.sp-hero.is-showing-back .sp-hero__cta { color: var(--c-ink); border-color: rgba(58, 30, 18, .4); }
.sp-hero.is-showing-back .sp-hero__cta:hover { background: rgba(58, 30, 18, .06); }

/* =========================================================
   2 · PRESENTACIÓN
   ========================================================= */
.sp-intro { padding-top: var(--sp-gap); }
.sp-intro__title,
.sp-intro__body,
.sp-intro__cta { margin-left: var(--nav-clear); }

.sp-intro__title {
  display: flex; flex-direction: column;
  margin-top: calc(32 * var(--u));
  font-size: calc(70 * var(--u));
  line-height: 1;
  font-weight: 600;
}
.sp-intro__title .accent { color: var(--c-rust); }
.sp-intro__title-sans {
  margin-top: calc(6 * var(--u));
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sp-intro__body {
  max-width: calc(1000 * var(--u));
  margin-top: calc(32 * var(--u));
  font-size: calc(20 * var(--u));   /* 24 → 25 → 20 */
  line-height: 1.65;
}
/* Botón con doble marco fino, como en el PDF */
.sp-intro__cta {
  height: calc(56 * var(--u));
  margin-top: calc(40 * var(--u));
  padding: 0 calc(28 * var(--u));
  font-size: calc(17 * var(--u));
  box-shadow: 0 0 0 calc(6 * var(--u)) var(--c-sand-deep), 0 0 0 calc(7 * var(--u)) var(--c-rust);
}
.sp-intro__cta .icon-arrow { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: calc(10 * var(--u)); }

/* =========================================================
   3 · THE COMMERCIAL DESK
   ========================================================= */
.sp-desk-wrap {
  padding: var(--sp-gap) 0;
  scroll-margin-top: calc(24 * var(--u));
}
.desk {
  --desk-line: rgba(67, 21, 6, .13);
  width: var(--sp-box);
  margin-left: var(--nav-clear);
  overflow: hidden;
  border: 1px solid var(--desk-line);
  border-radius: calc(6 * var(--u));
  background: var(--c-ivory);
  box-shadow:
    0 1px 2px rgba(67, 21, 6, .05),
    0 30px 60px -42px rgba(67, 21, 6, .32);
}

/* Cabecera */
.desk__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: calc(32 * var(--u));
  padding: calc(44 * var(--u)) calc(48 * var(--u)) calc(36 * var(--u));
  border-bottom: 1px solid var(--desk-line);
}
.desk__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(46 * var(--u));
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--c-title-brown);
}
.desk__lead {
  margin-top: calc(10 * var(--u));
  font-size: calc(15 * var(--u));
  line-height: 1.5;
  color: rgba(58, 30, 18, .72);
}
.desk__badge {
  flex: none;
  padding: calc(7 * var(--u)) calc(12 * var(--u));
  border: 1px solid rgba(133, 65, 38, .35);
  border-radius: 999px;
  font-size: calc(11 * var(--u));
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-rust);
}

/* Cuerpo: selector | panel */
.desk__body {
  display: grid;
  grid-template-columns: calc(292 * var(--u)) minmax(0, 1fr);
}

/* Selector de escenarios (pestañas verticales) */
.desk__tabs {
  display: flex; flex-direction: column;
  gap: calc(6 * var(--u));
  padding: calc(28 * var(--u)) calc(20 * var(--u));
  border-right: 1px solid var(--desk-line);
  background: #efe6da;
}
.desk__tab {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(5 * var(--u));
  width: 100%;
  padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)) calc(22 * var(--u));
  border: 1px solid transparent;
  border-radius: calc(4 * var(--u));
  background: transparent;
  font: 500 calc(16 * var(--u)) / 1.25 var(--font-sans);
  text-align: left;
  color: rgba(58, 30, 18, .72);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.desk__tab::before {                       /* barra terracota de la pestaña activa */
  content: "";
  position: absolute;
  left: -1px; top: calc(14 * var(--u)); bottom: calc(14 * var(--u));
  width: 2px;
  border-radius: 2px;
  background: var(--c-rust);
  opacity: 0;
  transition: opacity 200ms ease;
}
.desk__tab-kicker {
  font-size: calc(10.5 * var(--u));
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(58, 30, 18, .5);
  transition: color 200ms ease;
}
.desk__tab:hover { background: rgba(255, 255, 255, .45); color: var(--c-ink); }
.desk__tab[aria-selected="true"] {
  border-color: var(--desk-line);
  background: #fbf8f3;
  color: var(--c-title-brown);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(67, 21, 6, .06), 0 8px 18px -14px rgba(67, 21, 6, .35);
}
.desk__tab[aria-selected="true"]::before { opacity: 1; }
.desk__tab[aria-selected="true"] .desk__tab-kicker { color: var(--c-rust); }
.desk__tab:focus-visible { outline: 2px solid var(--c-rust); outline-offset: 2px; }

/* Paneles apilados en la misma celda: altura estable */
.desk__panels {
  display: grid;
  padding: calc(36 * var(--u)) calc(48 * var(--u)) calc(44 * var(--u));
}
.desk__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.desk__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms ease 80ms, transform 220ms ease 80ms, visibility 0s;
}
.desk__panel:focus-visible { outline: 2px solid var(--c-rust); outline-offset: 10px; }

.desk__label {
  font-size: calc(11 * var(--u));
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-rust);
}
.desk__situation {
  max-width: calc(700 * var(--u));
  margin-top: calc(12 * var(--u));
  font-size: calc(21 * var(--u));
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-title-brown);
}

/* Tres módulos numerados, unidos por una línea fina con flecha */
.desk__flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(28 * var(--u));
  margin-top: calc(32 * var(--u));
}
.desk__module {
  position: relative;
  padding: calc(20 * var(--u)) calc(22 * var(--u)) calc(24 * var(--u));
  border: 1px solid var(--desk-line);
  border-radius: calc(4 * var(--u));
  background: #fbf8f3;
}
.desk__module + .desk__module::before {   /* conector */
  content: "";
  position: absolute;
  left: calc(-28 * var(--u)); top: calc(31 * var(--u));
  width: calc(28 * var(--u)); height: 1px;
  background: rgba(133, 65, 38, .45);
}
.desk__module + .desk__module::after {    /* punta de flecha */
  content: "";
  position: absolute;
  left: calc(-7 * var(--u)); top: calc(28 * var(--u));
  width: calc(6 * var(--u)); height: calc(6 * var(--u));
  border-top: 1px solid rgba(133, 65, 38, .6);
  border-right: 1px solid rgba(133, 65, 38, .6);
  transform: rotate(45deg);
}
.desk__module-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(10 * var(--u));
  padding-bottom: calc(14 * var(--u));
  border-bottom: 1px solid var(--desk-line);
}
.desk__num {
  font-family: var(--font-serif);
  font-size: calc(22 * var(--u));
  line-height: 1;
  color: var(--c-rust);
}
.desk__owner {
  font-size: calc(10.5 * var(--u));
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(58, 30, 18, .55);
}
.desk__module-title {
  margin-top: calc(16 * var(--u));
  font-size: calc(16 * var(--u));
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-title-brown);
}
.desk__module p:last-child {
  margin-top: calc(8 * var(--u));
  font-size: calc(14.5 * var(--u));
  line-height: 1.6;
  color: rgba(58, 30, 18, .86);
}

.desk__note {
  padding: calc(14 * var(--u)) calc(48 * var(--u));
  border-top: 1px solid var(--desk-line);
  background: #efe6da;
  font-size: calc(12 * var(--u));
  letter-spacing: .02em;
  color: rgba(58, 30, 18, .6);
}

/* 4 · SIMULACIÓN COMERCIAL: en simulation.css */

/* =========================================================
   5 · CIERRE (Commercial Strategy & Sales)
   Dos mitades iguales: panel de texto crema a la izquierda, con el
   mismo fondo que el bloque superior (--c-cocoa, .example), y foto a
   sangre a la derecha.
   Sobre la foto, solo con CSS:
   ::before  degradado del mismo color: 100 % en el borde que toca el
             panel (sin corte vertical), 45 % al primer tercio y 25 %
             en el borde derecho;
   ::after   el grano fino y estático de la portada de Services
             (soft-light, 10 %), con una máscara que lo hace aparecer
             a la vez que la foto, así la unión con el panel liso no
             se nota.
   ========================================================= */
.sp-closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(600 * var(--u));
  background: var(--c-cocoa);   /* continuación del bloque superior */
  color: #f2e4d8;
}
.sp-closing__panel {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: calc(120 * var(--u)) calc(80 * var(--u)) calc(120 * var(--u)) var(--nav-clear);
}
.sp-closing__eyebrow {
  margin: 0;
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.sp-closing__title {
  margin: calc(18 * var(--u)) 0 0;
  font-size: calc(46 * var(--u));
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.sp-closing__text {
  max-width: 26em;
  margin: calc(24 * var(--u)) 0 0;
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.6;
  text-wrap: pretty;
}
/* Enlace de texto crema con subrayado fino, sin fondo; abre Contact */
.sp-closing__link {
  display: inline-flex; align-items: center;
  gap: calc(10 * var(--u));
  margin-top: calc(34 * var(--u));
  font-size: max(15px, calc(16 * var(--u)));
  font-weight: 500;
  color: #f2e4d8;
  text-decoration: none;
}
.sp-closing__link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  text-decoration-color: rgba(242, 228, 216, .7);
  transition: text-decoration-color .25s ease;
}
.sp-closing__link:hover span,
.sp-closing__link:focus-visible span { text-decoration-color: #f2e4d8; }
.sp-closing__link:focus-visible { outline: 2px solid #f2e4d8; outline-offset: 6px; }
.sp-closing__link svg {
  width: max(12px, calc(13 * var(--u))); height: max(12px, calc(13 * var(--u)));
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Foto a sangre: cubre toda su mitad; encuadre con las dos tazas y
   la puerta tallada. */
.sp-closing__photo {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.sp-closing__photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
}
.sp-closing__photo::before,
.sp-closing__photo::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;   /* por encima de la foto (también posicionada) */
  pointer-events: none;
}
.sp-closing__photo::after { z-index: 2; }
.sp-closing__photo {
  --fade-dir: 90deg;
  --fade: var(--c-cocoa);
}
.sp-closing__photo::before {
  background: linear-gradient(var(--fade-dir),
    var(--fade) 0%,
    color-mix(in srgb, var(--fade) 45%, transparent) 33.333%,
    color-mix(in srgb, var(--fade) 25%, transparent) 100%);
}
.sp-closing__photo::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .1;
  /* El grano aparece con la foto: nada en el borde liso, pleno a la derecha */
  -webkit-mask-image: linear-gradient(var(--fade-dir), transparent 0%, rgba(0, 0, 0, .55) 33.333%, #000 100%);
          mask-image: linear-gradient(var(--fade-dir), transparent 0%, rgba(0, 0, 0, .55) 33.333%, #000 100%);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro-screen.is-leaving { transition: none; }
  .is-blinking .tw-char.is-caret::after { animation: none; }

  /* Portada: sin giro; el reverso aparece con un fundido breve */
  .sp-hero__inner,
  .sp-hero.is-flipped .sp-hero__inner { transform: none; transition: none; }
  .sp-hero__face--back { transform: none; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .sp-hero.is-flipped .sp-hero__face--back { opacity: 1; visibility: visible; transition: opacity 200ms ease; }

  .desk__panel, .desk__panel.is-active { transform: none; }
}

/* =========================================================
   BASE MÓVIL PROVISIONAL (≤ 820 px)
   ========================================================= */
@media (max-width: 1023px) {
  .page-service { --sp-box: auto; --sp-gap: 56px; }
  .intro-screen__title { font-size: 44px; }

  .sp-hero { margin-top: 0; height: auto; min-height: 100dvh; }
  /* Móvil: 46 px como máximo; baja lo justo para que «Development»
     quepa entre márgenes de 20 px en cualquier ancho */
  .sp-hero__title { left: 20px; right: 20px; bottom: 32px; font-size: min(46px, calc((100vw - 40px) / 8.3)); }
  .sp-hero__face--back { padding: 80px 24px; }
  .sp-quote__text p { font-size: 24px; }
  .sp-quote__meta { font-size: 13px; }
  .sp-quote__source { font-size: 11px; }
  .sp-hero__cta { top: 20px; right: 20px; }

  .sp-intro__title, .sp-intro__body, .sp-intro__cta { margin-left: 20px; margin-right: 20px; }
  .sp-intro__title { font-size: 38px; margin-top: 24px; }
  .sp-intro__body { font-size: 17px; margin-top: 24px; }
  .sp-intro__cta { height: 48px; margin-top: 32px; font-size: 15px; box-shadow: 0 0 0 5px var(--c-sand-deep), 0 0 0 6px var(--c-rust); }

  .sp-desk-wrap { padding: var(--sp-gap) 16px; }
  .desk { margin-left: 0; }
  .desk__head { flex-direction: column; align-items: flex-start; padding: 28px 22px 22px; }
  .desk__title { font-size: 32px; }
  .desk__lead { font-size: 14px; }
  .desk__badge { font-size: 10px; padding: 6px 10px; }
  .desk__body { grid-template-columns: 1fr; }
  .desk__tabs { flex-direction: row; overflow-x: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--desk-line); }
  .desk__tab { flex: none; width: auto; padding: 10px 14px; font-size: 14px; }
  .desk__tab::before { display: none; }
  .desk__tab-kicker { font-size: 10px; }
  .desk__panels { padding: 24px 22px 28px; }
  .desk__label { font-size: 10px; }
  .desk__situation { font-size: 17px; }
  .desk__flow { grid-template-columns: 1fr; gap: 14px; }
  .desk__module + .desk__module::before, .desk__module + .desk__module::after { display: none; }
  .desk__num { font-size: 20px; }
  .desk__owner { font-size: 10px; }
  .desk__module-title { font-size: 15px; }
  .desk__module p:last-child { font-size: 14px; }
  .desk__note { padding: 12px 22px; font-size: 11px; }

  /* Cierre: texto con el enlace primero, foto a ancho completo después;
     degradado de arriba abajo, más oscuro junto al panel */
  .sp-closing { grid-template-columns: 1fr; min-height: 0; }
  .sp-closing__panel { padding: 64px 20px 56px; }
  .sp-closing__title { margin-top: 14px; font-size: 32px; text-wrap: pretty; }
  .sp-closing__text { margin-top: 18px; font-size: 16px; }
  .sp-closing__link { margin-top: 16px; padding: 12px 0; gap: 10px; }   /* zona táctil de 44 px */
  .sp-closing__photo { aspect-ratio: 1448 / 1086; min-height: 0; }
  .sp-closing__photo { --fade-dir: 180deg; }   /* se funde con el panel de arriba */
}

/* =========================================================
   BOTÓN FLOTANTE «EXPLORE OTHER SERVICES» (service-switcher.js)
   Fijo abajo a la derecha; aparece al dejar atrás la portada y sigue
   hasta el footer. El menú se abre hacia arriba. El color del botón
   lo calcula service-switcher.js según el fondo del bloque de debajo
   (variables --sw-*); sin JS de color, queda en óxido.
   ========================================================= */
.svc-switch {
  position: fixed;
  right: max(24px, calc(32 * var(--u)));
  bottom: max(24px, calc(32 * var(--u)));
  z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.svc-switch.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.svc-switch__btn {
  height: max(42px, calc(42 * var(--u)));
  padding: 0 max(20px, calc(22 * var(--u)));
  font-size: max(13px, calc(13 * var(--u)));
  letter-spacing: .02em;
  border: 1px solid var(--sw-line, transparent);
  background: var(--sw-bg, var(--c-rust));
  color: var(--sw-fg, #fff);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(59, 28, 15, .16);
  transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}
.svc-switch__btn:hover { background: var(--sw-bg-hover, var(--sw-bg, var(--c-rust))); }
/* Sobre fotografías: cristal oscuro translúcido */
.svc-switch.is-on-photo .svc-switch__btn {
  background: rgba(43, 28, 20, .52);
  color: #f2e4d8;
  border-color: rgba(242, 228, 216, .3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.svc-switch.is-on-photo .svc-switch__btn:hover { background: rgba(43, 28, 20, .66); }
.svc-switch__btn:focus-visible { outline: 2px solid var(--sw-fg, var(--c-ink)); outline-offset: 3px; }
.svc-switch__chev {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform .25s ease;
}
.svc-switch.is-open .svc-switch__chev { transform: rotate(180deg); }

/* Menú hacia arriba, dentro de la ventana */
.svc-switch__menu {
  list-style: none; margin: 0 0 10px; padding: 8px 0;
  min-width: 100%;
  background: #f8f2e8;
  border: 1px solid rgba(89, 45, 29, .14);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(59, 28, 15, .18);
}
.svc-switch__menu a {
  display: block;
  padding: 11px 22px;
  font-size: max(14px, calc(14 * var(--u)));
  font-weight: 500;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.svc-switch__menu li + li a { border-top: 1px solid rgba(89, 45, 29, .1); }
.svc-switch__menu a:hover, .svc-switch__menu a:focus-visible {
  color: var(--c-rust);
  background: rgba(133, 65, 38, .06);
  outline: none;
}

/* Anclaje: al llegar al final del último bloque (fin de <main>), el botón
   deja de flotar y se queda dentro de ese bloque, a 28 px de su borde
   inferior (DOCK_GAP en service-switcher.js). Nunca entra en el footer. */
.svc-switch-scope { position: relative; }
.svc-switch.is-docked { position: absolute; bottom: 28px; }

@media (max-width: 1023px) {
  .svc-switch { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-switch, .svc-switch.is-visible { transition: none; transform: none; }
}
