/* Ánforas de Barro — estilos del tema.
   Generado a partir de la web Astro (src/styles y <style> de cada componente) y ampliado para WordPress. */

@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-ext-full-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/fraunces-latin-ext-full-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ==========================================================================
   Ánforas de Barro — sistema visual
   Materiales: hueso, arena, arcilla, terracota y carbón.
   Tipografía: Fraunces (la mano, el oficio) × Geist / Geist Mono (la máquina).
   ========================================================================== */

:root {
  /* Materia */
  --hueso: #f1ebe2;
  --hueso-2: #e7dfd3;
  --arena: #dccdb8;
  --arcilla: #c08a68;
  --arcilla-clara: #dba98a;
  --terracota: #a94a26;
  --terracota-viva: #c9643a;
  --barro-cocido: #8f3b1e;
  --carbon: #191714;
  --carbon-2: #23201c;
  --piedra: #6b655c;
  --piedra-clara: #a39b8f;

  /* Tipografía */
  --f-display: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --f-sans: 'Geist Variable', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-mono: 0.75rem;
  --t-small: 0.875rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  --t-h2: clamp(2.5rem, 1.6rem + 4.2vw, 5.75rem);
  --t-mega: clamp(3.6rem, 1.4rem + 10.4vw, 12.5rem);

  /* Espacio y retícula */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section-y: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-clay: cubic-bezier(0.65, 0, 0.25, 1);

  --grain: url('../img/grain.svg');
  color-scheme: light;
}

/* Temas por sección. La web alterna materiales al hacer scroll. */
[data-theme='hueso'] {
  --bg: var(--hueso);
  --fg: var(--carbon);
  --muted: var(--piedra);
  --accent: var(--terracota);
  --rule: color-mix(in srgb, var(--carbon) 22%, transparent);
}
[data-theme='arena'] {
  --bg: var(--arena);
  --fg: var(--carbon);
  --muted: #5c564e;
  --accent: var(--barro-cocido);
  --rule: color-mix(in srgb, var(--carbon) 24%, transparent);
}
[data-theme='carbon'] {
  --bg: var(--carbon);
  --fg: var(--hueso);
  --muted: var(--piedra-clara);
  --accent: var(--arcilla-clara);
  --rule: color-mix(in srgb, var(--hueso) 18%, transparent);
  color-scheme: dark;
}
[data-theme='barro'] {
  --bg: var(--barro-cocido);
  --fg: var(--hueso);
  --muted: #e9cdbd;
  --accent: var(--hueso);
  --rule: color-mix(in srgb, var(--hueso) 35%, transparent);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
  background: var(--carbon);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hueso);
  color: var(--carbon);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--terracota);
  color: var(--hueso);
}

:focus-visible {
  outline: 2px solid var(--accent, var(--terracota));
  outline-offset: 4px;
}

/* Secciones: cada una es un material. */
.section {
  position: relative;
  background-color: var(--bg);
  color: var(--fg);
  padding-block: var(--section-y);
  isolation: isolate;
}

/* Grano de la materia: una textura fija, sin coste de repintado. */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}
[data-theme='carbon'].grain::before,
[data-theme='barro'].grain::before {
  mix-blend-mode: screen;
  opacity: 0.22;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px);
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 340;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 0;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.h2 {
  font-size: var(--t-h2);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  font-weight: 450;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  max-width: 34ch;
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

/* Cabecera de sección: índice en mono + titular editorial. */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  color: var(--muted);
}
.kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
  transform: translateY(-0.3em);
}

/* Enlace con trazo hecho a mano. */
.hand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 0.35em;
}
.hand-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: currentColor;
  -webkit-mask: url('../img/trazo.svg') no-repeat 0 0 / 100% 100%;
  mask: url('../img/trazo.svg') no-repeat 0 0 / 100% 100%;
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.hand-link .arrow {
  transition: transform 0.4s var(--ease-out);
}
.hand-link:hover .arrow {
  transform: translateX(4px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--carbon);
  color: var(--hueso);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Las líneas de un titular son siempre bloques, haya o no animación. */
[data-lines] .line {
  display: block;
}

/* --------------------------------------------------------------------------
   Aparición al hacer scroll (solo si el usuario acepta movimiento y hay JS)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1s var(--ease-out),
      transform 1.2s var(--ease-out);
    transition-delay: var(--delay, 0s);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Líneas de titular que suben desde su propia máscara. */
  .js [data-lines] .line {
    display: block;
    overflow: clip;
    overflow-clip-margin: 0.2em;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
  }
  .js [data-lines] .line > span {
    display: block;
    transform: translateY(105%);
    transition: transform 1.3s var(--ease-clay);
    transition-delay: calc(var(--i, 0) * 0.09s + var(--delay, 0s));
  }
  .js [data-lines].is-in .line > span {
    transform: none;
  }
}

/* === Logo ============================================================== */
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 420;
    font-variation-settings: 'opsz' 48, 'SOFT' 100;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
  }
  .logo__mark {
    width: 1.35em;
    height: 1.35em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.8s var(--ease-clay);
  }
  .logo__word i {
    font-style: italic;
    font-weight: 300;
  }
  a:hover > .logo .logo__mark {
    transform: rotateY(180deg);
  }

/* === Header ============================================================ */
  .header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    color: var(--fg);
    transition:
      transform 0.6s var(--ease-out),
      background-color 0.5s ease,
      color 0.5s ease;
  }
  .header::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--rule);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .header.is-scrolled {
    background-color: var(--bg);
  }
  .header.is-scrolled::after {
    opacity: 1;
  }
  .header.is-hidden {
    transform: translateY(-100%);
  }

  .header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
  }
  .header__home {
    margin-right: auto;
  }
  .header__nav ul {
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.25rem);
  }
  .header__nav a {
    position: relative;
    font-size: var(--t-small);
    padding-block: 6px;
  }
  .header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
  }
  .header__nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .header__cta {
    padding: 10px 14px;
    border: 1px solid currentColor;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }
  .header__cta:hover {
    background: var(--fg);
    color: var(--bg);
  }

  @media (max-width: 820px) {
    .header__nav {
      display: none;
    }
  }

