/* We Love Corner — front (tokens claros/oscuros en wlc-tokens.css) */

html {
  overflow-x: hidden;
}

.wlc {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--wlc-fg);
  background: var(--wlc-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

/* Switzer sin tracking forzado */
.wlc :where(p, li, dd, blockquote) {
  letter-spacing: normal;
}

.wlc-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-24);
}

/* Solo home: quitar padding-bottom de main y sección Oficina */
body.wlc--home .wlc-main {
  padding-bottom: 0;
}

body.wlc--home .wlc-office.wlc-section {
  padding-bottom: 0;
}

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

/* Header — Figma W---4.0 menú (node 123:48); en flujo por defecto, barra fija solo al scroll up (JS) */
.wlc-header-spacer {
  display: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.wlc-header {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-4) var(--space-4);
  background: var(--wlc-header-bg);
  border-bottom: 1px solid var(--wlc-line);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Barra superior: oculta al bajar, visible al subir (assets/js/wlc.js) */
html.js-wlc.wlc-header--dock .wlc-header-spacer {
  display: block;
}

html.js-wlc.wlc-header--dock .wlc-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  transform: translate3d(0, -100%, 0);
  transition: transform 0.22s var(--ease-out);
}

html.js-wlc.wlc-header--dock.wlc-header--revealed .wlc-header {
  transform: translate3d(0, 0, 0);
}

.wlc-header__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.wlc-header__end {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: var(--space-2);
  min-width: 0;
}

.wlc-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  font-size: 1.125rem;
  line-height: 1;
}

.wlc-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  color: var(--wlc-fg-muted);
  line-height: 1.2;
}

.wlc-status__dot {
  flex-shrink: 0;
  width: var(--wlc-status-bullet-size);
  height: var(--wlc-status-bullet-size);
  border-radius: 50%;
  background: var(--wlc-status-dot);
  transition: background var(--duration-fast) var(--ease-out);
}

.wlc-status--offline .wlc-status__dot {
  background: var(--wlc-status-dot-offline);
}

.wlc-header__clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1);
  margin: 0;
  font-family: var(--font-mono);
  line-height: 1.2;
  min-width: 0;
}

.wlc-header__time {
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--wlc-fg);
  font-variant-numeric: tabular-nums;
}

.wlc-header__tz {
  font-size: var(--text-xxs);
  color: var(--wlc-fg-muted);
  font-weight: 400;
}

.wlc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: var(--letter-tight);
}

.wlc-nav a {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 var(--space-2);
  line-height: 1;
  color: var(--wlc-fg);
  text-decoration: none;
}

.wlc-nav a:hover,
.wlc-nav a:focus-visible {
  background: var(--wlc-fg);
  color: var(--wlc-bg);
}

.wlc-nav a[aria-current="page"] {
  background: var(--wlc-fg);
  color: var(--wlc-bg);
}

.wlc-nav a:focus-visible {
  outline: 2px solid var(--wlc-bg);
  outline-offset: 2px;
}

.wlc-theme-toggle {
  align-self: center;
  font: inherit;
  font-family: var(--font-mono);
  color: var(--wlc-fg-muted);
  background: none;
  border: 0;
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.wlc-theme-toggle:hover {
  color: var(--wlc-fg);
}

.wlc-theme-toggle:focus-visible {
  outline: 2px solid var(--wlc-fg);
  outline-offset: 2px;
}

.wlc-theme-toggle__text {
  display: inline-flex;
  align-items: baseline;
  gap: var(--wlc-theme-toggle-label-gap);
  font-size: var(--text-xs);
}

/* Evita salto de layout: "On" (2ch) vs "Off" (3ch) en mono */
.wlc-theme-toggle [data-theme-state] {
  display: inline-block;
  min-width: 3ch;
  text-align: center;
}

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

.wlc a:hover {
  opacity: 1;
}

/* Sections */
.wlc-section {
  padding: var(--space-16) 0;
  /* border-top: 1px solid var(--wlc-line); */
}

/* .wlc-section:first-of-type { border-top: 0; } — innecesario sin border-top */

.wlc-section__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.wlc-section__head--row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.wlc-section__title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
}

.wlc-section__count {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--wlc-fg-muted);
}

.wlc-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--wlc-fg-muted);
}

/* Hero — Figma heading node 123:32 (Switzer Medium, 64px, leading none, py 160) */
.wlc-hero {
  padding: var(--wlc-hero-pad-y) 0;
}

.wlc-hero__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.wlc-hero__headline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-hero-display);
  font-size: var(--wlc-hero-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--letter-tight);
  color: var(--wlc-fg);
  white-space: normal;
}

.wlc-hero__line-mask,
.wlc-office__tagline-mask {
  display: block;
  overflow: hidden;
}

.wlc-hero__line-mask + .wlc-hero__line-mask {
  margin-top: 0;
}

.wlc-hero__line,
.wlc-office__tagline-line {
  display: block;
}

.wlc-hero__line {
  font-family: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  .wlc-hero__line-mask .wlc-hero__line {
    opacity: 0;
    transform: translate3d(0, 110%, 0);
    animation: wlc-hero-line-reveal var(--wlc-hero-line-duration) var(--ease-out) forwards;
  }

  .wlc-hero__line-mask + .wlc-hero__line-mask .wlc-hero__line {
    animation-delay: var(--wlc-hero-line-stagger);
  }

  /* Oficina: el bloque está bajo el fold; sin JS el texto se ve; con js-wlc se oculta hasta --revealed (IntersectionObserver). */
  html.js-wlc .wlc-office__tagline:not(.wlc-office__tagline--revealed) .wlc-office__tagline-mask .wlc-office__tagline-line {
    opacity: 0;
    transform: translate3d(0, 110%, 0);
    animation: none;
  }

  html.js-wlc .wlc-office__tagline.wlc-office__tagline--revealed .wlc-office__tagline-mask .wlc-office__tagline-line {
    animation: wlc-hero-line-reveal var(--wlc-hero-line-duration) var(--ease-out) forwards;
  }
}

