/* WAVE56 · dirección «Objetos» (07-10-2026). Dos voces tipográficas (Archivo estrecha y gruesa; cursiva de Newsreader),
   objetos que se tocan en lugar de rejillas iguales y la misma paleta de marca: marfil, verde y terracota. Las fuentes
   son libres (OFL) y se sirven desde el propio dominio (scripts/build-site.mjs). */
@font-face {
  font-family: "Archivo W56";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/vendor/fuentes/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("/assets/vendor/fuentes/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader W56";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/vendor/fuentes/newsreader-latin-wght-italic.woff2") format("woff2-variations"), url("/assets/vendor/fuentes/newsreader-latin-wght-italic.woff2") format("woff2");
}
:root {
  --paper: #f2efe6;
  --paper-2: #e7e2d6;
  --white: #fffdf8;
  --ink: #12302a;
  --green: #1f4a3e;
  --muted: #485b54;       /* Sobre --paper: 6.6:1. */
  --voice: #3d5049;       /* Segunda voz de los titulares. */
  --line: #d4cdbf;
  --accent: #a94126;      /* Blanco sobre terracota: 6.0:1. Solo llamada principal, pieza activa y foco. */
  --accent-hover: #85321d;
  --accent-soft: #e6a88f; /* Terracota legible sobre --ink. */
  --on-dark: #d6e1da;     /* Texto secundario sobre --ink. */
  --line-dark: #47665b;
  --sage: #cbdcd1;
  --sand: #e3c79e;
  --yellow: #eadb92;
  --shadow: 0 40px 80px -44px rgba(18, 48, 42, .45), 0 16px 32px -22px rgba(18, 48, 42, .28);
  --header-height: 84px;
  --sans: "Archivo W56", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader W56", "Iowan Old Style", Baskerville, Georgia, serif;
}
/* Familias de encargo: el mismo color en las tarjetas de servicio, la tabla y la ficha de cada pieza. */
.fam-c { --fam-bg: var(--ink); --fam-fg: #fff; --fam-borde: var(--ink); }
.fam-d { --fam-bg: var(--sage); --fam-fg: var(--ink); --fam-borde: var(--sage); }
.fam-a { --fam-bg: var(--white); --fam-fg: var(--ink); --fam-borde: #c9c1b1; }
.fam-l { --fam-bg: var(--sand); --fam-fg: var(--ink); --fam-borde: var(--sand); }
.fam-o { --fam-bg: transparent; --fam-fg: var(--ink); --fam-borde: #7d8781; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.contact :focus-visible, .method :focus-visible { outline-color: var(--yellow); }
.contact-panel :focus-visible { outline-color: var(--accent); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
/* Primera voz: Archivo estrecha y muy gruesa. */
h1, h2, .statement { font-family: var(--sans); font-stretch: 76%; font-weight: 820; letter-spacing: -.022em; }
h3 { font-weight: 700; }
h1 { margin-bottom: 28px; font-size: clamp(54px, 7.2vw, 108px); line-height: .9; }
h2 { max-width: 22ch; margin-bottom: 0; font-size: clamp(40px, 5.4vw, 80px); line-height: .92; }
h3 { font-size: 26px; line-height: 1.18; letter-spacing: -.02em; }
/* Segunda voz: una frase entera en cursiva, no una palabra suelta. */
.voz { display: block; margin-top: .14em; font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; font-size: .6em; line-height: 1.05; letter-spacing: -.01em; color: var(--voice); }
p { margin-bottom: 18px; }
svg { display: block; }
.shell { width: min(100% - 80px, 1240px); margin-inline: auto; }
.section { padding-block: 120px; }
/* Microetiquetas en minúscula, sin espaciado de rótulo de plantilla (28-09). */
.eyebrow { margin-bottom: 20px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
/* Encabezados con microetiqueta (Jev, 28-09): la etiqueta es la primera voz y el resto, la segunda. */
h2:has(> .eyebrow) { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -.01em; color: var(--voice); }
h2 .eyebrow { display: block; margin: 0 0 .1em; font-family: var(--sans); font-style: normal; font-stretch: 76%; font-weight: 820; font-size: clamp(42px, 5.2vw, 80px); line-height: .92; letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Cabecera flotante: marca y menú en píldoras sobre la página. */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 14px; pointer-events: none; }
.header-inner { position: relative; display: flex; align-items: center; min-height: calc(var(--header-height) - 14px); gap: 12px; }
.header-inner > * { pointer-events: auto; }
.wordmark { box-shadow: 0 0 0 1px rgba(255, 253, 248, .22), 0 10px 30px -18px rgba(18, 48, 42, .6); display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-stretch: 80%; font-size: 21px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.wordmark svg { width: 32px; height: 22px; fill: none; stroke: var(--accent-soft); stroke-width: 3; stroke-linecap: round; }
.desktop-nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgba(255, 253, 248, .9); box-shadow: 0 10px 30px -18px rgba(18, 48, 42, .55), inset 0 0 0 1px rgba(18, 48, 42, .07); font-size: 15px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.desktop-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; }
.desktop-nav a:hover { background: var(--paper-2); }
.desktop-nav a[aria-current] { background: var(--ink); color: var(--white); }
.header-contact { box-shadow: 0 0 0 1px rgba(255, 253, 248, .22), 0 10px 30px -18px rgba(18, 48, 42, .6); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.header-contact:hover { background: var(--green); }
.mobile-navigation { display: none; }

/* Portada: «WAVE56» gigante en contorno detrás de la W. Es decoración CSS, sin texto en el documento. */
.hero { position: relative; overflow: hidden; padding-top: 28px; }
.hero::before { content: "WAVE56"; content: "WAVE56" / ""; position: absolute; top: 4px; left: 50%; z-index: 0; transform: translateX(-50%); font-family: var(--sans); font-stretch: 125%; font-weight: 800; font-size: clamp(60px, 19.5vw, 340px); line-height: .8; letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px #b3bbb4; pointer-events: none; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); align-items: end; padding-top: clamp(96px, 15.5vw, 250px); padding-bottom: 56px; }
.hero-layout > .hero-art { align-self: start; margin-top: calc(-1 * clamp(60px, 11vw, 190px)); }
.hero h1 .voz { font-size: .5em; }
.hero-lead { max-width: 52ch; font-size: 19px; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 0 28px; background: var(--accent); color: var(--white); border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 650; transition: background 150ms ease; }
.button:hover { background: var(--accent-hover); }
.button-secondary { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.button-secondary:hover { background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.hero-person { max-width: 48ch; margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.hero-art { position: relative; min-width: 0; }
/* Botón real sobre la W 3D: al pulsarlo (o con Intro/Espacio) aparece el 56. */
.wave-avatar-play { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; max-height: 560px; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.wave-avatar-play:focus-visible { outline-offset: -12px; }
.wave-avatar { position: relative; width: 100%; aspect-ratio: 1; max-height: 560px; }
.wave-avatar__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.wave-avatar-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wave-avatar[data-avatar-ready="true"] .wave-avatar-fallback { visibility: hidden; }
/* Donde va a montarse la W 3D (escritorio con ratón, movimiento permitido y JavaScript), el SVG no se pinta mientras
   carga: la entrada dibuja la W desde cero y verla antes, quieta, era un parpadeo al recargar. Si el 3D falla o tarda
   más de 4 s, app.js o wave-avatar.js marcan data-avatar-fallo y el SVG vuelve. Sin JavaScript se ve siempre. */
@media (scripting: enabled) and (min-width: 821px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wave-avatar:not([data-avatar-ready]):not([data-avatar-fallo]) .wave-avatar-fallback { visibility: hidden; }
}
.art-caption { display: flex; min-height: 54px; gap: 10px 18px; align-items: center; justify-content: flex-end; font-size: 12px; color: var(--muted); }
/* Sin leyenda: la línea bajo la W solo aparece cuando hay control de movimiento. */
.art-caption:has(> .motion-toggle[hidden]) { display: none; }
.motion-toggle { min-height: 44px; max-width: 145px; padding: 8px 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.operating-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1.5px solid var(--ink); }
.operating-strip p { margin: 0; font-size: 14px; font-weight: 600; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading > p { max-width: 44ch; margin: 0; color: var(--muted); }
.section-note { margin: 24px 0 0; max-width: 92ch; color: var(--muted); font-size: 14px; }
.anchor-alias { position: absolute; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.details-mark { flex-shrink: 0; font-size: 25px; font-weight: 400; }
details[open] > summary .details-mark { transform: rotate(45deg); }

/* Servicios: cuatro familias; el cuadrado de color es la leyenda de la tabla de encargos. */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; padding: 34px 36px 26px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(18, 48, 42, .07); }
.service-card::before { content: ""; width: 22px; height: 22px; margin-bottom: 22px; border-radius: 6px; background: var(--fam-bg); box-shadow: inset 0 0 0 1.5px var(--fam-borde); }
.service-card h3 { max-width: 24ch; margin-bottom: 16px; font-stretch: 85%; font-size: 30px; font-weight: 780; line-height: 1.05; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:hover, .service-card:focus-within h3 a { text-decoration: underline; }
.service-card > p { color: var(--muted); }
.deliverable { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.deliverable h4 { margin-bottom: 6px; font-size: 14px; font-weight: 650; }
.deliverable p { font-size: 15px; line-height: 1.55; }
.service-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; margin-top: 4px; font-size: 15px; font-weight: 650; }
.service-link span { transition: transform 160ms ease; }
.service-card:hover .service-link span, .service-link:focus-visible span { transform: translateY(3px); }

/* Tabla de encargos. Sin JavaScript: cada familia con sus piezas en tarjetas legibles. Con JavaScript (.tabla--interactiva):
   casillas a la izquierda y la ficha de la pieza elegida a la derecha. */
.encargos { margin-top: 96px; }
.encargos-cabecera { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 32px; }
.encargos-cabecera h3 { margin: 0; font-stretch: 76%; font-size: clamp(32px, 3.6vw, 52px); font-weight: 820; line-height: .95; letter-spacing: -.02em; }
.encargos-cabecera p { max-width: 50ch; margin: 0; color: var(--muted); }
.tabla-familia { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.tabla-fam { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.35; }
.tabla-fam a { text-decoration: none; }
.tabla-fam a:hover { text-decoration: underline; }
.tabla-elementos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.elemento { padding: 16px 18px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(18, 48, 42, .07); }
.elemento h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 18px; line-height: 1.2; }
.elemento-sim { display: inline-grid; flex: none; place-items: center; width: 46px; height: 50px; border-radius: 10px; background: var(--fam-bg); color: var(--fam-fg); box-shadow: inset 0 0 0 1.5px var(--fam-borde); font-stretch: 80%; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.fam-o .elemento-sim, .elemento.fam-o .elemento-sim { box-shadow: none; outline: 1.5px dashed var(--fam-borde); outline-offset: -1.5px; }
.elemento dl { display: grid; gap: 10px; margin: 0 0 10px; }
.elemento dt { font-size: 13px; color: var(--muted); }
.elemento dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; }
.elemento > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }

.tabla--interactiva { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 300px); gap: 24px; align-items: start; }
.tabla-casillas { display: grid; gap: 4px; }
.tabla-fila { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 12px; border-top: 1px solid var(--line); }
.tabla-fila .tabla-fam { padding-top: 6px; }
.tabla-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.casilla { display: flex; flex-direction: column; justify-content: space-between; width: 88px; height: 98px; padding: 9px 8px; border-radius: 12px; background: var(--fam-bg); color: var(--fam-fg); box-shadow: inset 0 0 0 1.5px var(--fam-borde); text-align: left; }
.casilla.fam-o { box-shadow: none; outline: 1.5px dashed var(--fam-borde); outline-offset: -1.5px; }
.casilla-sim { font-stretch: 80%; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.casilla-nombre { font-size: 11.5px; line-height: 1.15; -webkit-hyphens: auto; hyphens: auto; }
.casilla:hover { transform: translateY(-3px); }
.casilla[aria-pressed="true"] { background: var(--accent); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--accent); outline: 0; transform: translateY(-5px); }
.casilla:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tabla-ficha { position: sticky; top: calc(var(--header-height) + 16px); margin: 0; padding: 28px; list-style: none; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.tabla-ficha .elemento { padding: 0; background: none; box-shadow: none; }
.tabla-ficha .elemento h4 { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 18px; font-stretch: 76%; font-size: 40px; font-weight: 820; line-height: .95; letter-spacing: -.02em; }
.tabla-ficha .elemento-sim { width: 112px; height: 120px; border-radius: 16px; font-size: 54px; }
.tabla-ficha .elemento dl { gap: 0; }
.tabla-ficha .elemento dl > div { padding-block: 12px; border-top: 1px solid var(--line); }
.tabla-ficha .elemento dd { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .casilla { transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .2s ease; }
}

.audience { margin-top: 96px; }
.audience > .eyebrow { margin-bottom: 14px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.audience-grid > div { padding: 26px 28px 4px 0; }
.audience-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.audience-grid h3 { margin-bottom: 12px; font-stretch: 80%; font-size: 28px; font-weight: 800; }
.audience-grid p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.specialties { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; margin-top: 40px; padding: 20px 24px; border-radius: 16px; outline: 1.5px dashed #7d8781; outline-offset: -1.5px; }
.specialties p { max-width: 78ch; margin: 0; color: var(--muted); font-size: 15px; }
.specialties strong { color: var(--ink); font-weight: 650; }
.specialties .text-link { font-weight: 650; font-size: 14px; }

/* Experiencia: tres ámbitos colgados de una misma línea. */
.experience { background: var(--paper-2); }
.experience-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 36px; border-top: 2px solid var(--green); }
.experience-grid article { position: relative; }
.experience-grid article::before { content: ""; position: absolute; top: -46px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--paper-2); }
.experience-grid h3 { font-size: 24px; }
.experience-grid p { color: var(--muted); }
.capabilities { margin-top: 48px; border-block: 1px solid #b9b3a5; }
.capabilities > summary { min-height: 64px; font-size: 18px; font-weight: 600; }
.capability-content { padding-block: 8px 28px; }
.capability-content > p { max-width: 80ch; }
.capability-content dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-block: 26px; }
.capability-content dt { margin-bottom: 8px; font-weight: 650; }
.capability-content dd { margin: 0; color: var(--muted); }

/* Sobre WAVE56: pausa tipográfica a dos voces. */
.statement { max-width: 15ch; margin: 0 0 72px; font-size: clamp(46px, 6.4vw, 100px); line-height: .9; text-wrap: balance; }
.statement .voz { font-size: .7em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about h2 { margin-bottom: 22px; }
.about-copy { color: var(--muted); }
.large-copy { color: var(--ink); font-size: 24px; line-height: 1.45; letter-spacing: -.01em; }
.brand-note { margin-top: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.brand-note summary { padding-block: 16px; color: var(--ink); font-weight: 600; }
.brand-note p { max-width: 64ch; }

/* Proceso: línea vertical de pasos y la ficha de encargo que gira. */
.method { background: var(--ink); color: var(--white); }
.method h2, .method h2 .voz { color: var(--white); }
.method h2 .voz { color: var(--on-dark); }
.method .section-heading > p { color: var(--on-dark); }
.method-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.method-list { display: grid; gap: 34px; margin: 0; padding: 0 0 0 46px; border-left: 2px solid var(--line-dark); list-style: none; }
.method-list li { position: relative; }
.method-list li > span { position: absolute; top: -2px; left: -64px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.method-list li:last-child > span { background: var(--accent); color: var(--white); }
.method-list h3 { margin-bottom: 8px; font-size: 24px; }
.method-list p { margin: 0; max-width: 52ch; font-size: 16px; color: var(--on-dark); }
.ficha { display: flex; flex-direction: column; align-items: center; }
.ficha-cinta { position: relative; width: 32px; height: 150px; border-radius: 3px 3px 0 0; background: var(--accent); overflow: hidden; }
.ficha-cinta::before { content: "WAVE56 WAVE56 WAVE56"; content: "WAVE56 WAVE56 WAVE56" / ""; position: absolute; inset: 0; display: grid; place-items: center; writing-mode: vertical-rl; font-stretch: 80%; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--white); white-space: nowrap; }
.ficha-cinta::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 48px; height: 16px; margin-left: -24px; }
.ficha-tarjeta { position: relative; display: grid; gap: 16px; width: min(100%, 340px); }
.ficha-tarjeta::before { content: ""; position: absolute; top: -10px; left: 50%; z-index: 2; width: 52px; height: 18px; margin-left: -26px; border-radius: 5px; background: #a9b2ac; }
.ficha-cara { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.ficha-cabecera { margin: 0; padding: 16px 22px; background: var(--green); color: var(--white); font-stretch: 80%; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.ficha-detras .ficha-cabecera { background: var(--accent); }
.ficha-titulo { margin: 22px 22px 8px; font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.05; }
.ficha-cara dl, .ficha-cara ul { margin: 0 22px 18px; padding: 0; list-style: none; }
.ficha-cara dl > div, .ficha-cara li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.ficha-cara dt { font-size: 13px; color: var(--muted); }
.ficha-cara dd { margin: 2px 0 0; }
.ficha-nota { margin: 0 22px 20px; font-size: 13px; color: var(--muted); }
.ficha-girar { min-height: 46px; margin-top: 28px; padding: 0 22px; border: 1.5px solid var(--paper); border-radius: 999px; background: transparent; color: var(--white); font-size: 15px; font-weight: 650; }
.ficha-girar:hover { background: var(--green); }
.ficha--interactiva .ficha-tarjeta { gap: 0; transform-style: preserve-3d; }
.ficha--interactiva .ficha-cara { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ficha--interactiva .ficha-detras { transform: rotateY(180deg); }
.ficha--interactiva { perspective: 1600px; }
.ficha--girada .ficha-tarjeta { transform: rotateY(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .ficha-tarjeta { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
}
/* Acreditación 3D: el lienzo sustituye a la ficha a la vista; el HTML sigue para lectores de pantalla y buscadores. */
.ficha { position: relative; }
.ficha-escena3d { width: calc(100% + 64px); height: 640px; margin: -24px 0 0 -64px; }
.ficha-escena3d canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.ficha-escena3d canvas.agarrable { cursor: grab; }
.ficha-escena3d canvas.arrastrando { cursor: grabbing; }
.ficha--3d .ficha-cinta { display: none; }
.ficha--3d .ficha-tarjeta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ficha--3d .ficha-girar { margin-top: 4px; }

/* Lo que publico: ventanas que se recorren al pasar el ratón o al llegar con el teclado. */
.ventanas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.ventana { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.ventana-barra { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px 14px 0 0; background: var(--white); border-bottom: 1px solid #ebe5d9; font-size: 12px; color: var(--muted); }
.ventana-puntos { flex: none; width: 40px; height: 9px; background: radial-gradient(circle, #d9d2c4 4px, transparent 4.5px) 0 0 / 14px 9px repeat-x; }
.ventana-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ventana-cuerpo { position: relative; display: block; height: 380px; margin-top: -18px; overflow: hidden; border-radius: 0 0 14px 14px; background: var(--white); box-shadow: var(--shadow); }
.ventana-pag { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.ventana:hover .ventana-pag, .ventana:focus-visible .ventana-pag { transform: translateY(calc(-100% + 380px)); }
@media (prefers-reduced-motion: no-preference) {
  .ventana-pag { transition: transform 4s ease-in-out; }
}
.ventana-texto { display: flex; flex-direction: column; gap: 6px; }
.ventana-texto strong { font-stretch: 85%; font-size: 22px; font-weight: 780; line-height: 1.1; }
.ventana:hover .ventana-texto strong { text-decoration: underline; }
.ventana-texto span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.mini-titulo { display: block; font-stretch: 76%; font-size: 26px; font-weight: 820; line-height: .95; letter-spacing: -.02em; }
.mini-meta { display: block; font-size: 12px; color: var(--muted); }
.mini-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-cifras > span { display: block; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 12px; }
.mini-cifras b { display: block; font-stretch: 80%; font-size: 28px; font-weight: 820; line-height: 1.05; }
.mini-barras { width: 100%; height: auto; }
.mini-barras text { font-size: 11px; fill: var(--ink); }
.mini-barras rect { fill: var(--green); }
.mini-sub { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.mini-fila { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #ebe5d9; font-size: 12px; line-height: 1.35; }
.mini-fila b { flex: none; }
.mini-linea { display: block; width: 94%; height: 8px; border-radius: 3px; background: #e7e1d5; }
.mini-linea--corta { width: 62%; }
.mini-nota { display: grid; gap: 7px; padding-block: 10px; border-top: 1px solid #ebe5d9; }
.mini-nota b { font-size: 14px; line-height: 1.3; }
.ventana-pag--hoja { gap: 0; padding: 0; font-size: 11px; }
.mini-hoja { display: grid; grid-template-columns: 40px 58px minmax(0, 1fr) 62px; align-items: center; border-bottom: 1px solid #ebe5d9; }
.mini-hoja > span { padding: 9px 7px; line-height: 1.35; }
.mini-hoja > .mini-linea { width: auto; margin: 0 7px; padding: 0; }
.mini-hoja--cabecera { background: var(--green); color: var(--white); font-weight: 700; }

/* Preguntas. */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding-block: 20px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.faq-list details p { margin: 0; max-width: 70ch; padding: 0 34px 22px 0; color: var(--muted); }

/* Contacto: bloque oscuro de esquinas redondeadas sobre el papel. */
.contact { padding-block: 40px 56px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: clamp(32px, 6vw, 80px); border-radius: 32px; background: var(--ink); color: var(--white); }
.contact h2 { max-width: 14ch; color: var(--on-dark); font-size: clamp(34px, 3.8vw, 56px); }
.contact h2 .eyebrow { color: var(--white); font-size: clamp(52px, 7vw, 108px); }
.contact-lead { margin-top: 24px; max-width: 45ch; color: var(--on-dark); font-size: 18px; }
.contact-notice { max-width: 49ch; padding: 16px 0 0; margin-top: 32px; border-top: 1px solid var(--line-dark); color: var(--on-dark); font-size: 14px; }
.contact-notice strong { display: block; margin-bottom: 6px; color: var(--white); }
.contact-panel { padding: 30px; border-radius: 20px; background: var(--paper); color: var(--ink); }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
label span { font-weight: 400; color: var(--muted); }
input, textarea, select { width: 100%; min-width: 0; padding: 11px 14px; margin: 0 0 20px; background: var(--white); border: 1.5px solid #7d9184; border-radius: 12px; font-size: 16px; }
input, select { min-height: 50px; }
textarea { display: block; resize: vertical; }
::placeholder { color: #5c7167; opacity: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Campo trampa para robots: fuera de la vista y del orden de tabulación; una persona no lo ve ni lo rellena. */
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 14px; }
/* Kept in the accessibility tree: a live region hidden while empty may not announce its first message. */
.form-status:empty { margin: 0; }
#brief-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.copy-button { padding: 10px 18px; min-height: 44px; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; }
.copy-button:hover { background: var(--sage); }

.site-footer { padding-block: 40px 24px; background: var(--ink); color: var(--white); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-top { display: grid; grid-template-columns: .6fr .9fr 1.2fr .6fr; gap: 30px; align-items: start; padding-bottom: 30px; }
.footer-top p { margin: 0; color: #d2dfd3; font-size: 14px; }
.footer-top nav { display: grid; justify-items: start; font-size: 14px; }
.footer-top nav a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; border-top: 1px solid #547267; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #547267; color: #d2dfd3; font-size: 12px; }

/* Páginas secundarias: servicios, notas, datos, legales y 404. */
.error-page { min-height: 70svh; display: grid; align-content: center; padding-block: 70px; }
.error-page h1 { font-size: 72px; }
.error-page p { max-width: 50ch; }
.error-page .button { justify-self: start; }
.error-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 15px; }
.error-links a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-hero { padding-block: 56px 64px; border-bottom: 1.5px solid var(--ink); }
.breadcrumbs { font-size: 14px; margin-bottom: 36px; }
.article-date { margin-top: 14px; font-size: 14px; color: var(--muted); }
.article-content .faq-list { margin-top: 12px; }
.detail-hero h1 { max-width: 20ch; font-size: clamp(44px, 6vw, 84px); }
.detail-hero .hero-lead { max-width: 68ch; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 80px; padding-block: 72px; align-items: start; }
.article-content { max-width: 72ch; font-size: 17px; line-height: 1.65; }
.article-content h2 { margin-block: 44px 18px; font-size: clamp(30px, 3.2vw, 40px); max-width: none; }
.article-content h2:first-child { margin-top: 0; }
.article-content ul { padding-left: 22px; }
.article-content li { margin-bottom: 12px; }
.detail-aside { position: sticky; top: calc(var(--header-height) + 16px); padding: 26px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.detail-aside h2 { font-size: 26px; margin-bottom: 16px; }
.detail-aside .button { display: flex; font-size: 15px; gap: 12px; }
.data-table { margin: 18px 0 8px; overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table caption { caption-side: top; text-align: left; padding-bottom: 8px; color: var(--muted); font-size: 14px; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-weight: 650; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-bars { display: block; width: 100%; max-width: 640px; height: auto; margin: 12px 0; }
.data-bars text { font-size: 14px; fill: var(--ink); }
.data-bars rect { fill: var(--green); }
/* Cadena del dato (página de ingeniería de datos). Sin JavaScript: lista de seis etapas. Con JavaScript: pestañas
   unidas por la onda de la marca; la etapa activa en tinta (la terracota sigue reservada a la llamada principal). */
.cadena { position: relative; margin: 24px 0 8px; }
.cadena-onda { display: none; }
.cadena-etapas { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cadena-etapa { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cadena-titulo { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 20px; }
.cadena-num { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cadena-detalle { display: grid; gap: 14px; margin: 0; }
.cadena-detalle dt { color: var(--muted); font-size: 13px; }
.cadena-detalle dd { margin: 3px 0 0; }
.cadena-mas { margin: 16px 0 0; font-size: 15px; }
.cadena--interactiva .cadena-onda { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 58px; }
.cadena-onda path { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cadena-pestanas { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cadena-pestana { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 12px 2px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.25; text-align: center; cursor: pointer; }
.cadena-pestana:hover .cadena-num { background: var(--sage); }
.cadena-pestana[aria-selected="true"] .cadena-num { background: var(--ink); color: var(--white); }
.cadena-pestana[aria-selected="true"] .cadena-nombre { font-weight: 700; }
.cadena--interactiva .cadena-etapas { margin-top: 10px; border-top: 0; }
.cadena--interactiva .cadena-etapa { padding: 22px 24px; border: 0; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(18, 48, 42, .07); }
.cadena--interactiva .cadena-detalle { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) {
  .cadena--interactiva .cadena-onda { display: none; }
  .cadena-pestanas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cadena--interactiva .cadena-etapa { padding: 18px; }
  .cadena--interactiva .cadena-detalle { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cadena-num { transition: background-color .2s ease, color .2s ease; }
}
.note-list { display: grid; gap: 22px; margin: 0 0 18px; padding: 0; list-style: none; }
.note-list li > a { font-size: 19px; font-weight: 650; }
.note-list li p { margin: 6px 0 0; color: var(--muted); }
.note-list .article-date { font-size: 14px; }
.related-links { display: grid; gap: 12px; padding: 0; list-style: none; font-size: 15px; }
.detail-aside h2 + .next-steps { margin-top: 0; }
.next-steps { display: grid; gap: 10px; margin: 0 0 32px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.detail-aside .button + h2, .detail-aside .section-note + h2 { margin-top: 32px; }
.detail-cta { display: none; }

@media (max-width: 1100px) {
  .tabla--interactiva { grid-template-columns: 1fr; }
  .tabla-ficha { position: static; margin-block: 4px 16px; }
  .ventanas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .desktop-nav a { padding: 0 12px; }
  .hero-layout { grid-template-columns: 1.2fr .85fr; }
  .experience-grid { gap: 24px; }
  .about-grid, .faq-grid, .contact-grid, .article-layout, .method-layout { gap: 40px; }
}
@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .shell { width: min(100% - 48px, 720px); }
  .desktop-nav { display: none; }
  .header-contact { margin-left: auto; }
  .mobile-navigation { display: block; }
  .mobile-navigation > summary { min-height: 48px; padding: 0 18px; gap: 8px; border-radius: 999px; background: rgba(255, 253, 248, .92); box-shadow: 0 10px 30px -18px rgba(18, 48, 42, .55), inset 0 0 0 1px rgba(18, 48, 42, .08); font-size: 15px; }
  .mobile-navigation > summary > span { font-size: 20px; }
  .mobile-navigation[open] > summary > span { transform: rotate(45deg); }
  .mobile-navigation nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; padding: 8px 20px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
  .mobile-navigation nav a { padding-block: 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
  .mobile-navigation nav a:last-child { border: 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 8px; padding-top: clamp(64px, 16vw, 120px); }
  .hero-copy { max-width: 660px; }
  .hero-layout > .hero-art { order: -1; width: min(100%, 440px); margin: 0 auto; align-self: auto; }
  .wave-avatar { height: 260px; aspect-ratio: auto; }
  .art-caption { min-height: 50px; }
  .section { padding-block: 80px; }
  .section-heading { gap: 24px; grid-template-columns: 1fr; margin-bottom: 36px; }
  .section-heading > p { max-width: 64ch; }
  .service-grid { grid-template-columns: 1fr; }
  .encargos-cabecera { grid-template-columns: 1fr; gap: 16px; }
  .tabla-familia, .tabla-fila { grid-template-columns: 1fr; gap: 10px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid > div, .audience-grid > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .audience-grid > div:last-child { border-bottom: 0; }
  .experience-grid { grid-template-columns: 1fr; gap: 34px; padding: 0 0 0 36px; border-top: 0; border-left: 2px solid var(--green); }
  .experience-grid article::before { top: 4px; left: -47px; }
  .capability-content dl, .article-layout, .method-layout { grid-template-columns: 1fr; gap: 22px; }
  .method-layout { gap: 56px; }
  .statement { margin-bottom: 48px; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  /* minmax(0, …): la dirección larga de la barra no puede ensanchar la columna (desbordaba a 360 px). */
  .ventanas { grid-template-columns: minmax(0, 1fr); }
  .contact h2 { max-width: 18ch; }
  .article-layout { padding-block: 48px; }
  .detail-aside { position: static; max-width: 480px; }
  .detail-cta { display: block; margin: 24px 0 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .wordmark { min-height: 46px; padding: 0 14px 0 11px; font-size: 18px; gap: 7px; }
  .wordmark svg { width: 26px; }
  .header-contact { min-height: 46px; padding-inline: 14px; font-size: 14px; }
  .header-contact > span { display: none; }
  .mobile-navigation > summary { min-height: 46px; padding-inline: 14px; font-size: 14px; }
  .hero { padding-top: 18px; }
  .hero-layout { padding-bottom: 28px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(46px, 13.5vw, 64px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .button, .button-secondary { min-height: 52px; padding-inline: 22px; font-size: 15px; }
  .hero-person { margin-top: 20px; font-size: 14px; }
  .hero-art { width: 100%; }
  .wave-avatar { height: clamp(140px, 38vw, 170px); }
  .operating-strip { display: grid; gap: 8px; padding-block: 18px; }
  .section { padding-block: 64px; }
  h2 { font-size: clamp(38px, 11vw, 50px); }
  h2 .eyebrow { font-size: clamp(38px, 11vw, 50px); }
  .service-card { padding: 26px 22px 18px; }
  .service-card h3 { font-size: 27px; }
  .encargos, .audience { margin-top: 64px; }
  .casilla { width: calc((100% - 16px) / 3); height: 88px; padding: 8px 10px; }
  .casilla-sim { font-size: 28px; }
  .casilla-nombre { font-size: 11px; }
  .tabla-ficha { padding: 22px; }
  .tabla-ficha .elemento h4 { font-size: 34px; }
  .tabla-ficha .elemento-sim { width: 88px; height: 96px; font-size: 44px; }
  .statement { margin-bottom: 36px; }
  .large-copy { font-size: 21px; }
  .method-list { padding-left: 40px; }
  .method-list li > span { left: -58px; }
  .ventana-cuerpo { height: 320px; }
  .ficha-escena3d { width: 100%; height: 520px; margin: 0; }
  .ventana:hover .ventana-pag, .ventana:focus-visible .ventana-pag { transform: translateY(calc(-100% + 320px)); }
  .contact { padding-block: 24px 16px; }
  .contact .shell { width: calc(100% - 16px); }
  .contact-grid { border-radius: 24px; padding: 28px 20px; }
  .contact h2 .eyebrow { font-size: clamp(46px, 13vw, 60px); }
  .contact-panel { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .detail-hero { padding-block: 32px 44px; }
  .detail-hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .breadcrumbs { margin-bottom: 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .button, .button-secondary, .header-contact, .motion-toggle, .casilla, .ficha-girar { border: 1px solid ButtonText; }
  .casilla[aria-pressed="true"] { outline: 3px solid Highlight; }
  .hero::before { content: none; }
}

@media print {
  .skip-link, .site-header, .hero-art, .hero::before, .motion-toggle, .mobile-navigation, #brief-form, .brief-result, .detail-aside .button, .ficha-girar, .ficha-cinta, .ventana-cuerpo, .ventana-barra { display: none !important; }
  body { background: #fff; color: #000; }
  .method, .site-footer, .contact-grid { background: #fff !important; color: #000 !important; }
  .method *, .site-footer *, .contact-grid * { color: #000 !important; }
  a { color: #000; }
  details > :not(summary) { display: block; }
  .tabla-ficha .elemento[hidden] { display: block !important; }
}
/* Contacto dentro del cuerpo de servicios y notas (07-10-2026). */
.contacto-cuerpo { margin-top: 56px; padding: 30px 32px; border-radius: 22px; background: var(--ink); color: var(--white); }
.article-content .contacto-cuerpo h2 { margin: 0 0 12px; color: var(--white); font-size: clamp(28px, 3vw, 38px); }
.contacto-cuerpo p { color: var(--on-dark); }
.contacto-cuerpo a:not(.button) { color: var(--white); }
.contacto-cuerpo p:last-child { margin: 22px 0 0; }
.contacto-cuerpo :focus-visible { outline-color: var(--yellow); }
@media print { .contacto-cuerpo { background: #fff !important; color: #000 !important; } .contacto-cuerpo * { color: #000 !important; } }
/* Enlace a la página de empresa en LinkedIn (07-10-2026): icono dibujado en línea, sin recursos externos. */
.footer-top nav a.footer-social { gap: 10px; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
/* En el pie, la marca es texto: sin la píldora de la cabecera (que se estiraba al ancho de la columna). */
.site-footer .wordmark { justify-self: start; min-height: 44px; padding: 0; background: none; box-shadow: none; }

/* Caja fuerte (09-10-2026, petición del titular): sellos con las pistas, página /caja-fuerte/ y ficha de dentro. Los
   sellos los crea app.js solo con el juego activo; sin JavaScript no hay sellos ni caja. */
/* La pista se abre encima del contenido, sin empujarlo. */
.pista { position: relative; display: flex; margin-top: 14px; }
.pista:empty { display: none; }
.pista--portada { justify-content: flex-end; margin-top: 4px; }
.pista-sello { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid var(--accent); border-radius: 50%; background: var(--white); color: var(--accent); box-shadow: 0 8px 16px -10px rgba(18, 48, 42, .55); }
.pista-sello svg { width: 16px; height: 16px; fill: currentColor; }
.pista-sello:hover, .pista-sello[aria-expanded="true"] { background: var(--accent); color: var(--white); }
.pista-texto { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: max-content; max-width: min(40ch, calc(100vw - 48px)); margin: 0; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--ink); color: var(--white); font-size: 14px; line-height: 1.5; text-align: left; box-shadow: var(--shadow); }
.pista--portada .pista-texto { right: 0; left: auto; }
.pista-texto strong { color: var(--accent-soft); }
.pista-texto a { color: var(--white); font-weight: 650; }
.pista-texto a:focus-visible { outline-color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .pista-sello { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s, color .2s; }
  .pista-sello:hover { transform: rotate(-14deg) scale(1.08); }
}
.caja-invitacion { margin: 24px 0 0; font-size: 15px; }
/* Aviso del reto en la portada: discreto, por debajo de las llamadas principales. */
.hero-reto { max-width: 48ch; margin: 18px 0 0; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.hero-reto-etiqueta { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; }
.hero-reto a { font-weight: 650; white-space: nowrap; }
/* Casilla de la tabla que guarda una pista. */
.casilla--pista { position: relative; }
.casilla--pista::after { content: ""; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border: 2px solid var(--white); border-radius: 50%; background: var(--accent); box-shadow: 0 2px 6px rgba(18, 48, 42, .35); } /* Sin imágenes data: (la CSP solo admite las del propio dominio). */

/* Reglas a la izquierda; caja y teclado juntos a la derecha (o debajo de las reglas en pantallas medianas). */
.caja-layout { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.7fr); gap: 48px; align-items: center; }
.caja-reglas h2 { margin-bottom: 32px; }
.caja-porque { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.2fr); gap: 48px; margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }
.caja-porque p { max-width: 64ch; color: var(--muted); }
.caja-porque p:first-child { font-size: 19px; color: var(--ink); }
.caja-beneficios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 8px 0 28px; padding: 0; list-style: none; }
.caja-beneficios li { padding-top: 14px; border-top: 2px solid var(--accent); color: var(--muted); }
.caja-beneficios strong { display: block; margin-bottom: 4px; color: var(--ink); }
.caja-reglas ol { margin: 0 0 22px; padding-left: 1.3em; }
.caja-reglas li { margin-bottom: 10px; }
.caja-reglas li::marker { color: var(--accent); font-weight: 800; }
.caja-fuerte { display: grid; gap: 18px; justify-items: center; }
.caja-fuerte:has(.caja-escena--3d) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 24px; }
.caja-escena { width: 100%; height: 0; }
.caja-escena--3d { height: clamp(300px, 34vw, 440px); }
.caja-escena canvas { touch-action: pan-y; }
.caja-formulario { display: grid; gap: 10px; width: min(100%, 360px); padding: 22px; border-radius: 22px; background: var(--green); color: var(--white); box-shadow: var(--shadow); }
.caja-formulario label { font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--on-dark); }
#caja-codigo { width: 100%; padding: 12px 16px 12px calc(16px + .45em); border: 2px solid #0b1714; border-radius: 10px; background: #0b1714; color: #9fe0b8; font: 800 34px/1.1 var(--sans); font-stretch: 80%; letter-spacing: .45em; text-align: center; }
#caja-codigo:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
#caja-codigo[aria-invalid="true"] { border-color: #ff8a6b; color: #ff8a6b; }
.caja-ayuda { margin: 0; font-size: 13px; color: var(--on-dark); }
.caja-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.caja-teclado button { min-height: 52px; border-radius: 12px; background: #2b5c4e; color: var(--white); font-size: 22px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.caja-teclado button:hover { background: #336a5a; }
.caja-teclado button:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); transform: translateY(2px); }
.caja-teclado .caja-abrir { background: var(--accent); font-size: 17px; }
.caja-teclado .caja-abrir:hover { background: var(--accent-hover); }
.caja-teclado .caja-abrir:disabled { cursor: default; opacity: .6; transform: none; }
.caja-teclado :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.caja-estado { min-height: 1.5em; margin: 4px 0 0; font-size: 14px; color: var(--white); }
.caja-noscript { color: var(--muted); }

.caja-dentro { background: var(--ink); color: var(--white); }
.caja-dentro-layout { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
/* Polaroid: marco blanco con el borde inferior ancho y el nombre escrito en él. */
.caja-perfil { position: sticky; top: calc(var(--header-height) + 32px); }
.polaroid { max-width: 330px; margin: 0 0 34px; padding: 16px 16px 0; background: #fbfaf5; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25); transform: rotate(-3deg); }
.polaroid canvas { display: block; width: 100%; height: auto; }
.polaroid figcaption { padding: 16px 4px 20px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.1; color: var(--ink); }
/* Folio: el currículum del titular como una hoja impresa, con su estructura y su azul. */
.folio { --folio-azul: #2f62b3; padding: clamp(24px, 4vw, 56px); border-radius: 3px; background: #fff; color: #1f2328; font-size: 14px; line-height: 1.45; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .3); transform: rotate(.6deg); }
.folio p { margin: 0; }
.folio strong { font-weight: 700; color: #111; }
.folio-nombre { font-stretch: 90%; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.folio-titular { margin-top: 14px !important; font-size: 15px; }
.folio-seccion h4 { display: flex; justify-content: space-between; align-items: end; margin: 30px 0 14px; padding-bottom: 5px; border-bottom: 2px solid var(--folio-azul); font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #1f2a44; }
.folio-seccion h4::after { content: ""; width: 16px; height: 16px; margin-bottom: 2px; background: var(--folio-azul); }
.folio ul { margin: 0; padding: 0; list-style: none; }
.folio-fila { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; padding-block: 12px; border-bottom: 1px dotted #b9c6de; }
.folio-fila:last-child { border-bottom: 0; }
.folio-puesto { margin-bottom: 4px !important; }
.folio-marca { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.folio-logo { display: block; width: auto; height: auto; max-width: 140px; max-height: 56px; }
.folio-logo--texto { font-weight: 700; text-align: center; }
.folio-docencia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: center; }
.folio-docencia .folio-marca { min-height: 64px; margin-bottom: 8px; }
.folio-formacion { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 20px; align-items: start; }
.folio-otros { display: grid; gap: 12px; justify-items: center; padding: 12px; border: 1px solid #b9c6de; }
.folio-otros .folio-logo { max-width: 100px; max-height: 34px; }
.folio-otros-titulo { font-weight: 800; color: #1f2a44; }
.folio-columnas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.caja-dentro .eyebrow { color: var(--accent-soft); }
.caja-datos h2 { margin-bottom: 14px; font-stretch: 78%; font-size: clamp(38px, 5.4vw, 68px); line-height: .98; }
.caja-cargo { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--on-dark); }
.caja-datos p { max-width: 60ch; color: var(--on-dark); }
.caja-acciones { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 28px; }
.caja-dentro .text-link { color: var(--white); }
#caja-nombre:focus { outline: none; }
.caja-dentro :focus-visible { outline-color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .caja-dentro:not([hidden]) { animation: caja-aparece .7s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes caja-aparece { from { transform: translateY(28px); } }
}
@media (max-width: 1180px) {
  .caja-layout, .caja-porque { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .caja-fuerte:has(.caja-escena--3d) { grid-template-columns: minmax(0, 1fr); }
  /* minmax(0, …): el folio no puede ensanchar la columna y empujar la polaroid y el nombre fuera de la pantalla. */
  .caja-dentro-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .caja-datos h2 { font-size: clamp(32px, 10vw, 44px); overflow-wrap: anywhere; }
  .folio { padding: 22px 18px; font-size: 13.5px; }
  .folio-logo { max-width: min(140px, 100%); }
  .caja-beneficios { grid-template-columns: 1fr; }
  .caja-perfil { position: static; }
  .polaroid { width: min(280px, 82%); max-width: none; margin-inline: auto; }
  .polaroid figcaption { font-size: 20px; }
  .folio { transform: none; }
  .folio-fila { grid-template-columns: 1fr; gap: 8px; }
  .folio-marca { justify-content: flex-start; }
  .folio-docencia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folio-formacion, .folio-columnas { grid-template-columns: 1fr; }
  .folio-otros { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .folio-otros-titulo { flex-basis: 100%; }
}