/* === Hero ============================================================== */
  .hero {
    --vessel-ink: var(--carbon);
    --vessel-accent: var(--terracota);
    --vessel-bg: var(--hueso);
    min-height: 100vh;
    min-height: 100svh;
    padding-block: 0;
    display: flex;
    overflow: clip;
  }

  .hero__inner {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: inherit;
    padding-top: calc(68px + clamp(24px, 4vw, 56px));
    padding-bottom: clamp(28px, 4vw, 48px);
    pointer-events: none;
  }
  .hero__inner a {
    pointer-events: auto;
  }

  .hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 1em;
    color: var(--muted);
  }
  .hero__eyebrow-sep {
    width: 3.5em;
    height: 1px;
    background: currentColor;
  }

  /* Titular: dos líneas desplazadas, la pieza asoma entre ellas. */
  .hero__title {
    align-self: center;
    font-size: var(--t-mega);
    font-weight: 330;
    margin-block: clamp(32px, 6vh, 72px);
  }
  .hero__title .l2 {
    padding-left: 22%;
  }
  .hero__title em {
    font-style: italic;
    font-weight: 300;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    color: var(--accent);
  }

  .hero__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
  }
  .hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 28px;
    font-size: var(--t-small);
  }
  .hero__caption {
    justify-self: end;
    max-width: 30ch;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0.01em;
  }
  .hero__fig {
    display: block;
    color: var(--accent);
    margin-bottom: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* La pieza */
  .hero__vessel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: max(0px, calc((100vw - var(--max)) / 2));
    width: min(48vw, 680px);
  }
  .hero__vessel canvas {
    width: 100%;
    height: 100%;
  }

  @media (max-width: 1024px) {
    .hero__vessel {
      width: 56vw;
      right: -4vw;
    }
    .hero__title .l2 {
      padding-left: 12%;
    }
  }

  @media (max-width: 700px) {
    .hero__vessel {
      top: 8vh;
      bottom: 22vh;
      width: 84vw;
      right: -26vw;
      opacity: 0.9;
    }
    .hero__title {
      align-self: end;
      margin-block: 0 36px;
    }
    .hero__title .l2 {
      padding-left: 0;
    }
    .hero__foot {
      grid-template-columns: 1fr;
    }
    .hero__caption {
      display: none;
    }
    .hero__eyebrow-sep {
      display: none;
    }
  }

/* === Idea ============================================================== */
  .idea {
    padding-top: clamp(72px, 10vw, 140px);
  }
  .idea__kicker {
    grid-column: 1 / -1;
    margin-bottom: clamp(40px, 6vw, 88px);
  }
  .idea__text {
    grid-column: 1 / span 10;
    font-size: clamp(1.9rem, 1rem + 3.3vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 340;
    text-wrap: pretty;
  }
  .idea__text .em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    color: var(--accent);
  }

  @media (prefers-reduced-motion: no-preference) {
    .js .idea__text .w {
      color: color-mix(in srgb, var(--arcilla) 55%, var(--hueso));
      transition: color 0.5s ease;
    }
    .js .idea__text .w.on {
      color: var(--fg);
    }
    .js .idea__text .w.em.on {
      color: var(--accent);
    }
  }

  .idea__aside {
    grid-column: 7 / -1;
    margin-top: clamp(64px, 9vw, 128px);
  }
  .idea__noes {
    margin-top: 18px;
    border-top: 1px solid var(--rule);
  }
  .idea__noes li {
    position: relative;
    padding: 18px 0 18px 2.2em;
    border-bottom: 1px solid var(--rule);
    font-family: var(--f-display);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    font-variation-settings: 'opsz' 36, 'SOFT' 50;
    line-height: 1.25;
  }
  .idea__noes li::before {
    content: 'No';
    position: absolute;
    left: 0;
    top: 1.45em;
    font-family: var(--f-mono);
    font-size: var(--t-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
  }
  .idea__note {
    margin-top: 28px;
    max-width: 44ch;
    color: var(--muted);
  }

  @media (max-width: 900px) {
    .idea__text {
      grid-column: 1 / -1;
    }
    .idea__aside {
      grid-column: 3 / -1;
    }
  }
  @media (max-width: 600px) {
    .idea__aside {
      grid-column: 1 / -1;
    }
  }

/* === mockups/Phone ===================================================== */
  .phone {
    --screen-bg: #f6f1ea;
    --screen-fg: var(--carbon);
    width: var(--phone-w, clamp(196px, 21vw, 300px));
    aspect-ratio: 9 / 19.2;
    padding: 2.6%;
    border-radius: 15% / 7%;
    background: #0e0d0b;
    box-shadow:
      inset 0 0 0 1.5px #3a352f,
      0 50px 80px -30px rgb(10 8 6 / 0.55),
      0 20px 30px -20px rgb(10 8 6 / 0.4);
    container-type: inline-size;
  }
  .phone--dark {
    --screen-bg: #201d19;
    --screen-fg: var(--hueso);
  }
  .phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 13% / 6.2%;
    background: var(--screen-bg);
    color: var(--screen-fg);
    font-family: var(--f-sans);
    font-size: 4.4cqi;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
  }
  .phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.5cqi 7cqi 1cqi;
    font-size: 3.6cqi;
    font-weight: 600;
  }
  .phone__island {
    width: 28cqi;
    height: 8cqi;
    border-radius: 99px;
    background: #0e0d0b;
  }
  .phone__icons {
    display: flex;
    gap: 1.4cqi;
  }
  .phone__icons i {
    width: 4.5cqi;
    height: 2.6cqi;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.8;
  }
  .phone__content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