@keyframes wlc-hero-line-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 110%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wlc-hero__line-mask .wlc-hero__line,
  .wlc-office__tagline-mask .wlc-office__tagline-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Proyectos destacados — Figma node 123:624 */
.wlc-featured.wlc-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.wlc-featured__head {
  margin-bottom: 1rem;
}

.wlc-featured__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  letter-spacing: 0;
  color: var(--wlc-fg);
}

.wlc-featured__count {
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  line-height: 1.23076923;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wlc-text-tertiary);
}

.wlc-featured__empty {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--wlc-fg-muted);
  max-width: 40ch;
}

.wlc-featured__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 900px) {
  .wlc-featured__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .wlc-card-featured {
    flex: 1 1 0;
    min-width: 0;
    max-width: 22.5rem;
  }
}

/* Tarjeta destacado — layout horizontal 56px + texto */
.wlc-card-featured {
  border-radius: 8px;
  background: var(--wlc-bg);
  border: 1px solid var(--wlc-line);
  transition: border-color var(--duration-mid) var(--ease-out);
}

.wlc-card-featured__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--wlc-card-featured-gap);
  padding: var(--wlc-card-featured-padding);
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

.wlc-card-featured__link:hover {
  opacity: 1;
}

.wlc-card-featured:hover {
  border-color: color-mix(in srgb, var(--wlc-fg) 18%, transparent);
}

.wlc-card-featured__thumb-wrap {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wlc-surface-subtle);
}

.wlc-card-featured__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wlc-card-featured__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wlc-surface-subtle);
}

.wlc-card-featured__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: flex-start;
}

.wlc-card-featured__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wlc-card-featured__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  color: var(--wlc-fg);
}

.wlc-card-featured__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wlc-card-featured__bullet {
  flex-shrink: 0;
  color: var(--wlc-status-dot);
  display: flex;
  line-height: 0;
}

.wlc-card-featured__tag-text {
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  line-height: 1.27272727;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wlc-text-tertiary);
}

.wlc-card-featured__desc {
  margin: 0;
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  line-height: 1.23076923;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wlc-text-secondary);
}

/* Work — Figma node 123:105 (lista filas) */
.wlc-work.wlc-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.wlc-work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: 1rem;
}

.wlc-work__head--page {
  margin-bottom: 1rem;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.wlc-work__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  letter-spacing: 0;
  color: var(--wlc-fg);
}

.wlc-work__count {
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  line-height: 1.23076923;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wlc-text-tertiary);
}

.wlc-work__all {
  margin-left: auto;
  font-family: var(--font-label-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wlc-text-tertiary);
}

.wlc-work__all:hover {
  color: var(--wlc-fg);
}

