:root {
  color: #333333;
  background: #fafdfc;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

* { box-sizing: border-box; }

body { margin: 0; }

.caja {
  width: min(640px, calc(100% - 48px));
  margin: 48px auto;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e5f5f2;
  border-radius: 12px;
}

h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #388e7d;
}

input, select, button, a {
  font: 16px/1.4 "IBM Plex Sans", "Segoe UI", sans-serif;
}

.buscar { position: relative; }

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5f5f2;
  border-radius: 8px;
  background: #fafdfc;
  color: #333333;
}

.buscar input { background: #ffffff; }

#resultados {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e5f5f2;
  border-radius: 8px;
}

#resultados button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #333333;
  text-align: left;
  cursor: pointer;
}

#resultados button:hover { background: #eafbf8; }

#resultados small { color: #388e7d; white-space: nowrap; }

.campo,
.prendidas,
article {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5f5f2;
}

.nombre { margin: 0; font-size: 18px; font-weight: 600; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0 0;
  font-size: 15px;
  color: #388e7d;
}

.meta span {
  padding: 2px 10px;
  border-radius: 999px;
  background: #eafbf8;
  color: #2c7164;
}

.listo { color: #2c7164; }
.fallo, .meta span.fallo { color: #ff8d63; background: #fff4ef; }

.acciones, .vars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

button, .acciones a {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #2c7164;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.fantasma {
  background: #eafbf8;
  color: #2c7164;
}

button:disabled { opacity: 0.45; cursor: default; }

.prendidas h2,
.entorno h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #333333;
}

.prendidas .link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  background: transparent;
  color: #333333;
  text-align: left;
}

.prendidas small { color: #388e7d; font-size: 14px; }

.prendidas a { padding: 6px 12px; font-size: 15px; }

.entorno {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5f5f2;
}

.vars { align-items: end; }

.vars label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 180px;
  margin: 0;
}

.vars select, .vars input { width: 100%; }

.vars button { margin-bottom: 1px; }

code {
  display: block;
  margin-top: 2px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: #2c7164;
}

.lista {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.lista li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5f5f2;
  font-size: 15px;
}

.lista li:last-child { border-bottom: 0; }

.aviso, .error { margin: 8px 0 0; font-size: 15px; }

.aviso { color: #388e7d; }

.error { color: #ff8d63; }

.caja > form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.caja > form button { margin-top: 8px; }

.avance { margin-top: 14px; }
.avance .pista {
  height: 10px;
  border-radius: 999px;
  background: #e5f5f2;
  overflow: hidden;
}
.avance .pista span {
  display: block;
  height: 100%;
  background: #2c7164;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.avance p { margin: 8px 0 0; font-size: 15px; color: #388e7d; }
.avance.fallo .pista span { background: #ff8d63; }
.avance.fallo p { color: #ff8d63; }

.cupo {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c7164;
}
.datos {
  margin: 16px 0 0;
  padding: 4px 16px;
  border: 1px solid #e5f5f2;
  border-radius: 10px;
  background: #fafdfc;
}
.datos div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #e5f5f2;
}
.datos div:last-child { border-bottom: 0; }
.datos dt { margin: 0; color: #388e7d; font-size: 14px; }
.datos dd { margin: 0; word-break: break-word; }
.datos a { color: #2c7164; background: transparent; padding: 0; }
.datos ul { margin: 0; padding: 0; list-style: none; }
.datos li + li { margin-top: 4px; }

.recordar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #333333;
  font-size: 15px;
}
.recordar input { width: 16px; height: 16px; padding: 0; }