/* === mockups/Eventos =================================================== */
  .ev {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4cqi 6cqi 0;
  }
  .ev__eyebrow {
    font-family: var(--f-display);
    font-size: 9.5cqi;
    font-variation-settings: 'opsz' 72, 'SOFT' 100;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 2cqi 0 4cqi;
  }
  .ev__days {
    display: flex;
    gap: 2cqi;
    font-size: 3.6cqi;
    margin-bottom: 5cqi;
  }
  .ev__days span {
    padding: 1.6cqi 3cqi;
    border: 1px solid rgb(25 23 20 / 0.18);
    border-radius: 99px;
  }
  .ev__days .is-on {
    background: var(--carbon);
    color: var(--hueso);
    border-color: transparent;
  }
  .ev__now {
    display: grid;
    gap: 1cqi;
    padding: 4.5cqi;
    background: var(--terracota);
    color: var(--hueso);
    border-radius: 4cqi;
    font-size: 3.8cqi;
  }
  .ev__now strong {
    font-size: 5.2cqi;
    font-weight: 600;
  }
  .ev__live {
    font-family: var(--f-mono);
    font-size: 3cqi;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
  }
  .ev__bar {
    height: 1cqi;
    margin-top: 2cqi;
    background: rgb(255 255 255 / 0.3);
    border-radius: 99px;
  }
  .ev__bar i {
    display: block;
    width: 62%;
    height: 100%;
    background: var(--hueso);
    border-radius: inherit;
  }
  .ev__list {
    margin-top: 3cqi;
  }
  .ev__list li {
    display: grid;
    grid-template-columns: 13cqi 1fr;
    padding: 3.4cqi 0;
    border-bottom: 1px solid rgb(25 23 20 / 0.1);
    font-size: 4cqi;
  }
  .ev__list time {
    font-family: var(--f-mono);
    font-size: 3.4cqi;
    opacity: 0.6;
    padding-top: 0.4cqi;
  }
  .ev__list small {
    display: block;
    font-size: 3.3cqi;
    opacity: 0.6;
  }
  .ev__alert {
    display: flex;
    gap: 2.5cqi;
    align-items: flex-start;
    margin-top: auto;
    margin-bottom: 4cqi;
    padding: 3.4cqi 4cqi;
    background: #ebe3d7;
    border-radius: 3cqi;
    font-size: 3.5cqi;
  }
  .ev__alert i {
    flex: none;
    width: 2.4cqi;
    height: 2.4cqi;
    margin-top: 1cqi;
    border-radius: 50%;
    background: var(--terracota);
  }
  .ev__tabs {
    display: flex;
    justify-content: space-around;
    margin-inline: -6cqi;
    padding: 3.5cqi 0 6cqi;
    border-top: 1px solid rgb(25 23 20 / 0.1);
    font-size: 3.3cqi;
    opacity: 0.55;
  }
  .ev__tabs .is-on {
    opacity: 1;
    font-weight: 600;
  }