.wlc-work__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wlc-work__block {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

/* Atenuar header, footer y resto de secciones cuando el puntero/foco está en la fila + galería abiertas */
.wlc-header-spacer,
.wlc-header,
.wlc-footer,
.wlc-main > *,
#work .wlc-work__head,
#work .wlc-work__list .wlc-work__block,
.wlc-page--work > .wlc-page__intro,
.wlc-page--work .wlc-work__head--page,
.wlc-page--work .wlc-work__list .wlc-work__block {
  transition: opacity var(--duration-mid) var(--ease-out);
}

html.wlc-work-focus .wlc-header-spacer,
html.wlc-work-focus .wlc-header,
html.wlc-work-focus .wlc-footer,
html.wlc-work-focus .wlc-main > *:not(#work),
html.wlc-work-focus #work .wlc-work__head,
html.wlc-work-focus #work .wlc-work__list .wlc-work__block:not(.wlc-work__block--focus),
html.wlc-work-focus .wlc-page--work > .wlc-page__intro,
html.wlc-work-focus .wlc-page--work .wlc-work__head--page,
html.wlc-work-focus .wlc-page--work .wlc-work__list .wlc-work__block:not(.wlc-work__block--focus) {
  opacity: var(--wlc-work-focus-dim-opacity);
}

html.wlc-work-focus .wlc-work__block--focus {
  opacity: 1;
}

button.wlc-work-row {
  appearance: none;
  width: 100%;
  margin: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  /* border:0 anulaba el border-bottom de .wlc-work-row (menor especificidad) */
  border: none;
  border-bottom: 1px solid var(--wlc-border-default);
}

.wlc-work-panel {
  display: grid;
  grid-template-rows: 0fr;
  min-height: 0;
  overflow: hidden;
  /* Cerrado: sin altura reservada (flex + max-height; el grid 0fr solo no basta en algunos motores) */
  flex: 0 0 0;
  max-height: 0;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.wlc-work-panel.is-open {
  flex: 0 1 auto;
  max-height: none;
  grid-template-rows: 1fr;
}

.wlc-work-panel__inner {
  min-height: 0;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-16);
  box-sizing: border-box;
  background: var(--wlc-bg);
  border-bottom: 1px solid var(--wlc-border-default);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.wlc-work-panel.is-open .wlc-work-panel__inner {
  opacity: 1;
  transform: translateY(0);
}

.wlc-work-panel__gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.wlc-work-panel__gallery::-webkit-scrollbar {
  display: none;
}

.wlc-work-panel__gallery.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.wlc-work-panel__thumb {
  flex: 0 0 auto;
  display: block;
  width: var(--wlc-work-gallery-thumb-w);
  height: auto;
  max-height: var(--wlc-work-gallery-thumb-h);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  cursor: zoom-in;
}

/* Figma W 4.0 — copy + «Visitar web» encima del carrusel (node info / lead) */
.wlc-work-panel__intro {
  margin: 0 0 var(--space-8);
  max-width: 42rem;
  min-width: 0;
}

/* Figma p-regular_medium — 16 / 24, 500; tokens WLC (texto primario = --wlc-fg) */
.wlc-work-panel__intro-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: calc(24 / 16);
  color: var(--wlc-fg);
}

.wlc-work-panel__intro-actions {
  margin: 0;
}

.wlc-work-panel__intro-text + .wlc-work-panel__intro-actions {
  margin-top: 16px;
}

.wlc-work-panel__web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--wlc-work-lightbox-info-hint-h);
  padding: 0 var(--space-2);
  border: 1px solid var(--wlc-border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  text-transform: uppercase;
  color: var(--wlc-text-secondary);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.wlc-work-panel__web:hover {
  border-color: color-mix(in srgb, var(--wlc-fg) 18%, transparent);
  color: var(--wlc-fg);
}

.wlc-work-panel__web:focus-visible {
  outline: 2px solid var(--wlc-fg);
  outline-offset: 2px;
}

.wlc-work-panel__web-ico {
  margin-left: 0.25rem;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .wlc-work-panel {
    transition: none;
  }

  .wlc-work-panel__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wlc-header,
  html.js-wlc.wlc-header--dock .wlc-header,
  .wlc-footer,
  .wlc-main > *,
  #work .wlc-work__head,
  #work .wlc-work__list .wlc-work__block,
  .wlc-page--work > .wlc-page__intro,
  .wlc-page--work .wlc-work__head--page,
  .wlc-page--work .wlc-work__list .wlc-work__block {
    transition: none;
  }
}

.wlc-work__list--page {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  padding-bottom: var(--space-16);
}

.wlc-work-row {
  display: grid;
  grid-template-columns: minmax(5rem, 10rem) minmax(12rem, 25rem) minmax(0, 1fr);
  gap: var(--wlc-work-row-gap);
  align-items: center;
  min-height: var(--wlc-work-row-min-h);
  padding: var(--wlc-work-row-pad-y) var(--wlc-work-row-pad-x);
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  background: var(--wlc-bg);
  border-bottom: 1px solid var(--wlc-border-default);
  transition: background var(--duration-fast) var(--ease-out);
}

.wlc-work-row:hover {
  background: color-mix(in srgb, var(--wlc-fg) 3%, var(--wlc-bg));
}

.wlc-work-row:focus-visible {
  outline: 2px solid var(--wlc-fg);
  outline-offset: -2px;
}

.wlc-work-row--muted {
  color: var(--wlc-text-disabled);
}

.wlc-work-row--muted .wlc-work-row__title,
.wlc-work-row--muted .wlc-work-row__year,
.wlc-work-row--muted .wlc-work-row__desc,
.wlc-work-row--muted .wlc-work-row__tag-text {
  color: var(--wlc-text-disabled);
}

.wlc-work-row--muted .wlc-work-row__bullet {
  color: var(--wlc-text-disabled);
}

.wlc-work-row--muted .wlc-icon-arrow-external {
  opacity: 0.5;
}

.wlc-work-row__year {
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  line-height: 1.23076923;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wlc-text-secondary);
  white-space: nowrap;
}

.wlc-work-row--muted .wlc-work-row__year {
  color: var(--wlc-text-disabled);
}

.wlc-work-row__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.wlc-work-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  color: var(--wlc-fg);
  white-space: nowrap;
}

.wlc-work-row__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.wlc-work-row__bullet {
  flex-shrink: 0;
  color: var(--wlc-status-dot);
  display: flex;
  line-height: 0;
}

.wlc-work-row__tag-text {
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  line-height: 1.27272727;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--wlc-text-tertiary);
  white-space: nowrap;
}

.wlc-work-row__arrow {
  display: flex;
  flex-shrink: 0;
  color: var(--wlc-fg);
  line-height: 0;
}

.wlc-icon-arrow-external {
  display: block;
}

.wlc-work-row__desc {
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  line-height: 1.23076923;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--wlc-text-secondary);
  min-width: 0;
}

@media (max-width: 767px) {
  .wlc-work-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    min-height: 0;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .wlc-work-row__year {
    grid-row: 1;
  }

  .wlc-work-row__title-wrap {
    grid-row: 2;
  }

  .wlc-work-row__desc {
    grid-row: 3;
    white-space: normal;
  }

  .wlc-work-row__title {
    white-space: normal;
  }
}

/* Cards */
.wlc-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--wlc-bg-elevated);
  border: 1px solid var(--wlc-line);
  transition: border-color var(--duration-mid) var(--ease-out), transform var(--duration-mid) var(--ease-out);
}

.wlc-card:hover {
  border-color: color-mix(in srgb, var(--wlc-fg) 22%, transparent);
  transform: translateY(-2px);
}

.wlc-card__link {
  display: block;
  height: 100%;
}

.wlc-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--wlc-fg) 6%, var(--wlc-bg));
}

.wlc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wlc-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--wlc-fg) 8%, var(--wlc-bg)),
    color-mix(in srgb, var(--wlc-fg) 4%, var(--wlc-bg))
  );
}

.wlc-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.wlc-card__emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.wlc-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--wlc-fg);
  color: var(--wlc-bg);
}

.wlc-badge--hot {
  background: var(--wlc-hot);
  color: #fff;
}

.wlc-badge--live {
  background: var(--wlc-live);
  color: #0a0a0a;
}

.wlc-card__body {
  padding: var(--space-4);
}

.wlc-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.wlc-card__desc {
  font-size: var(--text-sm);
  color: var(--wlc-fg-muted);
  line-height: 1.45;
}

.wlc-card__hint {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wlc-fg-muted);
}

/* About */
.wlc-about__text {
  max-width: 65ch;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: color-mix(in srgb, var(--wlc-fg) 92%, transparent);
}

