/* logros.css */

.dsf { display: block; flex: none; width: 48px; height: 48px; overflow: visible; }
.dsf--falta { filter: grayscale(1) brightness(0.75); opacity: 0.45; }

.logro-estrellas { display: inline-flex; gap: 2px; }
.logro-estrellas i {
  width: 9px;
  height: 9px;
  background: rgb(255 255 255 / 0.14);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.logro-estrellas i.si { background: #e0b33a; }

.logro-barra {
  display: block;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.08);
}
.logro-barra > i {
  display: block;
  width: var(--va, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.logro-modal__logro--n1 { --metal: #d9925a; }
.logro-modal__logro--n2 { --metal: #cfd6de; }
.logro-modal__logro--n3 { --metal: #f4cd55; }


.dialogo--logro {
  width: min(560px, calc(100vw - 2 * var(--sp-5)));
  padding: var(--sp-9) var(--sp-9) var(--sp-8);
  overflow: hidden;
  text-align: center;
  border-color: color-mix(in srgb, #f4cd55 45%, var(--line-strong));
  border-radius: var(--r-tarjeta);
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, #f4cd55 16%, transparent), transparent 70%),
    var(--bg-panel);
}
.dialogo--logro-varios { width: min(860px, calc(100vw - 2 * var(--sp-5))); }
.dialogo--logro[open] { animation: logro-entra 420ms var(--ease-entrada) both; }
.dialogo--logro [style*='--o'] { animation: logro-sube 460ms calc(160ms + var(--o) * 150ms) var(--ease-entrada) both; }

.logro-modal__ante {
  margin: 0 0 var(--sp-8);
  padding: 0 44px;
  font-size: var(--fs-lg);
  font-weight: 900;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #f4cd55;
}

.logro-modal__lista {
  display: grid;
  grid-template-columns: repeat(var(--cuantos, 1), minmax(0, 1fr));
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logro-modal__logro { display: grid; justify-items: center; align-content: start; gap: var(--sp-6); }
.logro-modal__dib.dsf {
  width: 176px;
  height: 176px;
  animation: logro-dib 700ms calc(260ms + var(--o) * 150ms) var(--ease-entrada) both;
}
.logro-modal__txt { display: grid; justify-items: center; gap: var(--sp-4); }
.logro-modal__txt b { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.05; color: var(--text-primary); }
.logro-modal__dice { font-size: var(--fs-md); line-height: 1.35; color: var(--text-secondary); }
.logro-modal__nivel { display: inline-flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); }
.logro-modal__nivel .logro-estrellas i { width: 14px; height: 14px; }
.logro-modal__nivel .logro-estrellas i.si { background: var(--metal, #e0b33a); }
.logro-modal__nivel em {
  font-style: normal;
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--metal, #f4cd55);
}

.dialogo--logro-varios .logro-modal__logro {
  gap: var(--sp-5);
  padding: var(--sp-7) var(--sp-6);
  border: 1px solid color-mix(in srgb, var(--metal) 35%, transparent);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--metal) 10%, var(--ink-950)), var(--ink-950) 70%);
}
.dialogo--logro-varios .logro-modal__dib.dsf { width: 124px; height: 124px; }
.dialogo--logro-varios .logro-modal__txt { gap: var(--sp-3); }
.dialogo--logro-varios .logro-modal__txt b { font-size: var(--fs-xl); }
.dialogo--logro-varios .logro-modal__dice { font-size: var(--fs-sm); }

.logro-modal__resto { margin: var(--sp-6) 0 0; font-size: var(--fs-md); font-weight: 700; color: var(--text-secondary); }

.logro-modal__cuenta {
  display: grid;
  gap: var(--sp-4);
  width: min(100%, 520px);
  margin: var(--sp-8) auto 0;
  padding: var(--sp-6) var(--sp-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-950);
  text-align: left;
}
.logro-modal__lleva { font-size: var(--fs-md); color: var(--text-secondary); }
.logro-modal__lleva b { font-size: var(--fs-xl); font-weight: 900; color: var(--text-primary); }
.logro-modal__cuenta .logro-barra { height: 8px; border-radius: 4px; }
.logro-modal__cuenta .logro-barra > i { background: linear-gradient(90deg, #e0b33a, #f4cd55); }
.logro-modal__prox { font-size: var(--fs-sm); color: var(--text-muted); }
.logro-modal__prox b { color: var(--text-primary); }

.dialogo--logro .dialogo__pie { justify-content: center; gap: var(--sp-5); margin-top: var(--sp-8); }
.dialogo--logro .dialogo__pie .action { height: 52px; min-width: 200px; padding: 0 var(--sp-9); font-size: var(--fs-md); font-weight: 800; }

.logro-modal__papelitos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.logro-modal__papelitos i {
  position: absolute;
  top: -14px;
  left: calc(3% + var(--n) * 5.4%);
  width: 7px;
  height: 13px;
  border-radius: 1px;
  background: #f4cd55;
  opacity: 0;
  animation: logro-papelito 1900ms calc(var(--n) * 50ms + 150ms) cubic-bezier(0.3, 0.7, 0.4, 1) both;
}
.logro-modal__papelitos i:nth-child(3n) { background: var(--accent); }
.logro-modal__papelitos i:nth-child(4n) { background: #fff3b0; width: 5px; }
.logro-modal__papelitos i:nth-child(5n) { background: #cfd6de; }

@media (max-width: 560px) {
  .dialogo--logro { padding: var(--sp-8) var(--sp-6) var(--sp-6); }
  .logro-modal__ante { margin-bottom: var(--sp-6); font-size: var(--fs-md); }
  .logro-modal__dib.dsf { width: 148px; height: 148px; }
  .logro-modal__txt b { font-size: var(--fs-2xl); }
  .dialogo--logro-varios .logro-modal__lista { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .dialogo--logro-varios .logro-modal__logro {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
    text-align: left;
  }
  .dialogo--logro-varios .logro-modal__dib.dsf { width: 76px; height: 76px; }
  .dialogo--logro-varios .logro-modal__txt { justify-items: start; gap: var(--sp-2); }
  .dialogo--logro-varios .logro-modal__txt b { font-size: var(--fs-lg); }
  .dialogo--logro-varios .logro-modal__dice { font-size: var(--fs-xs); }
  .dialogo--logro-varios .logro-modal__nivel { margin-top: 0; }
  .logro-modal__cuenta { margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-6); }
  .dialogo--logro .dialogo__pie { flex-direction: column-reverse; margin-top: var(--sp-6); gap: var(--sp-4); }
  .dialogo--logro .dialogo__pie .action { width: 100%; height: 50px; }
}

@keyframes logro-entra {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes logro-sube {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes logro-dib {
  0% { transform: scale(0.3) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(4deg); opacity: 1; }
  100% { transform: none; }
}
@keyframes logro-papelito {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(520px) rotate(calc(200deg + var(--n) * 37deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .dialogo--logro[open],
  .dialogo--logro [style*='--o'],
  .logro-modal__dib.dsf { animation: none; }
  .logro-modal__papelitos { display: none; }
}


.ofi.ofisel.carclub { max-height: none; }

.desafios {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  scroll-margin-top: calc(var(--chrome-h) + var(--subnav-h, 48px) + var(--sp-4));
}
.desafios__cuerpo { display: grid; gap: var(--sp-6); }

.desafios__arriba {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: var(--sp-6);
}

.desafios__resumen {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-950);
}

.desafios__anillo {
  --grosor: 9px;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--ink-950) calc(100% - var(--grosor)), transparent calc(100% - var(--grosor) + 1px)),
    conic-gradient(#e0b33a calc(var(--va) * 1%), rgb(255 255 255 / 0.08) 0);
}
.desafios__anillo b { font-size: var(--fs-3xl); font-weight: 800; line-height: 1; color: var(--text-primary); }
.desafios__anillo span { font-size: var(--fs-xs); color: var(--text-muted); }

.desafios__fams { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.desafios__fams li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.desafios__fams b { font-variant-numeric: tabular-nums; color: var(--text-primary); }
.desafios__fams .logro-barra { grid-column: 1 / -1; height: 4px; }
.desafios__fams .logro-barra > i { background: #e0b33a; }

.desafios__ultimo {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
  color: var(--text-muted);
}
.desafios__ultimo b { color: var(--text-primary); }

.desafios__proximos { display: flex; flex-direction: column; min-width: 0; }

.desafios__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desafio {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  animation: pre-entra var(--mov-pieza) var(--mov-curva) both;
  animation-delay: calc(80ms + var(--k, 0) * 22ms);
}
.desafio > .logro-estrellas { position: absolute; top: var(--sp-4); right: var(--sp-5); }

.desafio__txt { display: grid; gap: 2px; min-width: 0; padding-right: 36px; }
.desafio__txt > b { font-size: var(--fs-md); font-weight: 700; color: var(--text-primary); }
.desafio__txt > span:not(.desafio__avance) { font-size: var(--fs-xs); line-height: 1.4; color: var(--text-muted); }

.desafio__avance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.desafio__avance em {
  font-style: normal;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.desafio__txt > .desafio__estado {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.desafio--hecho {
  border-color: color-mix(in srgb, #f4cd55 32%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, #f4cd55 10%, var(--bg-raised)), var(--bg-raised) 70%);
}
.desafio--hecho .desafio__txt > .desafio__estado { color: #f4cd55; }
.desafio__txt > .desafio__cuando {
  text-wrap: balance;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.desafio--grande {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-wash), var(--bg-raised) 60%);
}
.desafio__dib.dsf { width: 52px; height: 52px; margin: -4px 0; }
.desafio--grande .desafio__dib.dsf { width: 64px; height: 64px; }
.vitr__dib.dsf { width: 42px; height: 42px; }
.desafio--grande .desafio__txt { padding-right: 0; }
.desafio--grande .desafio__txt > b { font-size: var(--fs-lg); }
.desafio--grande .desafio__falta {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-texto) !important;
}

.desafios__barra-filtro { display: flex; justify-content: flex-start; }

.desafios__familias { display: grid; gap: var(--sp-6); }
.desafios__fam .sel-tit span { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.desafios__grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1100px) {
  .desafios__arriba { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .desafios { scroll-margin-top: calc(var(--chrome-h) * 2 + var(--subnav-h, 48px) + var(--sp-4)); }
  .desafios__top { grid-template-columns: minmax(0, 1fr); }
  .desafio--grande { grid-template-columns: auto minmax(0, 1fr); }
  .desafio--grande > .logro-estrellas { position: absolute; }
  .desafios__resumen { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .desafios__fams { width: 100%; }
}


.dsf-compartir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-height: 30px;
  margin-top: var(--sp-2);
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, #f4cd55 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #f4cd55 8%, transparent);
  color: #f4cd55;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
  cursor: pointer;
}
.dsf-compartir:hover { background: color-mix(in srgb, #f4cd55 18%, transparent); }
.dsf-compartir:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dsf-compartir .i { width: 14px; height: 14px; }
.logro-modal__compartir { justify-self: center; min-height: 36px; padding: 0 16px; font-size: var(--fs-sm); }

.dialogo--compartir {
  width: min(560px, calc(100vw - 2 * var(--sp-5)));
  max-height: calc(100dvh - 2 * var(--sp-5));
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: var(--sp-5);
}
.dialogo--compartir[open] { display: flex; }
.compartir__cerrar {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.compartir__cerrar:hover { background: var(--bg-hover); color: var(--text-primary); }
.compartir__cerrar .i { width: 18px; height: 18px; }
.compartir__titulo { margin: 0; padding-right: 40px; font-size: var(--fs-xl); font-weight: 900; color: var(--text-primary); }
.compartir__formatos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.compartir__formatos button {
  display: grid;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.compartir__formatos b { font-size: var(--fs-sm); color: var(--text-primary); }
.compartir__formatos span { font-size: var(--fs-2xs); }
.compartir__formatos button[aria-checked='true'] { border-color: var(--accent); background: var(--bg-selected); }
.compartir__vista {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 140px;
  height: clamp(140px, calc(100dvh - 470px), 340px);
}
.compartir__vista img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.5));
  transition: opacity 160ms;
}
.compartir__vista img:not([src]) { visibility: hidden; }
.compartir__armando { position: absolute; font-size: var(--fs-sm); color: var(--text-muted); opacity: 0; }
.compartir__vista.is-armando img { opacity: 0.35; }
.compartir__vista.is-armando .compartir__armando { opacity: 1; }
.compartir__texto {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--ink-950);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-secondary);
  user-select: all;
}
.compartir__botones { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.compartir__botones .action { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; font-weight: 800; }
.compartir__botones .action .i { width: 16px; height: 16px; }
.compartir__botones .action:first-child { flex-basis: 100%; }
.compartir__aviso { min-height: 1.2em; margin: calc(-1 * var(--sp-2)) 0 0; font-size: var(--fs-xs); color: var(--accent-texto, var(--accent)); text-align: center; }
.compartir__aviso:empty { display: none; }
@media (max-width: 560px) {
  .dialogo--compartir { padding: var(--sp-6) var(--sp-5) var(--sp-5); gap: var(--sp-4); }
  .compartir__vista { height: clamp(140px, calc(100dvh - 480px), 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .desafio { animation: none; }
}

.dialogo--logro { isolation: isolate; }
.logro-modal__foto {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-position: center 35%; background-size: cover;
}
.logro-modal__foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(12 14 18 / 0.7) 0%, rgb(12 14 18 / 0.86) 35%, rgb(12 14 18 / 0.95) 60%, rgb(12 14 18 / 0.97) 100%);
}

.reto-estrellas { color: var(--acido-500); letter-spacing: 1px; white-space: nowrap; }
.reto-estrellas i { font-style: normal; color: rgb(255 255 255 / 0.22); }
.reto-carrera { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--ink-900); border: 1px solid var(--line-hairline); box-shadow: inset 4px 0 0 var(--acido-500); }
.reto-carrera--fallado { box-shadow: inset 4px 0 0 var(--ink-600); }
.reto-carrera--cumplido { box-shadow: inset 4px 0 0 var(--amber-500); }
.reto-carrera__escudo { width: 48px; height: 48px; flex: none; object-fit: contain; }
.reto-carrera__txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.reto-carrera__txt .label { margin: 0; color: var(--ink-400); }
.reto-carrera__txt h3 { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; color: var(--ink-50, #fff); }
.reto-carrera__txt p { margin: 0; font-size: 13px; color: var(--ink-300); }
.reto-carrera .dpu-reto__barra { display: block; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.12); margin-top: 4px; overflow: hidden; }
.reto-carrera .dpu-reto__barra > i { display: block; height: 100%; width: var(--va, 0%); background: var(--acido-500); }
.reto-modal { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 4px; }
.reto-modal__escudo { width: 84px; height: 84px; object-fit: contain; }
.reto-modal h2 { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 800; color: #fff; }
.reto-modal .reto-estrellas { font-size: 18px; }
.reto-modal__dice { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.45; color: rgb(255 255 255 / 0.85); }
.dialogo--reto-fallado .logro-modal__ante { color: var(--ink-300); }

.en-modo-club .desafios__anillo b { font-size: var(--fs-xl); }
.en-modo-club .desafio--grande .desafio__txt > b { font-size: var(--fs-xl); }

/* repaso.css */

.dialogo.rep {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line-hairline);
  background: var(--bg-panel);
  color: var(--text-primary);
  overflow: hidden;
}
.rep__marco { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 34px); }
.rep__arriba { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 64px 14px 24px; }
.rep__eti { margin: 0; font-size: var(--fs-2xs); letter-spacing: .14em; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.rep__h { margin: 4px 0 0; font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.rep__chips { display: flex; gap: 6px; flex: none; }
.rep__chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-secondary);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.rep__chip:hover { border-color: var(--line-strong); color: var(--text-primary); }
.rep__chip[aria-pressed="true"] { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

.rep__cuerpo--cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; padding: 4px 24px 18px; min-height: 0; }
.rep__col { background: var(--bg-row); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  animation: rep-entra 420ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.rep__col--ultima { box-shadow: inset 0 0 0 2px var(--accent); }
.rep__cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rep__esc { width: 28px; height: 28px; object-fit: contain; flex: none; }
.rep__ano { font-size: var(--fs-xl); font-weight: 900; line-height: 1; }
.rep__club { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.2; overflow-wrap: anywhere; }
.rep__pts { display: grid; gap: 2px; }
.rep__pts b { font-size: clamp(var(--fs-2xl), 2.4vw, var(--fs-3xl)); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.rep__pts span { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.3; }
.rep__vs { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; min-height: 1.3em; }
.rep__vs--sube { color: var(--verde-400); }
.rep__vs--baja { color: var(--clay-400); }
.rep__vs--igual, .rep__vs--nada { color: var(--text-muted); }
.rep__datos { display: grid; gap: 10px; align-content: start; margin: 0; }
.rep__datos div { display: grid; gap: 2px; min-width: 0; }
.rep__datos dt { font-size: var(--fs-2xs); color: var(--text-muted); }
.rep__datos dd { margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.rep__datos dd small { display: block; font-weight: 500; color: var(--text-secondary); font-size: var(--fs-2xs); }
.rep__tit { font-size: var(--fs-sm); color: var(--text-muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.rep__tit b, .rep__oro { color: var(--accent); }

.rep__cuerpo--filas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; padding: 4px 24px 18px; align-content: start; min-height: 0; overflow: hidden; }
.rep__fila { background: var(--bg-row); border-radius: 12px; padding: 9px 11px; display: grid; gap: 3px; min-width: 0;
  animation: rep-entra 360ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
.rep__fila--ultima { box-shadow: inset 0 0 0 2px var(--accent); }
.rep__fcab { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rep__fesc { width: 20px; height: 20px; object-fit: contain; flex: none; }
.rep__fano { font-size: var(--fs-md); font-weight: 900; }
.rep__fvs { font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }
.rep__fpts { font-size: var(--fs-md); font-weight: 800; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep__flin { font-size: var(--fs-2xs); color: var(--text-secondary); line-height: 1.35; }
.rep__flin b { color: var(--text-primary); font-weight: 700; }
.rep__par { white-space: nowrap; }
.rep__fcuenta { display: none; font-size: var(--fs-2xs); color: var(--text-muted); }

.rep__pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px 18px; border-top: 1px solid var(--line-hairline); }
.rep__dato { font-size: var(--fs-sm); color: var(--text-secondary); }
.rep__dato b { color: var(--text-primary); }

.rep__marco:has(.rep__graf) { grid-template-rows: auto auto auto auto; }

.rep__c { animation: rep-entra 420ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + var(--j, 0) * 45ms + 80ms); }
.rep__pts span + .rep__vs { margin-top: 2px; }
.rep__club b { color: var(--text-primary); }
.rep__pts .rep__vs--sube { color: var(--verde-400); }
.rep__pts .rep__vs--baja { color: var(--clay-400); }
.rep__pts .rep__vs--igual, .rep__pts .rep__vs--nada { color: var(--text-muted); }
.rep__torneo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: -4px;
  font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--text-muted); }
.rep__torneo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep__torneo b { color: var(--text-primary); letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); white-space: nowrap; }
.rep__torneo b.rep__oro { color: var(--accent); }
.rep__racha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-2xs); color: var(--text-muted); }
.rep__racha b { color: var(--text-primary); }
.rep__racha i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.rep__copas { border-top: 1px dashed var(--line); padding-top: 8px; }
.rep__copa--oro, .rep__copa--oro b { color: var(--accent); }

.rep__copas { display: grid; gap: 3px; }
.rep__copa { font-size: var(--fs-2xs); color: var(--text-secondary); line-height: 1.3; }
.rep__copa b { color: var(--text-primary); font-weight: 700; }
.rep__bloque { display: grid; gap: 5px; }
.rep__gfila { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-2xs); color: var(--text-secondary); }
.rep__gfila b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rep__goles, .rep__barra { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / .06); }
.rep__barra { height: 6px; }
.rep__goles i, .rep__barra i { display: block; height: 100%; transform-origin: left; animation: rep-crece 700ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 320ms); }
.rep__gf, .rep__g { background: var(--verde-400); }
.rep__gc, .rep__p { background: var(--clay-400); }
.rep__e { background: var(--text-muted); }
.rep__sede { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; font-size: var(--fs-2xs); color: var(--text-secondary); }
.rep__sede b { color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep__mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; }
.rep__mini div { min-width: 0; }
.rep__mini dt { font-size: var(--fs-2xs); color: var(--text-muted); }
.rep__mini dd { margin: 0; font-size: var(--fs-xs, var(--fs-2xs)); font-weight: 700; line-height: 1.3; }
.rep__graf { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; padding: 0 24px 16px; }
.rep__panel { background: var(--bg-row); border-radius: 14px; padding: 12px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.rep__panel h3 { margin: 0; font-size: var(--fs-sm); font-weight: 800; }
.rep__panel h3 small { display: block; margin-top: 2px; font-size: var(--fs-2xs); font-weight: 500; color: var(--text-muted); }
.rep__svg { width: 100%; height: auto; max-height: 140px; display: block; overflow: visible; }
.rep__rejilla { stroke: rgb(255 255 255 / .07); }
.rep__eje { font-size: 10px; fill: var(--text-muted); }
.rep__fin { font-size: 11px; font-weight: 800; }
.rep__linea { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rep-traza 1300ms cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 200ms + 450ms); }
.rep__punto { opacity: 0; animation: rep-aparece 300ms ease forwards; animation-delay: calc(var(--i, 0) * 200ms + 1650ms); }
.rep__ley { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-2xs); color: var(--text-secondary); }
.rep__ley i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.rep__tira { display: grid; gap: 6px; }
.rep__tfila { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: center; font-size: var(--fs-2xs); color: var(--text-muted); }
.rep__tfila em { font-style: normal; }
.rep__cuad { display: grid; grid-template-columns: repeat(var(--nf), minmax(0, 1fr)); gap: 2px; }
.rep__cuad i { aspect-ratio: 1; max-height: 14px; border-radius: 2px; opacity: 0; animation: rep-aparece 160ms ease forwards; animation-delay: calc(var(--i, 0) * 110ms + var(--k, 0) * 16ms + 450ms); }
.rep__rachas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rep__rachas div { background: rgb(255 255 255 / .04); border-radius: 10px; padding: 7px 10px; }
.rep__rachas b { display: block; font-size: var(--fs-lg); font-weight: 900; line-height: 1.1; }
.rep__rachas span { font-size: var(--fs-2xs); color: var(--text-secondary); line-height: 1.25; }
@keyframes rep-crece { from { transform: scaleX(0); } }
@keyframes rep-traza { to { stroke-dashoffset: 0; } }
@keyframes rep-aparece { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rep__c, .rep__goles i, .rep__barra i { animation: none; } .rep__linea { animation: none; stroke-dashoffset: 0; } .rep__punto, .rep__cuad i { animation: none; opacity: 1; } }

@keyframes rep-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rep__col, .rep__fila { animation: none; } }

@media (max-width: 760px) {
  .dialogo.rep { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .rep__marco { max-height: calc(100dvh - 18px); }
  .rep__arriba { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 54px 8px 14px; }
  .rep__h { font-size: var(--fs-xl); }
  .rep__chips { margin-right: -40px; }
  .rep__chip { flex: 1 1 auto; padding: 0 8px; font-size: var(--fs-2xs); height: 30px; white-space: nowrap; }
  .rep__cuerpo--filas { grid-template-columns: 1fr; gap: 7px; padding: 2px 14px 10px; }
  .rep__cuerpo--filas:has(.rep__fila:nth-child(8)) { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rep__cuerpo--filas:has(.rep__fila:nth-child(8)) .rep__fila { padding: 6px 8px; }
  .rep__cuerpo--filas:has(.rep__fila:nth-child(8)) .rep__flin { display: none; }
  .rep__cuerpo--filas:has(.rep__fila:nth-child(8)) .rep__fvs { display: none; }
  .rep__cuerpo--filas:has(.rep__fila:nth-child(8)) .rep__fcuenta { display: block; }
  .rep__pie { padding: 10px 14px 14px; flex-direction: column; align-items: stretch; gap: 10px; }
  .rep__dato { text-align: center; font-size: var(--fs-2xs); }
  .rep__pie .action { justify-content: center; }
}

@media (max-height: 860px) {
  .rep__marco:has(.rep__graf) .rep__arriba { padding-top: 14px; padding-bottom: 10px; }
  .rep__marco:has(.rep__graf) .rep__col { gap: 8px; padding: 12px 12px 10px; }
  .rep__marco:has(.rep__graf) .rep__pts b { font-size: var(--fs-2xl); }
  .rep__svg { max-height: 110px; }
  .rep__rachas { display: none; }
  .rep__graf { padding-bottom: 12px; }
  .rep__marco:has(.rep__graf) .rep__pie { padding-top: 10px; padding-bottom: 12px; }
}
@media (max-height: 760px) {
  .rep__mini div:nth-child(n+3) { display: none; }
  .rep__svg { max-height: 92px; }
  .rep__tira { gap: 4px; }
  .rep__copas .rep__copa:nth-child(2) { display: none; }
}
.rep__marco:has(.rep__col:nth-child(5)) .rep__rachas { display: none; }
.rep__marco:has(.rep__col:nth-child(5)) .rep__svg { max-height: 120px; }
.rep__marco:has(.rep__col:nth-child(5)) .rep__col { gap: 8px; padding: 12px 12px 10px; }
.rep__marco:has(.rep__col:nth-child(5)) .rep__pts b { font-size: var(--fs-2xl); }
@media (max-height: 760px) {
  .rep__marco:has(.rep__col:nth-child(5)) .rep__svg { max-height: 100px; }
  .rep__marco:has(.rep__col:nth-child(5)) .rep__vs { display: none; }
}
.rep__marco:has(.rep__col:nth-child(4)) .rep__delano { display: none; }
@media (max-height: 760px) {
  .rep__marco:has(.rep__graf) .rep__panel h3 small { display: none; }
  .rep__marco:has(.rep__graf) .rep__panel { padding: 10px 14px; gap: 6px; }
  .rep__marco:has(.rep__graf) .rep__svg { max-height: 84px; }
  .rep__marco:has(.rep__graf) .rep__col { gap: 6px; }
  .rep__marco:has(.rep__graf) .rep__copas { padding-top: 6px; }
  .rep__marco:has(.rep__graf) .rep__tit { padding-top: 6px; }
  .rep__marco:has(.rep__col:nth-child(4)) .rep__racha { display: none; }
  .rep__marco:has(.rep__col:nth-child(4)) .rep__svg { max-height: 76px; }
}

.rep__torneo .rep__mov { margin-right: 8px; overflow: visible; font-weight: 800; }
.rep__mov--baja { color: var(--clay-300, #f0786a); }
.rep__mov--sube { color: var(--verde-300, var(--good)); }

/* despido.css */

dialog.despido {
  --d-fondo: #1d1e20;
  --d-tinta: #e4e4e4;
  --d-tenue: #a3a4a7;
  --d-raya: #3a3b3e;
  --d-papel: #26272a;
  box-sizing: border-box;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--d-raya);
  border-radius: 14px;
  background: var(--d-fondo);
  color: var(--d-tinta);
  font-family: var(--font-ui);
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.65);
  opacity: 0;
  transition: opacity 900ms ease, overlay 900ms allow-discrete, display 900ms allow-discrete;
}
dialog.despido[open] {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  opacity: 1;
}
@starting-style { dialog.despido[open] { opacity: 0; } }
dialog.despido::backdrop {
  background: rgb(10 10 12 / 0.72);
  backdrop-filter: grayscale(1) blur(3px);
  -webkit-backdrop-filter: grayscale(1) blur(3px);
}

.despido__escena {
  position: relative;
  overflow: hidden;
  background: #151517;
  display: grid;
  place-items: center;
}
.despido__foto {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.45) contrast(0.9);
  opacity: 0;
  transition: opacity 2400ms ease;
}
.despido__foto--on { opacity: 1; }
.despido__escena::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(20 20 22 / 0.2), rgb(20 20 22 / 0.75));
}
.despido__escudo {
  position: relative;
  z-index: 1;
  width: min(150px, 60%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: grayscale(1) brightness(1.1);
  opacity: 0.32;
  animation: despido-apaga 2600ms ease-out both;
}
@keyframes despido-apaga { from { opacity: 0.85; filter: grayscale(0.2); } to { opacity: 0.32; filter: grayscale(1) brightness(1.1); } }

.despido__cuerpo {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(18px, 3vh, 32px) clamp(18px, 3vw, 36px);
  min-width: 0;
}
.despido__cuerpo > * {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: despido-entra 950ms ease-out forwards;
  animation-delay: calc(500ms + var(--i, 0) * 260ms);
}
@keyframes despido-entra { to { opacity: 1; transform: none; } }

.despido__fecha {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-tenue);
}
.despido__titulo {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--d-tinta);
  text-wrap: balance;
}
.despido__nota {
  padding: clamp(10px, 1.6vh, 16px) 16px;
  border-left: 2px solid var(--d-raya);
  background: var(--d-papel);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cfcfd1;
}
.despido__nota p { margin: 0; }
.despido__firma {
  margin-top: 8px !important;
  font-style: italic;
  color: var(--d-tinta);
}
.despido__firma small { display: block; font-style: normal; font-size: 0.75rem; color: var(--d-tenue); }
.despido__motivo { font-size: 0.92rem; line-height: 1.5; color: var(--d-tinta); }
.despido__motivo p { margin: 0; }
.despido__lista { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 0.85rem; color: var(--d-tenue); }
.despido__lista li { display: flex; justify-content: space-between; gap: 12px; }
.despido__lista b { color: var(--d-tinta); font-weight: 600; }

.despido__numeros {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--d-raya);
  border-bottom: 1px solid var(--d-raya);
  padding: clamp(6px, 1.2vh, 12px) 0;
}
.despido__numeros div { text-align: center; min-width: 0; }
.despido__numeros dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.despido__numeros dd { margin: 2px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--d-tinta); }

.despido__prensa { margin: 0; }
.despido__prensa blockquote { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; line-height: 1.35; color: var(--d-tinta); }
.despido__prensa figcaption { margin-top: 3px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--d-tenue); }
.despido__prensa figcaption::before { content: '— '; }
.despido__vestuario { font-size: 0.88rem; line-height: 1.45; color: var(--d-tenue); }

.despido__pie { display: flex; justify-content: flex-end; padding-top: 4px; }
.despido__boton.action {
  background: #d9d9db;
  color: #18181a;
  border-color: #d9d9db;
  box-shadow: none;
}
.despido__boton.action:hover { background: #ececee; border-color: #ececee; }
.despido__boton.action:focus-visible { outline: 2px solid #ececee; outline-offset: 3px; }

@media (max-width: 760px) {
  dialog.despido { width: calc(100vw - 24px); }
  dialog.despido[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .despido__escena { height: clamp(64px, 11vh, 110px); }
  .despido__escudo { width: 64px; height: 64px; }
  .despido__cuerpo { padding: 14px 16px 16px; gap: clamp(6px, 1.2vh, 12px); }
  .despido__titulo { font-size: 1.25rem; }
  .despido__nota, .despido__motivo { font-size: 0.84rem; line-height: 1.42; }
  .despido__nota { padding: 9px 12px; }
  .despido__numeros dt { font-size: 0.62rem; letter-spacing: 0.02em; }
  .despido__numeros dd { font-size: 1.1rem; }
  .despido__prensa blockquote { font-size: 0.92rem; }
  .despido__vestuario { font-size: 0.8rem; }
  .despido__pie .action { width: 100%; justify-content: center; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .despido__escena { height: 52px; }
  .despido__escudo { width: 40px; height: 40px; }
  .despido__fecha { font-size: 0.7rem; }
  .despido__nota, .despido__motivo { font-size: 0.78rem; line-height: 1.36; }
  .despido__vestuario, .despido__prensa blockquote { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  dialog.despido { transition: none; }
  .despido__cuerpo > *, .despido__escudo { animation: none; opacity: 1; transform: none; }
  .despido__escudo { opacity: 0.32; }
}


.despido-velo {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
  backdrop-filter: grayscale(1) brightness(0.92);
  -webkit-backdrop-filter: grayscale(1) brightness(0.92);
  animation: despido-velo 1600ms ease both;
}
@keyframes despido-velo { from { opacity: 0; } to { opacity: 1; } }
html.despedido--vacio main > :not(.despido-oficina) { opacity: 0.42; pointer-events: none; user-select: none; }
html.despedido--vacio .chrome__salto,
html.despedido--vacio .history,
html.despedido--vacio [data-f="crest-club"] { opacity: 0.4; }
html.despedido--vacio .nav-primary__item[href^="previa"],
html.despedido--vacio .nav-primary__item[href^="contratacion"],
html.despedido--vacio .nav-sub__item { opacity: 0.4; }

html.despedido--vacio main.home > .portal-despa { display: none !important; }
html.despedido--vacio main.home > .despido-oficina { display: grid !important; opacity: 1; pointer-events: auto; }
html.despedido--vacio main.home { display: block; }
main.home > .despido-oficina { max-width: 920px; margin: clamp(24px, 8vh, 96px) auto 24px; }

.despido-oficina {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: center;
  margin: 0 0 var(--sp-4, 16px);
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #3a3b3e;
  border-radius: 14px;
  background: #1f2022;
  color: #e4e4e4;
  animation: despido-entra 900ms ease-out both;
}
.despido-oficina__escudo { width: clamp(64px, 9vw, 120px); aspect-ratio: 1; object-fit: contain; filter: grayscale(1); opacity: 0.3; }
.despido-oficina__texto { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.despido-oficina__texto > * { margin: 0; }
.despido-oficina .label { color: #a3a4a7; }
.despido-oficina h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.15; font-weight: 600; color: #ececee; text-wrap: balance; }
.despido-oficina p { font-size: 0.95rem; line-height: 1.5; color: #cfcfd1; max-width: 62ch; }
.despido-oficina__numeros { display: grid; grid-template-columns: repeat(5, minmax(0, 6rem)); gap: 4px; padding: 8px 0; border-top: 1px solid #3a3b3e; border-bottom: 1px solid #3a3b3e; }
.despido-oficina__numeros div { min-width: 0; }
.despido-oficina__numeros dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a3a4a7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.despido-oficina__numeros dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.despido-oficina__interino { font-size: 0.85rem !important; color: #a3a4a7 !important; font-style: italic; }
.despido-oficina__acc { display: flex; flex-wrap: wrap; gap: 10px; }
.despido-oficina__acc .action:first-child { background: #d9d9db; color: #18181a; border-color: #d9d9db; box-shadow: none; }
.despido-oficina--chico { grid-template-columns: auto minmax(0, 1fr); padding: 14px 18px; }
.despido-oficina--chico .despido-oficina__escudo { width: 48px; }
.despido-oficina--chico h2 { font-size: 1.1rem; }
@media (max-width: 600px) {
  .despido-oficina { grid-template-columns: minmax(0, 1fr); }
  .despido-oficina__escudo { width: 56px; }
  .despido-oficina--chico { grid-template-columns: auto minmax(0, 1fr); }
  .despido-oficina__numeros { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .despido-oficina__numeros dt { font-size: 0.6rem; letter-spacing: 0.02em; }
  .despido-oficina__acc .action { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .despido-oficina { animation: none; } }

/* camino-de-la-fecha.css */

.chrome .nav-sub__item[data-camino="cerrado"] {
  gap: 6px;
  color: var(--text-muted) !important;
  background: transparent !important;
  border-style: dashed !important;
  border-color: rgb(255 255 255 / 0.22) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}
@media (hover: hover) {
  .chrome .nav-sub__item[data-camino="cerrado"]:hover {
    color: var(--text-secondary) !important;
    border-color: rgb(255 255 255 / 0.4) !important;
    background: rgb(255 255 255 / 0.05) !important;
  }
}
.chrome .nav-sub__item[data-camino="cerrado"]:active { transform: scale(0.97) !important; }
.chrome .nav-sub__item[data-camino="cerrado"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.camino-candado {
  flex: none;
  width: 12px;
  height: 12px;
  color: currentColor;
  opacity: 0.9;
}

.chrome .nav-sub__item--con-aviso { gap: 7px; }
.nav-aviso {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink-950, #0b0b0c);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.nav-aviso--urge { background: var(--danger, #ff4d4f); color: #fff; }
.nav-aviso--toca { min-width: 9px; width: 9px; height: 9px; padding: 0; }
.chrome .nav-grupos__b[data-aviso] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.chrome .nav-grupos__b[aria-pressed='true'] .nav-aviso:not(.nav-aviso--urge) { background: var(--ink-950, #0b0b0c); color: var(--accent); }
.franja-club__sub--con-aviso { display: inline-flex; align-items: center; gap: 6px; }
.franja-club__sub[aria-current='page'] .nav-aviso:not(.nav-aviso--urge) { background: var(--ink-950, #0b0b0c); color: var(--accent); }
.chrome .nav-sub__item[aria-current='page'] .nav-aviso:not(.nav-aviso--urge) { background: var(--ink-950, #0b0b0c); color: var(--accent); }

.chrome .nav-sub__item.camino-cambia { animation: camino-rebote 420ms cubic-bezier(.2, .8, .2, 1); }
@keyframes camino-rebote {
  0% { transform: scale(1); }
  35% { transform: scale(1.07); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.camino-aviso {
  --camino-flecha: 50%;
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 24px));
  padding: 12px 14px 16px;
  border-radius: 14px;
  background: var(--ink-850, #171717);
  border: 1px solid var(--line, #4d4d4d);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.4);
  color: var(--text-primary, #fff);
  text-align: left;
  animation: camino-entra 220ms cubic-bezier(.2, .8, .2, 1) both;
}
.camino-aviso::before {
  content: '';
  position: absolute;
  left: calc(var(--camino-flecha) - 7px);
  width: 12px;
  height: 12px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
}
.camino-aviso[data-lado="abajo"]::before { top: -7px; border-right: 0; border-bottom: 0; }
.camino-aviso[data-lado="arriba"]::before { bottom: -7px; border-left: 0; border-top: 0; }
.camino-aviso[data-lado="suelto"]::before { display: none; }
.camino-aviso--sale { animation: camino-sale 180ms ease-in both; }

.camino-aviso > [style*="--i"] { animation: camino-pieza 260ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(60ms + var(--i) * 55ms); }

.camino-aviso__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.camino-aviso__marca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: normal;
  color: var(--accent-texto, var(--accent));
}
.camino-aviso__marca .camino-candado { width: 11px; height: 11px; }
.camino-aviso__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary, #dbdbdb);
  font-size: 20px;
  line-height: normal;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.camino-aviso__x span { display: block; line-height: 1; transform: translateY(-1px); }
@media (hover: hover) {
  .camino-aviso__x:hover { background: rgb(255 255 255 / 0.1); color: var(--text-primary, #fff); }
}
.camino-aviso__x:active { transform: scale(0.92); }
.camino-aviso__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.camino-aviso__titulo {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary, #fff);
}
.camino-aviso__texto {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary, #dbdbdb);
}
.camino-aviso__pie { display: flex; justify-content: flex-start; margin-top: 12px; }
.camino-aviso__ir.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill, 999px);
  font-size: 15px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.camino-aviso__ir .i { width: 14px; height: 14px; flex: none; }
@media (hover: hover) {
  .camino-aviso__ir.action:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / 0.35); }
}
.camino-aviso__ir.action:active { transform: translateY(1px) scale(0.98); filter: brightness(0.95); box-shadow: none; }
.camino-aviso__ir.action:focus-visible { outline: 2px solid var(--text-primary, #fff); outline-offset: 2px; }

.camino-aviso__tiempo {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  transform-origin: left center;
  animation: camino-tiempo 6500ms linear both;
}

@keyframes camino-entra { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes camino-sale { to { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@keyframes camino-pieza { from { opacity: 0; transform: translateY(6px); } }
@keyframes camino-tiempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .camino-aviso, .camino-aviso > [style*="--i"], .chrome .nav-sub__item.camino-cambia { animation: none !important; }
  .camino-aviso__tiempo { animation-name: camino-tiempo !important; }
}

.dialogo--lo-basico .dialogo__titulo { text-wrap: balance; }
.lo-basico__marca {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: normal;
  color: var(--clay-300);
}