/* === mockups/Movilidad ================================================= */
  .mv {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .mv__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mv__streets path {
    fill: none;
    stroke: rgb(241 235 226 / 0.12);
    stroke-width: 5;
  }
  .mv__streets .thin {
    stroke-width: 2;
  }
  .mv__route {
    fill: none;
    stroke: var(--arcilla-clara);
    stroke-width: 3;
    stroke-linecap: round;
  }
  .mv__stops circle {
    fill: #201d19;
    stroke: var(--hueso);
    stroke-width: 1.6;
  }
  .mv__stops .is-next {
    stroke: var(--arcilla-clara);
    stroke-width: 2.4;
  }
  .mv__bus {
    fill: var(--hueso);
    stroke: var(--terracota-viva);
    stroke-width: 2.5;
    offset-path: path('M28 228 C40 190 52 170 70 150 S112 118 118 96 S150 52 176 30');
    offset-distance: 52%;
    offset-rotate: 0deg;
  }
  @media (prefers-reduced-motion: no-preference) {
    .mv__bus {
      animation: mv-drive 9s var(--ease-clay) infinite alternate;
    }
  }
  @keyframes mv-drive {
    from {
      offset-distance: 8%;
    }
    to {
      offset-distance: 70%;
    }
  }
  .mv__sheet {
    position: relative;
    margin-top: auto;
    padding: 3cqi 6cqi 8cqi;
    background: var(--hueso);
    color: var(--carbon);
    border-radius: 6cqi 6cqi 0 0;
  }
  .mv__grab {
    width: 12cqi;
    height: 1.2cqi;
    margin: 0 auto 4cqi;
    border-radius: 99px;
    background: rgb(25 23 20 / 0.2);
  }
  .mv__line {
    display: flex;
    align-items: center;
    gap: 2.5cqi;
    font-size: 4.2cqi;
    font-weight: 600;
  }
  .mv__badge {
    display: grid;
    place-items: center;
    width: 7cqi;
    height: 7cqi;
    border-radius: 1.5cqi;
    background: var(--terracota);
    color: var(--hueso);
    font-size: 4cqi;
  }
  .mv__times {
    display: flex;
    gap: 6cqi;
    margin: 4cqi 0 3cqi;
  }
  .mv__times div {
    display: flex;
    align-items: baseline;
    gap: 1cqi;
  }
  .mv__times strong {
    font-family: var(--f-display);
    font-size: 12cqi;
    font-weight: 400;
    font-variation-settings: 'opsz' 72;
    line-height: 1;
  }
  .mv__times span {
    font-size: 3.4cqi;
  }
  .mv__times .muted {
    opacity: 0.4;
  }
  .mv__note {
    font-family: var(--f-mono);
    font-size: 3cqi;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
  }

/* === mockups/Gestion =================================================== */
  .browser {
    width: var(--browser-w, min(100%, 640px));
    aspect-ratio: 16 / 9.6;
    display: flex;
    flex-direction: column;
    background: #f6f1ea;
    color: var(--carbon);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgb(25 23 20 / 0.25),
      0 60px 90px -40px rgb(10 8 6 / 0.6);
    container-type: inline-size;
    line-height: 1.3;
  }
  .browser > * {
    font-size: 1.55cqi;
  }
  .browser__bar {
    display: flex;
    align-items: center;
    gap: 2cqi;
    padding: 1.3cqi 1.8cqi;
    background: #e5dccf;
    border-bottom: 1px solid rgb(25 23 20 / 0.1);
  }
  .browser__dots {
    display: flex;
    gap: 0.8cqi;
  }
  .browser__dots i {
    width: 1.2cqi;
    height: 1.2cqi;
    border-radius: 50%;
    background: rgb(25 23 20 / 0.2);
  }
  .browser__url {
    flex: 0 1 40%;
    margin-inline: auto;
    padding: 0.5cqi 2cqi;
    background: #f6f1ea;
    border-radius: 0.8cqi;
    text-align: center;
    font-family: var(--f-mono);
    font-size: 1.3cqi;
    opacity: 0.7;
  }
  .gs {
    flex: 1;
    display: grid;
    grid-template-columns: 19% 1fr;
    min-height: 0;
  }
  .gs__side {
    display: flex;
    flex-direction: column;
    gap: 1.6cqi;
    padding: 2.4cqi 2cqi;
    background: var(--carbon);
    color: rgb(241 235 226 / 0.6);
  }
  .gs__brand {
    font-family: var(--f-display);
    font-size: 2.1cqi;
    color: var(--hueso);
    margin-bottom: 1.4cqi;
  }
  .gs__side .is-on {
    color: var(--hueso);
    padding-left: 1cqi;
    border-left: 2px solid var(--arcilla-clara);
  }
  .gs__main {
    padding: 2.4cqi 3cqi;
    min-width: 0;
  }
  .gs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gs__title {
    font-family: var(--f-display);
    font-size: 3.4cqi;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .gs__title em {
    color: var(--terracota);
  }
  .gs__btn {
    padding: 0.8cqi 1.6cqi;
    background: var(--carbon);
    color: var(--hueso);
    border-radius: 0.6cqi;
  }
  .gs__counts {
    display: grid;
    grid-template-columns: repeat(3, auto) 1fr;
    gap: 3cqi;
    margin: 2.4cqi 0 2cqi;
    padding-bottom: 2cqi;
    border-bottom: 1px solid rgb(25 23 20 / 0.12);
  }
  .gs__counts strong {
    display: block;
    font-family: var(--f-display);
    font-size: 3.6cqi;
    font-weight: 400;
    line-height: 1;
  }
  .gs__counts span {
    opacity: 0.6;
  }
  .gs__counts .is-alert strong {
    color: var(--terracota);
  }
  .gs__spark {
    justify-self: end;
    width: 70%;
    max-width: 22cqi;
  }
  .gs__spark svg {
    width: 100%;
    height: 4cqi;
  }
  .gs__spark path {
    fill: none;
    stroke: var(--terracota);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
  }
  .gs__table {
    width: 100%;
    border-collapse: collapse;
  }
  .gs__table th {
    text-align: left;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 1.25cqi;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    padding-bottom: 1cqi;
  }
  .gs__table td {
    padding: 1.15cqi 0;
    border-top: 1px solid rgb(25 23 20 / 0.08);
  }
  .gs__table td:first-child {
    font-family: var(--f-mono);
    font-size: 1.4cqi;
  }
  .gs__state {
    display: inline-block;
    padding: 0.3cqi 1.2cqi;
    border-radius: 99px;
    border: 1px solid currentColor;
    font-size: 1.35cqi;
  }
  .gs__state--warm {
    color: #8a5a2e;
  }
  .gs__state--ink {
    color: var(--carbon);
  }
  .gs__state--alert {
    color: var(--hueso);
    background: var(--terracota);
    border-color: transparent;
  }
  .gs__state--soft {
    color: rgb(25 23 20 / 0.45);
  }

/* === mockups/Producto ================================================== */
  .pr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    --phone-w: clamp(170px, 17vw, 250px);
  }
  .pr > .phone {
    grid-area: 1 / 1;
  }
  .pr .pr__sketch {
    transform: translate(-42%, 4%) rotate(-7deg);
    --screen-bg: #f3eee6;
  }
  .pr .pr__final {
    transform: translate(28%, -4%) rotate(3deg);
  }

  /* Boceto */
  .sk {
    display: flex;
    flex-direction: column;
    gap: 4cqi;
    height: 100%;
    padding: 6cqi 8cqi 10cqi;
    font-family: var(--f-mono);
    font-size: 3.6cqi;
    color: rgb(25 23 20 / 0.5);
  }
  .sk__note {
    align-self: flex-end;
    color: var(--terracota);
    transform: rotate(-4deg);
  }
  .sk__box {
    display: grid;
    place-items: center;
    border: 1.5px dashed rgb(25 23 20 / 0.35);
    border-radius: 2cqi;
  }
  .sk__box--logo {
    width: 30cqi;
    height: 14cqi;
  }
  .sk__box--img {
    flex: 1;
    background:
      linear-gradient(to top right, transparent calc(50% - 0.6px), rgb(25 23 20 / 0.2) 50%, transparent calc(50% + 0.6px)),
      linear-gradient(to top left, transparent calc(50% - 0.6px), rgb(25 23 20 / 0.2) 50%, transparent calc(50% + 0.6px));
  }
  .sk__line {
    height: 3cqi;
    border-radius: 99px;
    background: rgb(25 23 20 / 0.14);
  }
  .w80 {
    width: 80%;
  }
  .w70 {
    width: 70%;
  }
  .w60 {
    width: 60%;
  }
  .sk__box--btn {
    height: 13cqi;
  }

  /* Pantalla final */
  .fn {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 6cqi 8cqi 10cqi;
  }
  .fn__mark {
    width: 11cqi;
    height: 11cqi;
    border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%;
    background: var(--terracota);
  }
  .fn__title {
    margin-top: 9cqi;
    font-family: var(--f-display);
    font-size: 11cqi;
    font-variation-settings: 'opsz' 72, 'SOFT' 100;
    letter-spacing: -0.035em;
    line-height: 0.98;
  }
  .fn__text {
    margin-top: 4cqi;
    font-size: 3.9cqi;
    opacity: 0.65;
  }
  .fn__art {
    position: relative;
    flex: 1;
    margin-block: 6cqi;
  }
  .fn__art span {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgb(25 23 20 / 0.25);
    inset: 10% 20%;
  }
  .fn__art span:nth-child(2) {
    inset: 22% 32%;
    border-color: var(--terracota);
  }
  .fn__art span:nth-child(3) {
    inset: 34% 44%;
    background: var(--arcilla);
    border: 0;
  }
  .fn__steps {
    display: grid;
    gap: 2.5cqi;
    margin-bottom: 6cqi;
    font-size: 4cqi;
  }
  .fn__steps b {
    display: inline-grid;
    place-items: center;
    width: 6.4cqi;
    height: 6.4cqi;
    margin-right: 2cqi;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-family: var(--f-mono);
    font-size: 3.2cqi;
    font-weight: 400;
  }
  .fn__btn {
    padding: 4cqi;
    text-align: center;
    background: var(--carbon);
    color: var(--hueso);
    border-radius: 3cqi;
    font-weight: 600;
  }

/* === Pieza ============================================================= */
  .pieza {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(12px, 2vw, 32px);
    align-items: center;
  }
  .pieza + .pieza {
    margin-top: clamp(120px, 16vw, 240px);
  }

  .pieza__stage {
    position: relative;
    grid-column: 1 / span 7;
    display: grid;
    place-items: center;
    min-height: clamp(460px, 52vw, 720px);
  }
  .pieza__ficha {
    grid-column: 9 / -1;
  }
  .pieza--der .pieza__stage {
    grid-column: 6 / -1;
    grid-row: 1;
  }
  .pieza--der .pieza__ficha {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  /* Peana: el bloque de material sobre el que se expone la pieza. */
  .pieza__peana {
    position: absolute;
    inset: 14% 8% 6% 14%;
    background-color: var(--peana);
    overflow: hidden;
  }
  .pieza--der .pieza__peana {
    inset: 6% 14% 14% 8%;
  }
  .pieza__peana::before {
    mix-blend-mode: multiply;
    opacity: 0.45;
  }

  .pieza__num {
    position: absolute;
    top: -0.12em;
    left: -0.04em;
    z-index: 1;
    font-size: clamp(6rem, 3rem + 10vw, 13rem);
    font-weight: 300;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--hueso) 45%, transparent);
    line-height: 1;
    pointer-events: none;
  }
  .pieza--der .pieza__num {
    left: auto;
    right: -0.04em;
  }

  .pieza__device {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
  }
  .pieza--gestion .pieza__device {
    padding-inline: 4%;
  }

  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .pieza__device {
        animation: pieza-flota linear both;
        animation-timeline: view();
        animation-range: cover;
      }
      .pieza__peana {
        animation: pieza-peana linear both;
        animation-timeline: view();
        animation-range: cover;
      }
    }
  }
  @keyframes pieza-flota {
    from {
      transform: translateY(60px);
    }
    to {
      transform: translateY(-60px);
    }
  }
  @keyframes pieza-peana {
    from {
      transform: translateY(-24px);
    }
    to {
      transform: translateY(24px);
    }
  }

  /* Ficha de catálogo */
  .pieza__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.2em;
    color: var(--muted);
  }
  .pieza__meta span:first-child {
    color: var(--accent);
  }
  .pieza__name {
    margin-top: 18px;
    font-size: var(--t-h3);
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
    line-height: 1;
  }
  .pieza__tag {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 8px;
    border: 1px dashed var(--rule);
    color: var(--muted);
    font-size: 0.68rem;
  }
  .pieza__dl {
    margin-top: 32px;
    border-top: 1px solid var(--rule);
  }
  .pieza__dl > div {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .pieza__dl dt {
    color: var(--muted);
    margin-bottom: 6px;
  }
  .pieza__dl dd {
    max-width: 42ch;
    text-wrap: pretty;
  }
  .pieza__row {
    display: grid;
    grid-template-columns: 9.5em 1fr;
    align-items: baseline;
  }
  .pieza__row dt {
    margin: 0;
  }

  @media (max-width: 900px) {
    .pieza__stage,
    .pieza--der .pieza__stage {
      grid-column: 1 / -1;
      grid-row: 1;
      min-height: clamp(440px, 110vw, 620px);
    }
    .pieza__ficha,
    .pieza--der .pieza__ficha {
      grid-column: 2 / -1;
      grid-row: 2;
      margin-top: 48px;
    }
    .pieza__peana {
      inset: 12% 0 4% 18%;
    }
    .pieza--der .pieza__peana {
      inset: 12% 18% 4% 0;
    }
  }
  @media (max-width: 600px) {
    .pieza__ficha,
    .pieza--der .pieza__ficha {
      grid-column: 1 / -1;
    }
    .pieza__row {
      grid-template-columns: 1fr;
    }
    .pieza__row dt {
      margin-bottom: 6px;
    }
    .pieza--gestion .pieza__stage {
      min-height: 380px;
    }
    .pieza--gestion .pieza__device {
      padding-inline: 0;
      justify-items: start;
    }
    .pieza--gestion .pieza__device > .browser {
      --browser-w: 150%;
      max-width: none;
    }
  }

/* === Piezas ============================================================ */
  /* La maqueta de escritorio sangra fuera del borde en móvil; se recorta aquí. */
  .piezas {
    overflow-x: clip;
  }
  .piezas__head {
    align-items: end;
    margin-bottom: clamp(80px, 12vw, 180px);
  }
  .piezas__kicker {
    grid-column: 1 / -1;
    margin-bottom: clamp(40px, 6vw, 88px);
  }
  .piezas__kicker span:last-child {
    order: 3;
  }
  .piezas__title {
    grid-column: 1 / span 7;
  }
  .piezas__title .line:last-child {
    padding-left: 1.2em;
  }
  .piezas__title em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    color: var(--accent);
  }
  .piezas__intro {
    grid-column: 9 / -1;
  }

  @media (max-width: 900px) {
    .piezas__title,
    .piezas__intro {
      grid-column: 1 / -1;
    }
    .piezas__intro {
      margin-top: 32px;
      margin-left: 16%;
    }
  }