.wlc-about__text p + p {
  margin-top: var(--space-6);
}

/* Info — rejilla: texto | Servicios+Clientes | Plataformas (Figma 188:795 tipografía + ritmo) */
.wlc-info.wlc-section {
  padding-top: var(--wlc-info-pad-y);
  padding-bottom: var(--wlc-info-pad-y);
}

.wlc-info__grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: start;
}

.wlc-info__col--mid {
  display: flex;
  flex-direction: column;
  gap: var(--wlc-info-mid-stack);
}

@media (min-width: 900px) {
  .wlc-info__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 0.4fr) minmax(12rem, 0.4fr);
    column-gap: clamp(var(--space-8), 5vw, var(--space-16));
    row-gap: var(--space-12);
  }
}

/* About embebido: p-regular_medium 16 / 22, marca en bold */
.wlc-info .wlc-info__intro.wlc-about__text {
  max-width: 720px;
  font-size: 1rem;
  font-weight: 500;
  line-height: calc(22 / 16);
  color: var(--wlc-fg);
}

.wlc-info .wlc-info__intro.wlc-about__text strong {
  font-weight: 700;
}

.wlc-info .wlc-info__intro.wlc-about__text p + p {
  margin-top: calc(22 / 16 * 1em);
}

/* body-small: 14 / 16, text/tertiary; 4px hasta la lista */
.wlc-info__label {
  margin: 0 0 var(--space-1);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: calc(16 / 14);
  color: var(--wlc-text-tertiary);
  letter-spacing: var(--letter-tight);
}

/* body-regular_medium: 16 / 18; gap 8px entre ítems */
.wlc-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 1rem;
  font-weight: 500;
  line-height: calc(18 / 16);
  color: var(--wlc-fg);
}

.wlc-info-list a {
  color: inherit;
  text-decoration: none;
}

.wlc-info-list a:hover {
  opacity: 0.65;
}

.wlc-info-list__note {
  margin-left: var(--space-2);
  font-size: var(--text-sm);
  color: var(--wlc-text-tertiary);
}

/* Lists */
.wlc-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wlc-pill {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--wlc-line);
  border-radius: 999px;
  font-size: var(--text-sm);
}

.wlc-pill__note {
  margin-left: var(--space-2);
  color: var(--wlc-fg-muted);
  font-size: var(--text-xs);
}

.wlc-inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* Team */
.wlc-team__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.wlc-team__member {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.wlc-team__name {
  font-weight: 600;
}

.wlc-team__status {
  font-size: var(--text-sm);
  color: var(--wlc-fg-muted);
}

.wlc-team__member-hours {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.wlc-team__presence-dot {
  flex-shrink: 0;
  width: var(--wlc-status-bullet-size);
  height: var(--wlc-status-bullet-size);
  border-radius: 50%;
  background: var(--wlc-status-dot);
  transition: background var(--duration-fast) var(--ease-out);
}

.wlc-team__presence-dot--offline {
  background: var(--wlc-status-dot-offline);
}

.wlc-team__member-hours .wlc-team__presence-label {
  font-size: var(--text-sm);
  color: var(--wlc-fg-muted);
}

.wlc-team__member--offline .wlc-team__name,
.wlc-team__member--offline .wlc-team__status,
.wlc-team__member--offline .wlc-team__presence-label {
  color: var(--wlc-text-disabled);
}

.wlc-team__ig {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Hiring */
.wlc-hiring-section__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.wlc-office__hiring-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.wlc-hiring {
  background: var(--wlc-bg-elevated);
  border: 1px solid var(--wlc-line);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.wlc-hiring__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.wlc-hiring__text {
  max-width: 60ch;
  color: var(--wlc-fg-muted);
  margin-bottom: var(--space-4);
}

.wlc-hiring__mail {
  font-weight: 600;
}

.wlc-hiring--office.wlc-office-module {
  background: var(--wlc-surface-subtle);
  border: 0;
  padding: var(--space-4);
  border-radius: var(--wlc-office-radius);
}

/* Contact */
.wlc-contact__headline {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--letter-tight);
  max-width: 20ch;
  margin-bottom: var(--space-8);
}

.wlc-contact__row {
  margin-bottom: var(--space-6);
}

.wlc-contact__link {
  font-size: var(--text-xl);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wlc-contact__phone {
  font-size: var(--text-lg);
}

/* Office — Figma 211:4128 (módulos + CTA + galería) */
.wlc-office.wlc-section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.wlc-office__grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .wlc-office--has-gallery .wlc-office__grid {
    grid-template-columns: minmax(0, 26.25rem) minmax(0, 1fr);
    column-gap: var(--space-4);
    align-items: start;
  }
}

.wlc-office__col--content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 26.25rem;
}

.wlc-office-module {
  width: 100%;
  padding: var(--space-4);
  background: var(--wlc-surface-subtle);
  border-radius: var(--wlc-office-radius);
  box-sizing: border-box;
}

.wlc-office-module__label {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.142;
  color: var(--wlc-text-tertiary);
}

.wlc-office__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 26.25rem;
  min-height: 3.25rem;
  padding: var(--space-4);
  box-sizing: border-box;
  background: var(--wlc-office-cta);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  text-align: center;
  text-decoration: none;
  border-radius: var(--wlc-office-radius);
  transition: opacity var(--duration-fast) var(--ease-out);
}

/* Mayor especificidad que `.wlc a { color: inherit }` (claro y oscuro) */
.wlc a.wlc-office__cta {
  color: #000000;
}

.wlc a.wlc-office__cta:hover {
  opacity: 0.88;
}

.wlc-office__cta:focus-visible {
  outline: 2px solid var(--wlc-fg);
  outline-offset: 2px;
}

/* Team — layout Office */
.wlc-team__list--office {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wlc-team__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.wlc-team__user {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}

.wlc-team__avatar {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--wlc-office-radius);
  overflow: hidden;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.wlc-team__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wlc-team__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--wlc-fg) 10%, var(--wlc-bg));
  color: var(--wlc-fg-muted);
}

