@font-face {
  font-family: Campo;
  src: url("./fonts/RobotoCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Lectura;
  src: url("./fonts/AnonymousPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Marca;
  src: url("./fonts/Montserrat-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

.hf-ficha {
  --hf-fondo: #141715;
  --hf-panel: #232724;
  --hf-linea: #414640;
  --hf-suave: #b4b9ae;
  --hf-marfil: #f2f3e9;
  --hf-citron: #d8f655;
  --hf-tinta: #171d13;
  --hf-alerta: #ffb68c;
  background: var(--hf-fondo);
  color: var(--hf-marfil);
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(30px, 4.55vw, 70px) 35px;
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.hf-ficha, .hf-ficha * { box-sizing: border-box; }
.hf-ficha h1, .hf-ficha h2, .hf-ficha dl, .hf-ficha dd, .hf-ficha p { margin: 0; }
.hf-ficha h1, .hf-ficha h2 { color: inherit; }
.hf-ficha a { color: inherit; text-decoration: none; }
.hf-ficha :focus-visible { outline: 2px solid var(--hf-citron); outline-offset: 4px; }
.hf-ficha .hf-accion:focus-visible { outline-offset: -5px; outline-color: var(--hf-tinta); }
.hf-enlace-titulo:hover, .hf-enlace-titulo:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.hf-ficha .hf-numero { font-family: Lectura, Menlo, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-movil { display: none; }

.hf-equipo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 23px;
  padding: 22px 0 23px;
}
.hf-equipo h1 { font: 700 clamp(44px, 4vw, 64px)/1.05 Campo, "Arial Narrow", sans-serif; letter-spacing: -.025em; }
.hf-separador { color: #89907f; font-size: .77em; vertical-align: 7%; }
.hf-obra { border-left: 1px solid #53594e; padding-left: 23px; color: #c9cdc0; font-size: 17px; font-weight: 500; }
.hf-estado { display: flex; align-items: center; align-self: center; gap: 9px; color: var(--hf-citron); font-size: 15px; font-weight: 600; }
.hf-estado i { position: relative; display: block; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; }
.hf-estado i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.hf-ficha .hf-detenido, .hf-ficha .hf-atrasado { color: var(--hf-alerta); }

.hf-principal { display: grid; grid-template-columns: minmax(0, 1.76fr) minmax(0, 1fr); gap: clamp(26px, 3vw, 50px); }
.hf-sin-finanzas { display: block; max-width: 940px; }
.hf-instrumento {
  position: relative;
  display: grid;
  grid-template: "dial servicio" 1fr "dial accion" auto / 1.09fr .91fr;
  min-width: 0;
  height: 332px;
  padding: 6px;
  border: 1px solid #51574b;
  background: var(--hf-panel);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.hf-cara {
  grid-area: dial;
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  background: var(--hf-citron);
  color: var(--hf-tinta);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}
.hf-rotulo { position: absolute; top: 20px; left: 18px; font: 700 14px/1 Lectura, Menlo, monospace; text-transform: uppercase; letter-spacing: 1px; }
.hf-rayas { position: absolute; right: 25px; top: 21px; width: 38px; height: 9px; background: repeating-linear-gradient(-55deg, transparent 0 4px, #344120 4px 6px); }
.hf-dial { position: absolute; width: 330px; height: 192px; left: 50%; top: 59px; transform: translateX(-50%) scale(1.32); transform-origin: top center; }
.hf-marca, .hf-aguja { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--giro)); }
.hf-marca { display: block; width: 2px; height: 6px; background: #61752b; }
.hf-mayor { width: 3px; height: 14px; background: var(--hf-tinta); }
.hf-aro { position: absolute; left: 53px; top: 15px; width: 224px; height: 224px; border: 1px solid #60752f; border-radius: 50%; clip-path: polygon(0 0, 100% 0, 100% 75%, 87% 70%, 50% 50%, 13% 70%, 0 75%); }
.hf-aguja { width: 12px; height: 15px; background: var(--hf-tinta); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hf-lectura { position: absolute; top: 76px; left: 0; right: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding-right: 4px; }
.hf-lectura strong { font: 700 66px/.91 Lectura, Menlo, monospace; letter-spacing: -.055em; }
.hf-lectura-larga strong { font-size: 52px; }
.hf-lectura span { font: 700 26px/1 Campo, "Arial Narrow", sans-serif; letter-spacing: -.03em; }
.hf-extremo { position: absolute; top: 157px; font: 700 11px/1 Lectura, Menlo, monospace; letter-spacing: .4px; }
.hf-min { left: 75px; }
.hf-max { right: 82px; }
.hf-centro { position: absolute; top: 144px; left: 128px; width: 74px; height: 1px; background: #849a41; }
.hf-centro::after { content: ""; position: absolute; left: 35px; top: -2px; width: 5px; height: 5px; background: var(--hf-tinta); border-radius: 50%; }

.hf-servicio { grid-area: servicio; display: flex; flex-direction: column; min-width: 0; padding: 19px clamp(15px, 1.65vw, 26px) 0; }
.hf-ficha .hf-tipo { color: var(--hf-suave); font: 700 13px/1.2 Campo, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .095em; }
.hf-vence { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 10px 0 0; padding-bottom: 19px; border-bottom: 1px solid #4e544a; }
.hf-vence strong { font: 700 41px/.98 Campo, "Arial Narrow", sans-serif; letter-spacing: -.04em; }
.hf-vence .hf-numero { font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.02em; white-space: nowrap; }
.hf-restante { margin: auto 0; color: var(--hf-citron); }
.hf-restante > span { display: block; margin-bottom: 3px; color: var(--hf-suave); font-size: 15px; }
.hf-restante strong { font: 700 clamp(45px, 4.6vw, 72px)/.95 Lectura, Menlo, monospace; letter-spacing: -.08em; }
.hf-restante small { font-size: .59em; letter-spacing: -.02em; }
.hf-ficha .hf-accion {
  grid-area: accion;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin: 0 clamp(15px, 1.65vw, 26px) 16px;
  padding: 0 16px;
  background: var(--hf-marfil);
  color: var(--hf-fondo);
  font: 700 20px/1 Campo, "Arial Narrow", sans-serif;
}
.hf-ficha .hf-accion:hover { background: var(--hf-citron); }
.hf-flecha { position: relative; width: 22px; height: 12px; }
.hf-flecha::before { content: ""; position: absolute; right: 1px; top: 5px; width: 19px; height: 2px; background: currentColor; }
.hf-flecha::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg); }

.hf-finanzas { display: flex; flex-direction: column; min-width: 0; padding: 0 0 4px; }
.hf-titular { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 0 12px; border-bottom: 1px solid #777c72; }
.hf-titular h2, .hf-reportes h2 { font: 700 32px/1.05 Campo, "Arial Narrow", sans-serif; letter-spacing: -.02em; }
.hf-divisa { color: var(--hf-suave); font-size: 14px; }
.hf-titular .hf-enlace-titulo::after, .hf-reportes .hf-enlace-titulo::after {
  display: inline-block;
  content: "";
  width: .3em;
  height: .3em;
  margin-left: .24em;
  vertical-align: .18em;
  border-block-start: 1.5px solid var(--hf-suave);
  border-inline-end: 1.5px solid var(--hf-suave);
  transform: rotate(45deg);
}
.hf-finanzas dl { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 0 7px; }
.hf-renglon { display: grid; grid-template-columns: auto 1fr; align-items: baseline; row-gap: 8px; }
.hf-renglon dt { color: #dce0d4; font-size: 16px; }
.hf-renglon dd { justify-self: end; font: 700 25px/1 Lectura, Menlo, monospace; letter-spacing: -.015em; }
.hf-renglon::after { content: ""; grid-column: 1 / -1; height: 3px; background: linear-gradient(to right, #a4ac97 var(--proporcion), #3c423a var(--proporcion)); }
.hf-costo::after { background: linear-gradient(to right, #7f8974 var(--proporcion), #3c423a var(--proporcion)); }
.hf-total { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 17px; border-top: 1px solid #646b5c; color: var(--hf-citron); }
.hf-total dt { font: 700 14px/1.1 Campo, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .09em; }
.hf-total dd { font: 700 clamp(38px, 3.5vw, 52px)/1 Lectura, Menlo, monospace; letter-spacing: -.04em; }

.hf-sin-ingreso .hf-renglon::after { visibility: hidden; }
.hf-sin-ingreso .hf-total { color: var(--hf-suave); }

.hf-reportes { margin-top: 35px; padding-top: 20px; border-top: 1px solid #60665b; }
.hf-reportes h2 { margin: 0 0 15px; font-size: 31px; }
.hf-reportes table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; color: inherit; }
.hf-col-fecha { width: 22%; }
.hf-col-horometro { width: 32%; }
.hf-col-motor { width: 26%; }
.hf-col-operario { width: 20%; }
.hf-reportes th { height: 31px; padding: 0 1px; border-bottom: 1px solid #5d6558; color: var(--hf-suave); text-align: left; font: 700 13px Campo, "Arial Narrow", sans-serif; letter-spacing: .085em; text-transform: uppercase; }
.hf-reportes tbody tr { position: relative; border-bottom: 1px solid #393e37; }
.hf-reportes tbody tr:is(:hover, :focus-within) { background: var(--hf-panel); color: var(--hf-citron); }
.hf-reportes td { height: 46px; padding: 0 1px; font-size: 18px; }
.hf-reportes td:first-child { font-weight: 550; font-size: 16px; }
.hf-reportes .hf-enlace-parte { text-decoration: underline; text-decoration-color: #62685d; text-underline-offset: 3px; }
.hf-enlace-parte::after { content: ""; position: absolute; inset: 0; }
.hf-horas-motor { display: flex; align-items: center; gap: 17px; }
.hf-escala { display: grid; gap: 2px; grid-template-columns: repeat(8, 7px); height: 7px; }
.hf-escala i { background: #40463c; }
.hf-escala .hf-encendido { background: #a4b478; }
.hf-vacio { padding-block: 24px; color: var(--hf-suave); }

@media (max-width: 1080px) {
  .hf-ficha { padding-inline: 28px; }
  .hf-principal { grid-template-columns: 1.65fr 1fr; gap: 23px; }
  .hf-dial { top: 68px; transform: translateX(-50%) scale(1.03); }
  .hf-servicio { padding-inline: 14px; }
  .hf-ficha .hf-accion { margin-inline: 14px; padding-inline: 12px; font-size: 18px; }
  .hf-vence { flex-wrap: wrap; }
  .hf-instrumento { height: 310px; }
  .hf-equipo { gap: 13px; }
  .hf-obra { padding-left: 13px; }
  .hf-titular h2 { font-size: 26px; }
  .hf-renglon dd { font-size: 21px; }
  .hf-restante strong { font-size: 50px; }
}
@media (min-width: 601px) and (max-width: 850px) {
  .hf-principal { grid-template-columns: 1fr; gap: 25px; }
  .hf-finanzas dl { gap: 15px; }
  .hf-dial { top: 46px; transform: translateX(-50%) scale(1.20); }
  .hf-total { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .hf-total dd { font-size: 31px; }
}
@media (max-width: 600px) {
  .hf-ficha { padding: 0 19px 24px; font-size: 15px; line-height: 1.25; }
  .hf-movil { display: inline; }
  .hf-escritorio { display: none; }
  .hf-equipo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 22px 0 21px; }
  .hf-equipo h1 { grid-column: 1 / -1; font-size: 39px; line-height: .98; letter-spacing: -.024em; }
  .hf-separador { font-size: 30px; vertical-align: 4%; }
  .hf-obra { padding: 0; border: 0; color: #d3d6ca; font-size: 14px; font-weight: 400; }
  .hf-estado { justify-self: end; gap: 7px; font-size: 13px; }
  .hf-estado i { width: 10px; height: 10px; }
  .hf-estado i::after { inset: 2px; }
  .hf-principal { display: block; }
  .hf-instrumento { display: grid; grid-template: "dial" 242px "servicio" 70px "accion" 63px / 1fr; height: auto; padding: 0; border: 0; isolation: isolate; background: none; clip-path: none; }
  .hf-instrumento::before { content: ""; z-index: -1; position: absolute; inset: 0 0 63px; background: var(--hf-panel); border: 1px solid #495043; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%); }
  .hf-cara { margin: 6px 6px 0; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); }
  .hf-rotulo { top: 12px; left: 13px; font-size: 13px; letter-spacing: .8px; }
  .hf-rayas { top: 12px; right: 17px; width: 29px; height: 7px; background: repeating-linear-gradient(-55deg, transparent 0 3px, #344120 3px 5px); }
  .hf-dial { top: 31px; transform: translateX(-50%); }
  .hf-servicio { flex-direction: row; justify-content: space-between; align-items: center; padding: 9px 15px 10px; }
  .hf-vence { display: block; margin: 0; padding: 0; border: 0; }
  .hf-vence strong { display: block; margin-bottom: 1px; color: var(--hf-suave); font: 700 11px/1.2 Campo, "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
  .hf-vence .hf-numero { font-size: 21px; line-height: 1.05; letter-spacing: 0; }
  .hf-restante { display: flex; align-items: baseline; gap: 6px; margin: 0; }
  .hf-restante > span { display: inline; margin: 0; color: inherit; font-size: 13px; }
  .hf-restante strong { font-size: 29px; line-height: 1; letter-spacing: -.06em; }
  .hf-restante small { font-size: 1em; letter-spacing: inherit; }
  .hf-ficha .hf-accion { margin: 10px 0 0; min-height: 53px; padding-inline: 16px; font-size: 20px; }
  .hf-finanzas { margin-top: 25px; padding: 0; }
  .hf-titular { padding: 0 0 10px; border-color: #676c61; }
  .hf-titular h2 { font: 700 26px/1 Campo, "Arial Narrow", sans-serif; letter-spacing: -.02em; }
  .hf-divisa { font-size: 12px; letter-spacing: .05em; }
  .hf-finanzas dl { display: block; padding: 0; }
  .hf-renglon, .hf-total { display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 45px; border-bottom: 1px solid var(--hf-linea); }
  .hf-renglon dt { color: #e0e3d7; font-size: 15px; }
  .hf-renglon dd { font-size: 20px; letter-spacing: -.01em; }
  .hf-renglon::after { display: none; }
  .hf-total { min-height: 57px; padding: 0; border: 0; }
  .hf-total dt { font: 700 18px/1 Campo, "Arial Narrow", sans-serif; text-transform: none; letter-spacing: 0; }
  .hf-total dd { font-size: 25px; letter-spacing: -.01em; }
  .hf-reportes { margin-top: 24px; padding-top: 20px; }
  .hf-reportes h2 { font-size: 24px; margin-bottom: 12px; }
  .hf-col-fecha { width: 21%; }
  .hf-col-horometro { width: 39%; }
  .hf-col-motor, .hf-col-operario { width: 20%; }
  .hf-reportes th { font-size: 11px; letter-spacing: .05em; }
  .hf-reportes td, .hf-reportes td:first-child { font-size: 14px; }
  .hf-horas-motor { display: block; }
  .hf-escala { display: none; }
}
@media (max-width: 360px) {
  .hf-ficha { padding-inline: 13px; }
  .hf-dial { transform: translateX(-50%) scale(.91); }
  .hf-equipo h1 { font-size: 35px; }
}

@media (min-width: 601px) {
  @container (max-width: 335px) {
    .hf-dial { transform: translateX(-50%) scale(1.15); }
  }
  @container (max-width: 294px) {
    .hf-dial { transform: translateX(-50%) scale(1.02); }
  }
  @container (max-width: 263px) {
    .hf-dial { transform: translateX(-50%) scale(.92); }
  }
}