/* === Servicios ========================================================= */
  .servicios__head {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    top: 110px;
  }
  .servicios__title {
    margin-top: clamp(32px, 4vw, 56px);
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4.75rem);
  }
  .servicios__title em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    color: var(--accent);
  }
  .servicios__intro {
    margin-top: 28px;
    max-width: 34ch;
    color: var(--muted);
  }

  .servicios__list {
    grid-column: 6 / -1;
    border-top: 1px solid var(--fg);
    counter-reset: s;
  }
  .servicios__list > li {
    border-bottom: 1px solid var(--rule);
  }

  .servicio summary {
    position: relative;
    display: grid;
    grid-template-columns: 3.2em minmax(0, 1fr) auto 28px;
    align-items: baseline;
    gap: 16px;
    padding: clamp(22px, 2.6vw, 34px) 0;
    cursor: pointer;
    list-style: none;
  }
  .servicio summary::-webkit-details-marker {
    display: none;
  }
  /* Trazo de terracota que se dibuja bajo la fila activa. */
  .servicio summary::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-clay);
  }
  .servicio summary:hover::after,
  .servicio[open] summary::after {
    transform: scaleX(1);
  }
  .servicio__num {
    color: var(--muted);
  }
  .servicio__name {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem);
    line-height: 1.05;
    font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 0;
    transition:
      transform 0.6s var(--ease-out),
      font-variation-settings 0.6s var(--ease-out),
      color 0.3s ease;
  }
  .servicio summary:hover .servicio__name,
  .servicio[open] .servicio__name {
    transform: translateX(10px);
    font-variation-settings: 'opsz' 96, 'SOFT' 100, 'WONK' 1;
  }
  .servicio[open] .servicio__name {
    color: var(--accent);
  }
  .servicio__ambito {
    color: var(--muted);
    text-align: right;
  }
  .servicio__toggle {
    position: relative;
    align-self: center;
    width: 18px;
    height: 18px;
    justify-self: end;
  }
  .servicio__toggle::before,
  .servicio__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.5s var(--ease-out);
  }
  .servicio__toggle::after {
    transform: rotate(90deg);
  }
  .servicio[open] .servicio__toggle::after {
    transform: rotate(0deg);
  }

  .servicio__body {
    display: grid;
    gap: 18px;
    padding: 0 0 clamp(26px, 3vw, 40px) calc(3.2em + 16px);
    max-width: 62ch;
  }
  .servicio__body p:first-child {
    font-size: var(--t-lead);
    line-height: 1.45;
    text-wrap: pretty;
  }
  .servicio__ejemplos {
    color: var(--muted);
  }
  .servicio__ejemplos .mono {
    margin-right: 1em;
    color: var(--accent);
  }

  /* Apertura suave donde el navegador lo permite. */
  @media (prefers-reduced-motion: no-preference) {
    .servicio {
      interpolate-size: allow-keywords;
    }
    .servicio::details-content {
      height: 0;
      overflow: clip;
      transition:
        height 0.6s var(--ease-clay),
        content-visibility 0.6s allow-discrete;
    }
    .servicio[open]::details-content {
      height: auto;
    }
  }

  @media (max-width: 1024px) {
    .servicios__head {
      grid-column: 1 / -1;
      position: static;
      margin-bottom: 56px;
    }
    .servicios__list {
      grid-column: 1 / -1;
    }
  }
  @media (max-width: 600px) {
    .servicio summary {
      grid-template-columns: 2.4em minmax(0, 1fr) 20px;
      row-gap: 6px;
    }
    .servicio__ambito {
      grid-column: 2;
      grid-row: 2;
      text-align: left;
    }
    .servicio__toggle {
      grid-column: 3;
      grid-row: 1;
    }
    .servicio__body {
      padding-left: calc(2.4em + 16px);
    }
    .servicio summary:hover .servicio__name,
    .servicio[open] .servicio__name {
      transform: none;
    }
  }