.wlc-team--office .wlc-team__name {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.142;
  white-space: nowrap;
}

.wlc-team__tag {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.wlc-team__bullet {
  flex-shrink: 0;
  color: var(--wlc-text-tertiary);
}

.wlc-team--office .wlc-team__status {
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -0.02em;
  color: var(--wlc-text-tertiary);
  white-space: nowrap;
}

.wlc-team__tag--hours {
  gap: var(--space-2);
}

.wlc-team__tag--hours .wlc-team__presence-label {
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -0.02em;
  color: var(--wlc-text-tertiary);
  white-space: nowrap;
}

.wlc-team__row--offline .wlc-team__name,
.wlc-team__row--offline .wlc-team__status,
.wlc-team__row--offline .wlc-team__presence-label {
  color: var(--wlc-text-disabled);
}

/* Mismo gris que .wlc-team__presence-dot--offline (con / sin horario en Panel) */
.wlc-team__row--offline .wlc-team__bullet {
  color: var(--wlc-status-dot-offline);
}

.wlc-team__row--offline .wlc-team__avatar,
.wlc-team__member--offline .wlc-team__avatar {
  opacity: 0.4;
}

/* Hiring — módulo Office */
.wlc-hiring--office .wlc-hiring__inner--office {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.wlc-hiring__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.wlc-hiring__title--office {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  margin: 0;
  color: var(--wlc-fg);
}

.wlc-hiring__text--office {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.142;
  color: var(--wlc-text-secondary);
  margin: 0;
}

.wlc-hiring__footer {
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -0.02em;
  color: var(--wlc-text-secondary);
  margin: 0;
}

.wlc-hiring__footer--link {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: inherit;
}

.wlc-hiring__footer--link:hover {
  opacity: 0.7;
}

/* Columna galería + tagline */
.wlc-office__gallery-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  width: 100%;
}

.wlc-office__tagline {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  margin: 0;
  max-width: min(100%, 18ch);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--letter-tight);
  color: var(--wlc-fg);
  text-align: right;
  pointer-events: none;
}

/* Debajo del grid de imágenes: bloque propio, texto abajo-derecha */
.wlc-office__gallery-visual > .wlc-office__tagline {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  min-height: var(--bp-sm);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  box-sizing: border-box;
  text-align: right;
  pointer-events: auto;
}

.wlc-office__tagline--static {
  position: static;
  margin-top: var(--space-8);
  max-width: 20ch;
  font-size: var(--text-xl);
  line-height: 1.1;
  text-align: left;
  pointer-events: auto;
}

.wlc-office-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
}

@media (min-width: 1100px) {
  .wlc-office-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wlc-office-gallery__item {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .wlc-office-gallery__item {
    opacity: 0;
    transition: opacity var(--duration-mid) var(--ease-out);
  }

  .wlc-office-gallery__item--cycle-active,
  .wlc-office-gallery__item:hover,
  .wlc-office-gallery__item:focus-within {
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .wlc-office-gallery__item {
      opacity: 1;
      transition: none;
    }
  }
}

.wlc-office-gallery__frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--wlc-office-radius);
  background: color-mix(in srgb, var(--wlc-fg) 6%, var(--wlc-bg));
  width: 100%;
}

.wlc-office-gallery__label {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 1;
  max-width: calc(100% - var(--space-6));
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .wlc-office-gallery__label {
  background: #1a1a1a;
  color: #f5f5f5;
}

.wlc-office-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inner pages */
.wlc-page {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-8) var(--page-pad) var(--space-24);
}

.wlc-page--work {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--space-8);
}

.wlc-page--work__intro {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  margin-bottom: var(--space-6);
}

.wlc-page__title {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  line-height: 1.05;
  margin: var(--space-4) 0;
}

.wlc-page__intro {
  font-size: var(--text-lg);
  color: var(--wlc-fg-muted);
  max-width: 50ch;
}

.wlc-page__meta {
  font-family: var(--font-mono);
  color: var(--wlc-fg-muted);
}

.wlc-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.wlc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  background: var(--wlc-fg);
  color: var(--wlc-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wlc-btn--ghost {
  background: transparent;
  color: var(--wlc-fg);
  border: 1px solid var(--wlc-line);
}

.wlc-page__cover {
  margin: var(--space-12) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--wlc-line);
}

.wlc-page__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.wlc-page__gallery {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.wlc-page__gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.wlc-prose {
  font-size: var(--text-base);
  line-height: 1.65;
}

.wlc-prose p + p {
  margin-top: var(--space-4);
}

.wlc-legal-index {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.wlc-legal-index li + li {
  margin-top: var(--space-3);
}

/* Footer — Figma 216:5926 */
.wlc-footer {
  border-top: 1px solid var(--wlc-border-default);
  padding: var(--space-8) var(--space-4);
  margin-top: var(--space-16);
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.wlc-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.wlc-footer__top--social-only {
  justify-content: flex-end;
}

.wlc-footer__locations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  row-gap: var(--space-6);
  min-width: 0;
}

.wlc-footer__loc {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: min(100%, 15rem);
}

.wlc-footer__clock {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  color: var(--wlc-text-tertiary);
  white-space: nowrap;
}

.wlc-footer__addr {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  color: var(--wlc-fg);
}

.wlc-footer__socials {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  min-width: 0;
}

.wlc-footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.125;
  color: var(--wlc-fg);
  text-decoration: none;
}

.wlc-footer__social:hover {
  opacity: 0.65;
}

.wlc-footer__social-icon {
  flex-shrink: 0;
  display: flex;
  color: currentColor;
}

.wlc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: -0.02em;
}

