

.est__wrap { max-width: 1240px; }


.est__pantalla {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #7f93a8;
  box-shadow: 0 18px 50px -24px rgba(8, 10, 30, 0.55);
  user-select: none;
}
.est__pantalla canvas {
  display: block;
  width: 100%; height: auto;
}


.est__hud, .est__consola, .est__diario { pointer-events: none; }
.est__hud button, .est__consola .est__op, .est__consola .est__cat,
.est__consola .est__cajon, .est__consola .est__cerrar {
  pointer-events: auto;
}


.est__hud {
  position: absolute; inset: 0 0 auto 0;
  
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.6rem;
  padding: 0.55rem 0.9rem;
  color: #f2f6fa;
  background: linear-gradient(180deg, rgba(10, 14, 32, 0.74), rgba(10, 14, 32, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.est__reloj {
  display: flex; align-items: center; gap: 0.6rem;
  padding-right: 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.est__reloj > b {
  font-family: var(--font-display);
  font-size: 1.15rem; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


.est__hora {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  padding: 0.12rem 0.45rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.13);
}
.est__hora i { font-style: normal; font-size: 0.95rem; }

.est__astro--quieto { opacity: 0.45; }
.est__hora b { font-weight: 500; font-variant-numeric: tabular-nums; }


.est__neto {
  font-style: normal;
  font-family: var(--font-mono, monospace);
  color: #8ce8b0;
  cursor: help;
}
.est__neto--malo { color: #ffb0a0; }

.est__vel { display: flex; gap: 2px; }

.est__lupa { margin-left: 0.45rem; }
.est__lupa button { min-width: 2rem; font-size: 0.95rem; line-height: 1; }
.est__lupa button:disabled { opacity: 0.35; cursor: default; }
.est__lupa button:disabled:hover { background: rgba(255, 255, 255, 0.14); }
.est__vel button {
  min-width: 2.2rem; padding: 0.26rem 0;
  font: 500 0.8rem/1 var(--font-mono, monospace);
  color: #dfe7f0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.est__vel button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.est__vel button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.est__vel button:hover { background: rgba(255, 255, 255, 0.26); }
.est__vel button[aria-pressed="true"] {
  color: #06210f; background: var(--h2-green);
  border-color: var(--h2-green); font-weight: 700;
}

.est__dato { display: grid; gap: 0.05rem; min-width: 0; }
.est__dato b {
  font-family: var(--font-display);
  font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.est__dato span { font-size: 0.7rem; opacity: 0.8; white-space: nowrap; }

.est__dato--caja { min-width: 150px; }
.est__barra--mes { height: 3px; margin-top: 0.25rem; opacity: 0.75; }
.est__barra--mes i { background: linear-gradient(90deg, #6b7280, #c3cedd); }

.est__dato--almacen { margin-left: auto; min-width: 118px; }
.est__dato--almacen b { color: #bfe2f2; }
.est__dato--almacen .est__barra i {
  background: linear-gradient(90deg, #4e8eab, #bfe2f2);
}

.est__dato--malo b { color: #ffd98c; }
.est__dato--aire { min-width: 140px; }
.est__dato--aire b { color: #8ce8b0; }
.est__barra {
  height: 5px; margin-top: 0.2rem;
  border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}
.est__barra i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #3a8f5c, #8ce8b0);
  transition: width 0.5s linear;
}


.est__diario {
  
  position: absolute; top: calc(var(--hud-alto, 3.1rem) + 0.5rem); left: 0.9rem;
  width: min(290px, 44%);
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.3rem;
  font-size: 0.78rem; line-height: 1.35;
  color: #eaf1f7;
}
.est__diario li {
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  background: rgba(10, 14, 32, 0.52);
  backdrop-filter: blur(3px);
}
.est__diario b { color: #8ce8b0; }


.est__hito {
  position: absolute; top: calc(var(--hud-alto, 3.1rem) + 0.5rem); right: 0.9rem;
  width: min(270px, 42%);
  display: grid; gap: 0.1rem;
  padding: 0.5rem 0.7rem 0.6rem;
  border-radius: var(--r-sm);
  background: rgba(10, 14, 32, 0.56);
  backdrop-filter: blur(3px);
  color: #eaf1f7;
  pointer-events: none;
}
.est__hito__t {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(226, 236, 245, 0.55);
}
.est__hito b {
  font-family: var(--font-display);
  font-size: 0.86rem; line-height: 1.2;
}
.est__hito__p { font-size: 0.7rem; color: rgba(226, 236, 245, 0.6); line-height: 1.3; }
.est__hito__n {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem; color: #8ce8b0; margin-top: 0.1rem;
}
.est__hito__barra {
  height: 4px; margin-top: 0.35rem;
  border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.est__hito__barra i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #d79f2c, #ffd98c);
  transition: width 0.4s ease;
}

.est__premio {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%) scale(0.85);
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(58, 143, 92, 0.96), rgba(16, 60, 40, 0.96));
  border: 1px solid #8ce8b0;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  color: #f2fbf6; text-align: center;
  
  opacity: 0; pointer-events: auto; cursor: pointer;
  animation: premio 0.45s ease forwards;
  max-width: min(420px, 86%);
  
  z-index: 20;
}
.est__premio b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.est__premio span { display: block; font-size: 0.78rem; opacity: 0.85; }
.est__premio i {
  display: block; font-style: normal; margin-top: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 1.3rem; font-weight: 600; color: #bdf5d4;
}
.est__premio--gasto { color: #ffd98c; }
.est__premio--abre {
  font-family: var(--font-body, inherit) !important;
  font-size: 0.9rem !important; color: #bdf5d4;
}
.est__premio__ok {
  margin-top: 0.75rem;
  padding: 0.3rem 0.95rem;
  font: 600 0.78rem/1 var(--font-body, system-ui, sans-serif);
  color: #06210f; background: #bdf5d4;
  border: 0; border-radius: 99px; cursor: pointer;
}
.est__premio__ok:hover { background: #f2fbf6; }

@keyframes premio {
  0%   { opacity: 0; transform: translate(-50%, -40%) scale(0.85); }
  70%  { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .est__premio { animation: none; opacity: 1; }
}
@media (max-width: 760px) {
  .est__hito { display: none; }
}


.est__consola {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(8, 11, 26, 0.94) 55%, rgba(8, 11, 26, 0));
  padding: 1.5rem 0.75rem 0.65rem;
  color: #e8eef5;
}

.est__info {
  margin: 0 0 0.45rem; padding: 0 0.2rem;
  min-height: 1.15rem;
  font-size: 0.8rem; line-height: 1.3;
  color: #c3d2e0;
}
.est__info--aviso { color: #ffd98c; font-weight: 500; }


.est__categorias { display: flex; gap: 0.5rem; }
.est__cat {
  flex: 1 1 0; min-width: 0;
  display: grid; gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  text-align: left;
  color: #e8eef5;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
  pointer-events: auto;
}
.est__cat:hover { background: rgba(255, 255, 255, 0.17); border-color: var(--h2-green); }
.est__cat--on {
  background: rgba(90, 200, 140, 0.26);
  border-color: #8ce8b0;
}
.est__cat__t {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600;
}
.est__cat__s {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: rgba(226, 236, 245, 0.66);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.est__cat--on .est__cat__s { color: #a9e9c4; }


.est__cajon {
  margin-bottom: 0.6rem;
  padding: 0.75rem 0.8rem 0.8rem;
  background: rgba(16, 21, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  pointer-events: auto;
}
.est__cajon__cab { position: relative; padding-right: 2rem; margin-bottom: 0.6rem; }
.est__cajon__cab h3 {
  margin: 0; font-size: 0.95rem;
  font-family: var(--font-display); font-weight: 600;
}
.est__cajon__ayuda {
  margin: 0.15rem 0 0;
  font-size: 0.76rem; line-height: 1.35;
  color: rgba(226, 236, 245, 0.68);
  max-width: 68ch;
}
.est__cerrar {
  position: absolute; top: -0.2rem; right: -0.2rem;
  width: 1.9rem; height: 1.9rem;
  font-size: 1.2rem; line-height: 1;
  color: #e8eef5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.est__cerrar:hover { background: rgba(255, 255, 255, 0.2); }

.est__ops {
  display: flex; gap: 0.45rem;
  overflow-x: auto; scrollbar-width: thin;
  padding-bottom: 0.2rem;
}


.est__op {
  flex: 1 1 0; min-width: 150px; max-width: 230px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  
  grid-template-areas: "ico nom" "ico cif" "ico cif2" "txt txt";
  align-items: center;
  gap: 0 0.5rem;
  padding: 0.5rem 0.55rem 0.55rem;
  text-align: left;
  color: #e8eef5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.1s;
}
.est__op canvas { grid-area: ico; align-self: center; }
.est__op b {
  grid-area: nom; align-self: end;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600; line-height: 1.15;
}
.est__op__cifra {
  grid-area: cif; align-self: end;
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem; line-height: 1.25;
  color: rgba(226, 236, 245, 0.82);
}
.est__op__cifra--2 {
  grid-area: cif2; align-self: start;
  font-size: 0.63rem; color: rgba(226, 236, 245, 0.55);
}
.est__op__txt {
  grid-area: txt;
  margin-top: 0.35rem;
  font-size: 0.7rem; line-height: 1.35;
  color: rgba(226, 236, 245, 0.62);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.est__op:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--h2-green);
  transform: translateY(-2px);
}
.est__op:disabled { cursor: not-allowed; opacity: 0.55; }
.est__op--sel {
  background: rgba(90, 200, 140, 0.28);
  border-color: #8ce8b0;
  box-shadow: 0 0 0 1px #8ce8b0 inset;
}
.est__op--ok b { color: #8ce8b0; }
.est__op--ok:disabled { opacity: 0.8; }

.est__op--aviso .est__op__txt { color: #ffd98c; }


@media (max-width: 760px) {
  .est__hud { gap: 0.8rem; padding: 0.45rem 0.6rem; }
  .est__reloj { border-right: 0; padding-right: 0; gap: 0.4rem; }
  .est__reloj > b { font-size: 1rem; }
  .est__vel button { min-width: 1.9rem; font-size: 0.72rem; }
  .est__dato span { display: none; }
  .est__dato b { font-size: 0.88rem; }
  
  .est__dato:not(.est__dato--aire) { display: none; }
  .est__dato--almacen { display: none; }
  .est__dato--aire { margin-left: auto; min-width: 86px; }
  .est__diario { display: none; }     
  .est__op { min-width: 132px; grid-template-columns: 42px minmax(0, 1fr); }
  .est__op canvas { width: 42px !important; height: 33px !important; }
  .est__op__txt { -webkit-line-clamp: 2; line-clamp: 2; }
  .est__consola { padding: 1.1rem 0.5rem 0.5rem; }
  .est__cat__t { font-size: 0.82rem; }
  .est__cat { padding: 0.42rem 0.5rem; }
}


.est__pie { margin-top: 0.9rem; gap: 0.6rem; }

.est__fuentes { display: grid; gap: 0.5rem 0; margin: 1rem 0; font-size: var(--fs-sm); }
.est__fuentes dt { font-weight: 600; }
.est__fuentes dd { margin: 0 0 0.5rem; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  .est__op, .est__barra i { transition: none; }
  .est__op:hover:not(:disabled) { transform: none; }
}




.est__encargo {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(6, 9, 24, 0.82);
  backdrop-filter: blur(4px);
  animation: estEncargoEntra 0.45s var(--ease, cubic-bezier(.2,.7,.3,1));
}
@keyframes estEncargoEntra { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .est__encargo { animation: none; } }

.est__encargo__caja {
  width: min(44rem, 100%);
  
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid; gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(143, 220, 170, 0.35);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #151b3c, #0c1026);
  color: #eaf1f7;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

.est__encargo__quien { display: flex; align-items: center; gap: 0.85rem; }
.est__retrato { width: 76px; height: 76px; flex: none; }
.est__encargo__nombre {
  display: block;
  font-family: var(--font-display); font-size: 1rem; line-height: 1.2;
}
.est__encargo__cargo {
  font-size: 0.78rem; color: rgba(226, 236, 245, 0.6);
}

.est__encargo__texto h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: 1.15; margin: 0 0 0.6rem;
  text-wrap: balance;
}
.est__encargo__texto p {
  margin: 0 0 0.6rem; font-size: 0.92rem; line-height: 1.55;
  color: rgba(226, 236, 245, 0.85);
}
.est__encargo__texto b { color: #8ce8b0; font-weight: 600; }

.est__encargo__primero {
  margin-bottom: 0 !important;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid #4fbd76;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(79, 189, 118, 0.1);
}

.est__encargo__pie {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
}
.est__encargo__nota {
  flex: 1 1 16rem; min-width: 0;
  font-size: 0.72rem; line-height: 1.35;
  color: rgba(226, 236, 245, 0.5);
}

@media (min-width: 46rem) {
  
  .est__encargo__caja {
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: start;
  }
  .est__encargo__quien { flex-direction: column; text-align: center; gap: 0.5rem; }
  .est__retrato { width: 104px; height: 104px; }
  .est__encargo__pie { grid-column: 2; }
}



.est__pasos {
  position: absolute;
  left: 0.9rem;
  top: calc(var(--hud-alto, 3.1rem) + var(--diario-alto, 0px) + 1rem);
  bottom: calc(var(--consola-alto, 7rem) + 0.6rem);
  transform: none;
  z-index: 12;
  width: min(230px, 40%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.est__pasos__caja {
  pointer-events: auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  background: rgba(10, 14, 32, 0.56);
  backdrop-filter: blur(3px);
  color: #eaf1f7;
  overflow: hidden;
}
.est__pasos__cab {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  flex: none;
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 0; background: transparent; color: inherit;
  cursor: pointer; text-align: left;
}
.est__pasos__cab:hover { background: rgba(255, 255, 255, 0.05); }
.est__pasos__t {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(226, 236, 245, 0.55);
}
.est__pasos__n { font-size: 0.68rem; color: rgba(226, 236, 245, 0.45); }
.est__pasos__lista {
  list-style: none; margin: 0; padding: 0 0.7rem 0.6rem;
  display: grid; gap: 0.3rem;
  
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.est__pasos[aria-collapsed="si"] .est__pasos__lista { display: none; }

.est__paso {
  display: grid; grid-template-columns: 0.95rem minmax(0, 1fr);
  gap: 0.45rem; align-items: start;
  font-size: 0.73rem; line-height: 1.3;
  color: rgba(226, 236, 245, 0.5);
}
.est__paso__m {
  width: 0.95rem; height: 0.95rem; margin-top: 0.1rem;
  border: 1.5px solid rgba(226, 236, 245, 0.3); border-radius: 50%;
}
.est__paso--hecho { color: rgba(226, 236, 245, 0.42); }
.est__paso--hecho .est__paso__m {
  border-color: #4fbd76; background: #4fbd76;
}
.est__paso--hecho .est__paso__n { text-decoration: line-through; }
.est__paso--ahora { color: #eaf1f7; }
.est__paso--ahora .est__paso__m {
  border-color: #8ce8b0;
  box-shadow: 0 0 0 3px rgba(79, 189, 118, 0.2);
}
.est__paso--ahora .est__paso__n { font-weight: 600; }

.est__paso__pista {
  display: block; margin-top: 0.15rem;
  font-size: 0.68rem; line-height: 1.3;
  color: rgba(140, 232, 176, 0.85);
}



@media (max-width: 52rem) {
  .est__encargo { position: fixed; z-index: 200; padding: 0.75rem; }
}

@media (max-width: 52rem) {
  .est__pasos {
    left: auto; right: 0.6rem;
    top: calc(var(--hud-alto, 3.1rem) + 0.5rem);
    bottom: auto;
    justify-content: flex-start;
    width: min(230px, 46%);
  }
  .est__paso--hecho, .est__paso--futuro { display: none; }
}


.est__son button[aria-pressed="false"] { opacity: 0.45; }


.est__encargo__grito {
  margin: 0.9rem 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--h2-green);
}
.est__encargo__grito b { font-weight: 700; }


.est__op__llave {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 600;
  color: #ffd98c;
}
.est__op--cerrado { opacity: 0.72; }
.est__op--cerrado .est__op__txt { opacity: 0.85; }


.est__cat2 { list-style: none; margin: 1.1rem 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.est__cat2__it {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}
.est__cat2__it--cerrado { opacity: 0.78; }
.est__cat2__art { line-height: 0; }
.est__cat2__art svg, .est__cat2__art img { width: 100%; height: auto; display: block; }
.est__cat2__it b { display: block; font-family: var(--font-display); font-size: 1rem; }
.est__cat2__cifra { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--text-3); }
.est__cat2__txt { display: block; margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--text-2); }
.est__cat2__est {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
}
.est__cat2__est--ok { background: rgba(79, 189, 118, 0.16); color: #8fe3ad; }
.est__cat2__est--cerrado { background: rgba(255, 217, 140, 0.14); color: #ffd98c; }
.est__cat2__est--falta { background: rgba(255, 255, 255, 0.07); color: var(--text-3); }

@media (max-width: 30rem) {
  .est__cat2__it { grid-template-columns: 44px 1fr; gap: 0.7rem; }
}


.est__dato--rango b {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: #a9e9c4;
}
.est__dato--rango span { white-space: nowrap; }

.est__premio--rango { border-color: rgba(79, 189, 118, 0.55); }
.est__premio--rango > span { color: #8fe3ad; letter-spacing: 0.14em; }
.est__premio--rango > b { font-size: 1.5rem; }
.est__premio--que {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(226, 236, 245, 0.78);
  max-width: 34ch;
}


.est__meta {
  margin: 0 0 0.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(226, 236, 245, 0.6);
  max-width: 22ch;
}
.est__meta--corta { color: #a9e9c4; }