/* === Proceso =========================================================== */
  .proceso__kicker {
    grid-column: 1 / -1;
    margin-bottom: clamp(40px, 6vw, 88px);
  }
  .proceso__title {
    grid-column: 1 / span 7;
  }
  .proceso__title em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
    color: var(--accent);
  }
  .proceso__intro {
    grid-column: 8 / -1;
    align-self: end;
    max-width: 38ch;
  }

  .proceso__body {
    --p: 0;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(16px, 4vw, 64px);
    margin-top: clamp(80px, 10vw, 160px);
  }

  .proceso__fig {
    position: sticky;
    top: 12vh;
    align-self: start;
    height: 76vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
  }
  .proceso__svg {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
  }
  .proceso__line {
    fill: none;
    stroke: var(--fg);
    stroke-width: 0.9;
    stroke-linejoin: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: calc(1 - min(1, var(--p) * 2.4));
  }
  .proceso__fill {
    fill: var(--terracota);
    opacity: calc(max(0, var(--p) - 0.55) * 2.2);
  }
  .proceso__rings ellipse {
    fill: none;
    stroke: var(--fg);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: calc(clamp(0, (var(--p) - 0.3 - var(--k) * 0.035) * 6, 1) * 0.45);
  }
  .proceso__axis {
    stroke: var(--barro-cocido);
    stroke-width: 1;
    stroke-dasharray: 3 5;
    vector-effect: non-scaling-stroke;
    opacity: 0.6;
  }
  .proceso__state {
    margin-top: 20px;
    display: flex;
    gap: 0.2em;
    align-items: baseline;
  }
  .proceso__oficio {
    margin-left: 1.2em;
    color: var(--accent);
  }

  .paso {
    padding: clamp(40px, 9vh, 96px) 0;
    border-top: 1px solid var(--rule);
    opacity: 0.35;
    transition: opacity 0.6s ease;
  }
  .paso:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .paso:last-child {
    padding-bottom: 30vh;
  }
  .paso.is-active,
  .paso.is-done {
    opacity: 1;
  }
  .paso__num {
    color: var(--accent);
  }
  .paso__name {
    margin-top: 14px;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 4.5rem);
    line-height: 1;
  }
  .paso__text {
    margin-top: 20px;
    max-width: 40ch;
    font-size: var(--t-lead);
    line-height: 1.45;
    text-wrap: pretty;
  }

  /* Sin JS o con movimiento reducido, todo queda visible y la pieza terminada. */
  html:not(.js) .proceso__body {
    --p: 1;
  }
  html:not(.js) .paso {
    opacity: 1;
  }
  @media (prefers-reduced-motion: reduce) {
    .proceso__body {
      --p: 1 !important;
    }
    .paso {
      opacity: 1;
    }
    .proceso__state {
      visibility: hidden;
    }
  }

  @media (max-width: 900px) {
    .proceso__title,
    .proceso__intro {
      grid-column: 1 / -1;
    }
    .proceso__intro {
      margin-top: 32px;
    }
    .proceso__body {
      grid-template-columns: 30% minmax(0, 1fr);
    }
    .proceso__fig {
      top: 96px;
      height: auto;
    }
    .proceso__svg {
      height: auto;
      max-height: 46vh;
    }
    .paso__text {
      font-size: var(--t-body);
    }
  }
  @media (max-width: 480px) {
    .proceso__oficio {
      display: none;
    }
  }