.wlc-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.wlc-footer__mail {
  color: var(--wlc-fg);
  text-decoration: none;
}

.wlc-footer__mail:hover {
  opacity: 0.65;
}

.wlc-footer__phone {
  margin: 0;
  color: var(--wlc-text-tertiary);
  text-decoration: none;
}

a.wlc-footer__phone:hover {
  opacity: 0.65;
}

.wlc-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  row-gap: var(--space-2);
  min-width: 0;
}

.wlc-footer__meta-link {
  color: var(--wlc-text-tertiary);
  text-decoration: none;
}

.wlc-footer__meta-link:hover {
  opacity: 0.65;
}

.wlc-footer__copy {
  margin: 0;
  color: var(--wlc-fg);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .wlc-footer__socials {
    align-items: flex-start;
    width: 100%;
  }

  .wlc-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .wlc-footer__meta {
    justify-content: flex-start;
  }
}

/* —— Lightbox galería proyecto (lista Work) —— */
html.wlc-work-lightbox-open,
html.wlc-work-lightbox-open body {
  overflow: hidden;
}

.wlc-work-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--wlc-work-lightbox-z);
  box-sizing: border-box;
}

/* Fade de apertura/cierre (contenedor completo, estilo tipo OB Studio) */
.wlc-work-lightbox:not([hidden]) {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--wlc-work-lightbox-opacity-duration) var(--wlc-work-lightbox-opacity-ease);
}

.wlc-work-lightbox:not([hidden]).wlc-work-lightbox--fade-open {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wlc-work-lightbox:not([hidden]) {
    opacity: 1;
    transition: none;
  }
}

.wlc-work-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.8);
}

.wlc-work-lightbox__dialog {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  background: transparent;
  color: var(--wlc-fg);
}

.wlc-work-lightbox__close {
  position: absolute;
  top: max(var(--space-4), env(safe-area-inset-top));
  right: max(var(--space-4), env(safe-area-inset-right));
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: var(--space-2);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.wlc-work-lightbox__close:hover {
  opacity: 0.82;
  color: #fff;
}

.wlc-work-lightbox__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
  opacity: 1;
}

.wlc-work-lightbox__grid {
  position: relative;
  flex: 1;
  display: block;
  min-height: 0;
  min-height: 100dvh;
}

.wlc-work-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  box-sizing: border-box;
  background: var(--wlc-work-lightbox-stage-bg);
}

.wlc-work-lightbox__info {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: var(--wlc-work-lightbox-info-width);
  min-width: 17.5rem;
  max-width: 26rem;
  padding: var(--wlc-work-lightbox-info-pad);
  padding-left: max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-left));
  padding-top: max(var(--wlc-work-lightbox-info-pad), calc(env(safe-area-inset-top) + var(--space-4)));
  box-sizing: border-box;
  background: transparent;
  color: var(--wlc-work-lightbox-info-text);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wlc-work-lightbox__info:focus-visible {
  outline: 2px solid var(--wlc-work-lightbox-info-text);
  outline-offset: 4px;
}

/* Solo la franja de copy (título + INFO + detalle) recibe hover; el aside sigue a altura completa para no tapar el stage */
.wlc-work-lightbox__info-hover {
  flex-shrink: 0;
  align-self: flex-start;
  width: 100%;
}

.wlc-work-lightbox__info-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 0;
  row-gap: 0.25rem;
  width: 100%;
  flex-shrink: 0;
}

.wlc-work-lightbox__info-head .wlc-work-lightbox__title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

/* Figma: 4px tras título; 16px entre contador y + INFO */
.wlc-work-lightbox__info-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: var(--wlc-work-lightbox-info-head-gap-after-count);
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  margin-left: var(--wlc-work-lightbox-info-head-gap-after-title);
}

.wlc-work-lightbox__info-count {
  margin: 0;
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.wlc-work-lightbox__info-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--wlc-work-lightbox-info-hint-h);
  padding: 0 var(--space-1);
  margin: 0;
  border: 1px solid var(--wlc-border-default);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  color: var(--wlc-work-lightbox-info-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.wlc-work-lightbox__info-hint:hover,
.wlc-work-lightbox__info-hint:focus-visible {
  border-color: color-mix(in srgb, var(--wlc-fg) 18%, transparent);
  color: var(--wlc-work-lightbox-info-text);
}

.wlc-work-lightbox__info-hover:hover .wlc-work-lightbox__info-hint,
.wlc-work-lightbox__info--has-detail:focus-within .wlc-work-lightbox__info-hint,
.wlc-work-lightbox__info--has-detail.wlc-work-lightbox__info--panel-open .wlc-work-lightbox__info-hint {
  border-color: color-mix(in srgb, var(--wlc-fg) 18%, transparent);
  color: var(--wlc-work-lightbox-info-text);
}

.wlc-work-lightbox__info-hint:focus-visible {
  border-color: var(--wlc-work-lightbox-info-text);
}

/* Detalle: sin transición; Figma — 10px entre fila título y primer bloque de copy */
.wlc-work-lightbox__info--has-detail .wlc-work-lightbox__info-detail {
  display: none;
  margin-top: 0;
}

.wlc-work-lightbox__info-hover:hover .wlc-work-lightbox__info-detail,
.wlc-work-lightbox__info--has-detail:focus-within .wlc-work-lightbox__info-detail,
.wlc-work-lightbox__info--has-detail.wlc-work-lightbox__info--panel-open .wlc-work-lightbox__info-detail {
  display: block;
  margin-top: 0.625rem;
}

/* Figma Info: gap 32px entre bloques (lead / servicios / equipo) */
.wlc-work-lightbox__info-detail-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

/* Figma «content»: gap 10px entre párrafo y enlace */
.wlc-work-lightbox__info-lead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
}