/* === Contacto ========================================================== */
  .contacto {
    padding-bottom: clamp(96px, 12vw, 180px);
  }
  .contacto__kicker {
    grid-column: 1 / -1;
    margin-bottom: clamp(40px, 6vw, 88px);
  }
  .contacto__copy {
    grid-column: 1 / span 6;
  }
  .contacto__title {
    font-size: clamp(3rem, 1.4rem + 6vw, 8rem);
  }
  .contacto__title em {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  }
  .contacto__lead {
    margin-top: clamp(28px, 3vw, 44px);
    max-width: 38ch;
    color: var(--muted);
  }
  .contacto__direct {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-top: 40px;
  }
  .contacto__direct .mono {
    color: var(--muted);
  }
  .contacto__direct a {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  }

  /* Teléfonos: una fila por persona, nombre en mono y número en la serif. */
  .contacto__tels {
    margin-top: 36px;
    max-width: 30rem;
  }
  .contacto__tels .mono {
    color: var(--muted);
  }
  .contacto__tels ul {
    margin-top: 10px;
    border-top: 1px solid var(--rule);
  }
  .contacto__tels a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .contacto__tel-name {
    font-family: var(--f-mono);
    font-size: var(--t-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s ease;
  }
  .contacto__tel-num {
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-variation-settings: 'opsz' 48, 'SOFT' 100;
    font-feature-settings: 'tnum';
    white-space: nowrap;
    transition: transform 0.5s var(--ease-out);
  }
  .contacto__tels a:hover .contacto__tel-name {
    color: var(--fg);
  }
  .contacto__tels a:hover .contacto__tel-num {
    transform: translateX(-6px);
  }

  .contacto__form {
    grid-column: 8 / -1;
    align-self: end;
    display: grid;
    gap: 34px;
  }
  .field {
    display: grid;
    gap: 6px;
  }
  .field label {
    color: var(--muted);
  }
  .field input,
  .field textarea {
    width: 100%;
    padding: 10px 0 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    font-size: var(--t-lead);
    transition: border-color 0.3s ease;
  }
  .field textarea {
    resize: vertical;
    min-height: 7.5em;
    line-height: 1.45;
  }
  .field input:focus,
  .field textarea:focus {
    outline: none;
    border-bottom-color: var(--fg);
    box-shadow: 0 1px 0 0 var(--fg);
  }
  .field textarea::placeholder {
    color: color-mix(in srgb, var(--fg) 45%, transparent);
  }
  .field [aria-invalid='true'] {
    border-bottom-color: #ffd9c4;
    box-shadow: 0 1px 0 0 #ffd9c4;
  }
  .field--trap {
    position: absolute;
    left: -9999px;
  }

  .contacto__send {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 24px 28px;
    border: 0;
    background: var(--hueso);
    color: var(--barro-cocido);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-variation-settings: 'opsz' 48, 'SOFT' 100;
    letter-spacing: -0.015em;
    text-align: left;
    transition: color 0.5s var(--ease-out);
  }
  .contacto__send::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--carbon);
    transform: translateY(101%);
    transition: transform 0.6s var(--ease-clay);
  }
  .contacto__send:hover,
  .contacto__send:focus-visible {
    color: var(--hueso);
  }
  .contacto__send:hover::before,
  .contacto__send:focus-visible::before {
    transform: none;
  }
  .contacto__send-arrow {
    transition: transform 0.5s var(--ease-out);
  }
  .contacto__send:hover .contacto__send-arrow {
    transform: translateX(6px);
  }
  .contacto__send[disabled] {
    opacity: 0.7;
    cursor: progress;
  }
  .contacto__status {
    min-height: 1.5em;
    color: var(--fg);
  }

  @media (max-width: 900px) {
    .contacto__copy,
    .contacto__form {
      grid-column: 1 / -1;
    }
    .contacto__form {
      margin-top: 64px;
    }
  }

/* === Footer ============================================================ */
  .footer {
    position: relative;
    isolation: isolate;
    background: var(--bg);
    color: var(--fg);
    padding-top: clamp(72px, 9vw, 128px);
    padding-bottom: 28px;
    overflow: clip;
  }
  .footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 32px;
    align-items: start;
  }
  .footer__claim {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
    line-height: 1;
  }
  .footer__claim em {
    font-style: italic;
    color: var(--accent);
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  }
  .footer__nav ul {
    display: grid;
    gap: 8px;
  }
  .footer__nav a {
    color: var(--muted);
    transition: color 0.3s ease;
  }
  .footer__nav a:hover {
    color: var(--fg);
  }
  .footer__mail {
    font-family: var(--f-display);
    font-size: 1.25rem;
  }

  /* El nombre, a toda anchura: lo último que queda en la retina. */
  .footer__word {
    margin-top: clamp(64px, 9vw, 140px);
    font-size: min(16.1vw, 232px);
    font-weight: 330;
    line-height: 0.8;
    letter-spacing: -0.045em;
    white-space: nowrap;
    color: var(--hueso);
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  }
  .footer__word i {
    font-weight: 280;
    color: var(--arcilla-clara);
  }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
  }
  .footer__bottom a:hover {
    color: var(--fg);
  }

  @media (max-width: 800px) {
    .footer__top {
      grid-template-columns: 1fr 1fr;
    }
    .footer__claim {
      grid-column: 1 / -1;
    }
    .footer__mail {
      grid-column: 1 / -1;
      justify-self: start;
    }
  }

/* ==========================================================================
   Específico de WordPress
   ========================================================================== */

/* Barra de administración */
.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  z-index: 100;
  background: var(--carbon);
  color: var(--hueso);
}

/* Piezas con imagen real en lugar de maqueta */
.phone__img,
.browser__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.browser__screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.pieza__foto {
  width: 88%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 60px 90px -40px rgb(10 8 6 / 0.6);
}

/* Mensaje tras enviar el formulario sin JavaScript */
.contacto__status:empty {
  display: block;
}

/* Páginas, entradas y listados */
.pagina {
  padding-top: calc(68px + clamp(64px, 10vw, 140px));
  min-height: 70vh;
}
.pagina__head {
  max-width: 980px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.pagina__meta {
  color: var(--muted);
  margin-bottom: 24px;
}
.pagina__title {
  font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem);
  text-wrap: balance;
}
.pagina__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.pagina__thumb {
  margin-bottom: clamp(48px, 7vw, 96px);
}
.pagina__thumb img {
  width: 100%;
  height: auto;
}

.prosa {
  max-width: 68ch;
  font-size: var(--t-lead);
  line-height: 1.6;
}
.prosa > * + * {
  margin-top: 1.1em;
}
.prosa h2,
.prosa h3 {
  font-family: var(--f-display);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 1.8em;
}
.prosa h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
}
.prosa h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
}
.prosa a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}
.prosa ul,
.prosa ol {
  padding-left: 1.2em;
}
.prosa ul {
  list-style: disc;
}
.prosa ol {
  list-style: decimal;
}
.prosa blockquote {
  margin: 1.6em 0;
  padding-left: 1em;
  border-left: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: 1.3em;
  font-style: italic;
}
.prosa img,
.prosa figure {
  max-width: 100%;
  height: auto;
}
.prosa figcaption {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  color: var(--muted);
  margin-top: 8px;
}
.prosa pre,
.prosa code {
  font-family: var(--f-mono);
  font-size: 0.85em;
}
.prosa pre {
  padding: 1em;
  overflow-x: auto;
  background: var(--hueso-2);
}
.alignwide {
  max-width: 1100px;
}
.alignfull {
  max-width: none;
}

.listado {
  border-top: 1px solid var(--fg);
}
.listado__item {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
}
.listado__date {
  color: var(--muted);
}
.listado__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  transition:
    color 0.3s ease,
    transform 0.6s var(--ease-out);
}
.listado__item:hover .listado__title {
  color: var(--accent);
  transform: translateX(8px);
}
.listado__excerpt {
  margin-top: 10px;
  color: var(--muted);
  max-width: 60ch;
}
.paginacion {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
}
@media (max-width: 700px) {
  .listado__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 404 */
.nf {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.nf__code {
  margin-top: 18vh;
  color: var(--accent);
}
.nf__title {
  margin-top: 20px;
  max-width: 14ch;
  font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem);
}
.nf__title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.nf__text {
  margin: 28px 0 36px;
  color: var(--muted);
}

/* Comentarios */
.comentarios {
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--fg);
  max-width: 68ch;
}
.comentarios__title {
  font-family: var(--f-display);
  font-weight: 380;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.prosa .comentarios__list,
.prosa .comentarios__list .children {
  list-style: none;
  padding: 0;
}
.comentarios__list .children {
  padding-left: 1.5em;
}
.comentarios__list .comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.comentarios__list .comment-meta {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}
.comentarios__list .comment-meta a {
  color: inherit;
}
.comment-form {
  display: grid;
  gap: 20px;
}
.comment-form label {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
.comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.comment-form-cookies-consent label {
  text-transform: none;
  letter-spacing: 0;
}
.comentarios__send {
  padding: 16px 22px;
  border: 0;
  background: var(--carbon);
  color: var(--hueso);
  font-family: var(--f-display);
  font-size: 1.15rem;
  cursor: pointer;
}
.comentarios__send:hover {
  background: var(--terracota);
}