/* Figma services / team: gap 4px entre etiqueta y texto */
.wlc-work-lightbox__info-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.wlc-work-lightbox__info .wlc-work-lightbox__meta {
  margin: 0;
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  text-transform: uppercase;
  color: var(--wlc-work-lightbox-info-muted);
}

.wlc-work-lightbox__info .wlc-work-lightbox__title {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: calc(18 / 16);
  letter-spacing: -0.01em;
  color: var(--wlc-work-lightbox-info-text);
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer {
  margin: 0;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer > *:first-child {
  margin-top: 0;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer > *:last-child {
  margin-bottom: 0;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer p {
  margin: 0 0 0.55em;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer ul,
.wlc-work-lightbox__info .wlc-work-lightbox__body--writer ol {
  margin: 0 0 0.75em;
  padding-left: 1.2em;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body--writer h2,
.wlc-work-lightbox__info .wlc-work-lightbox__body--writer h3 {
  margin: 1em 0 0.5em;
  font-size: inherit;
  font-weight: 500;
}

.wlc-work-lightbox__info .wlc-work-lightbox__body {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.96);
}

.wlc-work-lightbox__info .wlc-work-lightbox__link-wrap {
  margin: 0;
}

.wlc-work-lightbox__info .wlc-work-lightbox__link {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wlc-work-lightbox__info .wlc-work-lightbox__link:hover {
  opacity: 0.88;
}

.wlc-work-lightbox__info .wlc-work-lightbox__link:visited {
  color: var(--wlc-work-lightbox-info-text);
}

.wlc-work-lightbox__info .wlc-work-lightbox__link-ico {
  margin-left: 0.25rem;
}

.wlc-work-lightbox__info .wlc-work-lightbox__label {
  margin: 0;
  font-family: var(--font-label-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  text-transform: uppercase;
  color: var(--wlc-work-lightbox-info-muted);
}

.wlc-work-lightbox__info .wlc-work-lightbox__services,
.wlc-work-lightbox__info .wlc-work-lightbox__team,
.wlc-work-lightbox__info .wlc-work-lightbox__year-value {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.96);
}

.wlc-work-lightbox__strip {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* cqw + cqh para marco 3:4 y ancho máximo respecto al carril visible. */
  container-type: size;
  container-name: wlc-lb-strip;
}

.wlc-work-lightbox__mobile-stack {
  display: none;
}

.wlc-work-lightbox__strip-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  height: 100%;
  min-height: 0;
  will-change: transform;
  transition: transform var(--wlc-work-lightbox-opacity-duration) var(--wlc-work-lightbox-opacity-ease);
  touch-action: pan-x;
  cursor: grab;
  box-sizing: border-box;
}

.wlc-work-lightbox__strip-track.wlc-work-lightbox__strip-track--dragging {
  transition: none;
  cursor: grabbing;
}

.wlc-work-lightbox__strip-track.wlc-work-lightbox__strip-track--instant {
  transition: none !important;
}

.wlc-work-lightbox__cell {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.wlc-work-lightbox__cell:active,
.wlc-work-lightbox__cell:focus {
  box-shadow: none;
}

.wlc-work-lightbox__canvas-slide {
  /* Alto viewport; ancho limitado al carril. La img usa contain y conserva ratio. */
  --wlc-lb-cap-h: min(100vh, 100dvh);
  --wlc-lb-strip-fallback: max(0px, 100vw - min(38vw, 26rem));
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: var(--wlc-lb-cap-h);
  max-height: var(--wlc-lb-cap-h);
  max-width: var(--wlc-lb-strip-fallback);
  overflow: hidden;
  opacity: var(--wlc-work-lightbox-side-opacity);
  transition: opacity var(--wlc-work-lightbox-opacity-duration) var(--wlc-work-lightbox-opacity-ease);
  will-change: opacity;
}

.wlc-work-lightbox__canvas-slide--active {
  opacity: 1;
  transition: opacity var(--wlc-work-lightbox-opacity-duration) var(--wlc-work-lightbox-opacity-ease);
}

.wlc-work-lightbox__cell:focus-visible {
  outline: 2px solid var(--wlc-fg);
  outline-offset: 2px;
}

.wlc-work-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}

.wlc-work-lightbox__strip .wlc-work-lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wlc-work-lightbox__counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0);
  z-index: 3;
  margin: 0;
  padding: var(--space-2);
  text-align: center;
  font-family: var(--font-label-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wlc-text-tertiary);
  pointer-events: none;
}

.wlc-work-lightbox--single .wlc-work-lightbox__strip {
  max-width: none;
  margin: 0;
}

.wlc-work-lightbox--single .wlc-work-lightbox__strip-track {
  width: 100%;
  min-width: 100%;
}

.wlc-work-lightbox--single .wlc-work-lightbox__canvas-slide {
  opacity: 1;
}

@supports (width: 1cqw) {
  .wlc-work-lightbox__canvas-slide {
    max-width: 100cqw;
  }
}

@media (max-width: 900px) {
  .wlc-work-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    background: var(--wlc-work-lightbox-stage-bg);
    overscroll-behavior-y: contain;
  }

  .wlc-work-lightbox__backdrop {
    background: var(--wlc-work-lightbox-stage-bg);
  }

  .wlc-work-lightbox__dialog {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wlc-work-lightbox__grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    padding-top: max(var(--space-8), calc(env(safe-area-inset-top) + 2rem));
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  }

  .wlc-work-lightbox__info {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none !important;
    padding: var(--wlc-work-lightbox-info-pad);
    padding-top: max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-top));
    padding-bottom: var(--space-6);
    padding-left: max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-left));
    padding-right: max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-right));
    overflow: visible !important;
    pointer-events: auto;
    background: transparent;
    order: 0;
  }

  .wlc-work-lightbox__info-hover {
    width: 100%;
  }

  .wlc-work-lightbox__info--has-detail .wlc-work-lightbox__info-detail,
  .wlc-work-lightbox__info-hover:hover .wlc-work-lightbox__info-detail,
  .wlc-work-lightbox__info--has-detail:focus-within .wlc-work-lightbox__info-detail,
  .wlc-work-lightbox__info--has-detail.wlc-work-lightbox__info--panel-open .wlc-work-lightbox__info-detail {
    display: block;
    margin-top: 0.625rem;
  }

  .wlc-work-lightbox__info-hint {
    display: none !important;
  }

  .wlc-work-lightbox__close {
    position: fixed;
    top: max(var(--space-4), env(safe-area-inset-top));
    right: max(var(--space-4), env(safe-area-inset-right));
    z-index: 8;
  }

  .wlc-work-lightbox__stage {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    order: 1;
  }

  .wlc-work-lightbox__strip {
    display: none;
  }

  .wlc-work-lightbox__mobile-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
    overflow: visible;
    padding: 0 max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-right)) 0
      max(var(--wlc-work-lightbox-info-pad), env(safe-area-inset-left));
    box-sizing: border-box;
  }

  .wlc-work-lightbox__mobile-slide {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    opacity: 1;
    transition: none;
  }

  .wlc-work-lightbox__mobile-slide .wlc-work-lightbox__mobile-img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin: 0;
  }

  .wlc-work-lightbox__cell {
    min-height: 0;
    height: 100%;
  }

  .wlc-work-lightbox__img {
    min-height: 0;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wlc-work-lightbox__cell {
    transition: none;
  }

  .wlc-work-lightbox__strip-track {
    transition: none;
  }

  .wlc-work-lightbox__canvas-slide {
    transition: none;
    will-change: auto;
  }

  .wlc-work-lightbox__mobile-slide {
    transition: none;
  }
}

/* ——— Intro Reel (PiP home) ——— */
.wlc-intro-reel {
  position: fixed;
  z-index: 10050;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  box-sizing: border-box;
  pointer-events: none;
}

@media (min-width: 768px) {
  .wlc-intro-reel {
    left: auto;
    right: var(--space-24);
    transform: translateY(-50%);
  }
}

/* Capa interna: animación de salida (succión hacia abajo / Info) sin tocar el transform del root al arrastrar */
.wlc-intro-reel__motion {
  display: block;
  transform-origin: 50% 85%;
}

.wlc-intro-reel--closing {
  pointer-events: none;
}

.wlc-intro-reel--closing .wlc-intro-reel__chrome {
  pointer-events: none;
}

.wlc-intro-reel--closing .wlc-intro-reel__motion {
  animation: wlc-intro-reel-suction 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes wlc-intro-reel-suction {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  62% {
    opacity: 0.88;
    transform: translateY(28vh) scale(0.09);
  }
  80% {
    opacity: 0.45;
    transform: translateY(34vh) scale(0.19);
  }
  100% {
    opacity: 0;
    transform: translateY(40vh) scale(0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wlc-intro-reel--closing .wlc-intro-reel__motion {
    animation: none;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

.wlc-intro-reel__chrome {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.wlc-intro-reel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--wlc-work-lightbox-info-hint-h);
  padding: 0 var(--space-2);
  border: 1px solid var(--wlc-border-default);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  font-family: var(--font-label-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: calc(14 / 11);
  margin: 0;
  cursor: pointer;
  color: var(--wlc-work-lightbox-info-muted);
  background: transparent;
  align-self: flex-end;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: var(--space-1);
}

.wlc-intro-reel__close:hover {
  border-color: color-mix(in srgb, var(--wlc-fg) 18%, transparent);
  color: var(--wlc-work-lightbox-info-text);
}

.wlc-intro-reel__close:focus-visible {
  border-color: var(--wlc-work-lightbox-info-text);
  color: var(--wlc-work-lightbox-info-text);
  outline: 2px solid var(--wlc-work-lightbox-info-text);
  outline-offset: 3px;
}

/* ~75–78% alto viewport cuando cabe el ancho; vertical 9:16 (ref. captura) */
.wlc-intro-reel__shell {
  position: relative;
  width: min(calc(100vw - 24px), calc(78vh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--wlc-fg) 18%, transparent),
    0 2px 8px color-mix(in srgb, var(--wlc-fg) 8%, transparent);
  background: var(--wlc-line);
}

.wlc-intro-reel__mute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: color-mix(in srgb, var(--wlc-bg) 45%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px color-mix(in srgb, #000 28%, transparent);
  opacity: 1;
  transition: opacity 0.2s ease, background 0.15s ease;
}

/* Ratón: el control solo se ve al pasar por el vídeo; táctil/teclado: siempre usable */
@media (hover: hover) and (pointer: fine) {
  .wlc-intro-reel__mute {
    opacity: 0;
    pointer-events: none;
  }

  .wlc-intro-reel__shell:hover .wlc-intro-reel__mute {
    opacity: 1;
    pointer-events: auto;
  }
}

.wlc-intro-reel__mute:hover {
  background: color-mix(in srgb, var(--wlc-bg) 58%, transparent);
}

.wlc-intro-reel__mute:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  opacity: 1;
  pointer-events: auto;
}

.wlc-intro-reel__mute-icons {
  display: grid;
  place-items: center;
}

.wlc-intro-reel__mute-svg {
  grid-area: 1 / 1;
  display: none;
}

.wlc-intro-reel__mute-svg.is-visible {
  display: block;
}

.wlc-intro-reel--dragging .wlc-intro-reel__shell {
  cursor: grabbing;
  user-select: none;
}

.wlc-intro-reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
